EinloggenDemo anfordern

lean-ctx

Critical · Risk 100

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

High

targets Reasoning

3 findings
#1Auto-install framing normalizes silent RCEhighoversight evasion90% confidence

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.
#2Description Mismatchhigh85% confidence

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'.
#3Capability inflation hijacking broad agent activationhighsocial engineering85% confidenceline 3

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

Medium

targets Memory & Learning

1 finding
#1Cross-session memory store as cognitive state vectormediummemory poisoning75% confidence

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

Critical

targets Action

9 findings
#1Remote code download and execution detectedcriticalremote exec95% confidenceline 21

Remote code download and execution detected

curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/skills/lean-ctx/scripts/install.sh | bash
#2A 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.criticalvuln95% confidenceline 1

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
#3Tool shadowing via shell hookshightool shadowing90% confidence

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
#4Unverified remote script executionhighsupply chain100% confidence

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
#5Tool shadowing via shell wrappermediumtool shadowing90% confidence

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
#6Organization name detectedmediumpii exposure51% confidence

NER model detected organization in skill content (confidence: 0.51)

A*
#7Organization name detectedmediumpii exposure50% confidenceline 31

NER model detected organization in skill content (confidence: 0.50)

*
#8Missing allowed-tools declarationlow90% confidence

Skill executes commands, writes files, or accesses the network but declares no allowed-tools, so its tool surface cannot be reviewed or constrained.

#9Undeclared network usagelow60% confidence

Skill contains network access patterns (HTTP requests, socket connections) without declaring network capability in allowed-tools.

Hygiene

Info

targets Packaging & Manifest

1 finding
#1Missing licenseinfo100% confidence

Skill does not specify a license field. Specifying a license helps users understand usage terms.