Claude Agent SDK Reference
Fail
Audited by Snyk on Aug 24, 2026
Risk Level: CRITICAL
Full Analysis
HIGH W007: Insecure credential handling detected in skill instructions.
- Insecure credential handling detected (high risk: 0.90). The skill's API key example embeds a literal-looking key in code (env={"ANTHROPIC_API_KEY": "sk-ant-api..."}), which encourages including secret values verbatim in generated code/outputs and poses an exfiltration risk.
CRITICAL E006: Malicious code pattern detected in skill scripts.
- Malicious code pattern detected (high risk: 0.90). The content includes direct eval() usage in tool examples (allowing remote code execution via tool inputs) and environment/subprocess handling that can expose or inherit credentials, creating high-risk RCE and credential-exposure vectors.
Issues (2)
W007
HIGHInsecure credential handling detected in skill instructions.
E006
CRITICALMalicious code pattern detected in skill scripts.
Audit Metadata