agent-brain
Audited by Socket on Jun 28, 2026
3 alerts found:
Anomalyx2SecurityNo strong evidence of intentional malware (no backdoor/exfiltration beyond the intended sync, no dynamic code execution, no credential theft). However, the script is highly capable of uploading and downloading local data to pCloud, and it builds local filesystem paths from remote path names without explicit sanitization (potential path traversal / arbitrary file write risk depending on remote path trust). Verify remote path constraints and review `index-memory.py` separately; otherwise classify as a likely benign sync tool with medium security risk rather than high-confidence malware.
This module looks like a legitimate bootstrap/sync tool for a local “agent-brain” workspace backed by pCloud, but it contains a serious security weakness: it executes ${BRAIN_DIR}/.env via `source`, which can enable arbitrary command execution if the file is tampered with. It also uses the pCloud access token in a URL query parameter (not an Authorization header), which can increase token leakage risk through logs and tooling. No explicit malicious payload is visible in this fragment; however, it intentionally delegates major actions (sync/pull, indexing, workflow installation) to other package scripts, making overall safety dependent on those scripts’ integrity and behavior.