Answers · Agent-skill malware on npm

lilith-skill 0.1.3 and skilldrop-cli 1.19.0 are npm malware: how to tell if you installed them, and what to rotate

If you ran npx lilith-skill or npx skilldrop-cli (or installed either) on Nov 28, check which version you got. GitHub published malware advisories on Nov 28 for exactly two versions: lilith-skill 0.1.3 (GHSA-7mj6-995p-927j) and skilldrop-cli 1.19.0 (GHSA-m84r-3742-mc89). Both are installers that copy "Agent Skills" into Claude Code, Codex, Cursor, Copilot, Gemini CLI, Kiro and similar tools; lilith-skill describes itself as a security check for vibe-coded apps. Neither bad version is on the npm registry any more.

The advisories say a computer that installed or ran either version "should be considered fully compromised": rotate every secret and key stored on it from a different computer, and don't count on removing the package to remove everything it did. The checks below are read-only and take a few minutes. Other versions of both packages are not listed in either advisory; that doesn't prove they are clean, and nobody has published what the malicious code did.

The two versions and their windows

From the npm registry and the GitHub and OSV advisories, read on Nov 30. Times are UTC (ET is 5 hours earlier).

  • skilldrop-cli 1.19.0, published Nov 28 17:57. Flagged as malware by OSV (MAL-2026-20745) at 19:14 and by GitHub (GHSA-m84r-3742-mc89). The registry now goes 1.18.1 (Nov 28 16:49) straight to 1.20.0 (Nov 29 18:38); latest is 1.22.0. Anyone who ran npx skilldrop-cli without a version between 17:57 on Nov 28 and the removal got 1.19.0. We couldn't find the exact removal time.
  • lilith-skill 0.1.3, published Nov 28 19:02. GitHub advisory GHSA-7mj6-995p-927j at 20:18 (OSV MAL-2026-20746). The package's registry record was last changed at 20:17, about 75 minutes after publishing, and latest is back to 0.1.2. So the window was most likely 19:02 to 20:17.
  • Download counts for the last week, from npm: 124 for lilith-skill 0.1.3 and 137 for skilldrop-cli 1.19.0. npm counts include mirrors and bots, so these are not victim counts.
  • No analysis published. Both advisories say "No known source code", and we found no teardown from a security vendor or a statement from either maintainer. We don't know what the code did, whether a maintainer account was taken over, or whether any secrets were stolen.

Check your machine: npm cache, npx cache, global installs

