context-hygiene-kit
Pass
Audited by Gen Agent Trust Hub on Oct 13, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONPRIVILEGE_ESCALATION
Full Analysis
- [COMMAND_EXECUTION]: The skill performs local command execution for its installation and runtime lifecycle hooks.
- The
scripts/install.shscript uses standard utilities likecp,chmod, andjqto configure the environment and merge lifecycle hooks into the project settings. - The
eval/run_eval.pyscript utilizessubprocess.runto execute the skill's internal installer and harvester scripts during automated testing. - Runtime hooks (
stop.sh,precompact.sh,session_start.sh) execute the skill's Python scripts using fixed local paths. - [INDIRECT_PROMPT_INJECTION]: The skill processes agent transcript data, which constitutes a data ingestion surface.
- Ingestion points:
assets/harvest.pyreads transcript history from local JSONL files provided by the platform. - Boundary markers: The skill employs a 'two-channel' trust model, harvesting data from trusted message roles (
userandassistant) while explicitly excludingtool_resultandtool_useblocks. It also requires specific markers to appear at the start of a line to prevent smuggling. - Capability inventory: The skill manages a local cache in the
.context/directory and is triggered by platform-defined hooks. - Sanitization:
assets/context_ledger.pyimplements a_neutralize_fencesfunction that escapes<data>tokens in content originating from untrusted channels, preventing potential fence breakout in the final context digest. - [PRIVILEGE_ESCALATION]: The installation script modifies file permissions to enable execution.
scripts/install.shuseschmod +xon the skill's provided scripts and hooks.- This operation is standard for the installation of executable lifecycle hooks and is performed only on the skill's own assets.
Audit Metadata