academic-gate

Pass

Audited by Gen Agent Trust Hub on Oct 31, 2026

Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The hook scripts (academic_gate_hook.py) utilize subprocess.run to execute internal validation logic, specifically running structure_signoff_gate.py to check the status of the project outline confirmation. These commands are constructed using local paths and placeholders defined in the skill's own registry.
  • [DYNAMIC_EXECUTION]: The academic_gate_hook.py script contains a _forward_to_deployed function that uses runpy.run_path to dynamically execute a script from a pre-defined path in the user's home directory (~/.claude/academic-gate/academic_gate_hook.py). This mechanism is used to ensure that the agent always uses the most up-to-date, deployed version of the safety logic, even if an older version is triggered from a different location.
  • [INDIRECT_PROMPT_INJECTION]: The context_feed_hook.py script ingests untrusted data from project files (e.g., writing_progress.json, outline.md) to provide status updates to the AI agent. This creates a surface for indirect prompt injection. However, the skill implements a comprehensive sanitization routine in context_guard_core.py (sanitize_field) that filters out invisible characters, control codes, and non-whitelisted characters before the data is injected into the agent's context. This is a recommended security best practice for context-injection features.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 31, 2026, 12:17 PM