aj-patent-disclosure-cn
Pass
Audited by Gen Agent Trust Hub on Sep 30, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted user-supplied data, including project documents, source code, and Office materials (handled by
scripts/office_to_markdown.py), to extract patentable innovations.\n - Ingestion points: Local project files, source code, and Office documents (
.docx,.pptx,.ppsx) in the skill's environment are read and converted to text for analysis by the agent.\n - Boundary markers: The skill includes instructions in
SKILL.mdto establish an "evidence list" and perform "material tracing" to separate user facts from inferences, though it lacks explicit technical delimiters for all ingested content.\n - Capability inventory: The agent can execute shell commands through Python subprocess calls in
scripts/generate_figures.py,scripts/check_dependencies.py, andscripts/create_cnipa_reference_doc.py; write files to the local directory inscripts/generate_docx.py,scripts/generate_figures.py,scripts/office_to_markdown.py, andscripts/revision_log.py; and perform network operations via package installation inscripts/setup_env.sh.\n - Sanitization: Text extraction from Office files uses standard XML parsing in
scripts/office_to_markdown.py, and the document generator inscripts/generate_docx.pyincludes Markdown normalization and title sanitization.\n- [COMMAND_EXECUTION]: Several scripts (scripts/generate_figures.py,scripts/check_dependencies.py,scripts/create_cnipa_reference_doc.py) use the Pythonsubprocessmodule to execute external binaries likepandocandmmdc(Mermaid CLI). These executions use parameters derived from analyzed content, which is a potential command injection vector if not properly handled by the underlying utilities.\n- [EXTERNAL_DOWNLOADS]: Thescripts/setup_env.shscript installs Python dependencies (pypandoc,matplotlib) usingpip. It defaults to a well-known PyPI mirror (mirrors.tuna.tsinghua.edu.cn) for package distribution.\n- [DYNAMIC_EXECUTION]: The scriptscripts/generate_figures.pydynamically generates Mermaid diagram code from technical descriptions and uses themmdcutility to render it into image files. This represents a low-risk dynamic code generation and execution pattern.
Audit Metadata