llm-structured-extraction
Pass
Audited by Gen Agent Trust Hub on Oct 30, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCREDENTIALS_UNSAFECOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted text from user conversations to extract structured memories, entities, and relationships. This creates a surface for indirect prompt injection attacks where malicious content embedded in the input text could attempt to manipulate the extraction logic.
- Ingestion points: The
ExtractInputinterface inSKILL.mdaccepts arrays ofturnsandrecent_messageswhich contain arbitrary text from user interactions. - Boundary markers: The skill defines 16 extraction rules, including Rule 12 ('Instructions-as-memory require user's own wording') and requirements for verbatim evidence quotes, which serve as delimiters and constraints on the LLM's interpretation of the data.
- Capability inventory: The skill uses
curlfor network requests to OpenRouter and writes extracted data to a local SQLite database. It also performs graph-based retrieval which can influence future agent context. - Sanitization: The instructions include routines for stripping markdown fences from LLM responses and explicitly mention sanitizing FTS5 queries by replacing special characters to prevent SQL injection or syntax errors.
- [CREDENTIALS_UNSAFE]: The documentation instructs the agent to retrieve its OpenRouter API key by sourcing
~/.localrc. Accessing and sourcing general-purpose shell configuration files is a sensitive operation as these files frequently contain other sensitive environment variables or secrets unrelated to the skill's specific task. - [COMMAND_EXECUTION]: The skill documentation explicitly instructs the agent to execute shell commands, specifically using
sourcefor environment configuration andcurlfor interacting with the OpenRouter API for text processing.
Audit Metadata