Outbound data guard
A framework-agnostic deterministic policy core with a Claude Code PreToolUse adapter. It applies bounded shell parsing to high-confidence upload flags, local-to-remote transfers, piped network streams, and uninspectable dynamic payloads without logging their values.
Runs on
What it does
Block explicit local-file uploads and dynamic payloads sent by common network commands.
When it fires
- implementation
- operations
How it behaves
Evaluate shell transfer intent and block explicit outbound local-data boundaries before execution.
It does not inspect, print, upload, redact, or retain the contents of any local file or payload.
It does not claim to prevent every network path, covert channel, child process, or application protocol.
It does not accept project-controlled configuration or provide a hidden bypass for blocked transfers.
Configuration
targets/claude-code/outbound-data-guard.mjs
- Version
- 1.0.0
- Requires
- Shell command guard
- Licence
- RiskThis automatic gate blocks explicit local-file uploads and dynamic payloads sent by common network commands; a false denial can interrupt legitimate work, but it does not execute the blocked action.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic only
- Behaviour
- Enforces, blocks on violation
- On failure
- Denies and blocks
- LatencyThe entrypoint handles one intercepted event to block explicit local-file uploads and dynamic payloads sent by common network commands without deferred work.
- Immediate
- Data retentionWhether data remains after use and who manages its storage.
- Not retained
- In packs
- Secure agent boundaries
Often used with
All in Security