Catalog / AI Security Practice 2026: Using Generative AI Safely at Work / 3-3 What to let an AI agent do, and how to stop it

3-3 What to let an AI agent do, and how to stop it

Limiting the damage when AI acts on its own

Lesson 10 / 19

The situation

Sofia works in sales planning. She has started using an AI assistant to manage her inbox. She set it up to do everything: read mail, draft replies, send them, and add events to her calendar. One morning she looks in her sent folder and finds an email, with an internal document attached, sent to an address she doesn't recognise.

AI that answers, and AI that acts

Until recently AI answered questions in text. More and more, AI now uses tools to carry work forward on its own. This is called an AI agent.

  • reads mail and sends replies
  • opens files, edits and saves them
  • opens websites and fills in forms
  • adds calendar events, makes purchases

This is convenient, and it changes the scale of the risk. If an AI that only answers is tricked, the result is wrong text on a screen. If an AI that acts is tricked, real actions are carried out.

Three conditions that combine into risk

Harm is likely when all three hold.

  1. It reads outside content. Email, web pages, files received.
  2. It can reach confidential material. Internal documents, the inbox, customer data.
  3. It has a way to send things out. Sending email, accessing the web, sharing files.

Instructions planted in an incoming email (the prompt injection from lesson 3-1) make the AI read an internal document and send it out. That is what happened to Sofia.

Only the access it needs

Give the AI the minimum access the task requires.

  • If reading is enough, don't grant writing or sending.
  • Grant the folders it needs, not the whole inbox.
  • Don't connect services unrelated to the work.
  • Disconnect integrations you have finished using.

A person confirms anything irreversible

Set these actions so that a person checks the content before they run, not so that the AI runs them automatically.

  • sending email or messages
  • deleting or overwriting files
  • sharing outside, publishing
  • payments, orders, contracts
  • changing settings or permissions

When a confirmation appears, don't press "allow" without reading it. If you click through because it comes up so often, the confirmation no longer does anything.

If something seems wrong, stop it

When the AI starts doing something you didn't ask for:

  1. Stop. Cancel the run. Press stop, end the conversation.
  2. Disconnect. Remove the AI's connection to the service.
  3. Check. Look at the history and what was sent to see what was actually done.
  4. Report. Tell the people responsible what you had it doing and what happened.

Stopping and reporting come before spending time working out the cause yourself.

Back to the situation

Sofia had given the AI all three, with no confirmation: reading outside mail, reaching internal documents, and sending mail. She should disconnect it first, check what was sent and to whom, and report to IT straight away. If she uses it again, she should set it so that she confirms every email before it is sent.

Check question

You are having an AI agent organise your email. Which setup is best?

  1. For convenience, allow reading, writing, sending and deleting, all automatically
  2. Let it prepare drafts, and send or delete only after you have checked the content yourself
  3. Set everything to "always allow", because confirmations every time are a nuisance
  4. Let it handle outside email and confidential internal documents together with the same access

Answer: B. Irreversible actions such as sending and deleting run only after a person has confirmed them. Keep access to the minimum needed.

AIセキュリティプラクティス2026: ジェネレーティブAIを安全に使用する

Q1. AIエージェントが危険にさらされるのはどの条件がすべて満たされた場合ですか?
  • AIが確認なしで行動する ✓
  • AIがタスクのために必要な最低限のアクセスを持つ
  • AIが内部ドキュメントへのアクセスを持たない
  • AIが外部コンテンツを読み取る
Q2. SofiaがAIを使う際に設定すべきなのはどれですか?
  • 送信する前に内容を確認するように設定する ✓
  • 自動的に全てのメールを送信する
  • 外部メールと内部機密情報を同じアクセスで処理する
  • 全てのアクセスを許可する
Q3. AIが予期しない行動を開始した場合、最初に行うべきことは何ですか?
  • 原因を調べる
  • AIを停止する ✓
  • AIの接続を維持する
  • ITに連絡する

Share this lesson

Enroll in this course for free

A free account unlocks every lesson in this course right away.

Register for free Sign in to continue

AI Security Practice 2026: Using Generative AI Safely at Work

Area 3: Noticing attacks aimed at AI


Back to course