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)

Controls (7)