supply-chain
Supply-chain risks — typosquatting, unpinned deps, curl|sh installs, postinstall scripts, missing lockfiles.
Skill by andrewaeva
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.
About
Reviews
Write a reviewNo 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
- 0.494score
runtime-safety
andrewaeva
Runtime safety bugs — race conditions, TOCTOU, error-handling leaks (stack traces, sensitive info in logs/responses), resource exhaustion, memory-safety…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
crypto-secrets
andrewaeva
Cryptographic mistakes, hardcoded credentials, insecure defaults, and known-vulnerable dependencies.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
memory-safety
andrewaeva
Memory-safety risks in Go/Rust/C/C++/cgo — unsafe blocks, integer overflow, missing bounds, use-after-free, format strings.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
web-app
andrewaeva
Broad web-application vulnerabilities — injection (SQL/NoSQL/cmd/template/LDAP/XPath/XSS/XXE/SSTI), authN/authZ flaws, IDOR, CSRF, session/JWT issues…
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
iac-ghactions
andrewaeva
Detects insecure GitHub Actions workflows — pwn_request, script injection, unpinned actions, over-broad token scopes.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
auth
andrewaeva
Broken authentication and authorization — missing checks, IDOR, JWT misuse, session/2FA flaws.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
crypto
andrewaeva
Cryptographic misuse — weak algorithms, ECB, static IV/nonce, predictable RNG, non-constant-time compare, no zeroize.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
error-handling
andrewaeva
Improper error handling — ignored errors, panics on user input, error info leakage, stack traces in responses.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
iac-terraform
andrewaeva
Detects insecure Terraform configurations (AWS/GCP/Azure) — public exposure, missing encryption, IAM wildcards.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
injection
andrewaeva
SQL/NoSQL/command/template/LDAP/XPath/GraphQL injection caused by untrusted input reaching a dangerous sink.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
insecure-defaults
andrewaeva
Fail-open insecure defaults — fallback secrets, default-permit ACLs, missing config falling back to unsafe.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
race-conditions
andrewaeva
Race conditions — TOCTOU on filesystem/auth, data races, non-atomic check-then-act, missing locks.
SkillCFreshness: C★ 1Claude Code +9
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
- Repository
- github.com/andrewaeva/llmscan
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from andrewaeva
- 0.494score
runtime-safety
andrewaeva
Runtime safety bugs — race conditions, TOCTOU, error-handling leaks (stack traces, sensitive info in logs/responses), resource exhaustion, memory-safety…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
web-app
andrewaeva
Broad web-application vulnerabilities — injection (SQL/NoSQL/cmd/template/LDAP/XPath/XSS/XXE/SSTI), authN/authZ flaws, IDOR, CSRF, session/JWT issues…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
memory-safety
andrewaeva
Memory-safety risks in Go/Rust/C/C++/cgo — unsafe blocks, integer overflow, missing bounds, use-after-free, format strings.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
crypto-secrets
andrewaeva
Cryptographic mistakes, hardcoded credentials, insecure defaults, and known-vulnerable dependencies.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
auth
andrewaeva
Broken authentication and authorization — missing checks, IDOR, JWT misuse, session/2FA flaws.
SkillCFreshness: C★ 1Claude Code +9 - 0.491score
iac-ghactions
andrewaeva
Detects insecure GitHub Actions workflows — pwn_request, script injection, unpinned actions, over-broad token scopes.
SkillCFreshness: C★ 1Claude Code +9
Cite this page
supply-chain skill. Agent Mart. https://agentmart.dev/skills/andrewaeva-supply-chain (last updated 2026-10-24)