security: block token exfiltration patterns (OFFSEC-002) #3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "plugin/offsec-002-token-exfil-2026-05-10"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes molecule-core#265 — OFFSEC-002.
molecule-careful-bash did not block credential exfiltration commands. An LLM prompt injection could instruct the agent to read token files or grep for secrets in env.
Added blocking for:
Also fixed: rm -rf .git check was looking for "/.git" (space before slash) which never matched "rm -rf .git".
Test plan: pytest tests/ — 35 tests, all passing.
Claude Code