aif-distillation
Pass
Audited by Gen Agent Trust Hub on Jul 31, 2026
Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes a dedicated Python script
scripts/material-prep.pyto handle the extraction and chunking of large source materials. This script usessubprocess.runto invokepdftotextfor PDF processing. The implementation adheres to security best practices by passing arguments as a list and avoiding shell execution, which prevents shell injection vulnerabilities. Execution is further restricted by platform-levelallowed-toolsconfiguration. - [EXTERNAL_DOWNLOADS]: To support distillation from web-based sources, the
material-prep.pyscript fetches content from remote URLs usingurllib.request. It includes specific logic to handle GitHub blob URLs by converting them to raw content links, ensuring that only document data is retrieved for processing. - [DATA_EXFILTRATION]: The skill includes proactive measures to prevent the unintended ingestion of sensitive data. The helper script maintains a comprehensive blocklist of sensitive directory names (e.g.,
.ssh,.aws,.git) and file patterns (e.g.,*token*,*secret*,.env). These locations are skipped during recursive directory walks unless the user explicitly overrides the behavior with the--include-sensitiveflag. - [PROMPT_INJECTION]: Because the skill processes untrusted external content like PDFs and web pages, it is exposed to indirect prompt injection risks. Malicious instructions hidden in source documents could attempt to hijack the distillation process. The skill mitigates this through explicit instructions to the agent to paraphrase and extract actionable rules and workflows rather than performing verbatim copying, reducing the likelihood of executing embedded commands.
Audit Metadata