skills/oaustegard/claude-skills/bm25/Gen Agent Trust Hub

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.py uses the pickle module to store and retrieve cached search indices. Specifically, the CorpusIndex.load method calls pickle.load() on corpus.pkl located in the /home/claude/.bm25-cache/ directory. Deserializing data from disk using pickle is 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 of pickle for 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.py via the discover_files function.
  • 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.com endpoint. It correctly handles authentication using the GH_TOKEN environment 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
Risk Level
MEDIUM
Analyzed
Nov 18, 2026, 11:17 AM