TAM-A-ACT-003 · Agent · Act: The harm · New in TAM
Agent Committing Live Secrets
A coding agent writes real credentials into code, config or commit history, often while trying to make something work.
Coding agents see .env files, cloud profiles and pasted tokens. When a test fails on missing config, an agent may hard-code the value it found. It may also commit a debug file that contains environment output.
Agents commit quickly and in volume. A secret pushed to a branch can be in CI logs, forks and caches before anyone reviews the PR. If the agent has bypass rights on push protection, the safety net is gone.
The fix is upstream: agents should not see production secrets, and their commits should go through scanning with no bypass.
What it looks like
- An agent hard-codes a Stripe live key into a test fixture to get a payment test passing.
- An agent commits `debug.log` containing the output of `printenv`.
- A bot account bypasses push protection because it is exempt from rules.
Detections (2)
Controls (2)
- CTL-081Push Protection Without Silent BypassTurn on secret push protection and require a reviewed request for any bypass.TechnicalEffort LowEffect High
- CTL-119Agents Change Code Through ReviewLet agents propose changes only through pull requests that a human must approve, with no bypass for bot accounts.TechnicalEffort LowEffect High