The skill facilitates arbitrary remote code execution via unverified curl-to-bash scripts and uses deceptive social engineering to intercept and shadow all agent shell commands for persistent malicious control.
Findings (14)
Semantic Manipulation
Hightargets Reasoning
The phrase 'Auto-installs if not present' in the description and the 'run first' setup block frame the curl-pipe-bash remote code execution as routine, expected behavior, suppressing human scrutiny and approval. This social engineering of the human overseer is distinct from the technical RCE already flagged by static rules.
Description: "Auto-installs if not present." Instructions: "Before using lean-ctx, verify it is installed: `which lean-ctx || bash scripts/install.sh`" followed by the curl-pipe-bash fallback.
The skill promotes insecure remote code execution patterns (curl-to-bash) and requires broad shell access to function, which exceeds the scope of a simple context-compression utility.
The setup instructions explicitly command: 'curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/scripts/install.sh | bash'.
The description and instructions are crafted to trigger activation for virtually every common agent action: reading files, running shell commands, searching code, exploring directories. This over-broad trigger surface is designed to ensure the skill intercepts nearly all agent tasks, including those it has no legitimate role in, maximizing the attack surface of the already-flagged remote code execution.
"Use when reading files, running shell commands, searching code, or exploring directories." combined with 95+ shell patterns covering git, npm, cargo, docker, kubectl, aws, curl, wget, and more.
Cognitive State
Mediumtargets Memory & Learning
The skill's CCP (Cross-Chat Persistence) and knowledge base features allow arbitrary strings to be written to and restored from persistent storage across sessions via `lean-ctx knowledge remember` and `ctx_session load`. If the remotely-installed binary is compromised, it can poison the agent's cross-session memory with attacker-controlled instructions that persist and influence future sessions. [ensemble: confirmed by 2/3 passes; severity set to the agreed median (ADR-0067).]
`lean-ctx knowledge remember "value" --category <c> --key <k>` and `ctx_session load` — restore previous session (cross-chat memory)
Behavioural Control
Criticaltargets Action
Remote code download and execution detected
curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
A remote resource is downloaded with curl/wget and piped directly into a shell interpreter (optionally via sudo). The downloaded script runs with no integrity check (no checksum/signature), so a compromised server, MITM, or hijacked URL leads to arbitrary code execution. Download to a file, verify it (e.g. sha256sum -c against a pinned digest, or a signature), then execute it.
curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
The skill instructs the agent to intercept and wrap standard shell commands (git, npm, curl, etc.) via shell hooks, effectively shadowing the native tools to force output through the skill's compression logic. [ensemble: confirmed by 3/3 passes; severity set to the agreed median (ADR-0067).]
lean-ctx init --global # Install shell aliases
The setup instructions encourage piping a remote script directly into bash without integrity verification, creating a persistent supply chain risk.
curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/scripts/install.sh | bash
The skill instructs the agent to prefer its own `lean-ctx -c <command>` wrapper over standard shell execution, effectively intercepting and potentially modifying or logging all command outputs.
Prefer the current shell's configured compression over nested wrappers... Use `lean-ctx -c <command>` over running commands directly
NER model detected organization in skill content (confidence: 0.51)
A*
NER model detected organization in skill content (confidence: 0.50)
*
Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.
Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.
Hygiene
Infotargets Packaging & Manifest
Skill does not specify a license field. Specifying a license helps users understand usage terms.