Back to all guides
Guide

Securing AI coding agents:
skills, MCP servers, models, packages and zero-days

CyberXYZ Security Team Threat Intelligence
40 min read

To secure an AI coding agent, treat everything it can read, start or install as code that runs with your permissions: agent skills, MCP servers, hooks and rules files in repositories, model files, packages and editor extensions. Pin and review what you add. Read a repository's agent files before opening it in an agent. Load models in formats that cannot run code. Install packages through a check that sees the exact version. Keep upgrading, because a fix can ship before any advisory exists.

Version 1.0, updated 27 November 2026 By the CyberXYZ Security Team
fig. 1 / a selection of the incidents and studies this guide cites, by date and surface

All seven surfaces have a dated public incident or study between February 2025 and November 2026.

Timeline of incidents and studies cited in this guide, by surface, February 2025 to November 2026, with September to November 2026 enlarged20252026JanAprJulOctJanAprJulOctAgent skillsMCP serversHooks and config filesAI modelsPackagesEditor extensionsFixes without an advisory27 Nov 2026 · this guide// September to November 2026, enlargedSep 2026Oct 2026Nov 2026MCP serversHooks and config filesAI modelsPackagesEditor extensionsFixes without an advisoryReversingLabsRules File Backdoortool poisoningpostmark-mcpToxicSkillsCheck PointaxioslightningMini Shai-Huluddotenv-asynclong tailCursor marketplacenode-opcuamd-doc-mcpregistry read1. 6 Feb 2025: ReversingLabs reports two malicious models on Hugging Face12. 18 Mar 2025: Pillar Security publishes Rules File Backdoor (hidden Unicode in rules files)23. 1 Apr 2025: Invariant Labs describes tool poisoning in MCP tool descriptions34. 25 Sep 2025: Write-up of the postmark-mcp backdoor (Koi's research)45. 5 Feb 2026: Snyk publishes ToxicSkills, a scan of 3,984 agent skills56. 25 Feb 2026: Check Point Research publishes its Claude Code project-file findings67. 31 Mar 2026: axios 1.14.1 and 0.30.4 published through a compromised account78. 10 Sep 2026: lightning 2.6.6 fixes CVE-2026-58659, the flaw behind eight pyannote models88. 10 Sep 2026: lightning 2.6.6 fixes CVE-2026-58659, the flaw behind eight pyannote models89. 24 Sep 2026: Mini Shai-Hulud pushed to six ant-design/pro-components branches99. 24 Sep 2026: Mini Shai-Hulud pushed to six ant-design/pro-components branches910. 30 Sep 2026: dotenv-async published, a new variant in a dotenv lookalike campaign1010. 30 Sep 2026: dotenv-async published, a new variant in a dotenv lookalike campaign1011. 20 Oct 2026: CyberXYZ finds 24 more repositories carrying the worm1111. 20 Oct 2026: CyberXYZ finds 24 more repositories carrying the worm1112. 29 Oct 2026: Cursor marketplace serves tampered Claude Code builds1212. 29 Oct 2026: Cursor marketplace serves tampered Claude Code builds1213. 6 Nov 2026: node-opcua 2.187.23 fixes a default with no advisory1313. 6 Nov 2026: node-opcua 2.187.23 fixes a default with no advisory1314. 18 Nov 2026: CyberXYZ reports an unlisted md-doc-mcp copy to OpenSSF1414. 18 Nov 2026: CyberXYZ reports an unlisted md-doc-mcp copy to OpenSSF1415. 27 Nov 2026: CyberXYZ reads the MCP registry: 70 of 25,169 servers listed1515. 27 Nov 2026: CyberXYZ reads the MCP registry: 70 of 25,169 servers listed15

