Back to skill

Security audit

clear-context

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marked this skill suspicious because scanners report that its handoff instructions can carry permission-bypassing settings between sessions; scan evidence is incomplete because some referenced paths were not available for analysis.

Consider avoiding installation unless you need this skill and can review its handoff and permission behavior first. The scan found concerning instructions around inherited approvals, and some referenced paths were missing, so the evidence is incomplete; the suspicious verdict does not establish malicious intent.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Memory PoisoningPersistent Context Injection, Context Window Stuffing, Memory Manipulation
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
Findings (10)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Requesting context information could support the declared workflow, but it does not implement that workflow. Although the command starts a Claude CLI invocation, it does not transfer the current task or instruct a fresh agent to continue it.

Content

No source excerpt is available for this finding.

Memory Manipulation

High
Category
Memory Poisoning
Confidence
80% confidence
Finding

Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.

Content

Scanner excerpt · SKILL.md (reported line 15)May include surrounding context.

md
> **Night Market Skill**: ported from [claude-night-market/conserve](https://github.com/athola/claude-night-market/tree/master/plugins/conserve). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# Clear Context Skill

## Quick Start

Checkpoint mode is presented as inherited authority to bypass user confirmation.

High
Category
Prompt Injection
Confidence
96% confidence
Finding

The continuation prompt makes a writable checkpoint authoritative for inheriting dangerous or unattended behavior and suppressing user confirmation. If that checkpoint is modified or contains stale authorization, a fresh agent can interpret task-state data as permission to perform consequential operations; the clarity checks do not authenticate authorization.

Content

No source excerpt is available for this finding.

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 317)May include surrounding context.

For accurate token breakdown in automation:

bash
claude -p "/context" --verbose --output-format json

See /conserve:optimize-context for full headless documentation.

The handoff protocol propagates a dangerous execution mode that skips permissions and user confirmations, beyond the context-management purpose.

High
Category
Excessive Agency
Confidence
96% confidence
Finding

The module explicitly directs agents to propagate execution modes and defines dangerous mode as skipping permissions. Encoding that authority in an ordinary checkpoint creates a trust-boundary failure: edited or stale state can be interpreted as authorization, although preserving task progress does not require expanding or bypassing permissions.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · modules/session-state.md (reported line 141)May include surrounding context.

Flags Inherited

  • --dangerous: Continue executing without user prompts
  • --no-confirm: Skip confirmation dialogs
  • --batch: Processing multiple items
text

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
94% confidence
Finding

Unattended continuation is consistent with the skill's purpose, but the unconditional instruction not to ask for confirmation derives its authority from the session-state file. This can suppress necessary approvals after a handoff, particularly when a checkpoint has been tampered with or remaining work exceeds the user's original authorization.

Content

Scanner excerpt · SKILL.md (reported line 233)May include surrounding context.

md
**Execution mode inheritance**: Always inherit and propagate the execution
mode from the session state. If the parent was in dangerous/unattended mode,
you are also in that mode. Do not ask the user for confirmation.

**Task deduplication**: Do not create duplicate tasks. The parent has already
populated the task list. Use TaskUpdate on existing task IDs only.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The flag appears inside an execution-mode template that agents are explicitly instructed to capture and propagate, rather than in an isolated discussion. Treating a checkpoint's inherited '--no-confirm' claim as operative authorization can remove approval opportunities without verifying that the current session and remaining actions are authorized.

Content

Scanner excerpt · modules/session-state.md (reported line 141)May include surrounding context.

Flags Inherited

  • --dangerous: Continue executing without user prompts
  • --no-confirm: Skip confirmation dialogs
  • --batch: Processing multiple items
text

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
90% confidence
Finding

The instruction to skip confirmation is part of a checkpoint format intended to control continuation behavior. Without an explicit boundary between stored workflow preferences and trusted authorization, a modified checkpoint can encourage an agent to proceed with consequential actions without necessary user review.

Content

Scanner excerpt · modules/session-state.md (reported line 141)May include surrounding context.

Flags Inherited

  • --dangerous: Continue executing without user prompts
  • --no-confirm: Skip confirmation dialogs
  • --batch: Processing multiple items
text

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · modules/session-state.md (reported line 416)May include surrounding context.

md
Complete the session-state.md module, then update context_warning.py

### Context to Re-read
1. `/plugins/conserve/skills/clear-context/SKILL.md` - Main skill reference
2. `/plugins/conserve/hooks/context_warning.py` - Hook to update

### Warnings/Gotchas