Policy · critical
Code execution requires a preceding gate
Direct mitigation for OWASP's most concrete RCE-class threat. Any step.exec must be preceded by a step.gate (human approval, static check, or sandboxed dry-run).
The policy
A few lines of YAML in your repository.
Part of OWASP agentic default. Assign the pack, or copy this policy into a manifest of your own.
- Verdict
- Critical: the step is blocked before it runs, and an incident is opened.
- Checked
- Before every step, against everything the agent did earlier in the task.
- Rule
- step_requires_gate
- OWASP agentic
- ASI05
- name: "Code execution requires a preceding gate" description: | ASI05 (Unexpected Code Execution): Direct mitigation for OWASP's most concrete RCE-class threat. Any step.exec must be preceded by a step.gate (human approval, static check, or sandboxed dry-run). Applies to: ALL agents. rule_type: step_requires_gate params: target_kinds: ["step.exec"] severity: critical enforcement_point: step_executionWhy it matters
Applies to: ALL agents.
How the rule works
step_requires_gate: Checks that a matching, completed step.gate precedes this step. By default the gate may be anywhere in history. Set max_steps_since_gate to require it among the last N entries; blocked, failed and in-flight attempts after the gate count toward N. A blocked gate cannot approve the target.
target_kinds:["step.exec"]. Action kinds the rule applies to (e.g. step.resource, step.exec, step.message); other steps pass.
OWASP agentic threats it addresses
In these packs
- OWASP agentic default, version 1.0.2
From Kyvvu's open policy library at github.com/Kyvvu/manifests, Apache 2.0.
Next
Watch it decide.
In your browser
Try it in the playground
The policy is loaded. Add the steps your agent takes and watch the engine decide, step by step.
On your machine
Five minutes, no account
kyvvu try runs a demo agent against the bundled baseline. Then assign this pack from the dashboard or the CLI.
For security teams
See it on your agents
A 30-minute demo on the agents you actually run, with the policies that fit them.