Back to News
· 12 min readResearch & PerspectivesBy Tarique Smith

When AI Agents Become the Attack Surface: A Five-Stage Security Plan for CISOs

Enterprises are giving AI agents authority to act. Security teams need evidence that those agents keep to their intended purpose when an attacker controls what they read.

Five stone frames rise along a golden line; at a glass pane in the middle a red thread enters and turns one gold point red

By Tarique Smith, Co-Founder and Chief Research Officer, Cogensec

The internet opened new paths into corporate networks. Cloud computing moved infrastructure and identity outside the data center. Mobile devices carried enterprise data beyond the office. Each shift changed what security teams had to protect.

AI agents change it again. Earlier systems processed information. An agent interprets information, makes decisions, invokes tools, and acts on the organization's behalf. It may hold permission to query sensitive databases, execute code, modify infrastructure, process payments, or message other agents, and it may do so across hundreds of decisions with little human review.

The result is a failure that existing controls were not built to catch. An agent can be authenticated, authorized, and running in an approved environment, and still make a decision that violates its intended purpose. Identity and access controls answer whether the agent is allowed to act. They do not answer whether the action it chose is the one its owner intended.

Security leaders already ask whether an attacker can compromise a system. They now have a second question: does an autonomous system keep its integrity when the content it reads is adversarial? At Cogensec we expect that question to shape enterprise security for the next several years.

The security boundary has moved

Security programs control access to systems and protect the data moving through them. Identity management decides who or what may act. Endpoint security observes processes. Network controls restrict communication. Application security finds software vulnerabilities. All of these remain necessary.

An agent adds its own decision-making to the attack surface. Take an agent that processes supplier invoices. It retrieves documents, evaluates payment instructions, checks internal records, and starts approved workflows.

Suppose an attacker controls one document the agent is about to read. The attacker has no need to steal credentials, compromise the model, or exploit a software vulnerability. They place instructions inside material the agent was supposed to treat as data. If the agent treats those instructions as authoritative, the attacker redirects its behavior through a legitimate workflow.

A stack of documents flows through a glass pane; a red thread from one document pulls part of the golden path toward a different exit
Figure 1. One document the agent reads carries instructions that redirect a legitimate workflow.

Nothing in that sequence trips a conventional control. The infrastructure is uncompromised, the API calls are permitted, and the service identity is valid. The failure is in how the agent decided whose instructions to follow.

Supplier invoice workflow
Credentials✓ Valid service identity
API calls✓ Permitted
Infrastructure✓ Uncompromised
Decision✕ Follows the attacker's instructions
Figure 2. In the invoice scenario every conventional check passes; the failure is in whose instructions the agent followed.

Prompt injection, tool-output manipulation, memory poisoning, unauthorized delegation, and workflow hijacking all share that root. I group them under one name, failures of agent integrity. An organization can run effective perimeter controls and still have no evidence that its agents will behave as intended.

Five stages for CISOs

Enterprises will keep adopting agents. The five stages below match the authority an agent receives with measured assurance, recurring adversarial testing, and a way to intervene when something goes wrong.

Five stages for CISOs
  1. 01
    Inventory autonomous authority
  2. 02
    Test agents against the attacks they will meet
  3. 03
    Measure integrity during execution
  4. 04
    Build response capabilities for agent misbehavior
  5. 05
    Make agent integrity an enterprise security requirement
Figure 3. The five-stage plan. Each stage depends on the one before it.

1. Inventory autonomous authority

Most enterprises keep inventories of applications, infrastructure, and privileged identities. Far fewer know which AI systems can start actions on their own. Close that gap first.

I would require every business unit that deploys agents to document what each agent can do, what it can reach, and how its actions are supervised. Model names and application owners are too little. Security leadership should be able to answer:

  • Which agents run in production?
  • Which identities, credentials, and privileges do they use?
  • Which tools, APIs, databases, and external services can they invoke?
  • Can they modify records, execute code, transfer information, or trigger transactions?
  • Which actions require human approval?
  • Can one agent delegate work or authority to another?
  • What evidence exists to reconstruct an agent's actions?

Risk follows authority more than model capability. A simple agent with broad privileges can expose the enterprise more than an advanced model confined to a restricted environment, because the damage an agent can do is bounded by what it is permitted to touch.

