find-cohort-gap
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/build_cohort_profile.pyexecutes thepdftotextsystem binary viasubprocess.runto extract text from PDF files. While it uses a list for arguments to mitigate shell injection, it executes a system utility on user-provided file paths. - [COMMAND_EXECUTION]: The skill instructions in
SKILL.mddirect the agent to execute shell commands for literature searches, such asbash "$EUTILS" search ...and running thebuild_cohort_profile.pyscript viapython3. - [EXTERNAL_DOWNLOADS]: The script
scripts/build_cohort_profile.pyusesurllib.request.urlopento fetch content from user-specified URLs. Although it checks forhttp://andhttps://protocols, this allows the skill to retrieve data from arbitrary external domains. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted external data from CSV codebooks, PDF documents, and remote URLs. This content is processed and presented to the agent as context (e.g., in
cohort_profile.mdandcontext_extract.md). If these sources contain malicious instructions, they could influence the agent's behavior. - Ingestion points:
scripts/build_cohort_profile.pyreads local files and fetches remote URLs provided by the user. - Boundary markers: The script wraps extracted context in markdown headers such as
# Context: [source]. - Capability inventory: The agent has access to
Bash,Grep,Glob,Read,Write, andEdittools, allowing for file system operations and shell command execution. - Sanitization: The script performs basic HTML-to-text conversion but does not specifically sanitize the resulting text for embedded instructions.
Audit Metadata