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.
All seven surfaces have a dated public incident or study between February 2025 and November 2026.
n CyberXYZ finding or study n other people's work
- 1AI modelsReversingLabs reports two malicious models on Hugging Face
- 2Agent skillsPillar Security publishes Rules File Backdoor (hidden Unicode in rules files)
- 3MCP serversInvariant Labs describes tool poisoning in MCP tool descriptions
- 4MCP serversWrite-up of the postmark-mcp backdoor (Koi's research)
- 5Agent skillsSnyk publishes ToxicSkills, a scan of 3,984 agent skills
- 6Hooks and config filesCheck Point Research publishes its Claude Code project-file findings
- 7Packagesaxios 1.14.1 and 0.30.4 published through a compromised account
- 8AI modelslightning 2.6.6 fixes CVE-2026-58659, the flaw behind eight pyannote models
- 9Hooks and config filesMini Shai-Hulud pushed to six ant-design/pro-components branches
- 10PackagesCyberXYZdotenv-async published, a new variant in a dotenv lookalike campaign
- 11Hooks and config filesCyberXYZCyberXYZ finds 24 more repositories carrying the worm
- 12Editor extensionsCursor marketplace serves tampered Claude Code builds
- 13Fixes without an advisoryCyberXYZnode-opcua 2.187.23 fixes a default with no advisory
- 14MCP serversCyberXYZCyberXYZ reports an unlisted md-doc-mcp copy to OpenSSF
- 15MCP serversCyberXYZCyberXYZ reads the MCP registry: 70 of 25,169 servers listed
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
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
List the MCP servers your agents start.
You will probably find some you forgot.
$claude mcp list$xyz audit mcp - 3
List your agent skills and read the ones you did not write.
$xyz audit skills - 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
Keep VS Code automatic tasks off.
It is the default. Leave Workspace Trust on.
"task.allowAutomaticTasks": "off" - 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
Install with scripts off when an agent does the installing.
$npm ci --ignore-scripts - 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.
| Surface | How it runs code on your machine | What can go wrong | First check | Who owns it |
|---|---|---|---|---|
| Agent skills | The 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 skills | The developer who installs it. The platform team for shared skills. |
| MCP servers | The 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 list | The developer. The team, for a project .mcp.json. |
| Hooks and agent config files | The 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 models | Loading 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 models | ML engineers. The platform team, for approved sources. |
| Packages | Install 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-scripts | The developer. The security team, for policy. |
| Editor extensions | The 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-versions | The developer. IT, for allow-lists. |
| Fixes shipped without an advisory | Not 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 outdated | Whoever owns the dependency list. |
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.
1. Something you did not write
- Skill folders
an instruction in SKILL.md - MCP servers
npx with no version Repository files
a SessionStart hook or a folder-open taskPackages
an install scriptEditor extensions
an update from one marketplaceModel files
a pickle weight file, trust_remote_code
2. The agent or editor acts on it
3. It runs as you, with
- your source code
- your SSH keys
- registry and cloud tokens
- environment variables
- any command you may run
3. Agent skills
The agent follows SKILL.md and can run its scripts and allowed shell commands.
List installed skills and read each SKILL.md.
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 2026Public 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.mdand 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 2025Hidden 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.mdincluded, can carry the same characters.
Data table
| Measure | Skills | Share, as Snyk gives it |
|---|---|---|
| Scanned | 3,984 | |
| At least one security flaw | 1,467 | 36.82% |
| A critical issue | 534 | 13.4% |
| Confirmed malicious payloads | 76 |
How to check
List what is installed, then look for invisible characters, a download piped into a shell, and broad tool permissions.
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 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
The agent starts the server as a local process with your permissions.
List the servers; look for npx or uvx with no version.
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 2025A 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 2026A 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 2026Known 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 2025Tool 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.
Data table
| Group | Servers |
|---|---|
| Install an npm or PyPI package | 25,169 |
| Package has a published advisory or malware record | 70 |
| of which: malicious releases | 5 |
| of which: worst advisory critical | 13 |
| of which: worst advisory high | 37 |
| of which: worst advisory medium | 10 |
| of which: worst advisory low | 5 |
Data table
| Release | Hours to OSV record |
|---|---|
supership-scan 1.0.0 | 55.9 |
postman-mcp-server 2.4.10 | 11.5 |
mcp-server-browserbase 2.4.2 | 11.3 |
paidwithtab 3.0.0 | 1.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
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.
{
"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.jsonare 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
The agent or editor runs a hook or task when a repository is opened.
List a repository's agent files before opening it in an agent.
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 2026A 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
SessionStarthook 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 2026It was not one repository. We found 24 more that no public report named, listed in the long tail.
- 25 Feb 2026The agent had gaps too. In February 2026 Check Point Research described three Claude Code vulnerabilities in which a malicious repository's
.claude/settings.jsonor.mcp.jsoncould 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
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 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.
{
"task.allowAutomaticTasks": "off"
}
What good looks like
- Changes to
.claude/,.gemini/,.cursor/,.vscode/tasks.json, rules files and.mcp.jsonneed 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
Loading a pickle-based weight file can run code.
Check file formats; search for trust_remote_code.
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 riskPickle 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 2025A 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 2026The 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=Trueruns 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
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:
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 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=Truehas 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
Install scripts run at install; other code runs on import.
Look the name up first; install from the lockfile with scripts off.
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 2025Models 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 2026A 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 2026A 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.
- 576,000code samples
- 16models tested
- 205,474unique invented package names
// how the attack works (illustrative, not measured)
- The model invents a package name.
- Someone registers that name on the registry.
- The next install pulls their code.
Data table
| Model group | Share of samples with a hallucinated package |
|---|---|
| Commercial models | at least 5.2% |
| Open-source models | 21.7% |
How to check
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 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
The extension host has the same permissions as the editor.
List extensions with versions; check the version exists upstream.
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
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
Not a new way to run code: code you already run has a fixed bug.
Read release notes; compare installed versions with the latest.
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.
- maintainers Fix commit; 2.187.23 released
- CyberXYZ Confirms the fix is security-relevant
- CyberXYZ Reports privately to the maintainers
- maintainers Close the report; no advisory published
- CyberXYZ Post published; OSV and the project list no advisory
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
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 exposureshows 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 auditandnpm outdated, and read the release notes of what is behind.
Team of 10
- Keep one reviewed, pinned
.mcp.jsonper 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:
xyz code-scan agents . --fail-on high
- Route installs from laptops and CI through one check:
sudo xyz proxy setup --systemon each machine, orxyz ci initto 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-toolsin 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 skillsandxyz audit mcpupload names, short descriptions, shortened paths, hashes, packages and verdicts, never file contents or arguments, to the CyberXYZ Dashboard.--no-uploadkeeps 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
- Isolate the machine. Disconnect it from the network. Cursor notes that uninstalling the extension may not be sufficient.
- Stop the agent and close the editor. Do not open the repository in another agent.
- 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. - 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
- Find what ran. Look for persistence and added keys.
Read the repository's agent files and history (section 5), and list what a payload could reach with
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
xyz audit exposure. - 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.
- 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.
- Check what those credentials touched. Review recent pushes, releases and publishes for changes you did not make.
- 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.mdfile 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.mdorAGENTS.mdwith 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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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
- Claude Code, Hooks: hook locations,
SessionStart, merging, managed policy. - Claude Code, Skills: skill locations,
allowed-tools, managed option. - Claude Code, MCP: server scopes, project approval and its non-interactive exception.
- Agent Skills specification: the
SKILL.mdformat. - Codex, basic configuration and Gemini CLI, configuration: config file locations.
- VS Code, Tasks:
folderOpen, automatic tasks default off. - VS Code, Workspace Trust: Restricted Mode.
- VS Code, Extension runtime security and Command line: extension permissions, marketplace scanning, listing extensions.
- MCP, Security best practices: local server compromise.
- Invariant Labs, tool poisoning (1 April 2025).
- The postmark-mcp write-up (25 September 2025, Koi's research): the hidden BCC.
- Check Point Research, Claude Code project files (25 February 2026).
- Pillar Security, Rules File Backdoor (18 March 2025).
- Snyk, ToxicSkills (5 February 2026): the skill counts.
- Python, pickle, Hugging Face, Pickle scanning, Safetensors, Transformers, Loading models and PyTorch, torch.load: pickle risk, safe formats, remote code,
weights_only. - ReversingLabs, malicious models on Hugging Face (6 February 2025).
- OWASP, LLM03:2025 Supply Chain.
- Spracklen and others, We Have a Package for You! (USENIX Security 2025): hallucination rates.
- npm: Scripts, install, npx and Reporting malware. Also uv, Using tools, PyPI, Security and OpenSSF Malicious Packages.
- Cursor, Claude Code extension security notice (updated 30 October 2026).
CyberXYZ research and documentation
- MCP servers: 70 of 25,169 (27 November 2026), md-doc-mcp (18 November 2026) and node-opcua (23 November 2026).
- ant-design/pro-components (15 October 2026), the long tail (20 October 2026), axios and dotenv-async.
- Claude Code 2.1.313 in Cursor's marketplace (30 October 2026) and pyannote and lightning (8 September 2026).
- 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.