Claude Agent SDK Reference
Audited by Socket on Aug 24, 2026
2 alerts found:
SecurityAnomalyNo clear evidence of intentional malware/persistence/backdoors in the fragment. However, it contains a high-severity insecure example: a tool that calls eval() on untrusted input (args['expression']), creating a direct arbitrary code execution risk if the agent/model can influence that input. Other concerns are mainly non-malicious but security-relevant: shared in-memory state retention and potential sensitive-data leakage via print/logging, plus extensibility surfaces (hooks/allowed_tools and custom transport) that must be correctly governed.
No confirmed malware is visible in the provided fragment. However, the configuration demonstrates a high-risk agent posture by enabling file modification and shell command execution (Write + Bash) and using permission_mode="acceptEdits" to reduce confirmation for edits. Because tool execution, permission enforcement, sandboxing, and network/path restrictions are not shown (snippet is truncated), the primary finding is an elevated likelihood of harmful impact if the agent or upstream inputs are compromised or misused, rather than proven malicious code.