academic-gate
Pass
Audited by Gen Agent Trust Hub on Nov 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill utilizes
subprocess.runinscripts/academic_gate_hook.pyto execute internal validation scripts such asstructure_signoff_gate.py. These calls are used to verify project state and are constructed using localized paths and the current Python interpreter to maintain a controlled execution environment. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted project data and injects it into the prompt context.
- Ingestion points:
scripts/context_feed_hook.pyreads data from project files likewriting_progress.json,state.json, and directory listings to generate status cards. - Boundary markers: Present. Injected text is clearly delimited with headers such as
[学术项目状态卡]to separate it from user and system instructions. - Capability inventory: The skill has the ability to execute internal Python scripts (via
subprocess.run), load local scripts dynamically (runpy.run_path), and write audit logs to the project directory. - Sanitization: Present.
scripts/context_guard_core.pyincludes asanitize_fieldfunction that explicitly strips invisible Unicode characters (zero-width spaces, bidi markers) and validates identifiers against a strict whitelist (alphanumeric and specific punctuation) to prevent malicious metadata from influencing the agent's behavior. - [DYNAMIC_EXECUTION]:
scripts/academic_gate_hook.pyusesrunpy.run_pathto implement a forwarding mechanism that loads and executes its logic from a deployed location in~/.claude/academic-gate/. This is used for version management across different installation methods. The skill includes 'killswitch' protections to prevent the agent from modifying these deployment paths.
Audit Metadata