wiki-init
Warn
Audited by Gen Agent Trust Hub on May 15, 2026
Risk Level: MEDIUMEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The script
scripts/wiki-init.tsclones the repositoryhttps://github.com/tobi/qmd.gitinto the user's local directory (~/.local/share/essential-skills/qmd/checkouts/qmd) when initialized. - [REMOTE_CODE_EXECUTION]: After cloning the external QMD repository, the skill automatically executes
bun installandbun run buildto compile the tool. This constitutes the execution of unverified code from an external source during the skill's setup process. - [COMMAND_EXECUTION]: The skill installs persistent hooks into the agent's configuration files (e.g.,
.claude/settings.json,.codex/hooks.json, andopencode.json). These hooks execute shell scripts located in.claude/hooks/,.codex/hooks/, and.opencode/hooks/during session startup and after every tool use. - [COMMAND_EXECUTION]: The generated OpenCode plugin (
.opencode/plugins/wiki-guardrails.js) usesBun.spawnto execute bash scripts on the host machine. It pipes tool input and response data into these scripts via stdin, which creates an execution path dependent on potentially untrusted tool output. - [PROMPT_INJECTION]: The skill contains an indirect prompt injection surface. The installed hooks and plugins (such as
wiki-policy-check.sh.tmplandWikiGuardrails) ingest and process data from tool inputs and responses to determine whether to block actions or suggest wiki updates. This processing of untrusted data from the agent's conversation or environment could be exploited to influence script behavior. - [COMMAND_EXECUTION]: The
scripts/wiki-init.tsscript performs dynamic string replacement (patching) on the source code of the downloaded QMD tool before building it, modifying core logic such as database transactions and MCP server initialization at runtime.
Audit Metadata