Skip to content
brought to you byVoidZero

Security Audits ​

You can have Void review each deployment and tell your team when it finds a security issue. The review starts after the app goes live. Your team can inspect a finding, discuss it, and record how it was resolved. Review the results yourself, since a scan can miss vulnerabilities.

Requirements ​

  • A platform installed or upgraded with --security-audits. See Turn security audits on.
  • Workers Paid on the platform's Cloudflare account, with Cloudflare Containers.
  • Workers AI access for the default model: Workers Paid or prepaid AI credits.
  • For the optional scan before a project goes public, project Zero Trust must be on and not public-only.

The scanner runs in its own container with no internet access and reaches models only through the platform. Uninstalling the platform removes it. See Disable and Uninstall.

Roll forward after you upgrade

The upgrade that adds security audits includes a database migration for the scan scheduler. Cloudflare does not roll a Worker back past such a migration, so after you upgrade, fix a bad release by deploying a newer one.

Turn it on ​

Suppose you want to scan public apps and spend up to $500 a month across the platform. Enable the feature, check your account, then set the budget before choosing which apps to scan.

sh
void platform upgrade --security-audits
void platform security probe
void platform security budget --platform-usd 500
void platform security policy public

probe tells you which requirements your account meets and what you still need to configure. Monthly spending caps are off by default. When you enable a scan mode, the probe must pass. Void checks again daily. If a later check fails, the administrator UI shows a banner and scans pause until the account is ready again.

ModeScans
Off (default)Nothing
Public projects onlyProjects that are public, or that have no Zero Trust protection
All projectsEvery project

The new mode takes effect at each project’s next deployment. Its first scan reviews the whole deployment. Later scans cover changes since the last successful scan. Use --plan to preview how many projects a policy affects. To review existing deployments now, scan live apps.

A platform admin can give one project its own rule, from the project's Security section in the administrator UI or with void platform security policy --project <project-id> <inherit|always|never>:

RuleScans
inherit (default)What the scan mode says
alwaysEvery deploy, also while Zero Trust protects the project
neverNothing, except the scan before the project goes public when that is on

A project's rule has no effect while the mode is Off. Its project page and void project security status say why the project is or is not scanned. Platform administrators can manage all of this from Security in the administrator UI.

What is scanned ​

A scan starts when a deploy goes live. Rollbacks, failed deploys, and preview-* projects are not scanned. A newer deploy replaces a scan that is still queued. A redeploy with no code change is recorded as "no changes" and costs nothing.

Open a scan to see which files it reviewed. For example, Changes since dpl_7c20 · source diff · 14 files · complete means it reviewed 14 changed files since that deployment. For large changes you can also see which files are still waiting.

Void reviews changed source when it’s available. Otherwise it reviews the built output mapped back to source. It skips lockfiles, binaries, and files such as private keys, and redacts stored secret values before sending code to the model. Keep your pnpm-lock.yaml or package-lock.json in the project so Void can identify and skip registry packages. Without a lockfile, the scan includes package code and reports third-party-unverified.

Check code before you deploy ​

To check a change before you deploy it, run this from the app’s directory:

sh
void project security check

The CLI lists the files it will upload, the model that will review them, and the scan’s spend limit. It includes your current edits to Git-tracked files and skips untracked files, secret-like files, lockfiles, and binaries. Confirm to queue the check.

Anyone with deploy access can run a check on a project covered by the scan policy. It counts toward the same spending caps as a deploy scan. Read the result in the terminal now, or look it up by its check ID for up to 30 days. A local check doesn’t update project findings, send email, or change a request to go public. See project security commands.

Models and the provider notice ​

ModelRun by
@cf/deepseek-ai/deepseek-v4.1-flash-1017 (default)Cloudflare
@cf/zai-org/glm-5.3Cloudflare
openai/gpt-6.1-terra, openai/gpt-6.1-solOpenAI
anthropic/claude-sonnet-5.5Anthropic
anthropic/claude-opus-5.5Anthropic

Before you choose OpenAI or Anthropic, decide whether the provider may receive the project’s changed code, related files, and past findings and comments. Providers may retain request data for a limited time or refuse a scan. A refusal appears in the scan result.

Accept the provider notice when you set a third-party platform default. Each project also needs its owner or an administrator to accept the notice. Until then, Void uses a Cloudflare model for that project. Block third-party models to keep all reviews on Cloudflare.

A third-party model also needs an AI permission on the platform's runtime token, unless you saved your own key. See Permissions to select for each token. The probe names a missing permission and lists models that cannot be picked yet. If a scanner image is still being prepared, run the probe again.

Project owners and administrators pick their project's model from the same list with void project security model.

Use your own provider key ​

OpenAI and Anthropic scans use your account’s AI Gateway Unified Billing credits by default. To use your own Anthropic key, pass it to the CLI on standard input.

