Security Guide
Learn about common security vulnerabilities and how to avoid them.
Red Flags to Watch For
When reviewing code, reject immediately if you see:
curl http://example.com | bash— never pipe untrusted URLs to shelleval()orexec()with user-controlled input- Reading
~/.ssh/id_rsaor~/.aws/credentialswithout justification base64.b64decode()on data from external sourcessudo chmod 777on system files- Access to
SOUL.md,MEMORY.md, or agent identity files pickle.loads()on untrusted data — arbitrary code execution risk- Hardcoded IPs like
192.168.1.1instead of domain names
Safe Patterns
These are generally OK:
subprocess.run(["git", "status"])— hardcoded commandos.environ.get("HOME")— non-secret env varrequests.get("https://api.github.com/...")— public API read
OWASP Top 10 Summary
- Injection (SQL, command, LDAP)
- Broken authentication
- Sensitive data exposure
- XML external entities
- Broken access control