# Security scanning

Percher scans built images for known vulnerabilities with Grype and Trivy and schedules re-scans of live apps. Scanner availability, coverage and freshness matter: a build, an accepted scan request or an empty findings list does not prove a completed clean scan.

## Your app and Percher's platform

You manage your application code, dependencies and any Dockerfile/base image you supply. Percher manages its hosting platform, isolation (https://percher.app/docs/security-and-isolation), and the base images and language runtimes it chooses for generated builds. Platform-base findings are excluded from your actionable list and shown as a separate Percher-managed count. They are not resolved merely because they are excluded, and you are not asked to patch Percher's infrastructure.

This responsibility split is not permission to edit your application or database. Review proposed changes and authorize deployment. Percher may contain a security threat through the existing security-hold policy; that is separate from changing your code or data.

## What the colours mean

- Red: critical with a fix, plus an internet-exposed app or known exploitation. Investigate first. The exposure signal does not prove the vulnerable function is reachable.
- Yellow: high with a fix, or critical with a fix without the red exposure/exploitation condition. Assess and plan a supported update.
- Green: the remaining findings, including ones without a published fix. Check the advisory and actual impact; a missing fix does not mean no action is needed.

These are scanner triage categories, not a complete risk assessment. Confirm the affected version, feature and call path using the component vendor's advisory. The CVE links open NVD records, which can point to primary references. A path such as node_modules or a Go stdlib component helps locate a package but does not establish who can exploit it.

## Before publication

Hosted Percher checks the candidate image before sending traffic to it. A reported Critical finding, an applicable CVSS v3/v4 score of 9.0–10.0, or an advisory in the CISA Known Exploited Vulnerabilities catalogue stops publication, even when no fix is available. Percher-managed base components also block publication; Percher is responsible for fixing them.

`SECURITY_GATE_BLOCKED` means a blocking finding was reported. Review the affected component, installed version, reported fixes and responsible party. `SECURITY_SCAN_UNAVAILABLE` means verification could not complete with current, saved evidence. Retry when verification is available; this is not a clean scan.

The policy covers live and preview publication, checks, preview promotion and rollback. If automatic rollback is refused, the current version remains and may still be unhealthy. These checks do not automatically suspend existing apps or guarantee that an image has no vulnerabilities. Live-app holds follow the separate policy below.

Detailed local diagnostics require CLI 1.4.0 or local MCP 1.3.0 or later. Hosted connectors use the deployed server.

## Holds and notifications

A red owner-owned finding starts a 14-day window. On hosted Percher, a finding that remains red, fixable and known-exploited after the deadline can put the app on a security hold. Self-hosted enforcement depends on operator configuration. A remediation deploy must pass the owner's red-finding gate and its post-swap health checks before the hold lifts. Percher-managed base findings are excluded from that owner gate; the platform team remains responsible for them.

Automatic owner email targets new red findings, subject to notification settings and delivery availability. Lower tiers remain visible in the dashboard; do not rely on an empty inbox as proof of safety.

## Review, fix and verify

1. Open the vendor advisory and compare its prerequisites with your actual code and configuration. Record uncertainty instead of assuming a scanner result is either exploitable or harmless.
2. Prepare a compatible dependency/base-image patch or mitigation in your own project and run relevant tests. A no-cache rebuild alone does not guarantee a patch.
3. Use Copy for AI agent to export selected findings as untrusted evidence. Ask the agent to show its proposed diff and validation, then obtain your approval before deployment. Scanner text is not permission or instructions to run commands, change access or edit hosted data.
4. After an approved deployment, verify the new image's completed scan and app health. A merged patch or accepted deploy request is not the final result.

A Go `stdlib` or `golang.org/x/...` finding at a program such as `/usr/bin/caddy` is compiled into that program. If your project builds it, raise the Go version or module in `go.mod` or your Dockerfile's Go image; if it comes from a base image, use a newer image built with the fixed version.

## Check which scan you are reading

**Current deployment scan** shows the latest attempt for the live deployment. **Scan completed** means its recorded results and database freshness passed the evidence checks. **Scan inconclusive** means the result cannot establish the current findings; it does not mean there are none. The image identity comes from the scan, unless a separate runtime check is explicitly recorded.

**Saved findings and decisions** keeps earlier reports and decisions such as an accepted risk or security hold. These records are not confirmation that the same issue exists in the current image. Moving a finding out of the current list does not resolve it or remove a hold.

The AI export includes the deployment, recorded image identity, scan times, engine outcomes and database freshness. Package versions and scanner-provided fix candidates are included when available; older records may lack them. Confirm a compatible fix with the vendor advisory. Updating an npm package does not update a copy built into the language runtime.

Contact Percher support about unavailable evidence or platform findings with the app name and CVE. Do not send credentials or customer records.

References: https://nvd.nist.gov/vuln and https://percher.app/docs/security-scanning