The first deliverable to the executive team is an inventory of autonomous authority, which is a different document from a list of AI applications. Assign an accountable owner to every production agent and set explicit limits on its authority. The later stages depend on this inventory, because a team cannot test, monitor, or contain an agent it has not listed.

2. Test agents against the attacks they will meet

Vulnerability scanners look for weaknesses in software, configurations, dependencies, and infrastructure. Those weaknesses still matter. A scanner cannot tell you whether an agent will obey an instruction embedded in a retrieved document, accept an untrusted tool response as authority, or execute a harmful sequence of individually permitted actions. Answering those questions takes adversarial evaluation of the agent's behavior.

I would set up a recurring test program that examines how each critical agent responds to hostile inputs across its whole workflow. It should cover five surfaces:

  • Perception. Can an adversary manipulate what the agent receives through documents, search results, API responses, or external messages?
  • Decision-making. Can the agent be induced to abandon its objective, cross an authorization boundary, or make an unsafe decision?
  • Action. Can an attacker influence which tools the agent selects, the parameters it passes, or the operations it performs?
  • Memory. Can malicious information persist across interactions and influence later decisions?
  • Agent-to-agent communication. Can one compromised agent manipulate the instructions or decisions of another?
Adversarial test surfaces
Perception
Decision-making
Action
Memory
Agent-to-agent communication

Hostile input can enter at any surface.

Figure 4. The five surfaces a recurring adversarial test program should cover across an agent's workflow.

Run these evaluations in representative environments, with realistic permissions and success criteria defined in advance. Each assessment should record what happened, which boundary failed, and which controls blocked or permitted the behavior. Keep testing authorized, controlled, and scaled to the operational impact it could have.

This is one of the problems we are working on with Aversyn, Cogensec's autonomous adversarial validation platform. Pattern-based tools stop at flagging input that looks dangerous. Aversyn's aim is to validate the attack path and produce evidence that someone else can reproduce.

The change is in the question being asked. Model safety testing asks whether the model produced an unsafe response. Agent testing also has to ask whether an attacker can cause the agent to take an unauthorized action.

3. Measure integrity during execution

Testing before deployment cannot show how an agent will behave in every later interaction. In production the agent meets new documents, external services, unfamiliar requests, altered data, and combinations of inputs no test anticipated. That is the case for runtime assurance.

At Cogensec we use the term agent integrity for an autonomous system's measurable ability to maintain intended behavior, decision coherence, and operational safety under adversarial conditions. Approval at deployment says the agent passed a test once. Integrity is evidence that its behavior stays consistent with its authorized purpose while it runs.

Our open-source framework, Agentegrity, approaches this with four cooperating evaluation layers:

  • Adversarial Pressure evaluates how the agent behaves when its environment contains manipulative or malicious inputs.
  • Cortical Stability examines whether the agent keeps its decisions coherent and within its declared operational constraints.
  • Governance Evidence produces verifiable records that support investigation, oversight, and accountability.
  • Recovery Continuity assesses whether the agent can respond to disruption, preserve relevant state, and resume within approved boundaries.
Agentegrity evaluation layers
L1
Adversarial Pressure
L2
Cortical Stability
L3
Governance Evidence
L4
Recovery Continuity
Figure 5. Agentegrity's four cooperating evaluation layers.

Together the layers make agent integrity something a security team can observe and evaluate. Runtime monitoring adds to identity controls, least privilege, policy enforcement, and human oversight, and replaces none of them.

Trust granted at deployment should hold only as long as evidence from execution supports it.

4. Build response capabilities for agent misbehavior

A compromised server can be isolated, a credential revoked, a malicious process terminated. An agent is harder to respond to. It may have partly completed a workflow, modified external state, delegated work to another agent, or started actions that continue after its session ends. Stopping the agent prevents further activity and leaves the consequences of its earlier actions in place.

CISOs should extend incident response plans to cover agents explicitly. For business-critical agents I would require four capabilities:

  1. Operational containment. Security teams can suspend an agent, revoke its tool permissions, block specific actions, and stop further delegation.
  2. Decision-level visibility. Responders have enough evidence to reconstruct the sequence of inputs, decisions, tool calls, and outputs.
  3. Recovery and reconciliation. Procedures exist to identify actions already taken and decide which can be reversed, compensated for, or escalated to human review.
  4. Controlled resumption. An affected agent does not restart with the same permissions and possibly contaminated state. Its environment, authority, and context are validated first.
