bm25
Warn
Audited by Gen Agent Trust Hub on Nov 18, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [DYNAMIC_EXECUTION]: The script
scripts/bm25.pyuses thepicklemodule to store and retrieve cached search indices. Specifically, theCorpusIndex.loadmethod callspickle.load()oncorpus.pkllocated in the/home/claude/.bm25-cache/directory. Deserializing data from disk usingpickleis unsafe as it can lead to arbitrary code execution if an attacker manages to place a malicious file in the cache path. While the cache path is derived from a hash of the corpus contents and is stored in an ephemeral directory, the use ofpicklefor persistence is a high-risk pattern. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and rank content from arbitrary text corpora, including local directories, uploaded files, and remote GitHub repositories. This content is then presented as snippets to the AI agent.
- Ingestion points: File content is read in
scripts/bm25.pyvia thediscover_filesfunction. - Boundary markers: Search results are returned as structured JSON or formatted text, but the snippets themselves do not include boundary markers or instructions for the agent to ignore potentially malicious embedded commands.
- Capability inventory: The skill possesses network access (to fetch tarballs) and broad file-read capabilities within the provided corpus paths.
- Sanitization: No sanitization or escaping is performed on the text snippets retrieved from the corpus before they are returned to the agent context.
- [EXTERNAL_DOWNLOADS]: The skill provides functionality to fetch repository tarballs directly from GitHub via the
api.github.comendpoint. It correctly handles authentication using theGH_TOKENenvironment variable and uses a descriptive User-Agent (muninn-raven). This interaction with a well-known service for its intended purpose is documented as a standard feature.
Audit Metadata