Skip to main content Switch to mobile version cyberxyz-scanner 1.4.89 xyz Scanner by CyberXYZ: supply-chain security for your machines, projects and CI (install-time proxy, audits, CI gate, code scanning, MCP for AI coding agents)
pip install cyberxyz-scanner==1.4.89 Copy PIP instructions
xyz Scanner by CyberXYZ. Real-time supply-chain protection for npm, PyPI, Go and .NET (NuGet) on macOS, Linux and Windows.
The CLI pairs with the CyberXYZ platform to give you per-machine package inventory, proxy enforcement on every npm, pip, go and dotnet install, and CI/CD gating on flagged dependencies. It is the implementer's interface to a platform that also exposes the same controls in a web dashboard.
Full documentation: cyberxyz.io/docs/cli covers install, login, proxy setup, every audit subcommand, API key auth, CI/CD integration, config / env vars, and troubleshooting. This README is the quick start.
One line installs xyz Scanner and signs you in; setup runs at the end of the sign-in:
curl -fsSL https://cyberxyz.io/install.sh | sh # macOS / Linux irm https://cyberxyz.io/install.ps1 | iex # Windows PowerShell The package is published on PyPI as cyberxyz-scanner; the command it installs is xyz. To install it yourself:
pipx install cyberxyz-scanner # or: pip install cyberxyz-scanner / uv tool install cyberxyz-scanner xyz login Quick start (one-time per machine)
# Sign in and set this machine up, in one command. It opens your browser at # app.cyberxyz.io (password + authenticator app or passkey, or SSO); check the # code matches the terminal and approve. The CLI never sees your password. Then: # - registers the device with your organization # - points npm (~/.npmrc), pip, Go (GOPROXY) and NuGet at the CyberXYZ Proxy, # for each one that is installed # - asks once whether to install the xyz agent as a system service (answer # yes; sudo asks for your password). The agent keeps every package manager # routed and runs the dashboard's "Scan now" jobs. xyz login xyz login --no-setup only signs in; xyz proxy setup --machine-name "Alex's MacBook" runs setup on its own (for example under a different machine name). In scripts and CI, xyz login signs in only, unless you pass --setup.
Upgrades keep the setup. xyz upgrade installs the latest release and then checks the machine: every package manager still routed through the CyberXYZ Proxy (repaired if it drifted), the xyz agent installed (offered once if it is not; a "no" is remembered) and restarted onto the new version. After pipx upgrade or pip install -U, the first xyz command you run in a terminal does the same check once. xyz proxy ensure runs it on demand. It never touches a project's own config, and after xyz proxy remove it leaves the machine alone until you run xyz proxy setup again.
Over SSH or on a headless box, xyz login --no-browser prints the link and code to open on any other device (the browser is also skipped automatically when SSH_CONNECTION is set or Linux has no display). The legacy email and password prompt is still available as xyz login --password (or $XYZ_EMAIL / $XYZ_PASSWORD for scripts); accounts with MFA or an SSO-enforcing organization must use the browser login. xyz logout revokes the session on the server and removes it locally.
The CLI session stays signed in while you use it and expires after 90 days without use. While the CyberXYZ agent runs on the machine it refreshes the session daily, so you only sign in once; a machine that stays off for 90 days signs out. It is stored owner-only in ~/.xyz/config.json. Each machine's session is listed under Settings > CLI sessions in the dashboard, where you (or an org admin) can revoke it. Login codes expire after 10 minutes and work once: only approve a code you just requested yourself, never one someone sent you.
That's it. Every later install on this device goes through the CyberXYZ proxy: the exact package version is checked before it downloads, blocked or quarantined packages are refused with the reason, and the install shows up in your dashboard.
For fleets, skip the interactive login: an org admin creates an enrollment token with xyz proxy enrollment-token --label "Jamf" --max-uses 200 (shown once), and MDM runs curl -fsSL https://cyberxyz.io/install.sh | sh -s -- --enroll-token pxe_xyz_... as root, or sudo xyz proxy setup --system --enrollment-token pxe_xyz_... where xyz Scanner is already installed (or places the token at /Library/Application Support/CyberXYZ/enrollment-token).
For environments that should not run a long-running background process (CI build agents, sealed builds), pass --no-agent (--no-install-daemon still works).
On company-managed machines, install the agent at system level so developers cannot stop it:
sudo xyz proxy setup --system # macOS / Linux xyz proxy setup --system # Windows, from an elevated PowerShell The agent runs only code a user account cannot change: the signed package's /opt/cyberxyz/bin/xyz, or its own copy of xyz Scanner in /opt/cyberxyz/scanner (C:\Program Files\CyberXYZ\scanner on Windows), built with a Python only root can change (sudo asks once; Windows asks for approval). Setup checks ownership and permissions before it starts the agent; xyz proxy ensure moves an older install there and refreshes the copy after upgrades (1.4.83).
This installs a root/SYSTEM service (macOS LaunchDaemon io.cyberxyz.agent, Linux cyberxyz-agent.service, Windows scheduled task CyberXYZAgent) that starts at boot and restarts if it is killed. The macOS .pkg does the same, and enrolls automatically when MDM places an enrollment token at /Library/Application Support/CyberXYZ/enrollment-token. Run in a terminal without --system, setup asks whether to install the system service (default yes). Yes builds the agent's root-owned copy and runs its setup through sudo (one password); on Windows it asks for administrator approval, and prints the command for an elevated PowerShell if that is declined. No, or a run without a terminal (CI, MDM, scripts), installs the per-user service (LaunchAgent on macOS, systemd --user on Linux, a logon task on Windows), which the developer can stop. When the system service is already installed, setup does not add a per-user one next to it.
Remote scans ("Scan now"). An org admin can run a scan from the dashboard; the agent picks it up within a minute (or when the machine next checks in, up to 7 days later). Run as the system service, a scan covers every interactive user on the machine (macOS /Users, Linux /etc/passwd and /home, Windows C:\Users): npm global installs and project lockfiles, Python site-packages and environments, the Go module cache, NuGet packages, IDE and browser extensions, plus the machine-wide installs and system packages. Each package is labelled with its user. The agent reads files and never runs a tool in a user's context; as root it reads only files the user owns and never follows a symlink. Every ecosystem has a time budget (XYZ_REMOTE_SCAN_SECONDS, default 150) and reports ok, nothing to check, failed or timed out; the dashboard shows the result per ecosystem. Results upload with the machine's token, so no user API key is needed. On macOS, ~/Desktop, ~/Documents, ~/Downloads and the browser profiles stay hidden from the agent until it has Full Disk Access. xyz proxy access says whether the agent can read them, which binary to add under System Settings > Privacy & Security > Full Disk Access, and opens that page. Fleets: install the signed .pkg and approve it with the CyberXYZ PPPC profile from your MDM, and nobody is asked. On a single Mac, add /opt/cyberxyz/bin/xyz (the signed agent from the .pkg) once; granting Full Disk Access to Homebrew's or pipx's Python would grant it to every Python script. The scan names the folders it could not read.
If the platform rejects the machine token (for example because the machine was registered again), the agent repairs it on its own: it switches to a newer token it finds on the machine, or registers again under the same machine name with a local user's xyz login. When it cannot, its log says why and what to run, and it retries after 1, 2, 5 and then every 15 minutes. When the platform cannot be reached it backs off and keeps trying. Every line of the agent's log (/var/log/cyberxyz-agent.log for the macOS system service) starts with a UTC timestamp.
Always-on protection
Every minute the background agent checks what each package manager will actually use, repairs anything that no longer points at the CyberXYZ proxy, and reports the result to the dashboard with its heartbeat. Repairs never remove a private or internal registry, and config files are only written for tools that are installed:
The system-level agent does this for every local user account, writing files owned by that user. The machine token is stored where the agent can always read it (/Library/Application Support/CyberXYZ/machine-token, /etc/cyberxyz/machine-token, %ProgramData%\CyberXYZ\machine-token, or ~/.xyz/machine-token per user), so deleting a config file only gets it rewritten. Registry overrides in shell startup files (NPM_CONFIG_REGISTRY, PIP_INDEX_URL, GOPROXY=direct, ...) and in the Windows user environment are reported, never edited.
Poetry. Poetry reads its package source per project ([[tool.poetry.source]]) and has no machine-wide index or mirror setting in Poetry 1.8 or 2.5 (python-poetry#1632). pip.conf, PIP_INDEX_URL and poetry config repositories.* do not change where it installs from. Two ways to cover it:
the network lock: Poetry then cannot reach pypi.org, so its installs fail instead of going around the proxy;
or route it through the proxy with the third-party poetry-plugin-pypi-mirror plugin. xyz never installs it (it runs inside every Poetry command); you install it:
poetry self add poetry-plugin-pypi-mirror==0.6.5 # Poetry 2.1 to 2.5 poetry self add poetry-plugin-pypi-mirror==0.4.3 # Poetry 1.3 to 1.8 # Poetry installed with pipx: pipx inject poetry poetry-plugin-pypi-mirror==0.6.5 (poetry self add fetches the plugin from pypi.org itself, so it fails while the network lock is on; pipx inject goes through pip, so through the proxy.) Within a minute the agent writes the plugin's proxy URL and credentials into your user Poetry config (never a project's files) and keeps them correct. The system agent only looks inside each user's home for Poetry and its plugin. It reports Poetry as routed only when every Poetry installation it finds has one of these two builds, with files matching the release CyberXYZ reviewed, for that Poetry version; anything else stays "not routed", with the reason, and the agent then writes nothing (a mismatched build would break Poetry once its URL is set). A project that names its own source (a private index, or pypi.org directly) still uses that source, as with pip. xyz proxy remove takes the URL and credentials out again; the plugin stays until poetry self remove poetry-plugin-pypi-mirror.
Network lock. When an org admin turns it on, the system-level agent also maps the public registries (registry.npmjs.org, registry.yarnpkg.com, registry.npmmirror.com, pypi.org, files.pythonhosted.org, proxy.golang.org) to 0.0.0.0 in the hosts file, so tools that ignore config still cannot reach them. NuGet is not locked yet (it relies on config). Edits to the lock are reverted and reported, and the block is removed when the org turns it off.
xyz proxy remove and uninstalling the service are reported to the dashboard before anything is removed. Under the system service, only an administrator can remove it (sudo xyz proxy remove). xyz proxy status shows the per-tool report, the service level, the network lock state, when the agent last reported, and whether the agent is running the CLI version that is installed. It works without sudo under the system service: config tokens are compared with a fingerprint (sha256) the service publishes, never with a per-user copy.
Upgrades. pip install -U / pipx upgrade cannot restart a root service. The agent (1.4.66+) notices the new version on disk and restarts onto it by itself within a few minutes, between jobs. sudo xyz proxy restart does it immediately; the first CLI run after an upgrade says so when the system agent is still on older code.
If CyberXYZ is unreachable
The proxy reuses its verdict for any package it checked in the last 24 hours. For anything else, your org's setting decides: block (the default; the developer sees "retry in a minute") or allow unchecked. Org admins change it in Settings > Supply-chain proxy.
Scan everything on this machine
xyz scan # every ecosystem (the same as a bare `xyz audit`) xyz scan --npm --python # only those xyz scan --no-upload # check here, upload nothing xyz scan --output scan.sarif # the risky packages as SARIF (GitHub code scanning) xyz scan runs the scan the xyz agent runs for the dashboard's Scan now, here and as you: npm, pnpm, yarn and bun (global installs and project lockfiles), Python (system and user site-packages, and every virtual environment: venv, uv, Poetry, conda, pipx), Go (the module cache), NuGet (the global packages folder and lockfiles), system packages (Homebrew, apt, rpm, Chocolatey, apps), and IDE and browser extensions. Each ecosystem gets one honest result: scanned (with its package count and risky packages), nothing to check (and why, e.g. "no Go module cache in 1 home"), not scanned (and why, e.g. macOS privacy protection, an upload refused), or timed out (what was found before the limit is kept). The inventory is checked against CyberXYZ and uploaded. On a machine whose system agent keeps the inventory (it scans every user), your xyz scan goes to your scan history only, with your sign-in, and never replaces the machine's inventory; without a sign-in nothing is uploaded. As root (sudo xyz scan), or with no system agent, it is the machine's scan. To look up one package: xyz package NAME (xyz scan -p NAME runs it).
Until 1.4.83 xyz scan asked the API server to scan its own packages; that mode is gone.
Audit installed packages
Each command below audits the matching ecosystem on this machine, runs the CyberXYZ watchlist + deep check on suspect packages, and uploads the full inventory to the platform.
xyz audit npm # local + global node_modules xyz audit python # active Python environment via pip xyz audit venvs # every virtualenv / conda / pipx environment on the disk xyz audit go # modules of the current Go module / GOPATH xyz audit nuget # packages.lock.json files under cwd xyz audit ide # VS Code / Cursor / Windsurf / VSCodium extensions xyz audit browser # Chrome / Edge / Brave / Firefox extensions xyz audit system # Homebrew, apt, rpm, winget, Chocolatey, macOS apps xyz audit models # AI model files and Hugging Face references (see below) xyz audit mcp # MCP servers your AI agents start: package, pinned or not, verdict xyz audit skills # agent skills installed for you (personal, installed plugins, project), checked (see below) xyz audit exposure # credentials an install-time payload could steal here (see below) xyz audit # everything, the same as `xyz scan` A bare xyz audit is xyz scan (NuGet included); models, mcp, skills and exposure run only when named.
By default each command uses the watchlist pre-filter for speed (~25-40s on a typical machine). Pass --full to skip the pre-filter and deep-check every package (slower but covers advisory-only matches at scan time).
Conda environments (1.4.70+): a Python package that conda installed from an Anaconda or conda-forge channel is not a PyPI package, so xyz audit python / venvs tell the API where it came from. A conda-only name that PyPI does not have (for example anaconda-anon-usage) is listed as ? name@version not checked: conda channel defaults instead of being quarantined as "not on the public registry"; there is no conda registry we index to check it against. Known-malicious and advisory checks still run by version, and anything pip or uv installed into a conda env gets the full PyPI checks. A package counts as conda-installed only when its INSTALLER file says conda and the env's conda-meta/ records it.
xyz audit exposure: what an install-time payload could steal
The Shai-Hulud and Hades waves ran a payload from npm/PyPI install hooks that read every environment variable, ~/.npmrc tokens, cloud credentials and CI secrets, then published itself with what it found. xyz audit exposure lists what such a payload would find on this machine or in this CI step:
xyz audit exposure # table xyz audit exposure --json -o exposure.json xyz audit exposure --fail-on high # CI gate: exit 1 on a high item Category What is checked High when env environment variables whose name (*_TOKEN, *_SECRET, *_PASSWORD, *_API_KEY, AWS_*, PYPI*, NPM_TOKEN, NODE_AUTH_TOKEN, TWINE_PASSWORD, GITHUB_TOKEN ...) or value (npm, PyPI, GitHub, GitLab, AWS key shapes, URLs with a password) looks like a credential publish token or cloud key ci GitHub Actions / GitLab / Azure Pipelines: GITHUB_TOKEN, ACTIONS_ID_TOKEN_REQUEST_URL (= id-token: write), how many secret-looking variables this step sees OIDC token request granted npm _authToken / _auth / _password in ~/.npmrc (or NPM_CONFIG_USERCONFIG) and the project .npmrc; npmAuthToken in .yarnrc.yml always (publish token) pypi password in ~/.pypirc always netrc ~/.netrc (_netrc on Windows) machine passwords github.com, gitlab.com, npm, PyPI hosts docker inline auths in ~/.docker/config.json; a credsStore / credHelpers is listed as a safer setup always aws ~/.aws/credentials and config: static keys (high), session keys (medium), SSO (safer setup) static key gcloud application_default_credentials.json, legacy_credentials/*/adc.json, credentials.db, GOOGLE_APPLICATION_CREDENTIALS refresh token or service-account key kube kubeconfig (KUBECONFIG list) embedded token, client-key-data, password; exec plugins are a safer setup embedded credential gh oauth_token in the gh CLI hosts.yml (keyring = safer setup) always git ~/.git-credentials publish hosts ssh private keys in ~/.ssh without a passphrase (only the key header is read) never (medium) Each item is reported by name, location (your home shown as ~) and a fingerprint: the first 8 hex characters of sha256(value), enough to see the same token in two places, not enough to recover it. Values are never printed, written to a file or uploaded; the audit is offline, read-only and starts no processes. In CI it also prints what to change: run installs with --ignore-scripts, keep permissions: minimal (grant id-token: write only to the deploy job, pass secrets to the one step that needs them) and route installs through the proxy with xyz ci protect. Exit codes: 0, or 1 when an item is at or above --fail-on (default none, report only).
Fix, blast radius, SBOM and AI models (1.4.62+)
All four read the manifests and lockfiles in the current directory, the same ones depalert scan reads: package.json / package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock, requirements*.txt, Pipfile / Pipfile.lock, pyproject.toml / poetry.lock / uv.lock, go.mod / go.sum, and NuGet packages.lock.json.
xyz fix: an upgrade plan for flagged dependencies
xyz fix # plan only: package, current, issue (KEV badge), → target, why xyz fix --write # show a unified diff, confirm, then edit the specs xyz fix --write --yes # no prompt (CI bots) xyz fix --json Every package is checked in one /proxy/check/batch call. For each flagged one (block, quarantine, alert, or any advisory) the plan gives the nearest clean release above the installed version. A clean installed version is never told to move. A transitive package is traced to the direct dependency that pulls it ("via express → debug, bump express"); transitive pins are never edited.
--write edits only direct dependency specs: package.json (keeps ^ / ~ / >= and the file's formatting; complex ranges are listed for a manual edit) and == pins in requirements*.txt (extras, markers and comments kept; hash-pinned lines are left for pip-compile). Lockfiles are never touched: run npm install, poetry lock, uv lock or pip-compile afterwards. Exit codes: 0 plan complete, 1 a flagged package has no clean target, 4 could not check (backend unreachable, or no credential).
xyz impact: who is exposed when a package goes bad
xyz impact debug --version 2.6.8 # ecosystem guessed from the project, else npm xyz impact requests -e pypi --json Prints the direct dependents and whether each declared range admits the affected version, how many packages reach it on a required path vs only through an optional extra, and the top paths. Run inside a project, it also says whether this project reaches it and through which direct dependency. "Not yet indexed" means the path is unknown, not that there is none.
xyz sbom: CycloneDX 1.5 or SPDX 2.3
xyz sbom -o sbom.cdx.json # CycloneDX 1.5 JSON with a vulnerabilities section xyz sbom --format spdx -o sbom.spdx.json # SPDX 2.3 JSON xyz sbom --no-verdicts # components only, no network call Components carry a purl (pkg:npm/…, pkg:pypi/…, pkg:golang/…, pkg:nuget/…), the version and a scope (required / optional; dev dependencies are excluded), and the dependency graph comes from the lockfile when it records one. Vulnerabilities list the advisory ids, CVSS and EPSS ratings, a cyberxyz:kev property for CISA KEV entries, and the safe version as the recommendation.
xyz audit models: AI model artifacts
xyz audit models # cwd + the Hugging Face cache xyz audit models ./ml --no-hf-cache xyz audit models --aibom -o aibom.cdx.json # CycloneDX 1.6 ML-BOM Finds model files (.safetensors .bin .pt .pth .ckpt .gguf .onnx .pkl .h5) and hashes them with a streamed sha256 (files over --max-hash-size are listed as UNHASHED), Hugging Face references in code (from_pretrained, hf_hub_download, pipeline(model=…), snapshot_download, flagging trust_remote_code=True), and models in ~/.cache/huggingface/hub. Files are never loaded or unpickled. The table shows each repo or file with its verdict, load safety, trust_remote_code and reasons. NOT WATCHED, PENDING and UNSCANNED are not verdicts. Exit 1 when anything is MALICIOUS.
xyz audit skills: installed agent skills
xyz audit skills # personal, plugin and current-project skills xyz audit skills --usage # also when each was last used (reads Claude Code session logs) xyz audit skills --json xyz audit skills --show NAME # one skill in full: origin, findings, files with line numbers xyz audit skills --no-content # do not collect the files of flagged skills xyz audit skills --no-upload Lists the skills your AI agents can load: ~/.claude, ~/.agents, ~/.cursor, ~/.gemini and ~/.codex under skills/, skills in the Claude Code plugins you installed, and the skills of the current folder. Plugin skills come only from ~/.claude/plugins/installed_plugins.json; the plugin catalogs Claude Code keeps in ~/.claude/plugins/marketplaces are never read (1.4.85 listed them by mistake). If the installed list cannot be read, only ~/.claude/plugins/cache is read and the report says so. Plugin rows show the plugin, marketplace, version, install scope and whether enabled in ~/.claude/settings.json (unknown when the plugin is not listed there). Each gets the checks xyz code-scan agents applies to a skill in a repository (hidden text, a download piped into a shell, encoded or very long inline code, payload and known-worm checks on its scripts); git history is not consulted. Identical plugin copies (several cached versions) are one row with a count. Files are only read, never run. Exit 1 on a high or critical finding. xyz audit skills and xyz audit mcp upload their inventory to the dashboard when you are signed in; --no-upload or XYZ_NO_UPLOAD=1 keeps it local. xyz audit mcp sends names, shortened paths, hashes, packages and verdicts only, never file contents, env values, arguments or URLs. xyz audit skills sends names, short descriptions, shortened paths, hashes, rule ids, per finding a title, why it matters and what to do, and for every skill where it came from (origin). What leaves the machine, by skill: for a skill with a finding above info severity, the SKILL.md and the scripts it names (or that have a finding) are sent in full, bounded (12 files, 64 KiB per file, 256 KiB per skill, 2,000 lines of 400 characters, 40 skills per report) and scrubbed for credentials, hidden characters written as . Skills without such a finding send no file content. With --no-content (or XYZ_SKILL_CONTENT=0) only the flagged line and the two lines around it are sent. With --no-upload nothing is sent. This investigation view is on by default. The other scripts in a flagged skill's folder are listed with path, size and sha256 only.
xyz audit skills --show NAME (or plugin:NAME) prints one skill in full instead of the table: its origin, its findings, and its files with line numbers, ! marking a flagged line and > a line of SKILL.md that tells the agent to run a script. The table has a From column.
Origin says where a skill came from, read from small files only (no git binary, nothing is run): a Claude Code plugin install (installed_plugins.json for the commit and dates, known_marketplaces.json for the marketplace's repository), the skills installer's lock file (~/.agents/.skill-lock.json, matched by folder name), a git checkout (.git/config, HEAD and ref files; never above the tool's skills folder for personal skills), a link to another folder, or otherwise a local folder (with the SKILL.md modification time as modified_at, not an install date). Repository URLs are shown as host/owner/repo with credentials, query and fragment removed; anything that is not a plain https or ssh git URL is dropped. For a plugin the repository is the marketplace's, not necessarily the plugin's own upstream.
xyz audit skills --usage (off by default) also shows when each skill was last used. It reads the Claude Code session logs on this machine (~/.claude/projects), streaming and within limits (2,000 newest files, 64 MB per file, 1 GB in all, lines over 1 MB skipped), and takes from them only skill names, dates and counts; no project names, session ids, paths or message text are kept, printed or uploaded. A Claude Code skill with no use in those logs shows "no use found" (logs are deleted over time, so this is not proof it was never used); when a limit is hit or a log cannot be read it shows "unknown" and the report says usage may be incomplete. Skills of other agents (Cursor, Codex, Gemini CLI, .agents) are always "unknown": xyz Scanner does not read their histories. With --usage the upload adds usage (used, never or unknown), last_used (a date) and uses (a count) per skill.
When an advisory is in CISA's Known Exploited Vulnerabilities catalog, a bold KEV marker leads the score cell in depalert scan, the vulnerability tables and the xyz fix plan, and SARIF results carry "kev": true (plus a kev rule tag).
Use CyberXYZ from AI coding agents (MCP)
xyz mcp serve is a Model Context Protocol server: Claude Code, Cursor, VS Code (Copilot agent mode), Windsurf, Codex CLI and Gemini CLI call it to check packages, vulnerabilities, dependencies and AI models before they add or install anything. It uses your xyz login session (or XYZ_API_KEY), needs Python 3.10+ (the mcp package installs automatically there), and only ever speaks the protocol on stdout.
xyz mcp install --client claude-code --hooks # MCP server + install hook, user scope xyz mcp install --client cursor --scope project --rules xyz mcp install --client all --dry-run # show every diff, change nothing xyz mcp status # which clients are configured, does auth work xyz mcp serve --tools # list the tools Client --scope user --scope project claude-code claude mcp add --scope user (else ~/.claude.json) claude mcp add --scope project (else .mcp.json) cursor ~/.cursor/mcp.json .cursor/mcp.json vscode printed (code --add-mcp … / MCP: Open User Configuration) .vscode/mcp.json (servers, type: stdio) windsurf ~/.codeium/windsurf/mcp_config.json global only codex ~/.codex/config.toml [mcp_servers.cyberxyz] global only gemini ~/.gemini/settings.json .gemini/settings.json Files are merged, never overwritten (other servers and settings stay), the previous version is kept as .bak, and a file that is not plain JSON (comments) is left alone with the snippet printed. --rules adds the CyberXYZ dependency policy where the agent reads rules (CLAUDE.md, AGENTS.md, GEMINI.md, .github/copilot-instructions.md between markers, after asking; .cursor/rules/cyberxyz.mdc, .windsurf/rules/cyberxyz.md).
Plus the cyberxyz-dependency-policy prompt and resource: check before adding, never install block / quarantine, prefer the safe version, unknown needs a human, never trust_remote_code or pickle-load a model that is not CLEAN.
Install hook (Claude Code). --hooks adds a PreToolUse hook on Bash that runs xyz hook check-install: npm|pnpm|yarn|bun add/install
Lookups from the MCP server and the hook identify themselves (X-XYZ-Client: mcp / agent-hook) so the platform can keep them out of the install log: asking about a package is not installing it.
Which installs did an agent make? (1.4.71+). Coding agents set a marker in the shells where they run commands (AI_AGENT, CURSOR_AGENT, CODEX_THREAD_ID, COPILOT_AGENT, GEMINI_CLI, ...). The CLI sends it as X-XYZ-Agent. For npm and pip, opt in with xyz proxy agent-hints --enable (or xyz proxy setup --agent-hints): in an agent's shell npm and pip then add xyz-agent/
Other useful commands
# One-off safety check on a single package + version xyz check axios 1.14.1 -e npm # CI/CD gate. Non-zero exit on flagged packages. xyz depalert scan --package-lock package-lock.json --fail-on block xyz depalert scan --yarn-lock yarn.lock # yarn 1 classic and yarn 2-4 (berry) xyz depalert scan --pnpm-lock pnpm-lock.yaml # lockfileVersion 5.x, 6.x, 9.x xyz depalert scan --bun-lock bun.lock # text lockfile; not the binary bun.lockb xyz depalert scan --requirements requirements.txt --fail-on quarantine xyz depalert scan --requirements poetry.lock # also Pipfile.lock, uv.lock xyz depalert scan --go-sum go.sum xyz depalert scan -p axios@1.14.1 -p lodash@4.17.21 # SBOM upload (runs syft on a path, or takes a Syft / CycloneDX JSON SBOM) xyz inventory upload ./my-app xyz inventory upload --sbom syft.json # Diagnostic / housekeeping xyz --version xyz proxy status # proxy config per tool, service level, network lock xyz proxy whoami # what (org, machine) does my token resolve to xyz proxy restart # restart the agent onto the installed CLI (sudo for the system service) xyz proxy remove # restore default registries (reported to your dashboard) xyz scans list # history of recent scans for your org xyz upgrade # latest release, then repair the routing and restart the agent xyz proxy ensure # the same check on demand (routing, agent, restart) xyz proxy access # macOS: give the xyz agent Full Disk Access Code, IaC, secrets and image scanning (code-scan)
xyz code-scan runs open-source scanners installed on your machine (it can install missing ones with your own package manager, after asking) and merges what they report into one table, JSON document or SARIF 2.1.0 file. It works without logging in; when you are signed in the results also go to your CyberXYZ dashboard (--no-upload or XYZ_NO_UPLOAD=1 to opt out; secret values are never sent). For installed packages use xyz audit.
Run it from a project. /, your home, the temp directory, or a folder with no project markers (.git, package.json, pyproject.toml, go.mod, *.csproj, ...) is scanned only after a yes on a terminal; in CI or without a terminal it is refused unless --force-target.
xyz code-scan secrets . # hardcoded credentials (values always redacted) xyz code-scan iac ./infra # Terraform, CloudFormation, Kubernetes, Helm, Dockerfile xyz code-scan image python:3.11-slim --sbom sbom.cdx.json # vulns + misconfig + secrets, CycloneDX SBOM xyz code-scan code . # SAST with the built-in xyz rules xyz code-scan code . --config ./my-rules.yml # add your own opengrep rules xyz code-scan ci . # GitHub Actions / GitLab CI / Azure Pipelines hardening (built in) xyz code-scan agents . # code AI agents and editors run when the checkout is opened (built in) xyz code-scan all . --format sarif -o xyz.sarif --fail-on high xyz code-scan engines # which engines are installed, versions, paths Command Engine Fallback / option secrets gitleaks (dir on 8.19+, detect --no-git before) trivy fs --scanners secret, or --engine trivy; --history adds gitleaks git (no trivy fallback) iac trivy config checkov with --engine checkov image trivy image (vuln, misconfig, secret) --sbom FILE writes CycloneDX code opengrep + built-in xyz rules + any --config without opengrep: bandit for Python, gosec for Go ci built in (no engine) --first-party-pins off|info|low|medium|high (default info) agents built in (no engine) all secrets + iac + code + agents, merged (--include-ci adds ci; default from the next minor) --skip-missing runs whatever is installed; add --fail-on-partial to exit 5 when a scanner was skipped The built-in rules (xyz_cli/rules/) cover supply-chain patterns: shell=True and os.system with dynamic commands, eval/exec of downloaded data, curl | sh in scripts, CI files and Dockerfiles, pickle.load, torch.load without weights_only=True, trust_remote_code=True, hardcoded cloud keys and private keys, disabled TLS verification (verify=False, NODE_TLS_REJECT_UNAUTHORIZED=0, InsecureSkipVerify), child_process.exec with template strings, and npm install scripts that download binaries. Without opengrep the built-in rules do not run and xyz says so.
CI pipeline hardening (ci). Supply-chain attacks now land in the pipeline itself: a third-party action whose tag is moved to malicious code (tj-actions/changed-files), a pull_request_target workflow that builds a fork's code with the repository's secrets, an issue title pasted into a shell script, a postinstall hook that reads the deploy token from the job's environment (Shai-Hulud). Trivy and Checkov barely look at workflow files, so xyz code-scan ci checks them itself: it parses .github/workflows/*.yml, action.yml, .gitlab-ci.yml and azure-pipelines*.yml and needs nothing installed. Findings are category iac (they go to the dashboard's IaC tab) with rule ids:
A trigger counts as "anyone can fire it" unless every activity type it lists needs a maintainer (issues: types: [labeled] alone does not count; opened or edited does). The message says which events and which token. This is the shape of the September 2026 ant-design/pro-components incident: an issues: [opened, edited] workflow with the default token ran actions-cool/issues-helper@v2.2.0 after that tag was pointed at a malicious commit.
Safe patterns are not reported: ${{ github.event.pull_request.number }} or head.sha in a script, untrusted values passed through env: and used as "$TITLE", and actions/checkout in a pull_request_target workflow without a pull-request ref:. Put # xyz:ignore (or # xyz:ignore[rule-id]) on a line to accept a finding. Fix guidance is in each message; the SHA to pin to is not looked up (the check is offline).
Agent and editor autorun (agents). Claude Code and Gemini CLI run the hook commands in a project's .claude/ or .gemini/ settings.json; VS Code and Cursor run a .vscode/tasks.json task marked runOn: folderOpen; agents follow standing instructions in CLAUDE.md, AGENTS.md, .cursor/rules/*.mdc and the like. The Mini Shai-Hulud worm commits exactly these: a SessionStart hook and a folderOpen task that both run node .claude/setup.mjs, which starts .claude/index.js, one obfuscated line of about 500 KB. Opening such a checkout runs the payload. xyz code-scan agents reads those files (it reads and hashes scripts, never runs them) with the same patterns and the same 5,000-character payload line as the CyberXYZ commit watcher. Findings are category iac and tagged agents:
Severity follows the commit watcher's ladder:
Commit signals come from local git, from the commit that last changed the autorun file; a shallow clone's boundary commit (CI's default depth 1) says nothing and is skipped.
all runs agents by default. Gate on --fail-on high to fail on drops and print plain hooks that run your own scripts (xyz ci init and the GitHub Action do).
Accepting a reviewed hook. Put xyz:ignore[rule-id] in a comment on the finding's line where the format has comments: // xyz:ignore[agent-folder-open-task] in .vscode/tasks.json (JSONC), in markdown. The rule id is required. Claude Code and Gemini settings are strict JSON, so for those add an entry to .xyz-ignore.yml at the root of the scanned directory:
agents: - rule: agent-hook-command path: .claude/settings.json command: '"$CLAUDE_PROJECT_DIR"/.claude/hooks/lint.sh' reason: our lint hook, reviewed 2026-10-14 An entry accepts that rule, file and exact command (spacing aside), nothing else: a hook the worm merges into the same settings.json is a new finding, and an entry that no longer matches is reported as a warning. Critical findings are never accepted, inline or in the file.
Common options: --format table|json|sarif, -o FILE, --fail-on critical|high|medium|low|none (default low, meaning any non-info finding fails), --timeout SECONDS per engine (default 900). Severities are normalised to critical/high/medium/low/info, paths are relative to the scanned directory, and duplicate findings are merged, including the same secret found by two engines. Secret values are never printed in any format; secret findings carry no snippet. SARIF suppressions (# nosec, nosemgrep, gitleaks:allow) are honoured.
A run that skipped a scanner is never reported as clean. The table ends with, for example, Partial: secrets scanned, IaC and SAST skipped (engines missing). instead of No findings, and JSON, SARIF (runs[0].properties) and the dashboard upload carry status (complete / partial / failed), coverage and one scanners entry per requested scanner (ran, skipped with reason: "engine missing", or failed with reason: "engine error").
Secrets in git history (--history). A secret that was committed and later deleted is gone from the working tree but not from the repository: every clone and the hosting provider still have it. xyz code-scan secrets --history (and xyz code-scan all --history) also runs gitleaks git over the commit history. Each history finding carries the commit sha, its author date, the file path and line at that commit, and in_head: whether HEAD still holds the same secret. One that is gone from HEAD says removed from tree but still in git history — rotate it, rewriting history is not enough once pushed; one committed only on another branch says so. A secret still in HEAD that the working-tree scan already reports is not listed twice.
xyz code-scan secrets . --history # every ref (git log --all) xyz code-scan secrets . --history --history-depth 200 # last 200 commits of HEAD xyz code-scan secrets . --history --since-commit origin/main # only what this branch adds The same guarantees hold: values are never printed or uploaded (gitleaks' report is read from a pipe, never written to disk; xyz checks HEAD for the value by handing it to git grep on stdin, then drops it), the repo's .gitleaks.toml is extended and .gitleaksignore / gitleaks:allow are honoured, and --exclude, the dependency/build-folder skip and the known-benign values still apply (gitignored paths are not skipped in history: a .env committed before it was gitignored is what this is for). Trivy has no git-history mode: with only trivy installed, --history stops with "engine not installed" (exit 3) and scans nothing; all --history --skip-missing reports secrets history skipped. History findings appear in JSON (commit, commit_date, in_head, reachable_from_head), in SARIF properties (commit, commitDate, inHead) and in the dashboard upload. In CI, check out the history (actions/checkout with fetch-depth: 0); xyz warns when the clone is shallow.
Installing the engines. xyz never downloads an engine itself. It looks on PATH and in the usual install folders (Homebrew's bin, ~/.local/bin, ~/.opengrep/cli). When an engine is missing and you are at a terminal, it asks once for all of them:
Missing engines for this scan: trivy brew install trivy opengrep curl -fsSL https://raw.githubusercontent.com/opengrep/opengrep/main/install.sh | bash (official opengrep install script; installs to ~/.opengrep/cli and links ~/.local/bin/opengrep) Install trivy and opengrep now (opengrep runs its official install script)? [Y/n] On yes it runs your own package manager (or opengrep's official script), checks the engine is now there and prints its version and path, and continues the same scan. --install-engines installs without asking (for setup scripts), --no-install never asks. In CI (CI, GITHUB_ACTIONS, GITLAB_CI, ...) or without a terminal xyz never asks and never installs; it prints the command. xyz code-scan engines lists every engine with its version, path and install command; xyz code-scan engines --install installs the missing ones.
Which installer xyz picks, from what the machine already has:
The fallbacks are printed only, never installed by xyz:
In CI. GitHub Actions: run xyz code-scan all . --format sarif -o xyz.sarif and upload the file with github/codeql-action/upload-sarif (set if: always() on the upload so findings still show when the gate fails). Each run is tagged automationDetails.id = xyz-code-scan/
- run: pip install cyberxyz-scanner "bandit[sarif]" - run: go install github.com/zricethezav/gitleaks/v8@latest && echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" - run: xyz code-scan all . --skip-missing --format sarif -o xyz.sarif --fail-on high - uses: github/codeql-action/upload-sarif@v3 if: always() with: sarif_file: xyz.sarif GitLab CI: run the same command in a job and keep xyz.sarif (or --format json) as a job artifact. GitLab's Security dashboard reads its own report format, not SARIF, so treat the exit code as the gate.
Licensing. xyz uses Trivy (Apache-2.0), Gitleaks (MIT), Opengrep (LGPL-2.1) as external engines, plus bandit (Apache-2.0), gosec (Apache-2.0) and checkov (Apache-2.0) when present. They run as separate programs; none of them is bundled. The built-in rules are CyberXYZ's own, released under MIT. xyz does not use or reference Semgrep Registry rules.
Set XYZ_API_KEY as a secret and add one of these; any push or PR that pulls in a malicious or vulnerable package fails the build with a clear reason. Create the key at https://app.cyberxyz.io/dashboard/api-keys (a free account is enough: https://app.cyberxyz.io/register). The gate needs it: without a key, or with a key the API rejects or that is not bound to an organisation, it exits 4 and checks nothing; it never falls back to anonymous checks.
GitHub Actions: uses: CyberXYZSecurity/depalert-action@v1 (GitHub Marketplace)
GitLab CI/CD catalog: gitlab.com/cyberxyz/depalert
Azure DevOps Pipelines: integrations/azure-pipelines/cyberxyz-supply-chain.yml
Or generate one: xyz ci init
The GitHub Action (scan mode) and the pipelines xyz ci init writes also run the offline xyz code-scan ci (on .github for GitHub) at --fail-on critical and xyz code-scan agents at --fail-on high: a known-compromised action, or an agent hook or editor task with signs of a worm drop, fails the build. Everything else (an unpinned action that gets secrets, a hook that runs your own script) is printed, so adding the checks does not fail builds over findings a repository already had. The Action's ci-fail-on and agents-fail-on inputs move each threshold (a future v2 of the Action will default ci-fail-on to high); code-scan: "false" turns both off. Neither needs an API key.
Route the job's own installs through the proxy (protect)
scan checks lockfiles after the fact. protect runs early in the job and points npm, yarn, pip, uv, Go and NuGet at the CyberXYZ proxy, so a malicious version is refused at install time, the same way it is on laptops. Recommended: protect before the install steps, scan as the gate.
The Action (cli-version) and the GitLab components (cli_version) install the newest 1.4.x CLI, at least 1.4.66 (>=1.4.66,<1.5), so CLI fixes reach your pipelines without a new action release and a 1.5 never arrives unannounced. Pin an exact version ("1.4.70") if you need reproducible runs, or pass latest.
All of them run the same xyz depalert scan engine your laptops use. It reads package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lock, requirements*.txt, Pipfile.lock, poetry.lock, uv.lock and go.sum. --package-lock also accepts a yarn, pnpm or bun lockfile and reads it by its name. Each package is checked under its registry name: npm aliases as the package they install, workspace, link:, file: and git dependencies left out. bun.lockb is binary and is refused with exit 4: run bun install --save-text-lockfile (the default from bun 1.2) and commit bun.lock.
depalert scan exit codes
Re-enroll, rotate, remove
Re-running xyz proxy setup --machine-name "..." keeps the machine's current proxy token, so an agent already running on the device keeps working. To rotate the token, add --new-token, as the same user who enrolled the device: the platform replaces the old token, and the xyz agent on the device picks the new one up from the token store within minutes. A machine name registered by another member of your org can only be re-issued by an org admin; pick a different --machine-name otherwise.
To remove a device cleanly, delete it from the dashboard Fleet view. The deletion sweeps proxy_install_log, proxy_tokens, cli_scans, customer_inventory_uploads, customer_package_inventory and scan_jobs in one transaction. Re-enroll with the same command above.
Dashboard: https://app.cyberxyz.io
Documentation: https://cyberxyz.io/docs/cli
Proprietary. See LICENSE.
Email: support@cyberxyz.io
Released: Nov 28, 2026
Author: CyberXYZ Security Team
Both files in this release have provenance metadata.
View provenance details
Other/Proprietary License (Proprietary)
CVE EPSS GHSA MCP OSV scanner security vulnerability
Development Status 4 - Beta
Intended Audience Developers
System Administrators
License Other/Proprietary License
Operating System OS Independent
Programming Language Python :: 3
Software Development :: Libraries :: Python Modules
Release files for cyberxyz-scanner 1.4.89
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 1.8 MB
Release files / cyberxyz_scanner-1.4.89.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.
Release files / cyberxyz_scanner-1.4.89-py3-none-any.whl
Security for cyberxyz-scanner 1.4.89
Both files in this release have been uploaded with provenance metadata.
With provenance cyberxyz_scanner-1.4.89.tar.gz Nov 28, 2026
Attestation for cyberxyz_scanner-1.4.89.tar.gz
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 28, 2026 2 release files Full provenance
Nov 27, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Nov 6, 2026 2 release files Full provenance
Oct 30, 2026 2 release files Full provenance
Oct 23, 2026 2 release files Full provenance
Oct 20, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Full provenance
Oct 7, 2026 2 release files Full provenance
Oct 2, 2026 2 release files Full provenance
Sep 30, 2026 2 release files Full provenance
Sep 29, 2026 2 release files Full provenance
Sep 28, 2026 2 release files Full provenance
Sep 27, 2026 2 release files Full provenance
Sep 26, 2026 2 release files Full provenance
Sep 25, 2026 2 release files Full provenance
Sep 14, 2026 2 release files Full provenance
Sep 7, 2026 2 release files Full provenance
Aug 23, 2026 2 release files Full provenance
Jul 10, 2026 2 release files Full provenance
Jul 2, 2026 2 release files Full provenance
Jun 26, 2026 2 release files Full provenance
Jun 23, 2026 2 release files Full provenance
Jun 19, 2026 2 release files Full provenance
Jun 18, 2026 2 release files Full provenance
Jun 2, 2026 2 release files Full provenance
May 22, 2026 2 release files Full provenance
May 20, 2026 2 release files Full provenance
May 18, 2026 2 release files Full provenance
May 17, 2026 2 release files Full provenance
May 8, 2026 2 release files Full provenance
May 7, 2026 2 release files Full provenance
May 6, 2026 2 release files Full provenance
May 5, 2026 2 release files Full provenance
Apr 30, 2026 2 release files Full provenance
Apr 28, 2026 2 release files Full provenance
Apr 17, 2026 2 release files Full provenance
Apr 17, 2026 2 release files Change of provenance
Apr 14, 2026 2 release files Loss of provenance
Yanked reason: moving it to another project
Apr 12, 2026 2 release files Full provenance
Mar 29, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from fc0d8e6











