Security in the Age of AI Agents: Shifting from Output Risks to Action Risks

    As AI evolves from content generators to autonomous agents, cybersecurity risks are fundamentally shifting from what AI outputs to what actions it executes. This article explores the root causes of action risks in agentic AI systems, including prompt injection, excessive permission granting, memory pollution, and trust propagation in multi-agent collaboration. Furthermore, it outlines a comprehensive defense strategy centered on permission structures—emphasizing the least privilege principle, sandbox isolation, full-link auditing, dual verification, and memory write controls—to help developers and enterprises secure their AI agent deployments.

    In the cybersecurity landscape of 2026, a question is increasingly being asked by practitioners: When facing AI, are we truly afraid of what it says wrong, or what it does wrong?

    This distinction may seem subtle, but the difference is profound. The emergence of AI agents has not created a mysterious new entity; rather, it has revealed a long-neglected fact: in digital systems, what truly determines the consequences of an action is often not the “cognitive unit” itself, but the permission structure built around it.

    1. From “Saying” to “Doing”: A Historical Shift in Risk Focus

    Over the past few years, Large Language Models (LLMs) have swept the globe with their astonishing text generation capabilities, sparking repeated discussions on data privacy, content authenticity, and algorithmic bias. Security researchers, regulators, and ethicists have focused heavily on model “outputs”—what it says, what it generates, and what it predicts. While these concerns are valid, they share an implicit premise: no matter how the AI outputs information, humans are ultimately the ones taking action.

    Under this “output-centric” framework, the regulatory logic is relatively clear: standardize the use of training data, require output accuracy and fairness, establish content moderation mechanisms, and enhance transparency and explainability. AI bills and ethical guidelines introduced globally have largely built their regulatory systems along these lines.

    However, this premise is quietly being broken. As AI evolves from a “content generator” to an “action executor,” the nature of the risk has fundamentally changed.

    2. Why Agents are “Systems That Act”

    According to widespread industry understanding, an AI Agent is not just a “talking model”; it typically possesses four core capabilities:

    1. Reasoning and Planning: Automatically decomposing tasks and formulating execution paths based on goals.
    2. Tool Calling: Directly operating file systems, browsers, databases, and API interfaces.
    3. Memory Maintenance: Persisting context and state information across sessions.
    4. Autonomous Execution: Running continuously under preset conditions without human intervention.

    The combination of these four capabilities means that the agent has crossed the traditional “advisor” role of AI to become a true “executor.” A typical agent workflow can be abstracted as:

    1. User intent -> Task planning -> Tool selection -> Permission verification -> Action execution -> Result feedback -> Memory persistence

    In this chain, there may no longer be a buffer zone for human decision-making between “receiving instructions” and “producing consequences.” This is the fundamental reason why action risks are more alarming than output risks.

    3. Anatomy of Action Risks: Where Do They Come From?

    Prompt Injection: Attack Surface Migrates from Model to Context
    When agents connect to external data sources—web pages, emails, documents—these data sources themselves become attack vectors. Attackers do not need to access the model itself; they only need to embed malicious instructions in the text being processed. When the agent reads it, it may mistake it for a legitimate task. Unlike traditional model “jailbreaks,” injection occurs at the agent’s perception input layer, bypassing protections on the model itself.

    Excessive Permission Granting: The Biggest Hidden Danger Comes from Configuration
    To make agents “easy to use,” it is common in development practices to grant broad permissions at once: a single token can read files, send requests, access databases, and call payment APIs. Once the agent’s planning phase is induced or makes an error, overly broad permissions mean an excessively large blast radius.

    Memory Pollution: Attacks Can Persist Across Sessions
    The agent’s memory mechanism allows context to continue, but it also means that injected malicious information may be written into long-term memory, taking effect repeatedly in subsequent sessions. This type of attack is highly concealed, has a long lifecycle, and traditional detection methods based on a single session are almost completely ineffective.

    Trust Propagation in Multi-Agent Collaboration
    When multiple agents call each other and pass tasks, a compromised node can spread its impact upstream and downstream along the call chain. The more complex the collaboration topology, the harder it is to implement the “zero trust” principle.

    4. Defense System: Rebuilding Security Boundaries Around Permission Structures

    Since the root of the risk is “permissions + actions,” the defense approach should also shift from “constraining output” to “constraining action.”

    Agent-Specific Least Privilege Principle
    Credentials issued to agents should be granted dynamically and on-demand according to the task, with very short validity periods. Tool calling should adopt a whitelist mechanism, and sensitive operations (deleting data, financial changes, external sending) should mandatorily include a human approval step. All permission changes should be logged and be revocable at any time.

    Sandbox Isolation: Letting Agents “Work in a Cage”
    File systems, network access, and code execution should all occur in an isolated environment. Containerized execution, network egress whitelists, and read-only mounting of sensitive directories are mature and reusable engineering practices. Even if the agent is fully induced, the resource boundaries it can reach are clearly limited.

    Full-Link Audit and Behavior Baselines
    Leverage logging services and monitoring alert capabilities to record the “intent-parameter-result” triplet for every tool call, and establish behavior baselines for call frequency, target resources, and operation types. Behaviors that deviate from the baseline (such as suddenly reading files in bulk or making high-frequency API calls during unusual hours) should trigger alerts or even automatic circuit breaking.

    Dual Verification of Output and Action
    Add an independent verification layer before action execution: compare the planned action with the user’s original intent for consistency, and require secondary confirmation for high-risk actions. This layer can be completed by a rule engine, another model, or a human. The essence is to reintroduce a buffer zone for “execution.”

    Memory Write Control
    Treat writes to long-term memory as a privileged operation: filter before writing, tag during writing (distinguishing user instructions from external data), and conduct regular audits and cleanups to prevent memory from becoming a persistent carrier for attacks.

    5. Conclusion: Security Paradigms Must Evolve with Capability Paradigms

    The security proposition in the age of AI agents is essentially not “will AI say the wrong thing,” but “what kind of action environment have we built for AI.” The model’s capabilities determine how fast it can go, while the permission structure determines how far it can deviate.

    For enterprises and developers, now is the time to re-examine AI agent deployment architectures: manage every agent as a “digital employee” that needs to be authorized, monitored, and audited, and use a zero-trust mindset to delineate its action boundaries. The rules of attack and defense have changed. Only those teams that take the lead in shifting their security focus from “output” to “action” can seize the initiative in the age of AI agents.