T01 · Skill Instruction Hijacking
- Location
protocols/thinking-partner.md:5- Finding
Cross-Task Agent Behavior Hijacking Through a Default Personalized Protocol
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly a coherent local self-improvement toolkit, but it needs review because it can persist sensitive behavioral memory and send local playbooks/test cases to Gemini using workspace credentials with limited disclosure.
Review before installing, especially if your workspace contains private notes, customer data, proprietary prompts, or broad .secrets files. Use a dedicated test workspace, prefer explicit environment variables over workspace .secrets, avoid running the optimizer on confidential playbooks unless external Gemini processing is acceptable, and treat the thinking-partner protocol as opt-in rather than a default behavior policy.
protocols/thinking-partner.md:5Cross-Task Agent Behavior Hijacking Through a Default Personalized Protocol
README.md:23Unpinned Third-Party Package Execution in Installation Instructions
scripts/skill-optimizer.js:69Automatic Workspace Secret Access and External Transmission of Local Playbook Content
Referenced artifact was not completely inspected
`scripts/session-imprint.js`
Referenced artifact was not completely inspected
`scripts/session-imprint.js`
Referenced artifact was not completely inspected
`scripts/cognitive-fingerprint.js`
Referenced artifact was not completely inspected
`scripts/cognitive-fingerprint.js`
Referenced artifact was not completely inspected
`scripts/contradiction-scanner.js`
Referenced artifact was not completely inspected
`scripts/contradiction-scanner.js`
Referenced artifact was not completely inspected
`scripts/predict.js`
Referenced artifact was not completely inspected
`scripts/predict.js`
Referenced artifact was not completely inspected
`scripts/skill-optimizer.js`
Referenced artifact was not completely inspected
`scripts/skill-optimizer.js`
Referenced artifact was not completely inspected
`scripts/skill-optimizer.js`
Referenced artifact was not completely inspected
`scripts/socratic-mode.js`
Referenced artifact was not completely inspected
`scripts/socratic-mode.js`
Referenced artifact was not completely inspected
`scripts/session-coherence.js`
Referenced artifact was not completely inspected
`scripts/session-coherence.js`
Skill contains instructions that could directly expose system prompts, internal rules, or hidden instructions to users or external parties.
}
}
});
return directives;
}
function extractFilePaths(content, source) {
The README instructs users to run npx clawhub install ergopitrez/evolution-toolkit without pinning the clawhub package to a specific version. Because npx fetches and executes the latest matching package at runtime, a compromised upstream package, typo-squatted package, or malicious new release could result in arbitrary code execution on the operator's machine during installation.
The phase-detection rules use very broad trigger phrases such as 'Build', 'Write', and 'Create' to infer Execution mode. In practice, ordinary exploratory or advisory requests can contain these words, causing the agent to prematurely switch into a mode that 'reduce[s] friction ruthlessly' and 'move[s] fast' while suppressing re-examination. That can bypass useful caution or clarification and lead to over-eager action on ambiguous requests.
The script’s header and usage text present it as a computation/display tool, but later logic automatically persists generated fingerprints to disk by default. Because these fingerprints are derived from potentially sensitive text samples and stored in a user workspace history file, the undocumented persistence can violate user expectations and create privacy risk.
The script auto-saves single-run fingerprints unless --no-save is passed, which means users may persist behavioral or cognitive-profile metadata without realizing it. Even if the raw text is not stored, the resulting history can still reveal patterns about a user’s writing, reasoning style, and activity over time, making the silent default persistence privacy-sensitive.
The module header says the scanner will surface 'Orphaned decisions' and 'Model/tool name drift'. In the implementation, there is no logic for orphaned decision detection, and although TOOL_DRIFT is defined, it is never used to scan content or report findings, so the documented capabilities actively overstate what the script does.
The script generates a sensitive behavioral/profile report from memory logs and writes it to a persistent file under the workspace without an explicit consent step, privacy warning, or opt-in save behavior. In this context, the output includes recurring themes, emotional markers, and lessons learned, which can expose personal or operationally sensitive information if the workspace is shared, synced, backed up, or later accessed by other tools/users.
The script is explicitly designed to preserve prior session context for future runs, creating a persistent natural-language memory channel. In agent environments, such channels can unintentionally carry forward sensitive instructions, internal data, or secrets into later sessions where they may be exposed more broadly than intended.
The tool persistently stores free-form user reflections plus copied content from CURRENT.md without an explicit consent, privacy, or retention warning at the point of capture. Because users may enter sensitive operational notes, credentials, personal data, or internal context, this creates a durable disclosure channel within the workspace that later users, agents, backups, or sync processes may access.
Copying the first 20 lines of CURRENT.md into each persistent imprint duplicates potentially sensitive task context into an additional file, increasing the attack surface and long-term exposure of that information. Even without network exfiltration, this broadens disclosure to any process or person with access to the workspace or its backups.