Run these on each computer where you use coding agents. Each one only reads files. We ran them on Nov 30 against clean versions of both packages in our own cache (we didn't fetch the malware).

  1. npm's download cache. Every tarball npm fetched leaves an index entry, even after the package itself is gone:

    grep -rhoE 'registry\.npmjs\.org/(lilith-skill|skilldrop-cli)/-/[a-z-]+-[0-9.]+\.tgz' \
      ~/.npm/_cacache/index-v5 2>/dev/null | sort -u

    A line ending in lilith-skill-0.1.3.tgz or skilldrop-cli-1.19.0.tgz means this machine downloaded a bad version. Other versions in the list are not in the advisories. On Windows the cache is under %LocalAppData%\npm-cache.

  2. What npx kept. npx installs into a folder per command under ~/.npm/_npx and leaves it there:

    grep -H '"version"' ~/.npm/_npx/*/node_modules/{lilith-skill,skilldrop-cli}/package.json 2>/dev/null
  3. Global installs:

    npm ls -g --depth=0 2>/dev/null | grep -E 'lilith-skill|skilldrop-cli'
  4. Your projects. If either one is a dev dependency anywhere, the lockfile has the exact version. Replace ~/code with the folder your repos live in:

    grep -rnE '(lilith-skill|skilldrop-cli)' ~/code \
      --include=package-lock.json --include=pnpm-lock.yaml --include=yarn.lock \
      --include=bun.lock --include=package.json 2>/dev/null | grep -v node_modules

Check the agent skill folders

These are the folders the clean versions write to (we read the installer code in lilith-skill 0.1.2 and skilldrop-cli 1.18.1). The malicious versions may have written elsewhere too; nobody has said.

  1. Skill folders in your home directory. lilith-skill installs a folder named lilith; skilldrop-cli installs one folder per skill and can also edit ~/.claude/settings.json (its bootstrap command) and write Claude Code agents to ~/.claude/agents:

    ls -la ~/.claude/skills ~/.claude/agents ~/.agents/skills ~/.cursor/skills \
      ~/.gemini/skills ~/.copilot/skills ~/.config/opencode/skills \
      ~/.codeium/windsurf/skills 2>/dev/null
  2. Files changed during the window. Lists every file under those tool folders modified between the first bad publish and this morning:

    TZ=UTC find ~/.claude ~/.agents ~/.cursor ~/.gemini ~/.copilot ~/.kiro \
      ~/.codeium ~/.config/opencode -type f \
      -newermt '2026-11-28 17:50' ! -newermt '2026-11-30 14:00' 2>/dev/null

    Your own agent sessions write here too, so expect noise from session logs. Look for SKILL.md files, scripts, settings.json and anything under skills/ or agents/ you didn't put there.

  3. Project-scope installs. Both installers can write into the repo you ran them from (--project, or skilldrop's --ide options): .claude/skills, .agents/skills, .cursor/skills, .cursor/rules, .kiro/skills, .github/skills, .windsurf/skills. In each repo:

    git status --short -- .claude .agents .cursor .kiro .github .windsurf CLAUDE.md
    git log --since=2026-11-28 --stat -- .claude .agents .cursor .kiro .github .windsurf

If you find a bad version

  • Use a different computer for the rotation, as the advisories say. Assume anything the affected machine can read was exposed: .env files in your repos, ~/.npmrc, ~/.aws, gh and git credentials, SSH keys, and API keys saved in your agents' and editors' settings.
  • Start with what can publish code or spend money (our order, not the advisory's): GitHub tokens and SSH keys, npm publish tokens, cloud keys, then Supabase or Firebase service keys, Stripe secret keys and AI-provider keys. After each rotation, confirm the old value is refused.
  • Check for use while you rotate: your GitHub security log and recent pushes, npm packages you publish, and cloud and AI-provider usage since Nov 28.
  • Then rebuild or reimage the machine. The advisories say removing the package may not remove everything it installed. Deleting the skill folder alone is not enough.

Next time: slow down what agent installers can pull

  • Pin the version when you run an installer: npx [email protected], not npx some-installer. Without a version, npx takes whatever is latest at that minute.
  • Wait out new releases. pnpm's minimumReleaseAge setting refuses versions younger than the number of minutes you set. lilith-skill 0.1.3 was most likely pulled within 75 minutes of publishing.
  • Read the skill, then copy it. A skill is a folder of Markdown and scripts. Reading SKILL.md and its scripts/ before copying them into ~/.claude/skills takes less time than a rotation.

What isn't known or we didn't verify

Related: AGENTS.md malware: how to tell if your coding agent ran a setup.js and agent-framework 1.26.1 on PyPI: did the .pth stealer run, and what to rotate.

  • What the malicious code did, how it ran (the clean versions have no install script), or what it took. The advisories give no technical detail.
  • Whether the maintainers published these versions themselves or someone else did with their access. We don't say either.
  • When skilldrop-cli 1.19.0 left the registry, and whether other versions are affected. Third-party summaries say "0.1.3 and earlier" or "1.19.0 and later"; the GitHub and OSV records list only 0.1.3 and 1.19.0.
  • We didn't download or run either bad version. Every command above ran on Nov 30 against clean versions or test folders.

Checked against GitHub advisory GHSA-7mj6-995p-927j: Malware in lilith-skill, GitHub advisory GHSA-m84r-3742-mc89: Malware in skilldrop-cli, OSV MAL-2026-20745 (skilldrop-cli), OSV MAL-2026-20746 (lilith-skill), npm registry: lilith-skill, npm registry: skilldrop-cli, pnpm settings: minimumReleaseAge on 2026-11-30. Only test apps and accounts you own or are allowed to test.