The skill performs unauthorized file writes and is vulnerable to indirect prompt injection and directory traversal attacks by processing untrusted external markdown files outside the designated workspace.
Findings (5)
Content Injection
Mediumtargets Perception
The skill relies on reading external markdown files (`index.md` and body files) to inform agent behavior. If these files are compromised (e.g., via a malicious repository or a poisoned global store), the content within them will be treated as authoritative instructions, leading to indirect prompt injection.
Read `<repo>/.compound/index.md` and the global `index.md`
Semantic Manipulation
Hightargets Reasoning
The skill documentation explicitly states it is 'read-only' and 'never writes, edits, or archives', yet the static analysis context identifies an undeclared file writing capability.
Static analysis finding [high] MONDOO_AGENT_SKILL_AT_003 — Undeclared file writing.
Behavioural Control
Hightargets Action
Code contains file write operations but Write is not listed in allowed-tools.
The instruction to read from `~/.claude/compound-knowledge/` allows the agent to access files outside the project workspace. If an attacker can influence the `$COMPOUND_KNOWLEDGE_HOME` environment variable or the contents of the global store, they could force the agent to read sensitive system or user files.
global | $COMPOUND_KNOWLEDGE_HOME or ~/.claude/compound-knowledge/
Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.