Guard policy model + hand-rolled validator (§3.14).
In GUARD MODE (mcpwn --mode guard) mcpwn stops being an attack proxy and
becomes a protective firewall on the agent↔server channel: it runs the passive
detector signatures and, per this policy, BLOCKS or SANITIZES malicious content
before the agent ever sees it. A policy is plain JSON (mcpwn.policy.json);
like the rest of mcpwn it ships ZERO runtime deps, so this validator is
hand-rolled (mirroring src/config.ts + src/engine/validate.ts) and
schema/policy.schema.json is the published machine-readable mirror.
Precedence for the active policy: --policy <file> > ./mcpwn.policy.json
(auto) > the baked-in defaultPolicy (deny the high-severity classes).
Guard policy model + hand-rolled validator (§3.14).
In GUARD MODE (
mcpwn --mode guard) mcpwn stops being an attack proxy and becomes a protective firewall on the agent↔server channel: it runs the passive detector signatures and, per this policy, BLOCKS or SANITIZES malicious content before the agent ever sees it. A policy is plain JSON (mcpwn.policy.json); like the rest of mcpwn it ships ZERO runtime deps, so this validator is hand-rolled (mirroring src/config.ts + src/engine/validate.ts) andschema/policy.schema.jsonis the published machine-readable mirror.Precedence for the active policy:
--policy <file>>./mcpwn.policy.json(auto) > the baked-in defaultPolicy (deny the high-severity classes).