recursive-knowledge
Pass
Audited by Gen Agent Trust Hub on Jul 25, 2026
Risk Level: SAFEPROMPT_INJECTION
Full Analysis
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection during the knowledge graph indexing phase.
- Ingestion points: In
scripts/index_corpus.py, theread_documentandindex_documentfunctions ingest untrusted document content from a user-specified directory. - Boundary markers: The prompt templates
extract_entities_promptandextract_relationships_promptinscripts/index_corpus.pyuse a simple "Text:" label to separate instructions from the document chunks. There are no robust delimiters or explicit warnings to the model to ignore instructions embedded within the processed text. - Capability inventory: The skill can read local files, write a JSON knowledge graph to the file system (via
scripts/graph_ops.py), and perform network requests to Anthropic's API for processing content. - Sanitization: While
scripts/index_corpus.pyusesparse_json_responseto ensure LLM outputs are valid JSON, it lacks mechanisms to validate or sanitize the semantic meaning of extracted entities and relationships, which could allow a malicious document to inject false or misleading data into the graph.
Audit Metadata