sh
printf "%s" "$ANTHROPIC_API_KEY" | void platform security models --provider anthropic --key-stdin --yes
void platform security probe

Void tests the key before saving it encrypted. Calls still go through AI Gateway, are metered at list price, and count toward the spending caps. Run the probe after saving if that provider's models could not be picked before. Saving a new key replaces the old one. --remove-key deletes it: scans go back to Unified Billing, and the models cannot be picked until the probe passes again. void platform security status shows which keys are saved, never the key.

Findings ​

Resolve a finding as fixed, false positive, or accepted risk, with a comment of up to 4,000 characters. Subsequent scans can confirm or reopen findings. Project owners, project admins, and platform admins can close a finding after reviewing it.

An urgent finding is open, confirmed, and rated critical or high.

If a finding’s severity needs adjusting, the project owner or an admin can change it and explain why:

sh
void project security severity F-12 medium --comment "Only reachable by admins"

Later scans keep that severity. In this example, a finding previously rated high drops out of the urgent count.

A secret-in-output finding tells you which secret appears in a deployed file. Void checks for the value in plain or encoded form and shows only its name. You can see one finding per secret for static files and another for Worker code.

  • Static files. Anyone can download the secret after the app goes public. Rotate it and move it to server code. This is a high-severity finding. Void checks .js, .html, .json, .css, and .txt files up to 8 MB.
  • Worker code. Read the secret from env at runtime. A secret in the Worker bundle is a medium-severity finding.

If the value is meant to be public, such as a publishable key, resolve it as accepted risk. A later build of the bundle keeps that resolution.

With a Cloudflare model, a scan can test a possible finding on a throwaway copy of the deployment: the same code with empty databases, fake secrets, and no internet access, reachable only by the scanner and deleted when the scan ends. Such a finding shows as confirmed (runtime) in void project security show. The copy is part of the scan cost.

Who sees whatReaderCollaborator and up
Urgent count and finding idsYesYes
Titles, files, and detailsNoYes
Scans, cost, and bypass reasonsNoYes

Open urgent findings show:

  • at the end of each void deploy to a Void platform, with titles only for a signed-in user who can deploy (CI runs and readers see counts and ids),
  • in void project security status, and as a Security line in void project status,
  • on the project's security page (void project security open), where collaborators and up can comment, and the owner and project admins can also resolve, pick the model, set the budget, and bypass a held public request. A platform with the user dashboard has the same page behind Security on its Projects list,
  • on GitHub, for deploys built from a connected repository,
  • in the administrator UI, with an Urgent filter.

Export findings as SARIF with void project security list --format sarif (or void platform security findings --format sarif for every project).

After a failed scan, the next scan includes the unreviewed changes.

Scan live apps again ​

These scans review more than a deploy scan. Each costs money and counts toward the spending caps:

ToRunWho
Scan one project's live deployment in full nowvoid project security scan, or void platform security rescan <project-id>Project owner or admin, or a platform administrator
Scan live apps deployed before security audits were onvoid platform security backfillPlatform administrators
Review every live app in full on a schedulevoid platform security sweeps on --every-days 30Platform administrators
Scan again on Cloudflare when a third-party model failsvoid platform security fallback onPlatform administrators

A full scan names its model and its spend limit, then asks first. Add --client-assets to also review the client bundles' sources, from the source maps deployed with them. Backfill handles up to 50 projects at a time; run it again for the rest. Only a few sweeps start each hour, so deploy scans keep moving. Fallback scans the same changes once more on the default @cf model when a third-party model refuses, times out, or returns unreadable output; it never sends code from a @cf scan to a third party. Sweeps and fallback are off by default. A deployment whose code is no longer stored cannot be scanned again until the project deploys. See Findings and scans.

GitHub checks ​

If you connected a repository with void github connect, open the Void Security Audit check on the deployed commit. It shows the urgent count and links to the project’s security page, where access is limited to project members. Incomplete scans are labeled. The check is neutral and works with either build executor. Terminal deployments and unconnected CI jobs don’t add GitHub checks.

While an urgent finding is open, each open pull request for that commit (up to five) gets one comment with the same counts, updated in place by later scans. The comment needs the GitHub App's Pull requests: Read and write permission; with read-only access, only the check is posted.

To scan the live deployment again, select Re-run on its check. Sign in to Void with the same GitHub account you use as project owner or admin. Only the live deployment can be rescanned this way. Re-run all reruns the build.

Spending caps ​

Suppose you have a $500 monthly platform budget and want each project to spend at most $50. Projects on your Pro plan can spend up to $200 each:

sh
void platform security budget --platform-usd 500 --project-default-usd 50
void platform config plans set pro --security-cap 200

A Pro project can now use up to $200 of the shared $500 budget. A project-specific limit takes precedence over the owner’s plan, followed by the default project cap. An owner or project admin can choose a lower limit for their own project. Plan caps apply even when default project caps are off. Set a plan’s --security-cap to none to remove its cap or inherit to use the default. See Security scan cap.

