self-improving-agent
PassAudited by VirusTotal on May 16, 2026.
Findings (1)
The HeartFlow bundle implements a highly complex 'self-evolving' agent framework with high-risk capabilities including shell execution (BashTool.ts), file system manipulation (FileWriteTool.ts), and source code modification (SelfModifier.js). While the bundle includes extensive safety layers such as a command whitelist in BashTool.ts, path traversal protections in FileReadTool.ts, and an ethics enforcement system (SAGEGuardian.js), the core logic is designed to allow an AI to generate and suggest patches to its own source code. Furthermore, scripts like on_tool_failure.py and on_session_start.py are designed to send local context, including command strings and error outputs, to external LLM endpoints (configured via CORTEX_API_URL) for 'root-cause analysis.' While these behaviors align with the academic 'Reflexion' and 'Cortex' architectures cited in the documentation, the combination of self-modification, shell access, and data transmission to external APIs constitutes a significant attack surface.
