T09 · Insecure Skill Coding Practices
- Location
SKILL.md:15- Finding
Secret Scanning Command Exposes Credential Values in Output
- Content
View full analysis
/dev/null | grep -v node_modules ``` ### Technical Analysis The command recursively searches the workspace for credential-like values and emits each complete matching line. Although the stated purpose is secret detection, the implementation does not redact the detected value or limit output to filenames and line numbers. Consequently, API keys, passwords, tokens, or private-key material matching the regular expression can be copied into terminal output, agent context, execution logs, transcripts, or monitoring systems. Redirecting standard error does not protect the sensitive standard output. ### Attack Path 1. A workspace file contains a real credential in a format matched by the regular expression. 2. A user or agent follows the skill and executes the documented secret scan. 3. `grep` emits the entire source line, including the credential value. 4. The output is retained in terminal history, an agent transcript, an audit log, or another system processing command output. 5. Any party able to access that output can recover and use the exposed credential within its existing authorization scope. No automatic external transmission of the scan output is present in the reviewed file. Exploitation therefore depends on another party gaining access to the resulting output or logs. ### Impact Assessment Successful exploitation may disclose any workspace credential that matches the expression. The privileges obtained are those associated with the exposed cr ...[truncated 199 chars]- Remediation
View remediation
