Security Audit
Agent-Specific Threats
AI coding agents face unique security threats beyond traditional application security:
- Prompt injection via MEMORY.md / USER.md — Malicious content written to memory files can alter agent behavior. Aixlarity's
memory_tool.rsincludes pattern scanning for this. - Path traversal via tool calls — Agent requests
read_file("../../etc/passwd"). Aixlarity's trust system restricts this. - Command injection via shell tool — Agent constructs shell commands from untrusted input. The permission system is the primary defense.
- Exfiltration via fetch_url — Agent sends sensitive data to external URLs. Sandbox policy controls this.
Audit Checklist
For every code change, check:
- Does this introduce a new path where user input reaches a shell command?
- Does this bypass the trust / permission system?
- Does this write to MEMORY.md / USER.md without the safety scan?
- Does this expose API keys or credentials in output / logs?
- Does this fetch external URLs without sandbox policy check?
In Aixlarity Source Code
Key security boundaries:
trust.rs— Three-level trust modelagent/permissions.rs— Permission prompt logictools/memory_tool.rs— Memory safety scanningtools/container.rs— Container sandbox