ClawAudit verdict
rotate-openrouter-key
Key rotation utility that searches ~/.openclaw/ config files for an old OpenRouter API key and replaces it; the file reads are scoped to the user's own config directory and behavior is transparent and documented.
⚠ Flagged for review — coarse, uncorroborated signal, not a confirmed exploit. Review the config yourself before installing.
Automated static analysis — not a human review. ClawAudit flags capabilities, not confirmed intent, and can produce false positives. Disagree with this verdict? Use Dispute below.
Findings (6)
Pipe to python — executes piped content as Python code
references/key-rotation-guide.md · code · | python3
Possible hardcoded credential
references/key-rotation-guide.md · code · API_KEY="sk-or-v1-YOUR-NEW-KEY
Accesses OpenClaw config/secrets directly
SKILL.md · code · ~/.openclaw/.env
Accesses shell history/config
references/key-rotation-guide.md · code · ~/.zshrc
Python urllib.request — network access
scripts/update-openrouter-key.py · prose · downgraded · urllib.request
Python os.environ.get — reads environment variable
scripts/update-openrouter-key.py · prose · downgraded · os.environ.get(
Permissions & capabilities
No declared permissions — minimal attack surface.
Is this flag fair?
Thanks — recorded.