T09 · Insecure Skill Coding Practices
- Location
SKILL.md:97- Finding
Search-provider API keys are exposed in command output
- Content
View full analysis
- Remediation
View remediation
/dev/null ``` A stronger implementation should parse configuration locally and report only whether each required key is present: ```bash if grep -Eq "^TAVILY_API_KEY=.+$" ~/.openclaw/secrets/*.env 2>/dev/null; then printf '%s\n' "Tavily API key is configured" else printf '%s\n' "Tavily API key is not configured" fi ``` Additional hardening measures: - Never print secret values during setup or diagnostics. - Redact existing Agent transcripts and logs that may contain key values. - Rotate any API keys previously displayed through this command. - Restrict secret-file permissions to the owning account. - Ensure shell tracing and verbose diagnostic logging are disabled around secret checks. ]]>