n CyberXYZ finding or study n other people's work

  1. 1AI modelsReversingLabs reports two malicious models on Hugging Face
  2. 2Agent skillsPillar Security publishes Rules File Backdoor (hidden Unicode in rules files)
  3. 3MCP serversInvariant Labs describes tool poisoning in MCP tool descriptions
  4. 4MCP serversWrite-up of the postmark-mcp backdoor (Koi's research)
  5. 5Agent skillsSnyk publishes ToxicSkills, a scan of 3,984 agent skills
  6. 6Hooks and config filesCheck Point Research publishes its Claude Code project-file findings
  7. 7Packagesaxios 1.14.1 and 0.30.4 published through a compromised account
  8. 8AI modelslightning 2.6.6 fixes CVE-2026-58659, the flaw behind eight pyannote models
  9. 9Hooks and config filesMini Shai-Hulud pushed to six ant-design/pro-components branches
  10. 10PackagesCyberXYZdotenv-async published, a new variant in a dotenv lookalike campaign
  11. 11Hooks and config filesCyberXYZCyberXYZ finds 24 more repositories carrying the worm
  12. 12Editor extensionsCursor marketplace serves tampered Claude Code builds
  13. 13Fixes without an advisoryCyberXYZnode-opcua 2.187.23 fixes a default with no advisory
  14. 14MCP serversCyberXYZCyberXYZ reports an unlisted md-doc-mcp copy to OpenSSF
  15. 15MCP serversCyberXYZCyberXYZ reads the MCP registry: 70 of 25,169 servers listed
fig. 1 · A selection of the incidents and studies cited in this guide, placed by surface and date. It is not a count of all incidents. Orange-filled marks are CyberXYZ findings or studies, white marks are other people's work. Dates are the incident, release or publication dates given in the text and in the sources, February 2025 to 27 November 2026. The lower panel enlarges September to November 2026, where the top chart is crowded; each mark appears in both. The package-hallucination study is not plotted because the guide gives no single date for it. Each mark links to its section.
How to use this guide

Start with the eight things for this week, then read the sections for the tools you use. Every command works without any CyberXYZ product, and commands are shown without output because your machine will print different results. Every number links to its source.

1. Do these eight things this week

Each takes minutes, and none needs a purchase.

  1. 1

    Pin every MCP server to an exact version.

    A server started with npx -y and no version installs the newest release each time the agent starts.

    npx -y @example/server@1.2.3
  2. 2

    List the MCP servers your agents start.

    You will probably find some you forgot.

    $claude mcp list
    $xyz audit mcp
  3. 3

    List your agent skills and read the ones you did not write.

    $xyz audit skills
  4. 4

    Read a repository's agent files before opening it in an agent or editor.

    Hooks, folder-open tasks and rules files act when the folder opens.

    $xyz code-scan agents .
  5. 5

    Keep VS Code automatic tasks off.

    It is the default. Leave Workspace Trust on.

    "task.allowAutomaticTasks": "off"
  6. 6

    Load models from safetensors files, and read the code before you set trust_remote_code=True.

    See what you already have in this folder and the Hugging Face cache.

    $xyz audit models
  7. 7

    Install with scripts off when an agent does the installing.

    $npm ci --ignore-scripts
  8. 8

    Find which credentials a malicious install could reach here, then remove the ones you do not need.

    $xyz audit exposure

The scanner is pipx install cyberxyz-scanner. Its commands here were checked against the documentation for version 1.4.85. The manual version of each check is in the matching section.

2. The risk map at a glance

An AI coding agent acts with your permissions, and each surface below is a way for someone else's text or code to reach it.

fig. 2 / the risk map
SurfaceHow it runs code on your machineWhat can go wrongFirst checkWho owns it
Agent skillsThe agent follows SKILL.md and can run the folder's scripts and any shell command the skill allows.Hidden text, a download piped into a shell, broad tool permissions.List the installed skills and read each SKILL.md.xyz audit skillsThe developer who installs it. The platform team for shared skills.
MCP serversThe agent starts the server as a local process with your permissions. Remote servers run elsewhere.An unpinned package picks up a bad release. Tool descriptions steer the agent.List the servers. Look for npx or uvx with no version.claude mcp listThe developer. The team, for a project .mcp.json.
Hooks and agent config filesThe agent or editor runs a hook or task when a repository is opened, and follows rules files.A cloned branch carries a SessionStart hook or folder-open task.List a repository's agent files before opening it in an agent.xyz code-scan agents .Repository owners, through code review. Each developer, on open.
AI modelsLoading a pickle-based weight file can run code. trust_remote_code runs the repository's code.Code runs on load. A dependency has a flaw.Check file formats. Search for trust_remote_code.xyz audit modelsML engineers. The platform team, for approved sources.
PackagesInstall scripts run at install. Other code runs when the package is imported.Invented names, lookalikes, hijacked releases.Look the name up before installing. Install from the lockfile, scripts off.npm ci --ignore-scriptsThe developer. The security team, for policy.
Editor extensionsThe extension host has the same permissions as the editor.A tampered build served by one marketplace.List extensions with versions. Check the version exists upstream.code --list-extensions --show-versionsThe developer. IT, for allow-lists.
Fixes shipped without an advisoryNot a new way to run code: code you already run has a fixed bug scanners do not list.A scanner says clean for a version with a fixed-in-code flaw.Read release notes. Compare installed versions with the latest.npm outdatedWhoever owns the dependency list.
fig. 2 · Seven surfaces and what they share: each one is text or code from someone else, reaching a tool that acts as you. Each surface name links to its section. On a phone each row becomes a card.

How an agent ends up running someone else's code

Something you did not write is fetched or opened, the agent or editor reads or starts it, and it runs as you.

fig. 3 / how an agent ends up running someone else's code
How an agent ends up running someone else's codeSix kinds of content you did not write (skill folders, MCP servers, repository files, packages, editor extensions and model files) are read, started, installed or loaded by an AI agent or editor, such as Claude Code, Cursor, Codex, Gemini CLI, VS Code or Devin Desktop, and then run as you, with your source code, SSH keys, registry and cloud tokens, environment variables and any command you may run.// 1Something you did not write// 2The agent or editor acts on it// 3It runs as youClaude CodeCursorCodexGemini CLIVS Code, Copilot agent modeDevin DesktopreadsstartsinstallsloadsSkill foldersan instruction in SKILL.mdMCP serversnpx with no versionRepository filesa SessionStart hook ora folder-open taskPackagesan install scriptEditor extensionsan update from onemarketplaceModel filesa pickle weight file,trust_remote_codeWhat it can reachyour source codeyour SSH keysregistry and cloud tokensenvironment variablesany command you may run

1. Something you did not write

  • Skill foldersan instruction in SKILL.md
  • MCP serversnpx with no version
  • Repository filesa SessionStart hook or a folder-open task
  • Packagesan install script
  • Editor extensionsan update from one marketplace
  • Model filesa pickle weight file, trust_remote_code

2. The agent or editor acts on it

Claude CodeCursorCodexGemini CLIVS Code, Copilot agent modeDevin Desktop
readsstartsinstallsloads

3. It runs as you, with

  • your source code
  • your SSH keys
  • registry and cloud tokens
  • environment variables
  • any command you may run
fig. 3 · Every surface in this guide follows this path. Each source and its trigger come from the sections below; the verb is what the agent or editor does with it. Illustrative: it shows the shape of the path, not a measured incident. Logos are the real marks of the tools named; the small dots move along the connectors while the figure is in view.

3. Agent skills

// how it runs code

The agent follows SKILL.md and can run its scripts and allowed shell commands.

// first check

List installed skills and read each SKILL.md.

// who owns it

The developer who installs it; the platform team for shared skills.

What it is

A skill is a folder with a SKILL.md file: a name, a description, then plain instructions the agent follows, plus optional scripts. The agent reads only the name and description at start-up and loads the rest when a task fits, per the Agent Skills specification. A skill can carry allowed-tools, tools the agent may use without asking. In Claude Code that field does not restrict which tools exist. It removes the prompt.

How it reaches your machine

You write it, copy a folder from GitHub or a registry, install a plugin that ships it, or clone a repository that contains it. Claude Code loads skills from ~/.claude/skills/, from .claude/skills/ in a project, and from a plugin's skills/ folder. Other agents use the same skills/ folder under ~/.agents, ~/.cursor, ~/.gemini and ~/.codex, per the xyz Scanner documentation. A project skill's allowed-tools applies even in a folder you never trusted, so Claude Code's documentation tells you to review the allowed-tools of skills checked into a repository first.

What goes wrong

  • 5 Feb 2026
    Public registries contain bad skills. In a study published on 5 February 2026, Snyk scanned 3,984 skills from ClawHub and skills.sh. By Snyk's classification, 534 (13.4 percent) had a critical issue, 1,467 (36.82 percent) had at least one security flaw and 76 carried confirmed malicious payloads. Publishing needs only a SKILL.md and a GitHub account one week old. Setup steps can download and run binaries, and some skills fetch instructions at run time, so a skill can change after you read it.
  • 18 Mar 2025
    Hidden text is read by the agent and missed by you. In March 2025 Pillar Security showed that invisible Unicode in a rules file can make Cursor and GitHub Copilot add an attacker's script to generated code without saying so. They tested rules files. Any file an agent reads as instructions, a SKILL.md included, can carry the same characters.
fig. 4 / Snyk ToxicSkills, 5 February 2026
Skills scanned3,984At least one security flaw1,467 · 36.82%A critical issue534 · 13.4%Confirmed malicious payloads76
Skills scanned3,984At least one security flaw1,467 · 36.82%A critical issue534 · 13.4%Confirmed malicious payloads76
fig. 4 · Counts from Snyk's ToxicSkills study of 3,984 skills from ClawHub and skills.sh, published 5 February 2026. All bars share one scale, so each reads against the 3,984 scanned. Snyk's classification, not ours. Source: Snyk, ToxicSkills (linked in Sources).
Data table
MeasureSkillsShare, as Snyk gives it
Scanned3,984
At least one security flaw1,46736.82%
A critical issue53413.4%
Confirmed malicious payloads76

How to check

List what is installed, then look for invisible characters, a download piped into a shell, and broad tool permissions.

by hand: list skills, then look for the three patterns
ls -d ~/.claude/skills/*/ ~/.agents/skills/*/ ~/.cursor/skills/*/ ~/.gemini/skills/*/ ~/.codex/skills/*/ .claude/skills/*/ 2>/dev/null
find ~/.claude/skills ~/.agents/skills .claude/skills -name SKILL.md -exec perl -CSD -ne 'print "$ARGV:$.: hidden character\n" if /[\x{E0000}-\x{E007F}\x{202A}-\x{202E}\x{2066}-\x{2069}\x{200B}]/' {} + 2>/dev/null
grep -rnE '(curl|wget)[^|]*\|[[:space:]]*(sudo[[:space:]]+)?(ba|z)?sh' ~/.claude/skills .claude/skills 2>/dev/null
grep -rn 'allowed-tools' ~/.claude/skills .claude/skills 2>/dev/null

The second command prints the file and line of any tag character, text-direction override or zero-width space. The fourth lists skills that grant tools without a prompt. A plain Bash grant deserves a read of the whole file.

xyz Scanner: installed skills, last use, and repository files
xyz audit skills
xyz audit skills --usage
xyz code-scan agents .

xyz audit skills covers the folders above, Claude Code plugins and the current folder. It flags hidden text, instructions that download and run code, and suspicious scripts. It reads files and never runs them. --usage is off by default and reads your Claude Code session logs to show when each skill was last used.

What good looks like

  • You can name every skill your agent can load and who wrote it.
  • Outside skills were read in full, scripts included, before they were copied in.
  • No skill grants unrestricted shell access without a reason you can state.

Limits

These checks look at files already on disk. They do not stop you copying a bad skill into place, and xyz audit skills does not read git history. A scanner cannot judge instructions written as ordinary sentences that ask for something unwise. The CyberXYZ Proxy checks skills that ship as npm or PyPI packages at install. It does not check a skill folder copied from GitHub or a marketplace.

4. MCP servers

// how it runs code

The agent starts the server as a local process with your permissions.

// first check

List the servers; look for npx or uvx with no version.

// who owns it

The developer; the team for a project .mcp.json.

What it is

The Model Context Protocol, MCP, lets an agent call outside tools such as a repository, a database or a browser. Each tool set is a server. A local server is a program the agent starts itself, usually through npx or uvx, which download a package and run it. A remote server is a web address and installs nothing. The MCP project warns that local servers run with the client's privileges and that a malicious startup command in a configuration is one way in.

How it reaches your machine

Through a configuration file. Claude Code keeps servers in ~/.claude.json or, for a project, in a committable .mcp.json. Cursor uses mcp.json, Codex config.toml and Gemini CLI the mcpServers key of settings.json. Claude Code asks before using a project server in an interactive session, but non-interactive runs cannot show that prompt and load project servers without asking.

What goes wrong

  • Sep 2025
    A real server turns bad in a later release. postmark-mcp copied Postmark's server and, from version 1.0.16 after 15 clean releases, added a hidden BCC on every email it sent. Koi reported it in September 2025. Deleting a package from npm does not remove it from machines that installed it.
  • 27 Oct to 18 Nov 2026
    A plain server asks the cloud who it is. One small Markdown server has appeared on npm under seven account names since 27 October 2026. Amazon Inspector reported the first copies. CyberXYZ found an unlisted copy, @fdcasj_dfew/md-doc-mcp, that queries the cloud metadata service at every start, and reported it to OpenSSF on 18 November 2026. The write-up has the code.
  • 27 Nov 2026
    Known problems sit in the public list. We read the public MCP registry on 27 November 2026. Of 25,169 servers that install an npm or PyPI package, 70 install one with a published advisory or malware record, and five had malicious releases, none of them the version the registry points to today. Four of the five were publishers caught in a wider attack. The post has the table, and the list updates on its own.
  • 1 Apr 2025
    Tool descriptions are instructions. In April 2025 Invariant Labs showed that instructions hidden in a tool description, invisible where a client shows only a summary, can make an agent read SSH keys and pass them along. A server can also change a description after you approved it.
fig. 5 / one in 360, and what the 70 are
25,169servers install an npm or PyPI packageOf every 360 of them, about 1 installs apackage with a published advisory ormalware record. Exact count: 70 of 25,169.70servers whose package has a publishedadvisory or malware record:the one orange square, enlarged5had malicious releases, none theversion the registry points to today65 have ordinary published advisories,shaded by the worst severity on their package:13 critical37 high10 medium5 low
25,169servers install an npm or PyPI packageOf every 360 of them, about 1 installs apackage with a published advisory or malwarerecord. Exact count: 70 of 25,169.70of them: the one orange square, enlarged5had malicious releases, none theversion the registry points to today65 have ordinary published advisories,shaded by the worst severity on their package:13 critical37 high10 medium5 low
fig. 5 · CyberXYZ read of the public MCP registry, 27 November 2026, from our MCP servers post. Left: 360 squares stand for 360 servers that install an npm or PyPI package; 25,169 divided by 70 is about 360, so about one square is filled. Its place in the grid is arbitrary. Right: the 70, drawn one square each. 5 packages have had malicious releases; the other 65 have ordinary advisories, shaded by the worst severity: 13 critical, 37 high, 10 medium, 5 low. 5 + 13 + 37 + 10 + 5 = 70.
Data table
GroupServers
Install an npm or PyPI package25,169
Package has a published advisory or malware record70
of which: malicious releases5
of which: worst advisory critical13
of which: worst advisory high37
of which: worst advisory medium10
of which: worst advisory low5
fig. 6 / how long a malicious release went unrecorded, in hours
0 h1224 h3648 h60 hhours after the malicious release appeared on npmmalicious release on npm (0 h)OSV malware recordsupership-scan 1.0.055.9 hpostman-mcp-server 2.4.1011.5 hmcp-server-browserbase 2.4.211.3 hpaidwithtab 3.0.01.4 h
0 h1224 h3648 h60 hhours after the malicious release appeared on npmmalicious release on npm (0 h)OSV malware recordsupership-scan 1.0.055.9 hpostman-mcp-server 2.4.1011.5 hmcp-server-browserbase 2.4.211.3 hpaidwithtab 3.0.01.4 h
fig. 6 · Hours from the malicious release appearing on npm to OSV publishing its malware record, for four of the five MCP server packages with malicious releases. Sorted by gap; dashed lines mark 24 h and 48 h. @antv/mcp-server-chart is left out because its record carries a date with no time. Other reports may have appeared before the OSV record. Source: npm publish times and OSV record times, read 27 November 2026, as published in our MCP servers post.
Data table
ReleaseHours to OSV record
supership-scan 1.0.055.9
postman-mcp-server 2.4.1011.5
mcp-server-browserbase 2.4.211.3
paidwithtab 3.0.01.4

A server entry with no version installs whatever is newest when the agent starts, so in those hours a malicious release was the newest one.

How to check

which servers are configured, and which start through npx or uvx?
claude mcp list
grep -nE '"(npx|uvx)"' .mcp.json ~/.claude.json ~/.cursor/mcp.json .vscode/mcp.json 2>/dev/null
grep -nE 'npx|uvx' ~/.codex/config.toml .codex/config.toml ~/.gemini/settings.json .gemini/settings.json 2>/dev/null
xyz audit mcp

Read each args entry: a package name with no @version is unpinned. xyz audit mcp lists the servers your agents start with their package, whether it is pinned, and a verdict. To pin, npm documents package@version and uv documents uvx --from 'name==1.2.3' name.

.mcp.json · a pinned server (illustrative name)
{
  "mcpServers": {
    "example": {
      "command": "npx",
      "args": ["-y", "@example/server@1.2.3"]
    }
  }
}

Before adding a server, look its package up: the MCP servers list shows the ones with a record, and CyberXYZ Check gives a verdict for any package and version.

What good looks like

  • Every local server is pinned to an exact version and upgraded on purpose.
  • Changes to a project .mcp.json are reviewed, and the exact command is read.
  • Servers that handle secrets get only the credentials they need.

Limits

Package checks say nothing about remote servers: 46,269 of the registry's servers on the day we looked are reached over the network and install nothing. Our count covers npm and PyPI only, and only whether a record exists for the package name, not for the version you run. A tool description can change after approval, and pinning a package does not pin a remote server. A new server has no history, so absence from a list is not a clean result.

5. Hooks and agent config files

// how it runs code

The agent or editor runs a hook or task when a repository is opened.

// first check

List a repository's agent files before opening it in an agent.

// who owns it

Repository owners, through code review.

What it is

Some files in a repository are instructions to the tools that open it. A hook is a shell command an agent runs on an event. Claude Code reads hooks from .claude/settings.json in a project, which can be committed, and a SessionStart hook fires when a session begins. The xyz Scanner documentation lists the same for Gemini CLI under .gemini/. VS Code and Cursor run a .vscode/tasks.json task marked "runOn": "folderOpen" when the folder is opened. Rules files such as CLAUDE.md, AGENTS.md and .cursor/rules/*.mdc are standing instructions.

How it reaches your machine

You clone a repository, pull or check out a branch, and open the folder. Nothing is installed. Hook entries merge across levels, so a project hook adds to yours.

What goes wrong

  • 24 Sep 2026
    A worm committed exactly these files. On 24 September 2026 a hijacked GitHub Action in the issue workflow of ant-design/pro-components pushed the Mini Shai-Hulud worm to six branches in seven seconds: a Claude Code SessionStart hook and a VS Code folder-open task that started the same loader. Aikido and SafeDep reported it that day. Four branches kept the files until 15 October 2026, when the maintainers removed them after our report. The reconstruction has the run logs.
  • 20 Oct 2026
    It was not one repository. We found 24 more that no public report named, listed in the long tail.
  • 25 Feb 2026
    The agent had gaps too. In February 2026 Check Point Research described three Claude Code vulnerabilities in which a malicious repository's .claude/settings.json or .mcp.json could run commands without the usual confirmation, or send the user's API key to an address the repository chose before the trust dialog appeared. The article gives fix dates between August and December 2025. Keep the agent updated.

How to check

by hand: which agent files does this repository carry, and who changed them?
ls -la .claude .gemini .cursor .vscode/tasks.json CLAUDE.md AGENTS.md GEMINI.md .mcp.json 2>/dev/null
grep -n 'folderOpen' .vscode/tasks.json 2>/dev/null
git log --all --format='%h %an %ad %s' --date=iso -- .claude .gemini .cursor .vscode/tasks.json

The last command shows who changed those paths on any branch, which is how you spot a bot account that never normally commits. Also read the hooks block of your own ~/.claude/settings.json.

xyz Scanner: read the autorun files without running them
xyz code-scan agents .

xyz code-scan agents reads the hooks, folder-open tasks, instruction files and skills in a repository and flags the ones that run code. It reads files and never runs them.

In VS Code, the automatic tasks setting is off by default, and automatic tasks never run in an untrusted workspace. Workspace Trust also disables agents in a workspace opened in Restricted Mode.

VS Code settings.json · automatic tasks
{
  "task.allowAutomaticTasks": "off"
}

What good looks like

  • Changes to .claude/, .gemini/, .cursor/, .vscode/tasks.json, rules files and .mcp.json need a named reviewer.
  • Stale branches are deleted or protected. The four ant-design branches nobody watched were the ones that kept the worm.
  • Unknown repositories are listed, not opened in an agent, until you have read their agent files.

Limits

The scan covers files in a checkout, not your own ~/.claude/settings.json. It cannot tell whether a hook that downloads its real work at run time is harmful, only that a hook exists. A clean result for one commit says nothing about the next. A rules file that is simply wrong is out of reach of any scanner.

6. AI models

// how it runs code

Loading a pickle-based weight file can run code.

// first check

Check file formats; search for trust_remote_code.

// who owns it

ML engineers; the platform team for approved sources.

What it is

A model is weight files plus configuration, and sometimes Python code. The danger sits in the file format. A pickle is Python's way of saving objects, and PyTorch uses it by default for weights. The Python documentation says the module is not secure and malicious data can execute arbitrary code during unpickling. Safetensors stores tensors safely, as opposed to pickle, and loading it runs no code.

How it reaches your machine

Through from_pretrained, hf_hub_download or torch.load in code you or the agent wrote, through a notebook, or through a checkpoint a colleague passes along. An agent writing a data-science script will often download a model without asking. A model can also pull in Python packages, so its risk includes its dependencies.

What goes wrong

  • A format risk
    Pickle files run code on load. Hugging Face says code can be executed when you load a pickle file. Its Hub scanner lists a pickle's imports, and it states the scanner is not foolproof.
  • 6 Feb 2025
    A scanner can be walked around. On 6 February 2025 ReversingLabs reported two Hugging Face models stored as 7z-compressed PyTorch pickles whose payload sat at the start of the stream and ran before the file broke. The scanner reported an error but did not flag the functions that ran first. Hugging Face removed the models within 24 hours of the report.
  • 10 Sep 2026
    The model never names the vulnerable part. Eight pyannote speaker models name one clean package. One hop below it, lightning 2.6.5 carried a checkpoint-loading code execution flaw, CVE-2026-58659, fixed in 2.6.6 on 10 September 2026. The post explains why a manifest cannot see it. One of the models is pyannote/speaker-diarization-3.1.
  • A setting
    trust_remote_code=True runs the repository's code. Custom models need it. The Transformers documentation says to take extra precaution and to load a specific revision so code that changed later is not loaded.

OWASP lists vulnerable pre-trained models and weak model provenance among the supply-chain risks for language-model applications.

How to check

by hand: model files and remote-code settings; read a checkpoint without loading it
find . ~/.cache/huggingface/hub \( -name '*.bin' -o -name '*.pt' -o -name '*.pth' -o -name '*.ckpt' -o -name '*.pkl' -o -name '*.h5' \) 2>/dev/null
grep -rn 'trust_remote_code' --include='*.py' --include='*.ipynb' .
unzip -p model.pt '*/data.pkl' > data.pkl
python3 -m pickletools data.pkl | grep -E 'GLOBAL|REDUCE'

The last two lines unpack a .pt checkpoint and print its pickle instructions. pickletools reads them without executing anything, and Hugging Face names GLOBAL, STACK_GLOBAL and REDUCE as the ones that matter. Read the module names: an import of built-ins such as eval or exec, or of os or subprocess, is the signal. A match alone is not proof, because any pickle that rebuilds an object needs them. When you must load a checkpoint, say so explicitly:

load.py · weights only
import torch
state = torch.load("model.pt", weights_only=True)

The current PyTorch documentation shows weights_only=True as the default and warns to never load data from an untrusted source.

xyz Scanner: model files and Hugging Face references, never loaded
xyz audit models

xyz audit models finds model files and Hugging Face references in code, including trust_remote_code=True, and reports each file's verdict and load safety. It never loads or unpickles a file. Anything not scanned shows as unscanned or not watched, which is not a verdict.

What good looks like

  • Weights load from safetensors where the model offers them.
  • Pickle files come only from sources you control and load with weights_only=True.
  • Every trust_remote_code=True has a pinned revision and a person who read that code.

Limits

A safe format means loading runs no code. It says nothing about what the model does once you use it. A scan reads the files you have, and a format we cannot inspect, such as a Keras HDF5 file, shows as unscanned in our own output. Hugging Face says its scanning is not foolproof, and the ReversingLabs case shows why. A scan of a model's declared dependencies can miss a flaw further down the chain.

7. Packages the agent installs

// how it runs code

Install scripts run at install; other code runs on import.

// first check

Look the name up first; install from the lockfile with scripts off.

// who owns it

The developer; the security team for policy.

What it is

Libraries installed by npm, pip and similar tools, often by an agent, in a shell command you may not read. Some run code at install: npm runs preinstall, install and postinstall when you run npm install. Others run only when imported, which no install-time setting stops.

How it reaches your machine

The agent suggests a name, copies one from an old example, or takes the newest version when it updates a lockfile. Then it runs the install.

What goes wrong

  • USENIX 2025
    Models invent package names. A study to appear at USENIX Security 2025 generated 576,000 code samples with 16 models and found hallucinated package names in at least 5.2 percent for commercial models and 21.7 percent for open-source models, 205,474 unique names in all. Anyone can register an invented name and wait.
  • 30 Sep 2026
    A lookalike works while it attacks. dotenv-async, published on 30 September 2026, copies dotenv's look, parses environment files correctly and carries a Windows loader that runs when the package is imported. It has no install script to block. It was a new variant in a campaign of dotenv lookalikes others had reported. The write-up has the details.
  • 31 Mar 2026
    A real package ships a bad release. On 31 March 2026 attackers published axios 1.14.1 and 0.30.4 through a compromised maintainer account. Both added a dependency, plain-crypto-js, whose postinstall script dropped a remote access tool. Socket flagged it six minutes after publication. The versions were live about three hours, 00:21 to 03:15 UTC. The post has the timeline.

An agent that installs without asking takes whatever is newest at that moment.

fig. 7 / out of 100 generated code samples
  • 576,000code samples
  • 16models tested
  • 205,474unique invented package names
Commercial modelsat least5.2%5 of every 100 samplesOpen-source models21.7%22 of every 100 samples
Commercial modelsat least5.2%5 of every 100 samplesOpen-source models21.7%22 of every 100 samples

// how the attack works (illustrative, not measured)

  1. The model invents a package name.
  2. Someone registers that name on the registry.
  3. The next install pulls their code.
fig. 7 · Out of 100 generated code samples, how many name a package that does not exist. Source: Spracklen and others, We Have a Package for You! (USENIX Security 2025, arXiv 2406.10279): 576,000 code samples from 16 models, at least 5.2 percent for commercial models and 21.7 percent for open-source models, 205,474 unique invented names in all. The grids are rounded to whole samples (5 and 22 of 100). The three steps below the grids show how the attack works and are not measured data.
Data table
Model groupShare of samples with a hallucinated package
Commercial modelsat least 5.2%
Open-source models21.7%

How to check

by hand: when was this package first published? (axios as the example)
npm view axios time.created
npm ci --ignore-scripts

A package whose first release is days old, which an agent chose from memory, deserves a second look. npm ci installs what the lockfile says, and --ignore-scripts stops npm running package scripts. Some packages need scripts to build, so enable them for those on purpose. Add npm install --save-exact when you add a dependency, so the file records one version, not a range.

xyz Scanner: set up the proxy, check one version, audit, plan fixes, guard the agent
xyz login
sudo xyz proxy setup --system
xyz check axios 1.14.1 -e npm
xyz audit
xyz fix
xyz mcp install --client claude-code --hooks

The CyberXYZ Proxy checks npm, PyPI, Go and NuGet downloads at install, whichever agent typed the command. Only a known malicious release, a critical advisory on that exact version, or your own block list blocks. Behavioural signals alert or hold. A failed lookup is reported as unverified, never as safe. xyz fix prints an upgrade plan from your lockfile and changes nothing unless you ask. The last command adds the xyz MCP server and an install hook that denies a blocked package in Claude Code. Lockfile installs such as npm ci pass the hook because the proxy checks what they fetch, and if CyberXYZ cannot be reached the hook warns that the package is not verified.

What good looks like

  • Installs run from a lockfile with exact versions, scripts off unless a package needs them.
  • A new dependency an agent adds is looked up first: age, maintainers, a report.
  • Human and agent installs pass through one check that sees the exact version.

Limits

A release nobody has reported has no record, so no check can be certain about it. The axios window shows how short these gaps are: three hours was enough. --ignore-scripts does nothing about code that runs on import, as dotenv-async shows. The CyberXYZ Proxy covers npm, PyPI, Go and NuGet. It does not cover other ecosystems or container images, and it is not a typosquat detector.

8. Editor extensions and marketplaces

// how it runs code

The extension host has the same permissions as the editor.

// first check

List extensions with versions; check the version exists upstream.

// who owns it

The developer; IT for allow-lists.

What it is

An extension adds features to VS Code or an editor built on it, such as Cursor. AI coding agents often ship as extensions. VS Code's documentation says the extension host has the same permissions as VS Code itself: an extension can read and write files, make network requests and run other programs.

How it reaches your machine

From a marketplace, installed by you or updated automatically. Microsoft runs one marketplace, Open VSX another, and some editors run their own. Microsoft says it scans each published extension and that VS Code asks you to confirm trust in a third-party publisher.

What goes wrong

On 29 October 2026, from 02:27 to 13:35 PT (09:27 to 20:35 UTC), Cursor's marketplace served version 2.1.313 and a tampered build of 2.1.312 of Anthropic's Claude Code extension, for macOS and Windows. Anthropic did not build either. Cursor reports that they sent host and user details to an attacker's server, added an attacker's SSH key, installed persistence and tried to open a reverse tunnel. Our registry reads on 30 October 2026 found that npm, GitHub, Open VSX and Microsoft's marketplace never published 2.1.313. The tampered 2.1.312 reused a real version number, so a version check passes it and only a file hash separates the two. Our post has the release table.

How to check

list extensions with versions, check them, and run Cursor's key check
code --list-extensions --show-versions
xyz audit ide
grep -qs svc-telemetry ~/.ssh/authorized_keys && echo "svc-telemetry key found" || echo "No key found; machine not impacted"

The first command is documented by VS Code. Compare each agent extension's version with the project's own releases. xyz audit ide lists the extensions in VS Code, Cursor, Devin Desktop and VSCodium and reports on each. The third command is Cursor's check for the Claude Code incident, and it covers both tampered builds.

What good looks like

  • You know which agent extensions you run and which marketplace each came from.
  • Auto-update for agent extensions is a decision, not a default.

Limits

A version check cannot catch a tampered build that reuses a real version number. xyz audit ide does not read the extension's code, so use the key check above for the Cursor incident.

9. Zero-days: fixed, but no advisory yet

// how it runs code

Not a new way to run code: code you already run has a fixed bug.

// first check

Read release notes; compare installed versions with the latest.

// who owns it

Whoever owns the dependency list.

What it is

The term has two meanings, so we say which one we use. Commonly, a zero-day is a flaw attackers exploit before any fix exists. In this guide, a zero-day is a vulnerability that is already fixed in the code but has no advisory, no CVE and no scanner coverage yet. The maintainers changed a line and shipped a release. Nobody published a notice, so every tool that matches on advisory identifiers reports the old version as clean.

How it reaches your machine

It is already there, in a dependency you installed before the fix. What is missing is any signal that you should upgrade.

What goes wrong

Take node-opcua, a JavaScript implementation of the OPC UA protocol used in factories and buildings. Before version 2.187.23 a server with default settings accepted any self-signed certificate as a valid user login. The maintainers fixed it on 6 November 2026. On 23 November 2026 neither OSV nor the project's advisory page listed an advisory. We did not find the bug. We recognised the change as a security fix with no advisory and reported that to the maintainers on 9 November. They closed the report on 10 November without publishing one. The post explains who is affected, and why upgrading does not remove certificates the old code already saved as trusted.

fig. 8 / node-opcua, November 2026
no advisory listed on 23 November 20261 Nov5 Nov15 Nov20 Nov25 Nov6 Nov maintainersFix commit; 2.187.23 released7 Nov CyberXYZConfirms the fix issecurity-relevant9 Nov CyberXYZReports privately to themaintainers10 Nov maintainersClose the report; no advisorypublished23 Nov CyberXYZPost published; OSV and theproject list no advisorymaintainersCyberXYZ
  1. maintainers Fix commit; 2.187.23 released
  2. CyberXYZ Confirms the fix is security-relevant
  3. CyberXYZ Reports privately to the maintainers
  4. maintainers Close the report; no advisory published
  5. CyberXYZ Post published; OSV and the project list no advisory
fig. 8 · Dates from our node-opcua post (23 November 2026). The shaded span runs from the fix to 23 November, the day we checked OSV and the project's advisory page; we did not check the days in between, and this is not a lead-time claim. The unsafe default is older: node-opcua 2.60.0, published 23 November 2021, is the oldest release we read, and it already had it.

Why it matters more for agents that pick versions. This is our reasoning, not a measurement. A person who reads release notes might notice a fix. An agent that follows a lockfile, a cached environment or an example from its training data keeps the old version, and the scanner gives it no reason to change. Pinning, which the MCP and package sections recommend, freezes you on the old version too. Pair every pin with a regular, deliberate upgrade pass.

How to check

how far behind are the dependencies I run?
npm outdated
pip list --outdated
xyz fix

Read the release notes of whatever is behind, especially for dependencies that handle authentication, certificates, parsing or file access. xyz fix prints a plan of flagged dependencies and the version to move to. CyberXYZ Advisories is our list of security fixes that shipped before any advisory existed, each with an XYZ identifier.

What good looks like

  • Dependencies are upgraded on a schedule, and a person reads the release notes of the ones that guard access.
  • After an upgrade you check for state the old version left behind: trusted certificates, keys, cached credentials.

Limits

CyberXYZ Advisories covers only the packages we track. On 23 November 2026 CyberXYZ Check did not yet use those records in its verdict and returned allow for node-opcua 2.187.22. Since 27 November 2026 it returns alert for that version and names the fixed release, 2.187.23 (checked that day). An alert is a warning, not a block. No list holds every silent fix, and an outdated-dependency check cannot tell a security fix from a feature release.

10. Checklists by team size

Do the smaller list first, then add the next one.

Solo developer

  • Do the eight things in section 1, about half an hour.
  • Keep long-lived publish tokens and cloud keys out of the shell where your agent runs. xyz audit exposure shows what a payload would find.
  • Read any skill, rules file or hook you did not write before the agent can see it.
  • Once a month run xyz audit and npm outdated, and read the release notes of what is behind.

Team of 10

  • Keep one reviewed, pinned .mcp.json per repository. Personal servers stay in each developer's own configuration, after a lookup.
  • Put agent paths (.claude/, .gemini/, .cursor/, .vscode/tasks.json, rules files, .mcp.json, skills) under a named code owner.
  • Fail the build on a high-severity agent autorun finding:
    in CI: fail on high-severity agent autorun findings
    xyz code-scan agents . --fail-on high
  • Route installs from laptops and CI through one check: sudo xyz proxy setup --system on each machine, or xyz ci init to generate the pipeline step.

Company with a security team

  • Set policy centrally. Claude Code supports organization-wide managed policy settings, and an option to ignore allowed-tools in project and personal skills when only managed permission rules should apply.
  • Keep an inventory of skills, MCP servers and agent extensions per machine. When developers are signed in, xyz audit skills and xyz audit mcp upload names, short descriptions, shortened paths, hashes, packages and verdicts, never file contents or arguments, to the CyberXYZ Dashboard. --no-upload keeps it local.
  • Run an internal allow-list of MCP servers and skills, each with a pinned version and a review date.
  • Cover servers and CI runners where agents install unattended, not only laptops.
  • Write down the response plan in section 11, with the rotation order and who can approve a rebuild. Map your inventory to the OWASP supply-chain risks, which list a signed component inventory, verifiable model sources and a patching policy.

11. When something goes wrong

You find a bad skill, an unexpected hook, a malicious package in a lockfile, or an extension you now doubt. Order matters. These steps follow Cursor's notice and our pro-components post.

The first hour

  1. Isolate the machine. Disconnect it from the network. Cursor notes that uninstalling the extension may not be sufficient.
  2. Stop the agent and close the editor. Do not open the repository in another agent.
  3. Keep the evidence. Note the repository, branch, package versions and time. Claude Code keeps session logs under ~/.claude/projects, which show what the agent ran. Copy them first.
  4. Do not revoke tokens yet. Some payloads watch for it. The worm in the pro-components case ran a monitor that wipes the home directory if its stolen GitHub token stops working, per our post. Remove persistence first.

The first day

  1. Find what ran. Look for persistence and added keys.
    persistence and keys on macOS and Linux
    ls -la ~/Library/LaunchAgents 2>/dev/null
    systemctl --user list-unit-files 2>/dev/null
    crontab -l 2>/dev/null
    cat ~/.ssh/authorized_keys 2>/dev/null
    grep -n -A3 '"hooks"' ~/.claude/settings.json 2>/dev/null
    Read the repository's agent files and history (section 5), and list what a payload could reach with xyz audit exposure.
  2. Remove persistence. Delete the launch agents, scheduled tasks, services and keys you found, and any running tunnel. Cursor advises assessing whether to rebuild the host. When in doubt, rebuild.
  3. Rotate credentials from a clean machine, in this order. First anything that can publish or deploy: registry tokens, GitHub and GitLab tokens, cloud keys. Then SSH keys. Then AI provider keys and every secret in that machine's environment variables. Cursor advises rotating the credentials and sessions the host could reach, and our post lists GitHub, npm, cloud and SSH.
  4. Check what those credentials touched. Review recent pushes, releases and publishes for changes you did not make.
  5. Report it. npm: on the package page, click Report malware. PyPI: the project's Security tab. OpenSSF Malicious Packages accepts reports by pull request. A flaw in one of our products goes to security@cyberxyz.io under our disclosure policy.

12. Glossary

Agent
A program that uses a language model to read files, run commands and edit code for you, such as Claude Code, Cursor, Codex, Gemini CLI, VS Code in Copilot agent mode or Devin Desktop.
Agent skill
A folder with a SKILL.md file of instructions, and sometimes scripts, that an agent loads when a task fits.
MCP server
A program that gives an agent outside tools through the Model Context Protocol. Local ones run on your machine, remote ones at a web address.
Hook
A command an agent runs automatically on an event, such as a session starting.
Rules file
A file such as CLAUDE.md or AGENTS.md with standing instructions for an agent.
Folder-open task
A VS Code or Cursor task marked "runOn": "folderOpen", which runs when you open a folder.
Pickle
Python's format for saving objects. Loading one can run code.
Safetensors
A format that stores only tensors, the numbers a model is made of. Loading it does not run code.
trust_remote_code
A Transformers option that lets a model's repository supply the Python code used to load it.
Install script
A command a package runs at install time, such as npm's postinstall.
Lockfile
A file that records the exact version of every dependency.
Pin
To name an exact version instead of "the newest".
Advisory
A published notice that a version of a package has a security flaw. A CVE is one identifier for them.
Zero-day (here)
A vulnerability already fixed in the code but with no advisory, no CVE and no scanner coverage yet. The wider meaning is a flaw exploited before a fix exists.
Persistence
A way for malware to survive a restart, such as a launch agent or scheduled task.

13. Frequently asked questions

Skills and MCP servers

Is it safe to install Claude Code skills from GitHub?

It depends on who wrote the skill: it can run commands as you, so read it first. A skill is a SKILL.md file plus optional scripts that the agent follows. In a February 2026 study, Snyk scanned 3,984 skills from two public registries and, by its classification, found 36.82 percent with at least one security flaw and 76 with confirmed malicious payloads. Invisible Unicode in an instruction file can also steer an agent.

$xyz audit skills
Read the section: Agent skills
Can an MCP server steal my API keys?

Yes, it can: a local MCP server runs as you and can read what you can read. The MCP project warns that local servers run with the client's privileges. Invariant Labs showed that instructions hidden in a tool description can make an agent read SSH keys and pass them along, and a server can change a description after you approved it. Give servers only the credentials they need.

$xyz audit mcp
$xyz audit exposure
Read the section: MCP servers
What does an unpinned MCP server mean?

It means the configuration names a package without a version, so every start installs the newest release. That is the usual npx -y or uvx setup. A malicious release reaches you with no change on your side: for four of the five packages with malicious releases in our registry read, the gap between release and a malware record ran from 1.4 to 55.9 hours. Pin an exact version, and upgrade on purpose, because a pin also freezes you on an old one.

$grep -nE '"(npx|uvx)"' .mcp.json ~/.claude.json ~/.cursor/mcp.json 2>/dev/null
Read the section: MCP servers, how to check
How do I check which skills and MCP servers are installed on my machine?

List the folders and configuration files your agents read, or run one scanner command for each. Skills live in ~/.claude/skills/, in .claude/skills/ inside a project, and in plugin folders. MCP servers are listed by your agent and configured in files such as .mcp.json and ~/.claude.json. Read each skill you did not write, and look for servers started without a version.

$claude mcp list
$xyz audit skills
Read the section: The eight things for this week

Repositories and editors

Can opening a repository in an AI coding agent run code?

Yes: hooks, folder-open tasks and rules files act when a folder opens. On 24 September 2026 a hijacked GitHub Action pushed a worm to six branches of one repository in seven seconds: a Claude Code SessionStart hook and a VS Code folder-open task. VS Code keeps automatic tasks off by default and never runs them in an untrusted workspace. Keep your agent updated: Check Point described Claude Code gaps that were fixed in 2025.

$xyz code-scan agents .
Read the section: Hooks and agent config files
Can a VS Code or Cursor extension be malicious?

Yes: an extension has the same permissions as the editor, and a marketplace can serve a tampered build. On 29 October 2026 Cursor's marketplace served version 2.1.313 and a tampered 2.1.312 of Anthropic's Claude Code extension for about eleven hours. No other registry ever published 2.1.313, and the tampered 2.1.312 passes a version check, so only a file hash tells it apart.

$code --list-extensions --show-versions
Read the section: Editor extensions
Does this apply to Cursor, Codex, Gemini CLI and Copilot too?

Yes: the surfaces are the same, and only the file names differ. Skills sit in ~/.cursor, ~/.codex, ~/.gemini or ~/.agents. MCP servers are set in Cursor's mcp.json, Codex's config.toml and the mcpServers key of Gemini CLI's settings.json. Gemini CLI reads project hooks from .gemini/, VS Code, including Copilot agent mode, runs folder-open tasks, and rules files such as CLAUDE.md and AGENTS.md are standing instructions.

$grep -nE 'npx|uvx' ~/.codex/config.toml .codex/config.toml ~/.gemini/settings.json .gemini/settings.json 2>/dev/null
Read the section: MCP servers, how it reaches your machine

Models and packages

Are Hugging Face models safe to load?

Not always: a model in a pickle-based format can run code when you load it. Python's documentation says malicious pickle data can execute arbitrary code, and Hugging Face says its own pickle scanning is not foolproof. Safetensors files load no code. A custom model needs trust_remote_code=True, which runs the repository's code, so read it at a pinned revision first.

$xyz audit models
Read the section: AI models
What is a hallucinated package?

It is a package name an AI model invents; if someone registers it, the next install pulls their code. In a study to appear at USENIX Security 2025, 16 models generated 576,000 code samples. Hallucinated names appeared in at least 5.2 percent of commercial-model samples and 21.7 percent of open-source-model samples, 205,474 unique names in all. Look a new name up before installing it.

$npm view axios time.created
Read the section: Packages the agent installs
Can an AI agent install a malicious package?

Yes: real packages ship bad releases, and an agent installs without asking. On 31 March 2026 axios 1.14.1 and 0.30.4 were published through a compromised maintainer account and stayed live about three hours. A lockfile install with scripts off removes one route, but not code that runs when a package is imported.

$npm ci --ignore-scripts
Read the section: Packages, what goes wrong

Fixes without an advisory, and response

What is a zero-day in open-source packages, and how is it different from a CVE?

In this guide, a zero-day is a vulnerability already fixed in the code but with no advisory, no CVE and no scanner coverage yet. A CVE is an identifier for a published advisory, so a tool that matches on identifiers reports the old version as clean. The wider meaning of zero-day is a flaw exploited before any fix exists. node-opcua before 2.187.23 is an example: fixed on 6 November 2026, with no advisory on 23 November.

$npm outdated
Read the section: Zero-days
What should I do first if I think an agent ran something malicious?

Disconnect the machine and stop the agent, then remove persistence before you revoke any token. Keep the evidence, including the agent's session logs. Some payloads react to revocation: the worm in the pro-components case wipes the home directory if its stolen GitHub token stops working. Then rotate credentials from a clean machine, starting with anything that can publish or deploy.

$ls -la ~/Library/LaunchAgents 2>/dev/null
Read the section: When something goes wrong
Do I need a paid tool for any of this?

No: every check in this guide has a manual version that uses standard commands. The xyz Scanner commands are an alternative, not a requirement. CyberXYZ's tools add a verdict on packages at install, and commands that list and check skills, MCP servers, models and repository files. xyz audit checks what is installed on this machine, and CyberXYZ Check looks up any package and version.

$xyz audit
Read the section: The eight things for this week

14. Sources

Every external claim links to its source above. This list names each source we opened and what it supports. Package and model reports are at packages.cyberxyz.io.

External sources

  1. Claude Code, Hooks: hook locations, SessionStart, merging, managed policy.
  2. Claude Code, Skills: skill locations, allowed-tools, managed option.
  3. Claude Code, MCP: server scopes, project approval and its non-interactive exception.
  4. Agent Skills specification: the SKILL.md format.
  5. Codex, basic configuration and Gemini CLI, configuration: config file locations.
  6. VS Code, Tasks: folderOpen, automatic tasks default off.
  7. VS Code, Workspace Trust: Restricted Mode.
  8. VS Code, Extension runtime security and Command line: extension permissions, marketplace scanning, listing extensions.
  9. MCP, Security best practices: local server compromise.
  10. Invariant Labs, tool poisoning (1 April 2025).
  11. The postmark-mcp write-up (25 September 2025, Koi's research): the hidden BCC.
  12. Check Point Research, Claude Code project files (25 February 2026).
  13. Pillar Security, Rules File Backdoor (18 March 2025).
  14. Snyk, ToxicSkills (5 February 2026): the skill counts.
  15. Python, pickle, Hugging Face, Pickle scanning, Safetensors, Transformers, Loading models and PyTorch, torch.load: pickle risk, safe formats, remote code, weights_only.
  16. ReversingLabs, malicious models on Hugging Face (6 February 2025).
  17. OWASP, LLM03:2025 Supply Chain.
  18. Spracklen and others, We Have a Package for You! (USENIX Security 2025): hallucination rates.
  19. npm: Scripts, install, npx and Reporting malware. Also uv, Using tools, PyPI, Security and OpenSSF Malicious Packages.
  20. Cursor, Claude Code extension security notice (updated 30 October 2026).

CyberXYZ research and documentation

  1. MCP servers: 70 of 25,169 (27 November 2026), md-doc-mcp (18 November 2026) and node-opcua (23 November 2026).
  2. ant-design/pro-components (15 October 2026), the long tail (20 October 2026), axios and dotenv-async.
  3. Claude Code 2.1.313 in Cursor's marketplace (30 October 2026) and pyannote and lightning (8 September 2026).
  4. AI supply chain and the xyz Scanner documentation. Commands were checked against the scanner README for version 1.4.85.

15. Changelog

  • Version 1.0, 27 November 2026. First release.

We update this guide when a source or command changes or a new incident belongs in it, and each update gets a version, a date and a line here.

16. About this guide

Written by the CyberXYZ Security Team, who build the CyberXYZ Proxy, xyz Scanner and the public package and model reports at packages.cyberxyz.io. We say where our products help and where they do not. Corrections are welcome at hello@cyberxyz.io. Credit for incidents others reported first is in the text and in the sources.


👋
// book a demo

Want to see it block a real attack?

Book 15 minutes. We run real packages through CyberXYZ while you watch, axios 1.14.1 among them, then connect one laptop or one pipeline for a 30-day proof of value.

Add CyberXYZ as a preferred source on Google