Agent incident response
Step 1
Operational containment
Step 2
Decision-level visibility
Step 3
Recovery and reconciliation
Step 4
Controlled resumption
Figure 6. The four response capabilities required for business-critical agents, in the order a responder uses them.

Exercise these before an incident. A tabletop can start from one scenario: an enterprise agent receives a malicious instruction through an external document and starts an unauthorized operation. Then ask:

  • How quickly can we identify the deviation?
  • Can security staff reconstruct the decision sequence?
  • Can they stop the next action?
  • Can they determine what changed?
  • Can they restore the workflow without repeating the failure?

Any question the team cannot answer is a gap in operational readiness. Shutting an agent down is the minimum. The design goal is a system that detects meaningful deviations, supports intervention, and recovers within set safety constraints.

5. Make agent integrity an enterprise security requirement

The last stage is organizational. Agent security starts as experiments owned by individual AI engineering teams, and it cannot stay there once agents reach critical enterprise functions. Assurance requirements then belong in security architecture, procurement, development, and operational governance.

I would set explicit acceptance criteria for any agent that can take consequential actions:

  • Defined authority and least-privilege access
  • Documented trust boundaries and permitted actions
  • Adversarial testing against realistic failure scenarios
  • Runtime evidence and monitoring requirements
  • Incident containment and recovery procedures
  • Reassessment after material changes to models, tools, privileges, or workflows

Scale the requirements to risk. A document summarization agent does not need the assurance process of an agent authorized to modify production infrastructure or approve financial transactions, though both need clear operational boundaries.

Measurement has to change as well. The number of approved AI applications says nothing about security, and neither does the number of attacks attempted in testing. More useful measures are:

  • The percentage of high-impact agents with documented authority
  • The proportion of critical workflows subjected to adversarial testing
  • The number of reproducible boundary violations still unresolved
  • The time needed to contain and recover from agent misbehavior

Over time an enterprise should be able to show that its agents were assessed and that the controls protecting them still work. That takes AI engineering, application security, identity, security operations, legal, and enterprise risk working together. The CISO's job is to set a defensible standard for autonomous authority before that authority spreads too widely to manage.

From adversarial validation to continuous integrity

Autonomous AI changes both sides of security. Attackers use agents to speed up reconnaissance, analyze weaknesses, and coordinate multi-step operations. Enterprises are placing agents in environments that hold sensitive information, privileged tools, and business-critical workflows.

These are related problems with different questions. Defending against AI-enabled attacks requires knowing what adversaries can exploit. Securing AI agents requires knowing whether the agents keep to their intended behavior when exposed to those adversaries.

Cogensec's research and engineering are organized to bring the two together. Aversyn handles adversarial validation. It examines systems and workflows under controlled attack conditions and produces evidence of exploitable weaknesses. Agentegrity handles agent integrity. It measures and verifies properties of autonomous behavior during execution.

Used together they form a loop. An organization tests how its agents can fail, puts controls on the risks it finds, observes behavior in operation, and feeds that evidence into the next round of tests.

Continuous integrity loop
Aversyn+ AgentegrityTest how agentscan failPut controls onthe risksObserve behaviorin operationFeed evidence intothe next tests
Figure 7. Adversarial validation (Aversyn) and agent integrity (Agentegrity) used together as one loop.

Fully autonomous security is unsolved, and we do not claim otherwise. This loop is a practical way to build toward it.

The question every CISO should ask

Security teams have spent decades deciding whether people, devices, applications, and services should be trusted. Agents add a harder question: what happens when a trusted system makes an untrusted decision?

An agent can have valid credentials, approved tools, and a legitimate business objective. None of those proves its next action is appropriate.

Preparing for that takes more than stronger access controls and better vulnerability detection. It takes mechanisms to evaluate autonomous behavior, detect consequential deviations, produce reliable evidence, and recover when a system fails. Organizations that build these now can adopt agents and still control their own operations.

That is the problem we are working on at Cogensec.

About Cogensec

Cogensec is an AI-native cybersecurity research and engineering company that secures autonomous systems in digital and physical environments. Its work includes Agentegrity, an open framework for agent integrity, and Aversyn, an autonomous adversarial validation platform. Learn more at cogensec.com and agentegrity.cogensec.com.

Share: