Policy · critical
No network after secret read
Block network access (WebFetch) after reading files classified as secrets. Prevents data exfiltration via HTTP requests.
The policy
A few lines of YAML in your repository.
Part of Claude Code safety. 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
- tainted_path_block
- name: "No network after secret read" description: | Block network access (WebFetch) after reading files classified as secrets. Prevents data exfiltration via HTTP requests. Note: this blocks ALL step.resource GET after a secret read, which includes file reads. This is intentionally conservative — start a new session to reset the taint. rule_type: tainted_path_block params: taint_kind: step.resource taint_verb: GET taint_property_filter: data.classification: secret target_kinds: ["step.resource"] target_verb: GET severity: critical enforcement_point: step_executionWhy it matters
Note: this blocks ALL step.resource GET after a secret read, which includes file reads. This is intentionally conservative — start a new session to reset the taint.
How the rule works
tainted_path_block: If any prior step matches the taint pattern, certain downstream steps are blocked. The taint is permanent within a task; no gate can clear it.
taint_kind:step.resource. Action kind of the step that taints the task.taint_verb:GET. Only steps with this verb taint.taint_property_filter:{"data.classification":"secret"}. Only steps whose properties match all entries taint (e.g. data.classification: pii).target_kinds:["step.resource"]. Action kinds the rule applies to (e.g. step.resource, step.exec, step.message); other steps pass.target_verb:GET. Only apply to target steps with this verb (e.g. GET, POST, DELETE).
In these packs
- Claude Code safety, version 1.0.5
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.