obsidian-vault
Pass
Audited by Gen Agent Trust Hub on Apr 7, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/vault.pyscript executes system search toolsripgrep(rg) orgrepto locate notes within the vault based on frontmatter facets. These executions are performed using list-based arguments viasubprocess.runand do not invoke a shell, mitigating command injection risks. Search patterns are escaped usingre.escape()before execution. - [PROMPT_INJECTION]: The skill processes markdown files from the user's Obsidian vault, representing an indirect prompt injection surface.
- Ingestion points: Untrusted data enters the agent context when
scripts/vault.pyreads file content or frontmatter during query and display operations. - Boundary markers: Structural separation is maintained using YAML frontmatter delimiters, which are parsed by a dedicated internal parser (
parse_frontmatter) to isolate metadata from the document body. - Capability inventory: The skill includes functions to read, write, and delete (
unlink) files, as well as execute local search commands. - Sanitization: The skill treats note content as plain text and quotes metadata values during writing to preserve the integrity of the YAML structure.
Audit Metadata