T02 · Agent Memory Poisoning
- Location
auto_log_skill.py:95- Finding
Persistent Agent Memory Poisoning Through Unescaped Log Entries
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a straightforward local daily logging helper, with privacy and hardening notes around what gets persisted to disk.
Before installing, choose a private memory_dir, avoid logging secrets or sensitive prompts, periodically review or delete retained logs, and ensure any agent that reads these files treats them only as historical data, not executable instructions.
auto_log_skill.py:95Persistent Agent Memory Poisoning Through Unescaped Log Entries
auto_log_skill.py:217Predictable Log Files Follow Symbolic Links During Reads and Writes
The README explicitly advertises automatic activity logging and daily file creation, but it does not warn users that agent actions, task details, and other potentially sensitive operational data will be persisted to disk. In an agent environment, this can lead to unintentional storage of secrets, internal prompts, API-related details, or personal data in predictable locations, increasing exposure through local compromise, backups, sync tools, or accidental sharing.
The skill explicitly states it will 'automatically record' agent activity and lists file_write as a required tool, but the description does not clearly warn users that it will persistently append data to daily log files. This can lead to unintentional storage of sensitive prompts, task data, or secrets in memory files, especially when used in agent environments where activity may include confidential information.
The README prominently describes automatic creation and recording of logs, events, tasks, and todos, but does not clearly warn users that these operations persist data to files under a configured directory. In an agent skill context, silent or insufficiently disclosed persistence can cause unintentional retention of sensitive operational data, conversation-derived content, or task metadata.
The generated log template always inserts "Timezone: UTC+8", which imposes a specific locale setting in natural-language output. The file does not offer user opt-in, configuration, or any documented region-specific justification for this constraint.