All scans, including rescans and scans before going public, count toward these budgets, which reset each calendar month (UTC). A monthly cap can skip or stop a scan while deploys continue. When scanning resumes, the next scan reviews changes since the last successful scan, or the whole app if there isn’t one to compare with.

Both caps are off by default. The platform pays for scans separately from a plan’s AI usage. On the Scans page, you can compare the metered cost with the cost AI Gateway reports about an hour later. Project owners and admins receive email when a project reaches 80% and 100% of its cap. Platform admins receive the same alerts for the platform cap, once per threshold each month.

Scan spend limit ​

Every scan has a spend limit, including when monthly caps are off. To start a scan, Void reserves that amount against the monthly caps that apply. Commands that start scans show it as the estimated cost.

Before each model call, Void estimates what the call costs. If that is more than what is left of the limit, Void refuses the call. The scan ends as incomplete (spend limit reached) and keeps the findings it has confirmed. A call can cost more than its estimate, so a scan can go over its limit.

Spending counts cached input at the model's cached price. Only DeepSeek and GLM have one. For the other models, cached input counts at full price.

By default, the limit is the model's list price for the smaller of the input-token limit and 1.2 million tokens, plus the output-token limit. For Anthropic models, the limit prices input at 1.25 times the list price, the rate for a 5-minute cache write. With the default token settings this is $0.504 for DeepSeek, $2.208 for GLM and $8.40 for Opus. The input-token limit counts cached input in full and defaults to 10 million. To set one limit for every model, from $0.01 to $12:

sh
void platform security limits --scan-usd 2.50
void platform security limits --scan-usd auto   # back to the default

Turning scans on saves the token limits, and upgrading doesn't change saved values. An installation that turned scans on when the default was 1.2 million input tokens keeps that limit until you raise it:

sh
void platform security limits --scan-input-tokens 10000000

A saved input-token limit above 1.2 million no longer raises the default spend limit. For example, a DeepSeek policy with 2 million input tokens and the default output limit goes from $0.744 to $0.504. Set --scan-usd to keep a higher limit.

Emails ​

EmailSent to
New findings, one per scanOwner, project admins, and the people who deployed
A human reopens an urgent findingOwner and project admins
Project cap at 80% and 100%Owner and project admins
Platform cap at 80% and 100%Platform administrators
Public request held, now public, or canceledWho asked, the owner, and project admins
Scan bypassedEvery platform administrator, with the reason
Three scans of a project in a row failedOwner, project admins, and platform administrators
Many scans failed for a platform reason, at most once a dayPlatform administrators
Weekly summary, when turned on with void platform security digest onPlatform administrators

Emails carry titles, severity, and file paths, never code. A scan that finishes after the mode was set to Off sends no email. Without an email domain the same information is in the CLI and on the project page, and bypasses still show in the admin pages. To send these events to your own system, set void platform security webhook <https-url>: a signed body with ids and counts only, sent even without an email domain. See Alerts, summary, and webhook.

Scan before a project goes public ​

With project Zero Trust on, you can hold a project's change from protected to public until a scan of the live deployment finds nothing urgent:

sh
void platform security public-gate on

The gate needs a scan mode of Public or All, a recent probe pass, and platform Zero Trust on and not public-only. While it is on, platform Zero Trust cannot be disabled or switched to public-only. Turning the gate off, or setting the mode to Off, cancels open requests; those projects stay protected.

When someone runs void project zero-trust public, the project stays protected and the request waits for a scan. Deploys keep working.

StateMeaningWhat to do
WaitingThe scan is queued or runningWait, or bypass
Held by findingsAn urgent finding is openResolve it. There is no bypass
No resultThe scan failed, was refused, timed out, or hit a capRun public again, deploy again, or bypass
Files not readThe scan could not read some project files (too large, not text, or a path it cannot send)Fix them and deploy again, or bypass
Needs a deployThe live code cannot prove it, or a fix needs a newer deployDeploy again, or bypass

If you resolve a finding as false positive or accepted risk, the pending request can continue immediately. If you mark it fixed, deploy the fix so Void can verify it. A clean scan of a newer Worker deployment qualifies even if the code is unchanged. A static site needs a changed deployment.

The gate covers only the change from protected to public for an existing project. Projects that start public, and preview-* projects, are not covered. A later finding never makes a public project private again.

Bypass the scan ​

An owner or a project administrator can skip the scan with a reason; platform administrators use the platform command with the project ID:

sh
void project zero-trust bypass --reason "Scanner down since 09:00; launch today."
void platform security bypass <project-id> --reason "Scanner down since 09:00; launch today."

A bypass never skips an open urgent finding: it is refused and nothing is recorded. Every bypass is recorded with its reason and emailed to every platform administrator; list them with void platform security bypasses. Later findings follow the normal flow.

What users see ​

Project members can check findings and public requests with void project security and void project zero-trust status.