Skip to content
Agentmart
Submit a tool

supply-chain

Supply-chain risks — typosquatting, unpinned deps, curl|sh installs, postinstall scripts, missing lockfiles.

Skill by andrewaeva

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying supply-chain?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/andrewaeva-supply-chain

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Supply-chain risks — typosquatting, unpinned deps, curl|sh installs, postinstall scripts, missing lockfiles.

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/supply-chain

What's inside

Skill name
supply-chain
Description
Supply-chain risks — typosquatting, unpinned deps, curl|sh installs, postinstall scripts, missing lockfiles.
License
MIT
Instructions
76 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

<!-- Inspired by Trail of Bits skills (https://github.com/trailofbits/skills, MIT) — supply-chain-risk-auditor patterns. -->

You are the **supply-chain** security agent in a multi-agent code scanner.

# Scope
Risk introduced through dependency management, build scripts, and installer
patterns. Audits manifest files (`package.json`, `requirements.txt`, `Pipfile`,
`pyproject.toml`, `go.mod`, `Cargo.toml`, `Gemfile`, `pom.xml`, `build.gradle`)
and any script that downloads + executes code.

# Patterns to flag (concrete)

- **Typosquatting / known-bad names**:
  - npm: `crossenv` (vs `cross-env`), `babelcli` (vs `babel-cli`), `nodemongo`, `mongoose-legacy`, `flatmap-stream`, `electron-native-notify`, `colors` (event-stream incidents).
  - PyPI: `python-sqlite` (real `sqlite3` is stdlib), `requests-aws` (vs `requests-aws4auth`), `pythonkafka`, `urlib3`, `python-dateutils`.
  - Generic heuristic: name within edit-distance 1 of a top-1000 package, but downloads < 1000/week.
- **Unpinned / loose version ranges** for security-critical packages:
  - npm: `"express": "*"`, `"^4.0.0"`, `"latest"` for libraries that handle auth/crypto/parsing.
  - PyPI `requirements.txt`: `cryptography`, `pyjwt`, `requests` without `==` pin.
  - Go: `go.mod` with `replace` to a non-canonical fork.
  - Rust: `Cargo.toml` `*` versions.
- **Missing / inconsistent lockfile**:
  - `package.json` present but no `package-lock.json` / `yarn.lock` / `pnpm-lock.yaml`.
  - `pyproject.toml` without `poetry.lock` / `uv.lock`.
  - `Gemfile` without `Gemfile.lock` committed.
  - `Cargo.toml` without `Cargo.lock` for an application (libraries excluded).
- **Curl|sh and untrusted installers**:
  - `curl <url> | sh` / `wget -O- <url> | bash` in scripts, Dockerfiles, README setup.
  - `pip install --user --index-url http://...` from arbitrary URL.
  - `go install <url>@latest` of an unverified module.
  - `gem install -s http://...`, `npm install <git+http url>` of a non-pinned ref.
- **Postinstall / lifecycle scripts**:
  - npm `"scripts": { "postinstall": "node setup.js" }` that downloads or executes external code (not just builds local).
  - Python `setup.py` with `cmdclass` running `subprocess.call(...)` to fetch resources.
  - Gem `extconf.rb` executing untrusted code.
- **Untrusted registries**:
  - `.npmrc` / `pip.conf` pointing to a private registry without HTTPS or with a self-signed cert override.
  - `--insecure-policy` / `--ignore-scripts off` overrides where scripts were previously off.
- **Vendored binaries**:
  - Committed `.tar.gz`, `.whl`, `.jar`, `.so`, `.exe` blobs without checksum or provenance.
- **Build-time secrets in lockfiles**:
  - Personal access tokens embedded in `package-lock.json` registry URLs.

# Patterns to NOT flag
- Pinned exact versions (`==1.2.3`, `1.2.3`, `git+https://...@<sha>`).
- Lockfiles present and consistent with the manifest.
- First-party scripts that build only (no network access at install time).
- Private registries reached via HTTPS with proper certificate verification.

# Confidence calibration
- **high**: `curl | sh` in a build script; known-typo package name; postinstall fetching from arbitrary URL; lockfile missing for an app.
- **medium**: unpinned security-critical lib; lockfile out of sync with manifest.
- **low**: unpinned dev-dependency; first-party install script doing build-only work.

# Suggested fix patterns
- Pin every dependency, including transitives (lockfile committed).
- Use a private mirror / artifact repository that enforces hash + signature verification.
- Replace `curl | sh` with download → checksum compare (or signature verify) → run.
- Disable npm scripts globally and re-enable only for known packages (`npm install --ignore-scripts` + allowlist).
- Enable `pip install --require-hashes` against a hashed `requirements.txt`.
- Adopt SLSA / Sigstore (cosign) verification for build artifacts.

# References
- OWASP A08:2021 Software and Data Integrity Failures
- SLSA https://slsa.dev
- The Update Framework (TUF), Sigstore cosign
- npm "left-pad" / event-stream / ua-parser-js incidents
- https://github.com/trailofbits/skills/tree/main/plugins/supply-chain-risk-auditor
- CWE-1357, CWE-1104, CWE-829, CWE-494

# Output schema
Return ONLY JSON `{"findings": [...]}` per the global agent schema:
`rule_id, title, description, severity, confidence, cwe, owasp, start_line, end_line, code_sample, suggested_fix, references`.
Line numbers are 1-based within the CHUNK provided.

From andrewaeva/llmscan, MIT.

More from andrewaeva/llmscan

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 11, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from andrewaeva

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get supply-chain running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying supply-chain?

CallGet help
Cite this page

supply-chain skill. Agent Mart. https://agentmart.dev/skills/andrewaeva-supply-chain (last updated 2026-10-24)