Skip to main content
Scans/github/yvgude/lean-ctx

yvgude/lean-ctx

github

Share

Summary

yvgude/lean-ctx v2026-03-29 was classified as CRITICAL RISK with a risk score of 343. Sigil detected 18 findings across 151 files, covering phases including provenance, install hooks, code patterns. Review the findings below before installing this package.

Package description: Hybrid Context Optimizer — Shell Hook + MCP Server. Reduces LLM token consumption by 89-99%. Single Rust binary, zero dependencies.

CRITICAL RISK(343)

v2026-03-29

29 March 2026, 12:30 UTC

by Sigil Bot

Risk Score

343

Findings

18

Files Scanned

151

Provenance

Findings by Phase

Phase Ordering

Phases are ordered by criticality, with the most dangerous at the top. Click any phase header to expand or collapse its findings. Critical phases are expanded by default.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/CHANGELOG.md:185

- **Persistent Project Graph** — New `ctx_graph` with 5 actions (`build`, `related`, `symbol`, `impact`, `status`). Incrementally scans project files, persists index to `~/.lean-ctx/graphs/`, and enables symbol-level reads at up to 93% token savings over full file reads
- **`install.sh`** — Universal installer with `--download` mode (no Rust required), SHA256 checksum verification, and one-liner support: `curl -fsSL .../install.sh | bash -s -- --download`
- **`lean-ctx-bin` npm package** — Pre-b
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/README.md:54

# 1. Install (pick one)
curl -fsSL https://leanctx.com/install.sh | sh    # universal, no Rust
brew tap yvgude/lean-ctx && brew install lean-ctx   # macOS / Linux
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/README.md:132

# 1. Install (pick one)
curl -fsSL https://leanctx.com/install.sh | sh      # universal, no Rust needed
brew tap yvgude/lean-ctx && brew install lean-ctx     # macOS / Linux
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/bin/lctx:32

    echo "Install: cargo install lean-ctx"
    echo "     or: curl -fsSL https://raw.githubusercontent.com/yvgude/lean-ctx/main/install.sh | bash -s -- --download"
    exit 1
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/install.sh:10

# One-liner (no Rust required):
#   curl -fsSL https://leanctx.com/install.sh | sh
set -euo pipefail
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-makefile-curl

HIGH

Makefile/script pipes remote content to shell

repo/packages/lean-ctx-bin/README.md:33

# Universal installer (no Rust needed)
curl -fsSL https://leanctx.com/install.sh | sh
Why was this flagged?

A script or Makefile pipes content from a remote URL directly into a shell (curl | sh or wget | bash). This is inherently dangerous because the remote content can change at any time, and the command runs with the current user's permissions. Rated HIGH because it requires manual execution (unlike install hooks) but still executes arbitrary remote code.

install-npm-postinstall

CRITICAL

npm lifecycle script — runs automatically on install

repo/packages/lean-ctx-bin/package.json:17

  "scripts": {
    "postinstall": "node postinstall.js"
  },
Why was this flagged?

npm lifecycle scripts like postinstall run automatically during package installation with no user interaction required. This is the #1 attack vector for malicious npm packages — attackers embed data theft or backdoor installation in these hooks. Rated CRITICAL because code executes before the developer can review it.

Badge

Sigil scan badge for github/yvgude/lean-ctx

Markdown

[![Sigil Scan](https://sigilsec.ai/badge/github/yvgude/lean-ctx)](https://sigilsec.ai/scans/0EBF5BE3-547B-451D-9A90-89904CA22181)

HTML

<a href="https://sigilsec.ai/scans/0EBF5BE3-547B-451D-9A90-89904CA22181"><img src="https://sigilsec.ai/badge/github/yvgude/lean-ctx" alt="Sigil Scan"></a>

Run This Scan Yourself

Scan your own packages

Run Sigil locally to audit any package before it touches your codebase.

curl -sSL https://sigilsec.ai/install.sh | sh
Read the docs →Free. Apache 2.0.

Early Access

Get cloud scanning, threat intel, and CI/CD integration.

Join 150+ developers on the waitlist.

Get threat intelligence and product updates

Security research, new threat signatures, and product updates. No spam.

Other github scans

Believe this result is incorrect? Request a review or see our Terms of Service and Methodology.

Scanned bySigil Bot