pdf-convert-to-word
Warn
Audited by Gen Agent Trust Hub on Sep 21, 2026
Risk Level: MEDIUMDATA_EXFILTRATIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DATA_EXFILTRATION]: The script
convert_pdf_to_word.pycontains hardcoded absolute file paths that expose local system information, including a specific username. - Evidence: Path
/Users/yunhuan/Downloads/测试pdf转word/曼德月度采购计划.pdfreveals the user account name 'yunhuan' and the internal directory structure. - [EXTERNAL_DOWNLOADS]: The documentation in
prompts/pdf_to_word_conversion_guide.mdinstructs the agent to download and install external packages from public registries. - Evidence:
pip3 install pdf2docxandpip3 install PyMuPDF==1.26.4commands provided in the setup guide. - [DYNAMIC_EXECUTION]: The skill's workflow involves generating new Python scripts at runtime and executing them, which is a pattern that can be exploited for arbitrary code execution.
- Evidence: The guide in
prompts/pdf_to_word_conversion_guide.mdprovides a template for the agent to "Create a Conversion Script" and then "Execute the Conversion Script" usingpython3. - [REMOTE_CODE_EXECUTION]: The skill facilitates the execution of scripts derived from external templates and user-controlled paths, increasing the risk of command injection or execution of malicious logic.
- Evidence: Use of
python3 /path/to/your/script/convert.pyas an instruction for the agent. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external documents (PDF and Word files) which provides a surface for indirect prompt injection attacks.
- Ingestion points: Files are read via the
pdf2docxandpython-docxlibraries inconvert_pdf_to_word.pyandconvert_word_to_md.py. - Boundary markers: No delimiters or instructions to ignore embedded commands are present in the conversion scripts or guides.
- Capability inventory: The agent is granted capabilities for shell execution (pip, python, rm) and filesystem access (read/write).
- Sanitization: There is no evidence of sanitization or filtering of the content extracted from documents before it is processed or stored in the
.memoriesdirectory.
Audit Metadata