TAM-A-DRV-002 · Agent · Drive: Why it happens
Agents Started by an Event
An agent that wakes up when something happens, like a click, a webhook or a batch job, instead of when a person asks it to.
Event-driven agents run because a trigger fired: a form was submitted, a ticket arrived, a payment webhook landed or a nightly batch started. The person or system that caused the trigger may have no idea what the agent will then do.
That gap matters. Anyone who can cause the event can influence the agent, sometimes without any account at all. A public form, an inbound email or a spoofed webhook becomes a way to start work with the agent's permissions.
It is hard to spot because the audit trail often shows only the agent acting, not the outside input that woke it and shaped what it did.
What it looks like
- A support-ticket agent triggers on every new ticket, and an attacker files one that tells it to export the customer table.
- A GitHub issue webhook starts a coding agent that opens a PR containing the issue author's payload.
- A nightly batch agent processes a poisoned CSV and emails results to an address inside the file.
Variants (3)
TAM-A-DRV-002.1Wakes Up for Batch Jobs+
The agent processes a queue or file set on a schedule.
Batches give the agent large amounts of untrusted data in one go, so one bad record can steer many actions. Failures are often noticed late. Check input sources, batch sizes, per-item error handling and whether results are reviewed before they land in production. Alert on batches that suddenly grow or arrive from a new source.
TAM-A-DRV-002.2Wakes Up on a Webhook+
An outside system sends an HTTP event that starts the agent.
Anyone who can forge or replay the webhook can steer the agent. Missing signature checks and shared secrets make this easy. Review webhook auth, source IPs, replay protection, and whether payload fields flow straight into the agent's instructions. Compare webhook volume against the real events at the sending system.
TAM-A-DRV-002.3Wakes Up on User Action+
A person doing something ordinary, like saving a file or posting a comment, starts the agent.
The user may not know an agent is listening. The agent may also act with broader rights than the user holds. Compare the agent's privileges to the triggering user's, and look for actions the user could not have done themselves. Review which everyday actions are wired to agent runs.
Detections (5)
- DET-184Checking a Run Stayed Inside Its Approved ScopeCompare everything an agent run touched with the systems, data and tools approved for that run.Confidence MediumAI PlatformAWSSaaS
- DET-199Keeping an Outside Record of Agent ActionsWrite every agent step to a log the agent cannot read or edit, then check that real side effects match it.Confidence HighAI PlatformAWSSaaS
- DET-218Scanning Untrusted Text Before the Agent Reads ItCheck emails, web pages, tickets and tool output for hidden instructions before they enter the agent's context.Confidence MediumAI PlatformMicrosoft 365Google Workspace
- DET-221Spotting Agents That Run Too HotAlert when an agent's call volume, burst size, fan-out or spend departs sharply from its own history.Confidence MediumAI PlatformAWSSaaS
- DET-225Tracing Actions Back to Untrusted SourcesTag every piece of context with where it came from, and alert when a sensitive action rests on low-trust input.Confidence MediumAI PlatformSaaS
Controls (5)
- CTL-125Cleaning Content Before an Agent Reads ItSanitize every file, email and feed before it is indexed or placed in an agent's context.TechnicalEffort MediumEffect Medium
- CTL-135Keeping Agents Out of ProductionConfine each agent to its own environment, block production by default and enforce the wall in infrastructure.TechnicalEffort MediumEffect High
- CTL-138Keeping Outside Text Away From CommandsMake sure anything an agent reads is handled as data, enforced by architecture and not by prompt wording.TechnicalEffort HighEffect High
- CTL-147Narrow Tool and Permission GrantsGive each agent only the tools and scopes its current task needs, with short-lived credentials and no standing write access to production.TechnicalEffort MediumEffect High
- CTL-164Spending and Loop LimitsCap what an agent can do per run and shut it off automatically when it hits a limit.TechnicalEffort MediumEffect High