queryable-markdown
Warn
Audited by Gen Agent Trust Hub on Aug 23, 2026
Risk Level: MEDIUMREMOTE_CODE_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [DYNAMIC_EXECUTION]: The
scripts/mdq.pyscript usesyaml.load()to parse Markdown frontmatter. According to static analysis, it does not useSafeLoader(or a similar safe variant likesafe_load). This allows for arbitrary object instantiation and potentially code execution if the agent is directed to process a Markdown file with a malicious YAML payload. - [COMMAND_EXECUTION]: The
scripts/mdq.pyscript invokes shell commands usingsubprocess.run(). If user-provided record IDs or field values are interpolated into these commands without rigorous sanitization, it creates a vector for command injection attacks. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and act upon data from external Markdown files, creating an attack surface for indirect prompt injection.
- Ingestion points: Markdown files processed by
scripts/mdq.pyduringget,find,query, andscanoperations. - Boundary markers: The system uses a multi-layered boundary detection strategy involving Markdown headings, GFM tables, and explicit HTML markers (
<!-- mdq:record ... -->). It calculates confidence scores for each match. - Capability inventory: The skill can read and write files and execute shell commands via the
mdq.pyscript. - Sanitization: Instructions in
SKILL.mdandprotocol.mdstrictly forbid the agent from executing commands, following URLs, or performing imports found within the documents. Themdq.pyscript also implements regex timeouts and rejects YAML aliases to prevent resource exhaustion attacks.
Audit Metadata