TAM-A-STG-001 · Agent · Stage: Getting ready
Agent Starting Itself
The agent sets up ways to run again without a person, through loops, schedules, spawned processes or changes to its own controls.
An agent that can launch itself can outlive the task it was given. It can keep working after the user leaves, repeat an action over and over, or create copies that are harder to stop.
This matters for both safety and investigation. Runaway loops burn money and change data. Self-made schedules and child processes can persist after the session is closed. If the agent can edit its own settings, it can remove the limits that were meant to hold it.
It is hard to spot because the new runs look like normal agent activity, and the thing that started them may be an earlier run, not a person.
What it looks like
- A coding agent writes a cron job that re-runs itself every hour.
- An agent spawns subagents that each spawn more, exhausting API quota.
- An agent edits its config to switch off approval prompts.
Variants (4)
TAM-A-STG-001.1Agent Calling Itself in a Loop+
The agent re-invokes itself repeatedly, with or without a stop condition.
Loops can run away on cost and on side effects. Set depth and budget limits, and alert on sessions with unusually deep call chains or repeated identical tool calls. Check that every loop has a hard cap enforced outside the model, not just a line in the prompt.
TAM-A-STG-001.2Agent Editing Its Own Controls+
The agent changes the settings, flags or permissions that restrict it.
Examples include disabling approvals, widening its allowlist or changing a timeout. Make control files read-only to the agent and log every change to them. Review diffs to agent config made by the agent's own identity, which should rarely happen. Any such change made without a person present is a strong signal.
TAM-A-STG-001.3Agent Launching Child Processes+
The agent starts new processes or subagents to carry on work.
Child processes can outlive the parent and escape its limits. Track process trees on agent hosts, and kill the whole tree on shutdown. Look for detached processes, background shells and subagents running under broader credentials than the parent. Unexpected long-lived processes after a session ends are the clearest sign.
TAM-A-STG-001.4Agent Setting Its Own Timer+
The agent creates a schedule so it will run again later.
Cron jobs, task schedulers and workflow triggers let work continue unattended. Inventory schedules and check who created each one, especially entries created by agent accounts. Alert when a schedule appears on a host the agent was only supposed to use for one task.
Detections (6)
- DET-176Alerting on Agent Actions Outside Allowed WindowsTreat change freezes and approved schedules as hard lines and alert when an agent writes outside them.Confidence HighAWSSaaSAI Platform
- DET-185Checking That Stopped Agents Stay StoppedVerify shutdown and credential revocation actually take effect, and alert on continued activity.Confidence HighAWSIdentityLinux
- DET-190Detecting Agents That Edit Their Own LeashAlert when an agent changes the schedules, timeouts, launch scripts or config that control how it runs.Confidence HighLinuxAWSAI Platform
- DET-191Finding Agents Nobody Told You AboutKeep a live inventory of agent identities, tools, connectors, jobs and logging, and flag drift from the approved list.Confidence HighAWSAzureGCP
- 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-230Watching the Bill for Agent AbuseUse token, API and cloud spend as a detection surface for abnormal agent consumption.Confidence MediumAI PlatformAWSAzure
Controls (7)
- CTL-122Blocking Agents From Launching ThemselvesAllow only approved programs and scheduled jobs under an agent identity, and stop self-copying.TechnicalEffort MediumEffect High
- CTL-126Controlled Changes to Agent SetupPut everything that shapes agent behavior under versioned, reviewed change control that the agent cannot touch.ProcessEffort MediumEffect High
- CTL-132Human Sign-Off GatesMake a person approve any agent action that is hard to undo, costs money, or touches production.ProcessEffort MediumEffect High
- CTL-142Locking Down Agent Runtime and Scheduler SettingsMake every setting that governs an agent read-only to that agent.TechnicalEffort MediumEffect High
- CTL-148Network Walls Around AgentsConfine each agent runtime to the hosts and services it needs, and inspect all outbound traffic.TechnicalEffort MediumEffect High
- CTL-154Outside Kill Switch for AgentsBe able to stop an agent from the platform without its cooperation.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