AG-005a: Database Access + Code Execution

HIGH AG-005a OWASP ASI02

What this rule means

Agent can read data AND execute code — enables data theft via code execution.

Why it matters

Hugging Face breach, July 2026: ~17,600 agent actions using combined capabilities.

How to fix it

Separate into multiple agents with narrower scopes.

Detect it

pip install lucin
lucin scan .                  # all rules
lucin explain AG-005a          # this rule, in your terminal

Findings carry a file:line and, where the rule supports it, a witness path showing the flow that triggered it. Precision and recall for the whole rule set, with the commands that regenerate them, are on the benchmarks page — and the gaps are on limits.

← All detection rules