mdbook-tech-writer
Warn
Audited by Gen Agent Trust Hub on Apr 1, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands such as
mdbook build,mdbook test,mdbook serve, andmdbook cleanwithin the 'Phase 4: Review & Polish' section ofSKILL.mdand the 'Testing' section ofreferences/mdbook-structure.md. These commands provide the agent with the capability to interact directly with the local environment and manage processes. - [REMOTE_CODE_EXECUTION]: In
SKILL.md, the agent is directed to runmdbook testto verify Rust code examples. This command identifies, compiles, and executes code blocks within markdown files. If the repository being documented contains malicious code snippets—either intentionally placed by an attacker or introduced via indirect prompt injection—the agent will execute that code with the permissions of the host user. - [EXTERNAL_DOWNLOADS]: The
references/mdbook-structure.mdfile contains a CI/CD configuration example that usescargo install mdbookto fetch and install the tool from an external registry. While crates.io is a well-known service, the pattern of downloading and installing binary dependencies during execution is a recognized vector for supply chain risks. - [PROMPT_INJECTION]: The skill is vulnerable to indirect prompt injection as specified in
SKILL.md(Phase 1: Audit & Plan), where it instructs the agent to "Scan the codebase" and "Map existing docs". Malicious content embedded in README files, inline code comments, or existing markdown files within a target project could influence the agent's behavior or inject malicious code snippets that are later executed during themdbook testphase. - Ingestion points: Codebase files, inline doc comments (
///), and existing markdown files identified inSKILL.md(Phase 1). - Boundary markers: Absent; the skill does not specify the use of delimiters or instructions to ignore embedded commands in the scanned data.
- Capability inventory: Shell command execution (
mdbookCLI), file system read/write access, and code execution viamdbook test. - Sanitization: The skill lacks instructions for sanitizing or validating external content before it is included in the documentation structure or tested.
Audit Metadata