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.
void platform upgrade --security-audits
void platform security probe
void platform security budget --platform-usd 500
void platform security policy publicprobe tells you which requirements your account meets and what you still need to configure. 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.
| Mode | Scans |
|---|---|
| Off (default) | Nothing |
| Public projects only | Projects that are public, or that have no Zero Trust protection |
| All projects | Every 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>:
| Rule | Scans |
|---|---|
| inherit (default) | What the scan mode says |
| always | Every deploy, also while Zero Trust protects the project |
| never | Nothing, 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:
void project security checkThe CLI lists the files it will upload, the model that will review them, and the maximum cost. 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
| Model | Run by |
|---|---|
@cf/deepseek-ai/deepseek-v4.1-flash-1017 (default) | Cloudflare |
@cf/zai-org/glm-5.3 | Cloudflare |
openai/gpt-6.1-terra, openai/gpt-6.1-sol | OpenAI |
anthropic/claude-sonnet-5.5 | Anthropic |
anthropic/claude-opus-5.5 | Anthropic |
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.
printf "%s" "$ANTHROPIC_API_KEY" | void platform security models --provider anthropic --key-stdin --yes
void platform security probeVoid 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:
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.txtfiles up to 8 MB. - Worker code. Read the secret from
envat 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 what | Reader | Collaborator and up |
|---|---|---|
| Urgent count and finding ids | Yes | Yes |
| Titles, files, and details | No | Yes |
| Scans, cost, and bypass reasons | No | Yes |
Open urgent findings show:
- at the end of each
void deployto 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 aSecurityline invoid 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:
| To | Run | Who |
|---|---|---|
| Scan one project's live deployment in full now | void 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 on | void platform security backfill | Platform administrators |
| Review every live app in full on a schedule | void platform security sweeps on --every-days 30 | Platform administrators |
| Scan again on Cloudflare when a third-party model fails | void platform security fallback on | Platform administrators |
A full scan names its model and the most it can cost, 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:
void platform security budget --platform-usd 500 --project-default-usd 50
void platform config plans set pro --security-cap 200A 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.
Void starts a scan only if its maximum cost fits both the project and platform budgets. All scans, including rescans and scans before going public, count toward these budgets. Deployments continue when a cap is reached. The first scan after you raise the cap or the calendar month resets (UTC) includes the skipped changes.
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.
Emails
| Sent to | |
|---|---|
| New findings, one per scan | Owner, project admins, and the people who deployed |
| A human reopens an urgent finding | Owner 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 canceled | Who asked, the owner, and project admins |
| Scan bypassed | Every platform administrator, with the reason |
| Three scans of a project in a row failed | Owner, project admins, and platform administrators |
| Many scans failed for a platform reason, at most once a day | Platform administrators |
Weekly summary, when turned on with void platform security digest on | Platform 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:
void platform security public-gate onThe 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.
| State | Meaning | What to do |
|---|---|---|
| Waiting | The scan is queued or running | Wait, or bypass |
| Held by findings | An urgent finding is open | Resolve it. There is no bypass |
| No result | The scan failed, was refused, timed out, or hit a cap | Run public again, deploy again, or bypass |
| Files not read | The 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 deploy | The live code cannot prove it, or a fix needs a newer deploy | Deploy 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:
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.