Add AG034 (cloud/infra destruction) + AG035 (money movement) (0.16.0) - #20
Merged
Conversation
Extend the AG033 model — an agent tool doing an irreversible, high-impact action with no approval — into two new domains, via a shared _iter_tool_sinks spine. AG034 — Cloud/infrastructure destruction exposed to the agent: AWS terminate_instances / delete_bucket / delete_db_instance / delete_cluster / delete_stack / delete_volume / delete_file_system / delete_nodegroup, and Kubernetes delete_namespaced_* / delete_collection_* / delete_namespace. MITRE T1485 + T1531. AG035 — Money movement exposed to the agent without approval: Refund.create / Payout.create / Transfer.create (Stripe-style), whether qualified (stripe.Refund.create) or imported (Refund.create). The prompt-injection payout attack. Both are call-based and tool-scoped with approval suppression, so they stay zero-FP: Customer.create, single-message delete_message, non-tool functions, and approval-gated tools all stay silent. Refactored AG033 onto the shared spine (behavior unchanged); unified approval detection to substring match (catches approved/is_approved/needs_approval). Verification: - Ground-truth corpus: 136 cases, precision 1.000 / recall 1.000 (adds 9 AG034/AG035 cases). - Real-repo benchmark: 0 findings for each across 40+ repos — zero false positives. - 551 tests, 100% branch coverage, ruff + ruff format + mypy all clean. Bumps 0.15.0 -> 0.16.0; updates CHANGELOG + README catalogue. Signed-off-by: AutonomyProof <info@autonomyproof.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extend the AG033 model — an agent tool doing an irreversible, high-impact action with no approval — into two new domains, via a shared _iter_tool_sinks spine.
AG034 — Cloud/infrastructure destruction exposed to the agent:
AWS terminate_instances / delete_bucket / delete_db_instance / delete_cluster /
delete_stack / delete_volume / delete_file_system / delete_nodegroup, and Kubernetes
delete_namespaced_* / delete_collection_* / delete_namespace. MITRE T1485 + T1531.
AG035 — Money movement exposed to the agent without approval:
Refund.create / Payout.create / Transfer.create (Stripe-style), whether qualified
(stripe.Refund.create) or imported (Refund.create). The prompt-injection payout attack.
Both are call-based and tool-scoped with approval suppression, so they stay zero-FP:
Customer.create, single-message delete_message, non-tool functions, and approval-gated
tools all stay silent. Refactored AG033 onto the shared spine (behavior unchanged);
unified approval detection to substring match (catches approved/is_approved/needs_approval).
Verification:
Bumps 0.15.0 -> 0.16.0; updates CHANGELOG + README catalogue.
What this changes
Checklist
git commit -s) — required by CI (DCO)pytestpasses (100% branch coverage is enforced)ruff check .andruff format --check .passmypypassesIf this adds or changes a detection rule
benchmark/corpus.yamlpython benchmark/run.pyand confirmed no new false positives on the real-repo corpusrules/registry.pyand added standards mappings