notes-sweeper
Warn
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/recover.pyusesos.system()with an f-string to apply file permissions:os.system(f"chmod -R a-w {snap}"). This pattern is vulnerable to command injection if therun-dirargument (which determines thesnappath) is manipulated by a malicious actor. - [DATA_EXFILTRATION]: The skill extracts text from local application data directories (Notepad and Notepad++) and transmits it to an external API (
https://opencode.ai/zen/go/v1/chat/completions) for processing. While the skill attempts to redact secrets (API keys, tokens, private keys) before transmission using theredact()function inscripts/organize.py, the core note content is still sent to a third-party service. - [INDIRECT_PROMPT_INJECTION]: The skill has a high attack surface for indirect prompt injection as it processes untrusted, raw text from local scratchpads.
- Ingestion points:
scripts/organize.pyreads all extracted text from~/agent-notes/recovery/and scratch directories like/mnt/c/Users/Administrator/Downloads. - Boundary markers: The text is delimited using
<block n=...>XML-like tags within the LLM prompt, but these can be bypassed by adversarial content within the notes. - Capability inventory: The LLM's output directly influences library organization, including file naming (
slug), project assignment, and generated summaries written to disk in~/agent-notes/library/. - Sanitization: The skill performs regex-based redaction of common secrets (
SECRET_RES) but does not sanitize the text for malicious instructions that might trick the LLM during the 'slice' and 'cluster' phases. - [EXTERNAL_DOWNLOADS]: The skill relies on communication with the OpenCode AI service via
urllib.request. While this is a well-known service, it establishes a dependency on external infrastructure for processing local data.
Audit Metadata