Poisoned Pipeline / Incidents / AS513
SkillSpector rates a malicious agent Skill Safe because the payload sits in a vendored node_modules directory the scan never opens, and a reflective call hides a shell call from the signature pass
AI coding agentsnpmDeveloper workstationLinux distro / packagesmacOS softwareWindows software
Checkmarx Zero published this on 11 November 2026, with the research led
by Alon Lerner. SkillSpector is NVIDIA's scanner for agent Skills, the
directory of a SKILL.md prompt plus scripts and templates that agents
load and often execute directly. It builds a list of the files it
considers relevant, runs regex, light static analysis, data-flow checks
and YARA over them, and then asks its own small LLM to grade the result
as Safe, Caution or Do Not Install. The report describes three ways a
malicious Skill earns Safe, at least in versions through 2.2.3, and
publishes working Skills for two of them.
The first is that the verdict is not stable. The same Skill, scanned
one minute apart on 13 October, scored 6 out of 100 with severity LOW
and recommendation SAFE at 14:44:31, then 32 out of 100 with severity
MEDIUM and recommendation CAUTION at 14:45:22, finding a HIGH TP4 for
invoking npm run bootstrap at 88 percent confidence on the second pass.
The threshold matters: Caution needs a score of 50 or more, so a 26-point
swing in either direction crosses nothing on one run and the Caution
band on the next.
The second is the file walker. SkillSpector's first step excludes
dotfiles such as .envrc and vendored dependency directories such as
node_modules and a Python venv, on the reasoning that it should review
what the Skill author wrote rather than third-party code found in those
places. Checkmarx put the payload in node_modules/devtools-core/index.js
of a Skill it named excluded_path_poc, and SkillSpector returned SAFE
with a score of 6: no analyzer ever read the file, so neither the static
rules nor the LLM could flag it. At runtime the agent loads the Skill's
Node code and the vendored file runs in the same process, spawning a
command wherever the agent runs. This is a complete bypass rather than
a partial one, because the code that executes was never in scope.
The third is name obfuscation. The deterministic half of the scanner
looks for dangerous functions by name, so a call to os.system is flagged
and getattr(os, "system")(cmd) is not. The LLM half is harder to fool:
the same Skill scanned with the LLM enabled on 21 June scored 84 out of
100, severity CRITICAL, Do Not Install, with five issues including
reflective execution at 97 percent confidence. Checkmarx notes the gap
was closed by commit cb5e8c8, whose message reads "fix(behavioral-ast):
detect reflective exec via getattr() literal (AST9)", and that the
static-only mode is the part that stays easy to trick.
Checkmarx reported all three to NVIDIA and NVIDIA declined them as
outside its threat model, so none is a vulnerability from the vendor's
point of view. That leaves the Safe verdict carrying more weight than
the word implies. The report's guidance follows: use SkillSpector as a
fast reject, not as an approval, and run a scanner that opens the paths
SkillSpector skips before installing a Skill.
No campaign, actor or victim is named, and the Skills here are the
researchers' own, so this is recorded as research rather than an
incident. The mechanisms are ordinary: a directory exclusion, a
reflective call and an unstable score are all available to anyone
publishing into a skill hub today.
Mapped techniques
- T0109 Publish malicious artifact
- T0236 Hide the payload in a path the review tool skips
- T0237 Resolve a dangerous call by name to miss a signature scan
- T0159 Malicious artifact execution
supply-chain Skills published to an agent hub
A Skill directory containing a SKILL.md prompt, a package.json
and a JavaScript entry point is published under the publisher's
own name. The malicious file is not in the Skill's own source;
it is at node_modules/devtools-core/index.js inside that
directory, so it arrives with the artifact and looks like a
dependency.
SkillSpector excludes dotfiles and vendored dependency
directories from the files it analyzes. The payload sat only in
the excluded path, so the score came back 6 out of 100 and SAFE
because nothing examined the code that would run.
supply-chain The scanner's verdict
getattr(os, "system")(cmd) does what os.system(cmd) does, and
only the literal name was being matched, so the deterministic
half of the scanner found nothing. The LLM half caught it at 97
percent confidence; static-only mode did not. Fixed in 2.5.0 by
detecting reflective execution on a literal.
post-supply-chain Machines that run the agent
The agent loads the Skill's Node code into its own runtime, so
the vendored file executes in the agent's process with the
agent's file and network access. The proof of concept spawns a
command; nothing in the Skill's declared permissions or its
SKILL.md prompt has to mention it.
Framework gaps noted
- No actor, campaign, victim or in-the-wild sample is published. The Skills are Checkmarx's own, and the article is a study of a scanner, so the story is marked research.
- NVIDIA's position is that these are not vulnerabilities and are outside SkillSpector's threat model. The article records that position without asserting a fix; only the getattr case is described as closed, in 2.5.0.
- The unstable score is demonstrated on one Skill with two adjacent scans. How often the verdict crosses the Caution threshold, and on what kinds of Skill, is not measured.
- Whether the excluded-path behaviour changed after 2.2.3 is not stated. The article describes versions through 2.2.3 and gives no later retest for that problem.