AG-005b: Code Execution + Network Access

HIGH AG-005b OWASP ASI02

What this rule means

Agent can execute code AND access network — enables reverse shell or C2.

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-005b          # 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