The zeroquarry skill
Use whenever the user mentions ZeroQuarry or asks to run a security review, scan code, binaries, or remote targets for vulnerabilities, check dependencies for known CVEs or slopsquatting risk, set up recurring scans or team integrations, get secure-coding guidance for AI-written code, or connect an AI agent to ZeroQuarry. This is the ZeroQuarry skills pack entrypoint — it verifies the MCP connection, orients the agent, and routes to the right tool, skill, or workflow.
How to get it
This is one of the skills in the ZeroQuarry skills pack. It reaches your agent three ways:
- The native skills surface. A client that declares the
io.modelcontextprotocol/skillsextension finds it underskill://zeroquarry/zeroquarry/SKILL.md. - The fallback tools. Any client can call
list_skillsand thenload_skillwith"zeroquarry. - A local copy. The whole pack is published at skills — save the directories into your agent's skills folder.
The skill
This is the skill's own text, as the server serves it.
ZeroQuarry security scanning
ZeroQuarry is an AI-native application security platform. You (the agent) drive it through the MCP tools this server exposes: you launch scans, the ZeroQuarry worker fleet runs deterministic analysis (SAST, SCA, IaC, secrets) plus agentic scans to increase breadth and provide validation. You read back the verified findings and reports.
Before you start
- The ZeroQuarry MCP server must be configured in this agent's MCP client
settings (server URL plus auth) —
zq setupfrom the companion CLI registers it with supported clients. Two ways to authenticate; either way, the agent acts as a specific ZeroQuarry user with that user's live permissions:- OAuth (preferred where the client supports it): add the server URL and the client opens a browser sign-in — the user approves the connection once and the client holds a refreshable token. The 401 challenge advertises the OAuth discovery metadata (RFC 9728), so URL-only clients find this path themselves.
- API key (headless agents and scripts): a personal key minted from
the user's profile page in the ZeroQuarry console (Settings → API keys).
Tick the
mcpscope so the server accepts the key at all, plusreadto read scans and findings, plusscans:writeto launch and cancel them. The scope cap narrows every permission check, not just the server's own scope gate: a key scoped tomcpalone gets past the gate and then gets "scan not found" on every read and "you don't have permission to launch scans" on every launch. Account-level machine keys also exist (Account → API keys, owner/admin) but act with the owner's full role — prefer a scoped personal key for agents.
- A 401 response means the key is missing or invalid; a 403
insufficient_scoperesponse means the key lacks themcpscope — tell the user to mint a new key with that scope and update the client configuration. A tool result withisErrorand a permission message means the key has themcpscope but is missingreadorscans:write. Never ask the user to paste the key into chat; keys belong in client configuration. list_projectswith no arguments is a cheap connectivity check. A brand-new account is not proved by an empty result: first sign-in creates the account together with a default project, so one project back is expected. The reliable signal isget_starteditself — the server advertises that tool only until the account has run its first scan, so seeing it in the tool list means call it for the tailored first-scan plan. Theonboardingskill walks the user through it when this account serves that skill (the skill list is the source of truth).get_accountreturns this account's tier, what it licenses (binary, remote, POC generation, auto-fix, disclosures), usage against the security-run cap, and the trial clock. Call it once per session: propose only what the tier licenses, and surface the trial clock before it walls the account into read-only.
What you can do
| Goal | How |
|---|---|
| Security review of a codebase ("SAST"-like) | create_scan with git_urls (source mode), then poll and read results as below |
| Check a repo is cloneable before scanning | check_repo_access with git_urls — the access path covering each, and the exact next step for the user when one is missing |
| Analyze an APK, firmware image, or other artifact | create_scan with mode: binary and base64 uploads (see Scan modes) |
| Test a live target you are authorized to test ("DAST"-like) | create_scan with mode: remote, url, and authorized: true (see Scan modes) |
| Re-run an existing scan (e.g. the one behind a report link) | rescan_scan — a new version in the same lineage that rechecks the parent's findings; optionally on a different model / model_review (see Comparing models) |
| See or pick the models this account can scan with | list_models — id, display name, and which stages each is the default for. create_scan and rescan_scan take either the id or the display name |
| Check scan progress | get_scan, get_scan_logs |
| Read results | get_findings (severity-ordered, with counts, each with its human_state), get_finding for one finding's evidence and remediation, get_poc_artifact for a proof-of-concept text |
| Work the verdicts | record_finding_verdict with the user's explicit confirmation — validated (accept), disputed (reject; reason required), mitigated, accepted_risk, archived; the console shows the same record |
| Full report | get_report (markdown; confidence floor, section subset) |
| Find prior work | list_projects / get_project, list_scans, search; create_project when a new project is needed |
| Check pinned dependencies for known vulnerabilities (free, instant) | get_dependency_watch — live advisories (pending or scan-validated) + KEV matches answered from the background sweep's cache, with each advisory's fix_state (fix staged / PR open / merged / declined) and the account's per-lineage automation levels (autonomy); not tier-gated and consumes no security run units. The outdated-dependencies skill has the full read-and-fix flow when the account serves it |
| Stop a run | cancel_scan |
Scan modes
create_scan takes a mode:
- source (default) — git URLs in
git_urls(private repositories: see Repository and target access below).path_scopelimits a monorepo scan to one subdirectory (one call per subdirectory). - binary —
uploads: a list of{filename, content_base64}artifact files (APK, JAR, firmware image, …). Caps: 10 MB per file, 20 MB total per call, at most 10 files — larger artifacts ride the REST API's multipart path (therest-apiskill covers this when the account serves it).artifact_typeismobile,firmware, orother(default). Thebinary-scanskill walks the full upload mechanics and what a binary scan runs when the account serves it. - remote — an authorized live target:
urlplusauthorized: true(you must be authorized to test it), optionalscopehost lines andhttp_rate_limit_per_second. Scope hosts are gated like the entry URL (account authorization, the project scan gate; at most 25,*.domainpatterns must be bounded by a verified domain or engagement warrant) and the entry host is always crawled even when a scope is declared. Authenticated testing attaches saved scan identities only (auth_identity_id, oridentitiesentries) — credential values are never accepted as tool arguments and must not enter the conversation either. Theremote-scanskill walks the full intake (target type, scope, the authorization acknowledgement) when the account serves it.
Boundary conditions, all enforced server-side:
- Tier gating. Source, binary, and remote scans are each license-gated. A 403 such as "not licensed for binary/remote scans" is a plan boundary — tell the user; do not try to work around it. Users can manage their plans at https://console.zeroquarry.com/account/billing
- Project profile. A project's assessment profile restricts its allowed scan modes; the error names the profile and what it allows. Choose a different mode or project rather than retrying.
- Authorization. Remote targets must be covered by account domain verification or an engagement warrant, and URLs pass an SSRF guard. Only scan targets the user owns or is authorized to test; never help circumvent these checks.
Comparing models
To compare coordinator models on the same code, for example "re-run the scan behind this report once with GLM 5.3 and once with GLM 5.4":
list_modelsto confirm the names the user gave match models this account can use. If a name is ambiguous or missing, show the user the choices instead of guessing.- Call
rescan_scanonce per model, with the report's scan asscan_id(a pasted console link such as…/reports/<scan_id>/summaryworks as is) and the model's display name or id asmodel. Give each run a name that says which model it is on. Each call is a separate scan and spends the account's security run units, so confirm the spend with the user first. Repeating a call for a model that is already running returns that scan (dispatch: dedup) instead of launching another. - Poll each scan as in Running a scan below. Then compare them with
get_findingson each, keeping severity and confidence exactly as reported.
Both children default to rescan_mode: fresh, a new clone of the same
repository, so they scan the same commit when launched together.
Repository and target access
Private repositories and authenticated remote targets are configured by
the user, out-of-band — your job is to check, point at the exact step,
and re-check. Credential values never enter the conversation, and
check_repo_access creates nothing. check_repo_access reports
access: ready for targets it verified from here and access: unverified
for ones it could not (unreachable, timed out, or the probe budget ran out)
— unverified is not failure: create the scan and let the scan itself
confirm.
- Private repositories (ladder, in order of preference): the
ZeroQuarryBot GitHub App install
(a browser step the user does — keyless clones, no credential stored) →
SSH deploy keys →
a saved read-only Git credential in the console.
The no-console route to the last rung:
zq creds add gitfrom the zq companion CLI — the user pastes the secret to the CLI (hidden prompt, or a file they choose), it uploads over HTTPS, and prints thegit_credential_idreference; the value never enters this conversation. When a scan fails pre-flight orcheck_repo_accessreports a gap, the failure message names the step and carries the deep link: relay it to the user, wait for their "done", then re-runcheck_repo_access— callcreate_scanonly once it passes. - Authenticated remote targets: the user saves identities in the
project's Identity Library in the console (Projects → project →
Identities) or runs
zq creds add identityfrom the terminal (same companion CLI); you reference them by id (auth_identity_id, oridentitiesentries) and never see or request the values.
Running a scan
- Confirm scope with the user: what to scan, which mode, and whether
the SCA (
sca), infrastructure-as-code (infra), and secrets (secrets) stages should run. Scans consume the account's security run units; a capped-cost basic pass (basic_pass:deterministicat 1 run,verifiedat 2 — thesast-basicskill) is the cheap option when a full assessment is more than the question needs.create_scandispatches fresh (an overlapping in-flight run dedups to the existing scan) — for a repository scanned before,rescan_scanre-runs a specific earlier scan in its lineage, and the cheaper repeat scan is the REST API's delta dispatch (auto_delta) or a schedule; thesecurity-reviewskill has that depth when the account serves it. - Call
create_scan— it returns ascan_idimmediately. - Poll
get_scanuntilstatusiscompleted(orfailed/cancelled); useget_scan_logsfor live progress. If this client negotiated the MCP Tasks extension,tasks/getserves the same statuses and carries the final result inline at the terminal poll. - Read
get_findings, thenget_reportfor the full report. Report severity and remediation faithfully — never soften or inflate.
The security-review skill expands this workflow — access checks,
triage, verdicts, wrap-up — when the account serves it.
Ground rules
- Credentials never enter the conversation. Never ask the user to
paste passwords, tokens, cookies, or private keys into chat or tool
arguments. Scan credentials are configured in the ZeroQuarry console or
via the
zqcompanion CLI (zq creds add); point the user there. - Authorization. Only scan repositories and targets the user owns or is authorized to test. ZeroQuarry enforces authorization for remote targets; do not help circumvent it.
- Findings are claims until verified. ZeroQuarry findings carry evidence and confidence scores. Keep severity and confidence intact in summaries, and reference finding ids so the user can act on them.
- Adjudication is the user's call. Propose a verdict with your
reasoning, record it with
record_finding_verdictonly after the user confirms, and never adjust one unprompted. The console shows the same record, so tell the user it's reversible there.
Beyond this entrypoint
When a dedicated skill exists for the user's goal, prefer it over
improvising from the tools above. An account's skill policy curates
which skills it is served, so treat the table below as the pack's usual
contents, not a promise for this account: enumerate what is actually
served before loading — skills/list (or list_skills on an MCP client
without a native skills surface) lists every served skill with its
description and supporting files, and load_skill reads a skill's
SKILL.md by name — pass one of its advertised files as file to read a
supporting file (mapping tables, reference guides). An "unknown skill"
answer means this account does not serve that skill: pick another skill
or work from the tools, never route around the boundary.
| Skill | Use for |
|---|---|
onboarding | Brand-new accounts and "get started" requests — first scan, tier limits, what to set up next |
security-review | Full source-mode security review of a codebase — the scan-to-report workflow: access checks, polling, findings triage, verdicts, delta re-scans, the finished report |
sast-basic | "Do a basic pass" — the cheap, capped-cost scan: deterministic detectors only (1 run) or the LLM-verified spine (2 runs); unverified-findings honesty |
remote-scan | Guided intake for an authorized live-target ("DAST"-like) scan — target type and scope, the authorization acknowledgement, saved identities for authenticated testing |
rest-api | REST-only capabilities — report exports (markdown/HTML/PDF), SBOM/VEX downloads, share links, patches and auto-fix PRs, disclosures, schedules, per-scan LLM usage, account-wide search — plus multipart binary uploads too large for MCP |
binary-scan | Scanning a file rather than a repository — APK, firmware image, JAR, other binary artifact: upload caps, artifact types, what a binary scan runs, the multipart path for oversized artifacts |
slopsquatting | "Is this dependency safe?", hallucinated-package checks, security reads on dependency updates |
outdated-dependencies | Known-vulnerable pinned dependencies — the free advisory + KEV read, freshness framing, and the fix path (bump the pin, re-scan) |
automation | Recurring/scheduled scans, CI scanning (GitHub Actions), Slack/Jira/Linear/ServiceNow/email-triage setup |
security-hygiene | Secure-coding guidance for the code the agent itself writes — no scan needed |
compliance-policy | SOC 2 / ISO 27001 / audit / "our security policy" — set up the org's agent policy in-session (framework, suggested values or their own, one reviewed approval), then check adherence and seal the evidence |