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.run in scripts/academic_gate_hook.py to execute internal validation scripts such as structure_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.py reads data from project files like writing_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.py includes a sanitize_field function 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.py uses runpy.run_path to 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
Risk Level
SAFE
Analyzed
Nov 16, 2026, 12:35 AM