AAK-ROUTINE-003: Routine executes without audit trail
- Severity
- MEDIUM
- Category
- Agent Config (
agent-config) - Scanner
agent_audit_kit/scanners/routines.py- Auto-fixable
- No.
- SARIF name
RoutineNoAudit
What it detects
A routine runs tool calls but writes no run-log, making post-hoc audit impossible. An attacker with edit access to the routine file can run anything and delete the evidence.
How to fix
Route every routine's output (and tool-call trace) to an append-only log the routine cannot modify.
To confirm the finding is gone, report only this rule:
agent-audit-kit scan . --rules AAK-ROUTINE-003
Limitations
Looks for the key audit_log, audit, log or output_log and not at its value, so audit_log: false or an empty log: counts as an audit trail. A routine file over 1 MB is not read.
References
- OWASP Agentic Top 10: ASI10 (Rogue Agents)
- Adversa AI MCP Top 25 (AAK-defined ids): ADV-AGENCY-03
All rules. This page is generated from the rule registry when the documentation is built; to change it, change the rule in agent_audit_kit/rules/builtin.py. To give the rule a hand-written write-up, add docs/rules/AAK-ROUTINE-003.md: the page then shows that text, with the registry reference appended under it.