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.py is designed to download and install an external AI agent skill from the GitHub repository virgiliojr94/book-to-skill. It fetches an installation command from the repository's README and executes it, or falls back to a git clone operation followed by potential execution.
  • [COMMAND_EXECUTION]: In tools/book_to_skill_setup.py, the _run function utilizes subprocess.run with shell=True to 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.md to extract installation commands.
  • Clones the repository https://github.com/virgiliojr94/book-to-skill.git if 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.py contains 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.py extracts text from PDF documents provided by the user.
  • Boundary markers: Instructions in prompts/respond_office_action.md direct 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.py handles 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
Risk Level
HIGH
Analyzed
Nov 2, 2026, 03:54 AM