Works with the AI Agents you already use
Poisoned npm/PyPI Package Response: Was I Hit, Did It Run, What to Rotate
by Hamza Alayed
When a hijacked npm, PyPI or Composer release is announced, find every affected version, prove whether its code ran, and get a ranked secret-rotation and cleanup report.
$1
Poisoned npm/PyPI Package Response: Was I Hit, Did It Run, What to Rotate
Example session with this skill installed
An advisory says these releases were hijacked on 3 Nov 2026: npm color-blend-kit 3.1.4 and 3.1.5, npm @acme/fetchy 1.9.0, PyPI py-env-loader 0.9.1, Packagist acme/http-guard 2.3.1. Our monorepo has web/, worker/ and api/. Are we hit? (Package names are illustrative.)
- Read your context and instructions
- Compiled the poisoned npm pypi
$ python3 -I exposure_check.py . --ioc iocs.txt --osv --json exposure.json
STATUS: EXPOSED
lockfiles: 6 packages: 13 sources: ioc (5 entries)
MATCH Packagist:acme/http-guard@2.3.1 [IOC:iocs.txt:6] in api/composer.lock
MATCH PyPI:py-env-loader@0.9.1 [IOC:iocs.txt:5] in worker/requirements-prod.txt, worker/uv.lock
MATCH npm:@acme/fetchy@1.9.0 [IOC:iocs.txt:4] in web/pnpm-lock.yaml
MATCH npm:color-blend-kit@3.1.4 [IOC:iocs.txt:2] in web/package-lock.json
ERROR OSV query failed: Tunnel connection failed: 403 Forbidden
exit=1
Poisoned dependency report — Nov 2026 hijacked releases
Verdict: EXPOSED – CODE LIKELY RAN
Scope checked: 6 lockfiles, nested npm copies. Not checked: OSV MAL- (host blocked), container images, developer laptops.
Findings: color-blend-kit 3.1.4 is a top-level dependency in web/; the nested copy under @acme/ui-tokens is 3.1.2 (not in the advisory, so clean).
Execution verdicts
| Location | Trigger | Verdict | Evidence |
| CI web build | import-time loader | LIKELY RAN | test job imports the package; 4 runs in window |
| worker image | import at start | RAN | image built 3 Nov 14:10 UTC from this lockfile |
Secrets to rotate
| 1 | NPM_TOKEN (publish workflow) | Critical |
| 2 | AWS deploy role session | Critical |
| 3 | DATABASE_URL (worker) | High |
Cleanup: pin color-blend-kit to an advisory-clean version, npm cache clean --force, rebuild worker image, rerun checker until exit=0 with OSV reachable.
Connects securely to your tools. The creator never sees your data.
About this skill
A hijacked package release is announced (a worm, a stolen maintainer token, a loader hidden in a file the package already runs). Every team that depends on it asks the same three questions under time pressure: Do we have the bad version? Did its code execute anywhere? Which credentials must we rotate? This skill answers them with evidence, in that order, and ends with a report a lead can act on in minutes. It is read-only until the containment step, never runs the suspect package, and never calls a project "clean" without saying exactly what was checked.
- A security advisory, blog post, OSV
MAL-record or registry notice names compromised package versions, and you need to know if any project, CI job or developer machine is affected. npm audit, osv-scanner, Dependabot or a scanner flags a dependency as malware (not an ordinary vulnerability).- You suspect a worm-style campaign (token theft that republishes other packages) touched your org.
- A scheduled sweep: "check all repos against every MAL- record published this week."
Do not use it for ordinary CVEs with a patch version; a normal dependency upgrade flow fits those better. Malicious-package response differs: there is no "safe patch" of the bad release, execution matters more than presence, and secrets are the real blast radius.
| Input | Why | If missing |
|---|---|---|
Advisory list of bad versions (ecosystem:name@version) | Exact matching; ranges cause false alarms | Use OSV MAL- lookups only, and say so |
| Exposure window (first bad publish → removal, UTC) | Decides which installs and CI runs matter | Use advisory dates; mark as approximate |
| How the payload runs (install script vs import/load time) | Decides whether "installed but never imported" is safe | Assume both |
| Repos, CI system, artifact caches, container registries in scope | Presence can hide outside the repo | Scope to the repo given and list the rest as not checked |
Matches exact versions only, so you need the advisory's version list or OSV must be reachable; when neither is available the result is UNKNOWN, never clean. Parses package-lock/npm-shrinkwrap, yarn.lock v1, pnpm-lock.yaml, poetry.lock, uv.lock, pinned requirements*.txt and composer.lock; Yarn Berry lockfiles, Gemfile.lock, Cargo, Go and Maven are not parsed. It does not detect unknown malware by analysing code, does not rotate secrets for you, and cannot read CI logs your agent has no access to. Not legal or forensic advice.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 15 days ago
- Software
Python 3.8+Terminal access
Git
- Optional
- Network access to api.osv.dev
GitHub CLI
Permissions
Allowed Hosts
File Scopes
Never installs, imports or executes project code. Names secrets but never prints their values. Containment steps (rotation, cache clears) are proposed for you to run.
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.