patent-oa
Fail
Audited by Gen Agent Trust Hub on Nov 2, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The script
tools/book_to_skill_setup.pyis designed to download and install an external AI agent skill from the GitHub repositoryvirgiliojr94/book-to-skill. It fetches an installation command from the repository's README and executes it, or falls back to agit cloneoperation followed by potential execution. - [COMMAND_EXECUTION]: In
tools/book_to_skill_setup.py, the_runfunction utilizessubprocess.runwithshell=Trueto execute commands derived from external content (the fetched README). This allows for arbitrary command injection if the remote README content is compromised. - [EXTERNAL_DOWNLOADS]: The skill performs several network operations to untrusted sources:
- Fetches the README from
raw.githubusercontent.com/virgiliojr94/book-to-skill/master/README.mdto extract installation commands. - Clones the repository
https://github.com/virgiliojr94/book-to-skill.gitif local installation fails. - These sources do not belong to the skill author or a trusted vendor list.
- [DYNAMIC_EXECUTION]: The file
tests/test_oa_store.pycontains a dynamic module import using__import__('os'). While currently used in a test context, the pattern reflects a reliance on dynamic loading mechanisms. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external data (patent office action PDFs).
- Ingestion points:
tools/pdf_text.pyextracts text from PDF documents provided by the user. - Boundary markers: Instructions in
prompts/respond_office_action.mddirect the agent to read the extracted text but lack robust delimiters or warnings against instructions embedded within the patent text. - Capability inventory: The skill possesses significant capabilities, including shell command execution (
subprocess.run), file system writes (writing Obsidian notes and Word documents), and network access for embeddings. - Sanitization: While
tools/redact.pyhandles PII de-identification, there is no sanitization or filtering to prevent the agent from obeying malicious instructions hidden in a patent document (e.g., in a background section or comment field).
Recommendations
- AI detected serious security threats
Audit Metadata