Safe Agent Command Execution — Phase A + STRIDE threat model
Security hardening at TracePulse's command-execution chokepoint. Agents route their shell through TracePulse and now get containment + sanitization that raw shell never had — with no loss of capability.
Added / changed
- Redact
run_and_watchraw_outputbefore returning it to the agent, with[REDACTED:<n>]length hints so debugging value is preserved. - Scrub secret-shaped env vars from spawned commands (keeps ordinary config like
NODE_ENV/CI); agent-declaredenvpasses through,inherit_envopts out. verify_mcpgets the same env-scrub + output-redaction parity.- Commands run outside the project root are surfaced (
cwd_outside_project_root), not blocked. env/inherit_envexposed in therun_and_watch+verify_mcpMCP schemas.
Security
- AWS-Labs STRIDE threat model (
docs/audits/security/THREAT_MODEL.md) — 14 threats, trust-boundary map. - Red-team / bypass test suite.
Full test suite: 1380 passing.
🤖 Generated with Claude Code