Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
ISACA · AAISM

Securing agents and generative AI

AAISM · Lesson 12 of 16 · 1:27:19

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the ISACA AAISM exam (Advanced in AI Security Management). In this lesson: what changes with agents, their own identity and least privilege, human approval and limits for high impact actions, untrusted content, memory, and tools, and AI assistants in office software. Includes three original practice questions, with Ridgeline Pharma, a fictional drug company, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

An agent that pays suppliers

Ridgeline's new procurement agent reads emails from suppliers, creates purchase orders, and can pay invoices. It saves hours every day, but a mistake by this agent is no longer just a wrong answer: it is a payment. This lesson covers what changes with agents, identity and privilege, human approval and limits, untrusted content and tools, and assistants inside office software.

What changes with agents

An agent plans a task, calls tools, keeps a memory, and acts with little supervision. So a successful attack, or a simple error, turns into an action: a payment, a deleted file, or an email to the wrong person. The threats from lesson eight apply, like goal hijack, tool misuse, and memory poisoning. And the controls aim at one thing: limiting what the agent can do, and seeing everything it does.

Identity and least privilege

Each agent has its own identity, so that its actions can be told apart from those of people and of other agents. It gets the least privilege it needs, tool by tool, and action by action. Its credentials are short lived, and scoped to the task at hand. An agent that acts for a user does not receive all of that user's rights without limits. And agents that talk to each other authenticate, like any other service.

Human approval and limits

Some actions need a person to approve them first. High impact or irreversible actions, like payments, deletions, or emails to people outside the company, wait for human approval. Rate limits and budget limits stop an agent that loops, or one that an attacker controls. A kill switch lets the owner stop the agent at once. And code that an agent writes runs in a sandbox, with no access beyond what the task needs.

Untrusted content, memory, and tools

Everything that comes from outside is untrusted: emails, web pages, documents, and the results of tools. The design keeps instructions apart from data, so that content that the agent reads is not followed as an order. Memory is protected, checked, and cleaned, because a poisoned memory spreads an attack across sessions. Agents connect only to approved tools and MCP servers, from a list that the security team maintains. And every action and tool call is logged, with the identity of the agent, so that an investigation can rebuild what happened.

Assistants in office software

Generative AI assistants inside office software search everything that the user can access. So they reveal oversharing: a file shared with the whole company by mistake becomes an answer for anyone who asks. Before the rollout, Ridgeline reviews broad permissions on sites and folders, and applies sensitivity labels to confidential files. And data loss prevention watches what users paste into prompts, and what the assistant returns.

Recap

Let's recap. An agent plans, calls tools, keeps a memory, and acts, so an error becomes an action. Each agent has its own identity, the least privilege it needs, and short lived credentials. High impact actions wait for human approval, limits and a kill switch stop runaway agents, and generated code runs in a sandbox. Outside content is untrusted, memory is protected, only approved tools and MCP servers are allowed, and every action is logged. And office assistants reveal oversharing, so permissions and labels are fixed before the rollout.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. To avoid permission errors, the procurement agent runs with the administrator account of the IT team. What should the security manager require?

    • Keep the account, and review its logs each week
    • Its own identity, with only the rights it needs
    • One copy of the administrator account per agent
    • A stronger password on the administrator account
    Show the answer

    Its own identity, with only the rights it needs

    The agent gets its own identity, with only the rights that its tasks need, so that a hijacked agent cannot do much harm. “Keep the account, and review its logs each week” would keep the broad rights, and only watch their use. “One copy of the administrator account per agent” would spread the same broad rights over more accounts. And “A stronger password on the administrator account” would still give the agent far more rights than its tasks need.

  2. A coding agent runs the code it generates directly on a shared server with full network access. Which control fits best?

    • A weekly review of the code it generated
    • A faster server, so the agent finishes sooner
    • A sandbox with only the access the task needs
    • A system prompt asking it to write safe code
    Show the answer

    A sandbox with only the access the task needs

    Generated code runs in a sandbox, isolated from the shared server, with only the access that the task needs. “A weekly review of the code it generated” would check the code later, after it may have done damage. “A faster server, so the agent finishes sooner” would make the agent faster, not safer. And “A system prompt asking it to write safe code” would rely on the model to behave, which an injected instruction can change.

  3. Ridgeline plans to roll out an office assistant that can search every file each user can access. Many sites are shared with everyone. What should happen first?

    • Roll it out now, and fix sharing later
    • Switch the assistant to a larger model
    • Block the assistant for every employee
    • Fix the overshared sites and permissions
    Show the answer

    Fix the overshared sites and permissions

    The assistant shows whatever each user can access, so overshared sites are fixed before the rollout. “Roll it out now, and fix sharing later” would expose the overshared files to everyone from the first day. “Switch the assistant to a larger model” would change the model, not the permissions that it relies on. And “Block the assistant for every employee” would block the tool, rather than fix the cause.