T09 · Insecure Skill Coding Practices
- Location
scripts/search.py:8- Finding
Google API Key and Search Query Disclosure Through Unsanitized Exception Output
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This Google search skill is purpose-aligned, but its error handling can expose the user's Google API key and search details in logs or agent output.
Review before installing. Use a restricted Google API key, avoid sensitive searches, and be aware that failed API calls may print credential-bearing request details until the script sanitizes errors and adds safer exception handling.
scripts/search.py:8Google API Key and Search Query Disclosure Through Unsanitized Exception Output
The skill documents use of environment variables and outbound network access but does not declare any explicit tool scope such as permissions or allowed-tools. This creates a least-privilege and governance gap: an agent may invoke a skill with broader capabilities than reviewers or policy engines expect, increasing the chance of unauthorized secret access or external data exfiltration.
No suspicious patterns detected.