# Activate your account
Source: https://qscan.dev/docs/account-setup
## Accept an invitation
An administrator provisions your workspace and sends an invitation to your email address. The activation link expires after 24 hours and works once. Ask the administrator to reissue an expired link; the older link stops working.
Choose a unique password of 15 to 128 characters. Scan the authenticator QR code, enter its six-digit code, and save your recovery codes in your password manager. After successful MFA setup, a welcome email is queued for your verified address with a link to your workspace or tenant portal. A welcome message is not required to start using your account.
Activation through the emailed invitation verifies that address. Sign in with your verified email without remembering a workspace name. A username is also supported; an ambiguous username may require the workspace address.
## Make sign-in easier
In Account & security, add a passkey using your device or security key. Keep an alternative sign-in method available before removing a passkey.
## Recover a password
Choose Forgot your password and enter your verified address. The reset link expires in 15 minutes. Resetting a password signs out earlier sessions; it does not remove your authenticator, passkeys, or recovery codes.
The link is checked before the password form appears. Expired or used links offer **Request a new link**. Enter the new password twice; mismatches are rejected before submission. Account & security uses the same confirmation step when changing a password. The current password and five previous passwords cannot be reused. History is retained as salted hashes starting with platform 0.51.89; passwords discarded before that release cannot be recovered or checked. A rejected password does not consume the reset link. If you refresh or close the reset page, reopen the original email link.
Reset requests show the same result for unknown addresses. Check your junk folder. If you cannot access your verified mailbox or MFA, contact your administrator; email password reset does not bypass MFA.
## Provision and invite
Platform administrators use the tenant portal to enter the organization name, workspace address, administrator name and email. The alternate username is under Advanced sign-in options. The recipient receives an activation link; the portal distinguishes email acceptance, sending failure, expiry and pending activation.
If sending fails, the workspace and pending account remain saved. Retry the invitation rather than creating the workspace again. Provider acceptance does not guarantee inbox delivery. Workspace administrators can open **Organization > Invite & manage team**, or **Manage team** in Account & security. This opens a dedicated team page. Expand **Invite a teammate** above the member list. Enter the teammate's name and email, select viewer, analyst or administrator, then choose **Send invitation**. No separate username is required. The recipient chooses a password and completes MFA before entering the workspace. Submission errors appear beside the invitation button; email failures offer a retry for the saved account. For an existing pending member, use **Reissue invitation** instead of creating another account.
Team invitations join the current workspace. Platform administrators can separately [invite an owner to create a workspace](./workspace-invitations.md).
## Welcome email delivery
From platform 0.32.0, welcome messages use a durable queue. Temporary sending failures are retried automatically, with at most five attempts within 24 hours. Pending messages survive service restarts. If the account, verified address or workspace access changes before sending, the queued message is cancelled. Accounts without a verified email do not receive a welcome message.
The administrative activity log records queued, retrying, accepted, failed and cancelled welcome deliveries. Accepted means the sending service accepted the message; it does not prove inbox delivery. An uncertain sending result can produce a duplicate welcome message. These messages contain only onboarding links, never activation tokens, recovery codes or passwords.
Invitation and password-reset messages currently use their existing send and resend flows; automatic welcome retries do not apply to those messages. If an invitation fails, its administrator can resend it. If a password reset message does not arrive, request a new reset email for your verified address.
The team page keeps personal sign-in settings separate from member administration.
Member lists use server pagination; failed page loads preserve the current rows.
Use **Account & security** or **Back to workspace** in the header to return.
---
# Agent distributions and updates
Source: https://qscan.dev/docs/agent-distributions
For a new installation, start with the [unified agent quickstart](../unified-agent/): one package, guided scope selection and browser enrollment. Individual agents remain available as an advanced backup. If you already have an enrolled credential or redeemed handoff, follow the existing-identity instructions instead of enrolling again.
Choose an agent for the machine that runs discovery. A cloud key has no host operating system: use [Cloud connections](../cloud-connections/) for hosted configuration, or explicitly choose a collector when discovery must run in your environment.
## macOS scanner 0.26.98
The Apple Silicon package adds import-resolved HKDF/HKDFExpand, Scrypt, Argon2id,
ConcatKDFHash/HMAC, X963KDF and KBKDFHMAC/CMAC declarations. Literal output
lengths, hash identities and cost parameters are retained without collecting salts,
passwords or keys. This extends the existing PBKDF2, HMAC, AEAD, DSA and
Diffie-Hellman detections. These are static code declarations; they do
not establish runtime use, expose key material, or prove a negotiated exchange.
The signed scanner supports the existing unified installer and approved updates.
Installed replacement was verified with identity and configuration preservation,
followed by a managed TLS scan through an existing relay with direct fallback disabled.
## Linux scanner 0.26.98
The Linux package adds the same nine KDF APIs described above, retaining bounded
nonsecret output-length and cost declarations. This extends PBKDF2 and Python HMAC,
AEAD, DSA and Diffie-Hellman parameter detections. These findings do not establish
runtime use and do not collect passwords, salts or derived keys.
Unified installation and removal were verified
on Ubuntu 24.04, Debian 12 and Debian 13. The installer preserves completed
user enrollment, rejects accidental repeat enrollment and runs discovery under
a restricted service account. Update testing covers interrupted downloads,
startup failure, rollback, credential preservation and reboot recovery.
See the [Linux guide](../linux-binary-preview/) for distribution-specific coverage.
## Available today
Open **Agents > Fleet tools > Downloads & updates**. Downloads open as a full workspace page; use **Back to agents** to return to the fleet. If the catalog cannot be loaded, use **Retry downloads** on the same page. The primary choices are the unified Windows / Windows Server, Linux and macOS installation packages. Open **Advanced: individual components** for separate agent archives, manifests, signatures and installers. The signed **Python bundle** remains available alongside these binaries. For installation, use the [combined Linux package](../linux-binary-preview/#one-package-guided-or-silent-installation) with its documented distribution coverage, the [Windows deployment package](../windows-bulk-deployment/), or the [macOS package](../macos-native-package/). These include the native agent, installer and guided/silent launcher. Individual releases remain available for advanced setup. Follow [guided setup](../agent-setup/) to enroll a scoped agent, configure local permissions and confirm your first scan.
| Platform | Agent | Installer | Unified package |
| --- | --- | --- | --- |
| Windows / Windows Server x86_64 | 0.27.26 / 964 | 0.51.595 / 965 | 0.51.595 |
| Ubuntu / Debian x86_64 | 0.27.26 / 963 | 0.51.595 / 960 | 0.51.595 |
| macOS arm64 | 0.27.26 / 961 | 0.51.595 / 962 | 0.51.595 |
The table follows the same available unified packages as onboarding, including
expiry and required-component checks. An individual release can be newer than
the version included in a unified package. The live Downloads page remains the
source of availability at installation time.
The compiled executables include a private runtime and do not require system
Python. The signed Python bundle remains an alternative for individual scanners.
See the platform guides for installation, permissions and exact qualification:
- [Windows and Windows Server](../windows-bulk-deployment/), with
[native service qualification](../windows-service/#current-qualified-release).
- [Ubuntu, Debian, Red Hat Enterprise Linux and CentOS](../linux-binary-preview/#linux-distribution-coverage).
Loader compatibility and full installed-service qualification are separate;
consult the distro matrix, including its SELinux/FIPS limitations.
- [macOS arm64](../macos-native-package/), including enrollment and service updates.
Release-manifest signatures verify package integrity and are distinct from
operating-system publisher signing. These packages retain their preview status;
consult the platform guide and catalog for supported architectures and limitations.
Combined installation packages inherit the earliest expiry of their included agent
and installer releases. The download catalogue reports package availability and
expiry; expired packages are not offered as primary downloads and return an expiry
message if opened through an older link. Download a current package rather than
changing local signature or expiry checks. Installation guides and README files
remain accessible for troubleshooting.
Installer previews have a separate signed archive identity from discovery agents. Verification binds the archive to its purpose, operating system, architecture, selected version, release sequence and expiry, and checks every included file. An installer cannot be accepted as an agent update. Keep the independently trusted release key and follow the preview guide before installation.
The Windows service installer is available as a separately signed preview archive. In Getting started choose Windows or Windows Server, Binary, then Background service. The guide provides exact release downloads and verification, a hidden enrollment prompt, installation, status and removal instructions. Clean Windows Server 2025 acceptance covers service installation, activation, real hosted TLS discovery, scope refusal, pause, revocation and removal. The published 0.26.40 release separately passed a cloud-requested replacement and a new-process TLS scan. Current 0.26.42 passed offline cold-start recovery; warm reboot and live service-mode discovery on 0.26.42 remain unqualified. See the [current Windows qualification record](../windows-service/#current-qualified-release).
A Linux bootstrap verifies and stages the signed installer without system Python, using OpenSSL and standard Linux utilities. Verification runs without administrator privileges and does not execute the installer. In Getting started, choose a non-cloud discovery source, Linux, then the Linux binary preview. The wizard provides current release links and copyable download, verification and service-installation commands. Contact and scan confirmation remain separate steps.
### Windows update implementation status
The Windows installer includes `update-once`, foreground `update-loop`, and a protected scheduled supervisor. The supervisor is registered disabled and needs an explicit local policy before it can be enabled. A clean Windows Server test verified a timer-triggered reconciliation without a manual task start, followed by disable, drain and removal. That supervisor-only test did not prove replacement. Subsequent 0.26.40 acceptance verified production-signed replacement and a new-process TLS scan, while 0.26.42 has separate offline cold-start evidence. Do not extend either result to warm reboot or to a full fleet rollout. Discovery remains under its restricted account while the updater has the separate privilege needed to replace protected software.
## Compiled service configuration for development
The signed source bundle includes `scanner/service_plan.py`. It can generate reviewable Windows SCM, Linux systemd or macOS launchd definitions for either a Python distribution (`--python`) or a compiled distribution (`--executable`). Choose exactly one. Generating a plan does not install, authorize, sign or validate a native service.
For a macOS compiled candidate, use the complete verified standalone directory. The executable must be named `quantum-ready` directly inside that directory:
```sh
python3 scanner/service_plan.py --platform macos \
--executable '/Library/Quantum Ready/agent/quantum-ready' \
--bundle '/Library/Quantum Ready/agent' \
--config '/Library/Quantum Ready/config/agent.json' \
--token-file '/Library/Quantum Ready/config/agent.token' \
--state-directory '/Library/Quantum Ready/state' \
--user sectigoqr
```
Python runs this development plan generator; the generated service command invokes the compiled executable directly. The output contains settings, a launchd plist and command argument arrays for review. It creates no files or accounts and executes no service-manager commands. The dedicated account must exist and have access only to the configured discovery roots and its private credential. Service code and configuration stay administrator-owned; the runtime account writes only its logs.
The launchd definition uses an explicit `UserName` and `ProgramArguments`, following [Apple's launchd guidance](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html). Signed macOS arm64 preview binaries and combined packages are now published; see [Mac native packages](../macos-native-package/) for exact versions, service commands and qualification. Release-manifest signing is separate from Apple code signing and notarization. A generated plist alone remains unqualified: use the native installer and its independently verified release inputs. Reboot and update evidence applies only to the exact releases tested.
## Configuration and software updates
**Managed configuration** is available after local opt-in. Workspace administrators can publish discovery scope within the machine's local allowlist, pause new scans and inspect acknowledgements. A rejected configuration is not applied. See [managed configuration](../agent-setup/#7-manage-configuration-from-your-workspace).
**Cloud-requested software updates are available through the platform-specific native update paths.** Use the [unified release table](../unified-agent/) for current Windows, Linux and macOS package versions and the [Mac service guide](../macos-native-package/) for scanner updates. The following older results retain their original version boundaries. Windows Server 2025 passed a production-signed 0.26.3 to 0.26.40 scheduled replacement and post-update TLS scan; see the [Windows service guide](../windows-service/#current-qualified-release). Configure the [local update supervisor](../linux-update-supervisor/) and its root-owned [update policy](../linux-update-policy/), then review a compatible release in Agent controls. The supervisor verifies the signed archive, preserves configuration and credentials, and restores the previous release if startup fails. Publishing discovery configuration alone does not replace the executable.
A deployed Linux upgrade from scanner 0.23.8 to 0.26.0 has passed replacement, fresh-process identification, a correlated follow-up scan, pause and revocation. See [managed update operations](../agent-update-operations/) for the distinction between installation, scan confirmation and operational health. Reviewed Linux fleet rollouts and UTC maintenance windows have service acceptance. These older Linux results do not establish general operational health. Later Windows reboot and Mac replacement qualification is documented in the [Windows service guide](../windows-service/#current-qualified-release) and [Mac package guide](../macos-native-package/); do not extend those results to other versions or deployment modes.
## macOS credential-file permissions
Source scanner 0.23.6 checks both owner-only Unix permissions and the credential file's extended ACL on macOS. It inspects the already-open descriptor with the system ACL API; it does not invoke a shell or read the token before the permission check passes. A mode such as `0600` alone does not establish that the credential is private.
Use a dedicated credential file owned by the service account (or root), with no group/other mode permissions and no extended ACL entries. An absent or valid empty ACL is accepted. Additional ACL entries, inspection errors and unsupported ACL inspection are rejected. The scanner does not change permissions automatically. Keep discovery-root access separate from credential access; granting read access to source directories does not justify sharing the agent token.
If preflight reports a credential-file failure, have the administrator inspect ownership, mode and ACL on that specific file using `ls -le`, and check that the intended service account can read it. Never paste the token into diagnostics or grant broader permissions to bypass preflight. Rerun the check as the restricted account after correcting the file.
The credential-file permission checks have deterministic ACL-adapter and native macOS filesystem coverage. Current Mac package installation and managed-scanner acceptance are documented in the [Mac native guide](../macos-native-package/). Windows-host tests do not substitute for macOS filesystem checks.
## Confirm activation
1. Run the configuration check as the intended restricted account.
2. Start the agent and confirm recent contact in Agents & sensors.
3. If using managed configuration, confirm the current revision is applied.
4. Run a scan against an explicitly allowed target and inspect its evidence.
Contact alone does not prove a scan succeeded. A successful TLS scan does not establish access to AWS, Azure or Google Cloud. Validate each integration with its intended identity and exact resources. Saved captures require TShark; live packet capture is not part of the current workflow.
## Selecting agents in a large workspace
The fleet shows 50 agents per page. Search by name or agent ID and filter active, revoked, or archived records. Active means access is not revoked; it does not mean the process is online.
New scans, schedules, and getting started search only active agents supporting the chosen scanner, with 20 matches per page. Use **Search**, **Previous agents**, and **Next agents**. Your selected agent stays selected while searching other pages. Changing scanner clears that selection. If multiple agents match, choose the intended host explicitly. The server applies capability filtering before pagination.
API, JavaScript, Python, and MCP clients can use the optional `capability` filter on agent inventory. Reset the cursor whenever the filter changes.
## Fleet update history
Open **Agents & sensors > Fleet tools > Update history** to review software update requests across the workspace. Filter by outcome or paste an exact agent ID. Expand a request to see its release, reported result, post-update contact and scan evidence, and any recovery instructions. Use **Older**, **Newer**, and **Refresh newest** to browse 50 operations at a time. Failed loads keep the previous page.
Update history opens as a dedicated workspace page. **Back to agents** returns to
the fleet; reopening history in the same tab preserves the last successfully
loaded filters and page. Reloading the browser resets this view. Pagination is
available above and below the results; expanded details use normal page scrolling.
History includes retired agents and has no lifetime 1,000-operation limit. Only one unresolved update is allowed per agent. Expired requests appear as **Expired**; an expired replacement authorization appears as **Outcome unknown** and requires investigation. Installation reported does not establish operational health. Request or cancel updates through the selected agent's **Actions > Agent controls**. [Staged group rollouts](../agent-rollouts/) support a one-agent canary and explicitly approved later batches.
## Fleet scale and control-plane availability
Inventory and setup use paged server searches. Job claims expire only work belonging to the requesting agent; stale claim receipts are cleaned up in bounded background batches. Job history reads finalize expired jobs on the returned page. Agent polling has a separate request budget from console users, and emergency revocation retains its own budget. A throttled agent must honor `Retry-After`.
These boundaries have been exercised against a synthetic 20,000-agent backlog in the actual local service runtime. This verifies bounded work and isolation, not sustained support for 20,000 simultaneously polling agents. Sharded agent traffic and [staged group rollouts](../agent-rollouts/) are available. Sustained production load acceptance remains separate from these bounded-work tests.
## Download one coherent source release
Open [Source downloads](https://qscan.dev/downloads.html). Download the archive,
signed manifest and signature from that page together. Each page load selects one
version and release sequence; its links remain fixed even during a deployment.
The verification command uses the selected version and minimum sequence. Confirm
those values through your trusted release process and use your independently
trusted key and reviewed verifier.
The source catalog is at `/downloads/source/catalog.json`; each listed file uses
an immutable `/downloads/source/{version}/{sequence}/` path. Fetch the catalog
once, then use its three paths. The catalog is a download locator, not a substitute
for signature verification. Earlier snapshots remain available across deployments;
expired signatures still fail verification. Legacy unversioned download URLs remain
for compatibility but should not be combined for new installations.
## Polling and reconnect behavior
Source scanner and Windows/Linux compiled agents **0.25.2** spread repeated polling and transport retries by adding a random delay of up to 20%. First contact is immediate. The configured `pollSeconds` remains a minimum: 15 seconds means subsequent idle cycles wait between 15 and 18 seconds, plus request/scan time. Pause and maintenance polling use the same rule. An outage uses exponential reconnect backoff, with the same spread, and respects valid numeric `Retry-After` values from 1 to 3,600 seconds. Shutdown interrupts these waits.
This reduces synchronized requests after restarts or outages; it does not establish production capacity for 20,000 active agents. Older compiled agents **0.25.1** retain their previous polling behavior. Update the agent distribution to receive this change. Sustained mixed-fleet acceptance remains follow-up work.
### Retained signed releases
Publishing a new native agent keeps previously published, unexpired agent releases available at their pinned URLs. This lets already-authorized updates finish downloading the exact reviewed package. New setup selects the current release first. Expiry and anti-rollback sequence checks still apply; retaining an older download does not authorize a downgrade.
## Cloud discovery in compiled agents
The Windows and Linux binaries include AWS, Azure and GCP SDKs. Getting started now
offers **Binary** for cloud collectors, with local identity guidance and a copyable
provider access check. See [cloud collectors without Python](../cloud-binary-collectors/).
---
# Agent relays and controlled egress
Source: https://qscan.dev/docs/agent-relays
:::info Current relay packages
Use a signed unified package for a background service, or the Python source
bundle for foreground operation. Relay-node permission is separate from scanner
scope and remote-scanner pool membership. Installing a relay does not authorize
agents to use it; approve their membership explicitly.
| Platform | Agent | Installer | Unified package |
| --- | --- | --- | --- |
| Windows / Windows Server x86_64 | 0.27.26 / 964 | 0.51.595 / 965 | 0.51.595 |
| Ubuntu / Debian x86_64 | 0.27.26 / 963 | 0.51.595 / 960 | 0.51.595 |
| macOS arm64 | 0.27.26 / 961 | 0.51.595 / 962 | 0.51.595 |
:::
## Set up a relay in the workspace
1. Open **Agents & sensors > Fleet tools > Agent relays > Register relay**.
Choose a dedicated node or explicitly select an enrolled agent host. Enter
the HTTPS hostname and port that downstream agents can reach. A separate
bootstrap port is needed for relay-only enrollment. Registration creates a
draft; it does not enable forwarding.
2. Open the relay's node setup. Choose the interface address and listener ports.
The default `127.0.0.1` accepts only local connections; use an explicit approved
interface for other hosts. Review **Connection limits**, then protect the
downloaded configuration and one-time node credential. Use the signed unified
package for your operating system: [Windows](#windows-unified-relay-node-deployment),
[Linux](#unified-linux-package-commands), or [macOS](../macos-native-package/).
3. In **Transit access**, approve only the agents allowed to use this relay.
Membership does not change their local route or grant remote-scanner pool access.
4. [Review agent routing](#review-and-edit-routing-in-the-workspace). Select
distinct primary and optional secondary relays, and explicitly decide whether
direct fallback is allowed. Preserve runtime and updater routing separately.
5. Review firewall access, install and diagnose the restricted node service, then
explicitly enable forwarding. Refresh status and run an approved validation
scan. A ready listener or published route alone does not prove a working
end-to-end scan. [Diagnostics and automation](#diagnostics-and-automation)
explains how to inspect failures without disabling TLS verification.
The sections below include source commands, platform-specific service installers,
bootstrap enrollment, fleet routing and independently verified updates. Package
versions and historical qualification results are intentionally separate from
your current node's health.
Version-specific relay qualification and earlier release behavior
Agent 85 prevents automatic replay after an ambiguous relay interruption or HTTP
rejection. Only explicit route unavailability before sending the request can be
retried. Primary/secondary selection and direct fallback remain subject to the
agent's explicit local policy.
Source agent 87 adds a five-second total deadline for resolving and connecting
the relay's forwarding destination. At most four operating-system DNS lookups
can remain outstanding; timed-out requests cannot accumulate resolver threads
or use late DNS answers to open connections. Mixed public/private DNS answers
are rejected before dialing. A stuck OS lookup retains its slot until it returns
or the relay process exits; exhausted capacity fails closed. This deadline applies
to forwarded connections, not the relay's separate control-plane HTTPS client.
Use the version table above to check which compiled packages contain this change;
older native agents do not gain it from a platform update alone.
Source agent 88 also bounds the relay's own control connection: DNS, TCP address
attempts and the TLS handshake share a ten-second deadline. Four separate DNS
slots protect control traffic from forwarding lookup exhaustion. Late answers
cannot send credentials or open connections after the caller has timed out.
TLS still verifies the configured control hostname before sending credentials.
This is a connection-establishment bound, not a ten-second limit for the entire
HTTP request. Native packages require a separately published agent update.
Windows 85 passed restricted scanner-service enrollment, live TLS scanning
through a relay, scope refusal and cloud pause. After revocation the relay denied
admission and the service remained idle, with no new cloud work or heartbeat;
the acceptance harness then stopped and removed it. Separate native tests verify
that authenticated origin HTTP 401/403 responses terminate the persistent agent,
and interrupted requests or HTTP 503 are not replayed. Relay denial is not proof
of origin revocation: a paused relay can also deny admission.
The unified relay-node path passed install, restart, identity preservation, DPAPI
isolation and removal. A separate production-signed cloud update from Windows 75 / 653 to 85 / 692
passed scheduled replacement and an actual reboot, preserving both relay and
updater identities. A fresh post-reboot heartbeat reached the control plane;
local update approval was disabled again and the temporary relay retired.
Ubuntu 24.04 and Debian 12/13 passed Linux 85 scanner-service enrollment and removal.
An Ubuntu relay also completed a cloud-requested 72-to85 signed replacement,
preserved its identity across reboot and reported a fresh heartbeat. Red Hat UBI 8.10
and CentOS Stream 9 passed foreground loader checks; host-service, SELinux and FIPS
qualification are separate. Mac86 passed signed scanner85-to86 replacement and
a managed TLS scan through a relay with retained identity and direct fallback
disabled. Mac relay85 has separate restricted-account replacement evidence;
this does not claim a new relay86 reboot or cloud-update test.
These remain native preview releases. Review the platform-specific
[Windows](../windows-binary-preview/), [Linux](../linux-binary-preview/) and
[macOS](../macos-native-package/) guides for installation and qualification scope.
## Source relay commands
Source agent 0.26.75 waits for normal relay admission after enrolling a runtime
or updater certificate. This can take one relay refresh (normally about 25
seconds). Success confirms the mTLS relay route and the separate origin TLS
connection; a direct fallback cannot satisfy this check. Certificate or node
identity errors fail immediately. If admission remains unavailable, enrollment
preserves the issued identity and reports how to check relay health and
membership before retrying. Do not delete the identity directory to retry.
The published Windows 85, Linux 85 and macOS 85 binaries include this readiness wait.
Older Linux73 installations predate it; preserve their protected identity and
follow the diagnostics if admission has not yet refreshed.
Source agent 0.26.79 also identifies unsupported local crypto dependencies before
reading credentials, creating identity state or contacting the control plane.
`crypto-dependency-unsupported` means the Python environment needs the versions in
`scanner/requirements.txt` (`cryptography >=44,<49`), or you should use the current
native package. It is not a certificate or credential failure. Preserve the
identity directory. Doctor checks this prerequisite for every relay-connected
agent, including repository-only scanning. This diagnostic change is in source
0.26.79; native package qualification remains version-specific.
Source agent 0.26.76 adds structured enrollment failure diagnostics with a stage,
bounded reason code and recovery hint. The stages distinguish protected state,
local inputs, certificate enrollment, identity confirmation and relay readiness.
Diagnostics exclude tokens, private keys and raw exception text. Preserve the
identity directory when retrying; the diagnostic also reports `preserveIdentity: true`.
The source Linux relay installer reports a contended installation lock as
`status: "busy"`, `retryable: true`, with exit code 75 for a read-only status
request. Retry that status check after the active installation finishes. This
does not authorize automatically retrying installation, upgrade or removal.
The published Linux installer 0.51.413 / 650 includes this behavior.
The development source includes a foreground relay command shared by dedicated
nodes and explicitly designated agent hosts:
```text
python scanner/qr.py relay setup --config /absolute/private/relay.json --state-directory /absolute/private/relay-state
python scanner/qr.py relay doctor --state-directory /absolute/private/relay-state
python scanner/qr.py relay run --state-directory /absolute/private/relay-state
```
Setup prompts for the relay credential without echo. Unattended setup accepts
`--token-file` pointing to a private credential file; it does not accept a token
argument or read a relay token from the environment. Run setup and the service
under the same account, using a separate state directory for each relay. Preserve
the state directory to resume interrupted enrollment. Setup rejects replacement
with a different relay, trust configuration or credential.
The configuration contains version `1`, `tenantId`, `relayId`, registered HTTPS
`origin`, explicit numeric `listenAddress`, unprivileged `listenPort` (1024-65535),
`caCertificate`, `admissionTrust` from the authenticated control plane, and
explicit `limits` (`connections`, `per_agent`, `seconds`, `bytes`). In workspace
setup, expand **Connection limits** only if you need to change the defaults:
64 connections, 4 per agent, 180 seconds and 512 MiB per tunnel. The downloaded
Mac instructions use `/absolute/root-owned-package` as a placeholder; replace it
with the absolute path of your verified, root-owned extracted unified package.
The control-plane
destination is fixed; the configuration cannot redirect a relay credential to
another server. Configuration and credential files require private permissions.
Public trust must be delivered through the approved setup channel, never copied
from an unverified relay listener.
`doctor` checks protected state, verifies or renews the certificate, binds the
configured listener, retrieves signed admissions, and submits an authenticated
heartbeat. It closes the temporary listener before returning. It is a pre-start
check: an already-running process holds the state lock. `run` owns that lock,
refreshes authorization and renews identity until stopped. SIGINT/SIGTERM close
the listener and clear forwarding permission. These commands do not yet install
an OS service.
### Replace a node credential without replacing its identity
Stop the relay process, explicitly issue a replacement credential in the workspace,
and deliver it as a private file to the same operating account. Keep the existing
state directory. Run:
```text
python scanner/qr.py relay rotate-credential --token-file /absolute/private/relay.token --state-directory /absolute/private/relay-state
python scanner/qr.py relay doctor --state-directory /absolute/private/relay-state
python scanner/qr.py relay run --state-directory /absolute/private/relay-state
```
The rotation command holds the exclusive protected-state lock. It verifies a fresh
signed admission response against the existing pinned key, tenant and relay ID
before replacing only the saved credential. It preserves certificate keys,
configuration and pending enrollment state. Wrong-relay credentials, invalid
signatures and failed control-plane requests leave local state unchanged. A paused
relay can rotate its credential without enabling forwarding. Cloud issuance
immediately invalidates the old credential, so coordinate the change with the node
administrator. A lost delivery requires explicit replacement; it is never retried
automatically by the setup page.
### Obtain setup configuration
The **Relay HTTPS origin** is the address agents reach; the **local listener port**
is where the restricted service binds on the host. Local ports must be 1024-65535.
For an origin using standard HTTPS port 443, setup suggests a distinct unprivileged
port number (normally 8443, with 8444 for bootstrap); it does not probe the host
for availability. If external and local ports differ, the administrator must
configure TCP pass-through forwarding that preserves TLS to the relay. Do not
terminate TLS at an HTTP reverse proxy. Bootstrap and relay listeners require
different local ports. Setup does not configure forwarding or firewall rules.
An administrator calls `POST /api/v1/relays/{id}/setup` with the relay's current
`expectedRevision`, explicit `listenAddress`, `listenPort`, and `limits`. Save the
returned `configuration` object as the private JSON file used by `relay setup`.
The registered relay origin and tenant/node identity come from QScan; the response
also supplies the public relay CA and admission verification key. The response
contains no credential or private key. Issue the node credential separately using
`/relays/{id}/credential` and deliver it through the protected administrator channel.
JavaScript `relaySetup(id, input)`, Python `relay_setup(id, input)`, and OAuth MCP
`relay_setup` expose the same operation. It rejects stale revisions and retired
relays, and requires workspace administrator access. Generating configuration
does not install a service, change firewall rules or enable forwarding. The
configuration API, setup UI and native relay packages are deployed. Use the
platform-specific package and qualification details at the top of this page.
The service supervisor refreshes signed permissions every 25 seconds, with a
10-second retry after failure. Failed admission retrieval, signature verification
or authenticated heartbeat clears forwarding authority immediately. A newer
signed revision is required to recover after invalidation; replaying the previous
snapshot cannot reopen access. Diagnostics report listener state, active tunnels,
admission revision and a bounded error code without exposing credentials or
certificate data. Use the signed platform packages below for service provisioning;
configuration generation alone does not install or start a service.
The identity manager generates P-256 keys locally and saves a pending key and CSR
before sending the certificate request. Retrying an interrupted request reuses
that exact request. It verifies the CA, signed tenant/node identity, listener name,
key match, usage and lifetime before activating the certificate. Renewal occurs
12 hours before signed expiry, without trusting an unsigned renewal timestamp.
New connections use the renewed TLS context; existing connections retain their
bounded lifetimes and continuously checked forwarding permissions.
An expired certificate can be renewed over the node's own authenticated control
connection. An interrupted enrollment that expired while offline starts a fresh
request only after the control plane confirms there is no active current
certificate. A conflicting active identity requires operator review. These node
recovery paths do not yet establish relay-only bootstrap for downstream agents.
The OpenSSL loader uses temporary encrypted PKCS#8 files with fresh passwords
kept in memory; it deletes the files immediately after loading. Durable Windows
setup state uses account-bound DPAPI. POSIX setup state requires a private
directory and file permissions. Service-account installation and permissions
still require cross-platform qualification before publication.
Use a relay when agents can reach an approved internal listener but should not
connect directly to the control plane. You can designate an existing agent host
or deploy a dedicated relay node. Designation is explicit: joining a remote
scanner pool never makes an agent a relay.
## Choose an egress policy
| Mode | Intended behavior |
| --- | --- |
| Direct | The agent connects to the control-plane origin itself. |
| Relay | The agent tries its primary relay, then its approved secondary, if configured. |
| Direct fallback disabled | If permitted relay routes are unavailable, remain disconnected and report the routing failure. |
| Direct fallback when unavailable | Direct access is permitted only after relay availability failures. Certificate, authentication and permission failures stay closed. |
The local administrator's approved destinations are the ceiling. Fleet settings
must not introduce an unapproved listener or silently turn conditional fallback
into an always-direct route. An HTTP request that has already been sent must not
be replayed on another route merely because its response failed.
### Agent source configuration
The source agent now reads an explicit `egress` policy from its protected local
configuration. Relay mode additionally requires `relayAgentId` and an absolute
`relayIdentityDirectory` containing that agent's protected enrolled client
identity. Its identity must match the workspace and agent; the agent checks the
control-plane credential's own certificate before polling work. Renewal uses the
approved relay connection. A missing, invalid or mismatched identity stops the
workflow rather than opening a new direct channel.
Update supervisors read the same installed egress policy for operation polling
and downloads. If the updater runs under a separate account, use a separately
provisioned `relayUpdateIdentityDirectory` accessible to that account. Account-bound
Windows DPAPI state cannot simply be copied between accounts. An inaccessible
identity fails closed. Release signature and archive verification remain
independent of the selected route.
The scanner uses the `runtime` certificate slot; the updater uses `updater`.
Each slot has its own revision, private key and two-certificate rotation history.
The slot is bound into a signed certificate SAN, so editing local metadata cannot
turn a runtime identity into an updater identity. Repeated scanner renewals cannot
evict the updater certificate. Revoking the agent, its credential or relay
membership denies both slots. Updater certificates confer no extra API or scan
permissions. Configure updater state separately; it cannot silently reuse the
runtime slot.
The relay admission inventory supports 10,000 assigned agents with up to four
current/overlapping certificates each, bounded to 40,000 entries and 8 MiB of
signed payload. This is an inventory bound tested across the control-plane signer
and Python verifier, not a production throughput or concurrency claim.
Protected state provisioning for these accounts, relay-only initial enrollment,
expired downstream identity recovery, and fleet policy distribution are still
being integrated. These fields are source-development configuration, not yet an
installation recipe for published packages.
### Relay-only bootstrap authorization
The control-plane grant API, separate bootstrap listener, client transport and
source enrollment command are implemented. The published enrollment wizard and
installer are still being connected. Normal forwarding
continues to require an enrolled agent client certificate.
An administrator approves one active agent through one or two already-approved,
enabled relays. The setup client generates a random 32-byte secret locally,
encodes it as 64 lowercase hexadecimal characters, and sends only SHA-256 of
that UTF-8 string as `secretHash` to `POST /api/v1/relay-bootstrap`. It retains
the secret in protected enrollment state and forms the scoped bootstrap token
locally. Never put that token in a URL, log, assistant message or MCP argument.
Grants last at most ten minutes and permit at most eight connections. Creating a
new grant replaces that agent's previous grant. A designated relay must redeem
each connection through its own authenticated node API. Each signed lease is
bound to the tenant, relay, agent, grant and connection ID, lasts at most 15
seconds, and permits at most 256 KiB of forwarded traffic. A retry with the same
connection ID cannot extend expiry or consume another use. The grant is not an
API credential and confers no scanning or administrative permission.
Every redemption checks the current tenant, agent credential, relay state and
explicit membership. Revoking a grant stops new connections and redemption
retries; already-issued leases expire within 15 seconds. Bootstrap signatures
use a separate domain and schema from normal forwarding admissions. SDKs expose
grant creation, inspection, revocation and node redemption. OAuth MCP exposes
creation using a hash, inspection and revocation; it does not accept bootstrap
secrets for redemption.
To opt a node into bootstrap, its registered policy includes `bootstrapOrigin`:
the same hostname as its normal origin, with a distinct HTTPS port. Setup also
requires an explicit separate `bootstrapListenPort` for the local bind. If these
fields are absent, the runtime starts only the normal mTLS listener. A bootstrap
grant cannot be issued through a node without this explicit bootstrap policy.
The separate listener performs server-authenticated TLS, accepts only the exact
control-plane CONNECT frame with a bootstrap credential, and obtains a verified
lease before opening an upstream socket. It accepts at most 16 connections and
one active tunnel per agent. The byte and lifetime bounds apply to the opaque
inner TLS traffic. The normal listener rejects bootstrap frames and continues to
require an agent client certificate. Both listeners renew their server identity,
report separate health/concurrency, and stop together.
### Enroll an agent account through bootstrap
The administrator generates public setup configuration using
`POST /api/v1/agents/{id}/relay-enrollment`, with the current relay revisions in
primary/secondary order and an explicit `directFallback` choice. The response is
the protected JSON input for the source command below. SDK methods
`agentRelayEnrollment` / `agent_relay_enrollment` and OAuth MCP
`agent_relay_enrollment` expose this credential-free operation.
Deliver the agent API credential and short-lived bootstrap credential separately
as private files. Under the account that will run the agent, run:
```text
python scanner/qr.py relay enroll-agent --config /private/relay-enrollment.json --token-file /private/agent.token --bootstrap-token-file /private/bootstrap.token --slot runtime --state-directory /private/agent-relay-identity
```
For a separately operated updater, repeat under its own account with `--slot
updater` and a different state directory. The command generates its key locally,
persists its CSR before sending, verifies the issued identity, and confirms the
control plane's active certificate before reporting success. It prints routing
fields and the identity-directory field to apply to the agent configuration,
never credentials or private keys. Repeating a completed enrollment does not
rotate the key; interrupted issuance resumes the saved request. Changed protected
enrollment settings require review rather than silent replacement.
Each initial slot enrollment uses three bounded bootstrap connections (revision,
issuance, confirmation). Runtime and updater then use normal mTLS forwarding for
polling, scans and updates; those operations consume no bootstrap uses. If a grant
is denied, exhausted or expired, request a fresh authorized grant and preserve the
identity state for retry. Direct access is possible only when explicitly approved
in both local policies. With `directFallback` disabled, failure stays relay-only.
The source workflow has real TLS acceptance for both slots, normal agent and
updater polling, and lost-response recovery. Unified installers, bulk deployment,
fleet UI delivery and native cross-platform publication remain outstanding.
## What the relay can see
The agent authenticates to the relay using mutual TLS. Inside that connection,
it establishes a separate TLS session to the control-plane origin and presents
its **own** agent credential. The relay forwards encrypted bytes; it does not
decrypt findings, claim jobs on behalf of agents, or receive their bearer tokens.
It can see connection timing, traffic size and the approved destination, and it
can interrupt availability.
The listener forwards only to its configured control-plane origin. It is not an
open web proxy or a VPN. Connections, per-agent concurrency, bytes and lifetime
are bounded. Endpoint software updates remain subject to the endpoint's existing
release signature, digest, archive and version checks after download.
Keep these trust stores separate:
- Relay TLS CA: verifies relay and downstream client certificates.
- Admission verification key: verifies short-lived forwarding permissions.
- Control-plane TLS trust: verifies qscan.dev inside the tunnel.
- Software release key: verifies an update independently of the relay.
Do not install the relay CA as a general-purpose replacement for control-plane
TLS trust. Relay private keys and agent TLS private keys are generated locally;
certificate enrollment submits a signed PKCS#10 request, not the private key.
## Register and authorize a relay
The administrative API uses the workspace administrator's existing credential
or browser session. The [OpenAPI reference](../api/) describes the full
request and response schemas.
1. `POST /api/v1/relays` creates a draft with a stable `requestId`, name,
canonical HTTPS listener origin and `nodeType`. `nodeType: "agent"` also
requires an active `hostAgentId`; dedicated nodes omit that field.
2. `POST /api/v1/relays/{id}/credential` issues a **relay-only** credential.
Supply the current `expectedRevision`. The response returns the secret once;
deliver it through the protected setup channel. Rotation immediately revokes
the previous token.
3. The relay creates its key and requests its server certificate through
`POST /api/v1/relay-node/certificate`. Its registered listener origin and
tenant/node identity determine the certificate. Requested CSR names or CA
privileges cannot expand that identity.
4. `POST /api/v1/relays/{id}/members` explicitly approves each downstream agent.
An agent obtains its own client certificate through
`POST /api/v1/agents/relay-certificate`. Assignment alone does not mint a
certificate or change the agent's local route.
5. Review local listener configuration, firewall rules, agent routing and trust
provisioning before enabling the relay using `/relays/{id}/state`.
Mutations carry `expectedRevision`. Reload the relay after a conflict; do not
blindly retry a changed destination or expanded assignment. List responses use
`nextCursor`; preserve filters and pass the cursor as `after`. Member cursors are
agent UUIDs, and pages contain at most 100 entries.
## Node credentials and revocation
Relay tokens use the `qrr.` prefix and can access only their node's health,
certificate and admission endpoints. They cannot list findings, claim scan jobs,
enroll scanner agents or administer a workspace. Their hashes are stored on the
server; the raw credential is returned only at issuance. Dedicated node requests
reject cookies, browser Origin headers, query strings and content encoding.
Admission snapshots are signed with a separate Ed25519 key, bind the tenant,
relay and each agent certificate, and currently expire after **60 seconds**.
Revoked/archived agents, revoked/expired credentials and revoked/expired
certificates are omitted. The listener must refresh, reject rollback and invalid
signatures, and close existing tunnels when authorization expires or is withdrawn.
Offline relays cannot extend a snapshot locally. A wall-clock rollback cannot
extend its monotonic deadline.
| State | Effect |
| --- | --- |
| Draft | No forwarding admissions. Complete setup and review first. |
| Enabled | Only explicitly assigned, currently authorized identities receive admissions. |
| Paused | Signed snapshots disable forwarding while the node can still report health. |
| Revoked or archived | Node credential is revoked; the relay cannot be re-enabled. |
| Deleted | Remove approved assignments first. Configuration is removed, while audit history and the deleted identity remain recorded. |
A designated host's revocation or archival also stops its relay authorization.
Suspending a workspace stops relay access. Changes take effect as permissions
are refreshed or expire; do not describe that bounded propagation as instantaneous
termination of every remote connection.
## Certificate lifecycle
The initial implementation issues P-256 certificates with SHA-256 signatures,
24-hour validity and a renewal time 12 hours after issuance. Each enrollment
requires a verified CSR signature and a current identity revision. The same
current request ID and CSR can be retried without issuing another certificate.
One previous certificate is retained for rotation overlap; older ones stop
appearing in new admissions. Authorization is rechecked after signing, before
the certificate becomes active.
The source runtime renews its own certificate through the approved route;
the updater uses an independent certificate slot. Relay-only bootstrap is
implemented in the source enrollment command. Managed service-account delivery,
recovery after extended offline periods and native installer qualification are
still being integrated. These capabilities are not yet published agent packages.
### Linux service identity storage
The Python and compiled Linux installers reserve
`/var/lib/sectigo-quantum-ready/relay-runtime` for the runtime identity. A relay
configuration must select that exact directory. The installer creates it with
mode `0700`, owned by the dedicated service account, and retains it during
upgrades. It rejects a substituted symlink, unexpected ownership, extended ACLs
or broader permissions rather than rewriting an existing identity store.
The systemd sandbox permits writes to that directory only (plus rotating logs
for the Python service). Installed code and configuration remain read-only.
The compiled service sends logs to the journal. This applies to the generated
systemd definitions for Ubuntu, Debian, Red Hat and CentOS. Ubuntu24.04 and
Debian12/13 have native scanner-service acceptance. Red Hat/CentOS host-service,
SELinux and FIPS qualification remain separate from their loader checks.
Creating the directory does not enroll a certificate. Enrollment must run under
the actual runtime account. Keep updater enrollment and its private state under
the updater account in a separate directory. In particular, Windows protected
identity state must never be enrolled under an administrator and copied to a
different account.
### First-start enrollment
Protected local agent configuration can now carry `relayEnrollment` containing
the exact administrator-generated enrollment configuration, plus
`relayBootstrapTokenFile` pointing to a private short-lived bootstrap credential
file. The enrollment agent ID, tenant and ordered routing policy must match
`relayAgentId` and `egress`; a mismatch stops before any network request.
The running agent creates its runtime identity under its own account. The
updater independently creates its updater identity using
`relayUpdateIdentityDirectory`. Both paths must be absolute and separate.
No administrator-generated private key or account-bound state is copied.
After a valid identity exists, restart uses normal mTLS and does not read the
bootstrap file or redeem another grant. The source acceptance test removes the
bootstrap file and denies further redemption before restarting both paths.
Expired or damaged identity state requires explicit recovery; startup does not
silently replace it using old bootstrap credentials.
The Linux source installers accept `--relay-bootstrap-token-file` during initial
installation. Supply a protected credential file alongside the agent configuration
containing `relayEnrollment`. The installer sets the managed runtime and updater
paths; do not supply arbitrary paths or share their identity directories.
Linux installs a root-only `relay-bootstrap.token` and a separate root-owned
`runtime-relay-bootstrap.token` whose ACL grants read access only to the dedicated
runtime UID. This works with the older systemd versions used by Red Hat/CentOS
as well as newer Ubuntu/Debian systems. The updater reads its root-only copy via
`relayUpdateBootstrapTokenFile`; the runtime cannot read that file or write either
copy. Neither credential appears in unit arguments, environment or configuration.
Failed installation rolls back both copies. Service removal clears runtime
access but preserves the root-only credential with the other retained installation
credentials. These are short-lived grants; retention does not extend their expiry.
For independently managed systemd delivery, the source also recognizes
`@systemd:relay-bootstrap` and resolves only the fixed `relay-bootstrap` entry
inside the service credential directory. This is a Linux-specific alternative;
use the published unified installers for their platform-managed credential layout.
The [Mac package guide](../macos-native-package/) covers native service enrollment
and its separate runtime/updater stores. Do not put raw bootstrap credentials in
configuration, command arguments or environment variables.
### Windows protected setup
The Windows service `setup` command now accepts `--relay-bootstrap-token-file`
alongside its existing configuration and enrollment credential options. It reads
the bootstrap file using native private-file ACL checks. The configuration must
contain `relayEnrollment` matching the selected agent and local routing. Setup
chooses fixed paths below the protected product state directory.
`relay-bootstrap-token` grants read access to the dedicated service SID;
`relay-updater-bootstrap-token` grants access only to SYSTEM and Administrators.
The runtime identity directory permits the service to create and update its
protected state. The updater directory excludes the runtime service SID. Private
keys are created later under the operating account and protected using that
account's DPAPI context; setup does not generate keys under the administrator
and copy them to the service.
The setup journal stores hashes rather than credentials. Interrupted setup
resumes only missing files with the original inputs, and refuses to overwrite
changed files or repair unexpected ACLs. Existing removal behavior preserves
protected configuration and credentials, including bootstrap files; their remote
expiry and use limits remain in effect. Bootstrap files are plaintext protected
by Windows ACLs, while saved Windows identity state uses DPAPI.
Windows unified package **0.51.432** includes this workflow with agent
**0.26.85 / 692** and installer **0.51.413 / 649**. Windows Server 2025 acceptance
verified enrollment under the actual restricted service account, heartbeat and
TLS scanning through an approved relay with direct fallback disabled, local-scope
refusal, cloud pause and idle admission denial after revocation, followed by explicit
service stop/removal. These results apply to
the Windows scanner service; they do not establish macOS service qualification.
### Email-verified relay handoff (development)
The enrollment-handoff API accepts an optional `relay` object with ordered
`relays` entries (`id`, `expectedRevision`) and an explicit `directFallback`
value. Select enabled relays with configured bootstrap listeners. The existing
email verification and configurable link expiry still apply.
Creating the link does not issue an agent credential or bootstrap grant. After
the recipient verifies their email, one transaction creates the agent, approves
only its selected relay memberships and creates a ten-minute bootstrap grant
with eight connection uses shared across the selected relays. No remote-scanner
pool membership is granted. Unrelated membership revisions do not invalidate the
link, but changed relay policy, CA trust, inactive relay/host or lost administrator
authority prevents redemption. A failed transaction leaves no partial agent or
bootstrap grant.
The recipient page warns them to prepare the installer and local discovery scope
before verification. After verification it offers a private per-device ZIP with
`agent.json`, `agent.token`, `bootstrap.token` and instructions. The configuration
contains relay routing only: add the explicitly approved discovery scope before
installation. Raw credentials are in these private downloaded files, not in the
instructions or stored handoff record. Protect and dispose of downloads using
your organization's secret-handling policy.
Bootstrap expiry starts at verified redemption, independently of the longer link
expiry. Downloads do not extend it. The page refuses new downloads after expiry
and clears its credential references when leaving. Lost redemption responses
still require administrator recovery, as with existing single-use handoffs.
The administrator handoff form now offers **Agent connection**: choose a direct
connection or approved relays, explicitly select a primary and optional secondary,
and review direct fallback (disabled by default). Only enabled relays with a
bootstrap listener, current credentials and an active designated host appear.
Refresh loads the paginated inventory. If a selected relay's policy changed or
it became unavailable, the selection is cleared for review instead of silently
approving a different destination. Selected origins remain visible below the
controls on smaller screens.
The API, admin selector and recipient-page flow are deployed. End-to-end live
email-handoff acceptance remains separate from the installed-service tests above.
Relay inventory, draft registration, status changes and assignment review are available under **Agents & sensors > Fleet tools > Agent relays**. Registration supports dedicated nodes and explicit host-agent selection with paginated fleet search. The full-page **Set up relay node** form prepares listener settings and resource limits, then explicitly issues or replaces a node credential and downloads a private ZIP. It does not retain the credential for another download. Protect extracted files before running the source commands. Open **Manage access** for paginated active-agent search, explicit transit approval, and per-agent revocation. These actions do not change local routes or scanner-pool permissions. Retired relays can be deleted from that page after revoking all approved assignments; the server checks the full inventory. Open **Edit configuration** for a full-page policy form with paginated host search. Changes use the reviewed revision; uncertain saves and conflicts require reviewing current state before another edit. Changing the host or destination requires a fresh node credential and explicit re-enablement. Unchanged settings are not submitted. These management pages are deployed. Published Windows and Linux relay package versions and their qualification scope are listed at the top of this page; unified macOS package 0.51.426 is also published with a managed relay service and foreground scanners.
## Diagnostics and automation
For an installed service, start with the unified package's **relay-node status**
command and refresh its workspace status. Installer status is a read-only
inspection of registration and protected installation records; it does not prove
runtime integrity, cloud reachability or successful forwarding. Check the
reported verification fields rather than interpreting exit code zero as healthy.
The foreground `relay doctor --state-directory ...` command is different: it
loads the relay identity, may obtain or renew certificates, binds the configured
listeners and refreshes signed admissions. Do not run it alongside a service
using the same identity directory or ports. Diagnose the installed service first;
if a foreground check is needed, arrange a maintenance window and stop that
service explicitly before using its protected state under the correct service
account. Preserve the identity directory and restore the reviewed service after
the check. A port or state-lock conflict is not a reason to delete identity files
or disable TLS verification.
Changing a registered relay's host type, designated host, forwarding origin or
bootstrap origin invalidates its existing node credential and clears the old
health report. The relay returns to draft. Provision a fresh credential for the
reviewed node configuration, then explicitly enable forwarding. An old node
cannot obtain new admissions with its previous credential; existing signed
admissions remain bounded by their expiry. A name-only policy edit keeps the
credential but also requires explicit re-enablement. Downstream agent identities
and assignments are preserved. Changed destinations still require approval in
each agent's protected local routing policy; cloud edits cannot bypass that limit.
Relay health reports contain listener state, active tunnel count, applied
admission revision and a bounded error code. They must never contain tokens,
private keys, raw findings or arbitrary upstream error text. A recent heartbeat
is a node report, not proof that a downstream scan completed.
The inventory and detail page prioritize retired or paused state, unavailable
credentials and designated hosts, then forwarding errors. A ready listener with
an admission failure is shown as **Forwarding authorization unavailable**. Reports
older than two minutes are unavailable in the API and shown as **No recent report**;
the last-contact timestamp remains visible. **Listener reported ready** still
requires a validation scan from an approved agent to establish connectivity.
| Result | Next step |
| --- | --- |
| Credential expired/revoked | Verify the node's state and protected credential; use administrator-controlled rotation. |
| Certificate rejected | Check purpose, hostname, validity and the separately provisioned relay trust. Never disable verification. |
| Admission unavailable | Check assignment, agent/certificate status, signing trust and the last successful refresh. Remain closed until valid authority returns. |
| Revision conflict | Read the current relay or certificate revision and review the requested change. |
| Origin unavailable | Check the relay's approved outbound destination and DNS; do not broaden proxy destinations. |
| Host inactive | Restore or replace the explicitly designated host; remote-scanner membership does not authorize a replacement. |
The JavaScript and Python SDKs expose registration, listing, state, membership,
credential issuance, certificate enrollment, node health and signed admissions.
Use the node credential only with the dedicated `relayNode*` / `relay_node_*`
methods. Software must verify the admission signature before accepting its
contents; decoding base64url is not verification.
The existing OAuth MCP connection exposes `relays`, `relay`, `relay_create`,
`relay_update`, `relay_state`, `relay_delete`, `relay_members`,
`relay_member_update` and `relay_admission_trust`. Every mutation still requires
workspace administrator authorization. Secret issuance and key material stay in
the protected setup/API flow rather than assistant tool arguments.
### Fleet routing and acknowledgements
The runtime can validate and persist a narrowed fleet route in its protected
identity state before acknowledging configuration. It restores that route after
restart, rejects stale/conflicting revisions, and preserves its certificate keys.
A policy must remain within the locally approved relay IDs, origins and fallback
permission. A conditional fallback does not permit forcing direct mode. Omitting
routing from a subsequent scan configuration does not reset the active route.
Per-agent fleet publication is deployed in the API and available through the OAuth MCP tool.
The agent connection routing page checks runtime and updater acknowledgements
independently every ten seconds, and shortly after route publication. **Check
application status** refreshes reports without discarding unsaved edits. If the
published configuration changes elsewhere, the page preserves the edits but blocks
publication until you explicitly refresh and review the new revision. Retired
agents cannot publish routes. Failed status reads are identified as stale and do
not retry a routing mutation. An applied report is not proof of downstream
connectivity; validate the approved route from the agent.
The full-page routing editor and bounded fleet preview/publication operations are
deployed. A live development-workspace check with compiled macOS agent 0.26.78
verified publication, runtime acknowledgement, restart persistence and rejection
of a forced-direct policy outside local approval. Restoring the approved route
allowed a TLS scan through the relay; revocation then blocked further contact.
This is one runtime's acceptance, not fleet-scale performance or independent
updater acceptance. The local routing policy remains the installation authority.
### Publish a reviewed agent route
Use the existing `POST /api/v1/agents/{id}/configuration` operation with the
current configuration `expectedRevision` and complete scan settings. Add:
```json
{
"egress": {
"version": 1,
"mode": "relay",
"relays": [
{ "id": "11111111-1111-4111-8111-111111111111", "origin": "https://primary.example:8443" },
{ "id": "22222222-2222-4222-8222-222222222222", "origin": "https://secondary.example:8443" }
],
"directFallback": "disabled"
}
}
```
This fragment belongs inside `settings`; use real registered IDs and origins.
Order determines primary then secondary. The server requires each relay to be
enabled with a current credential, an active designated host where applicable,
and an existing approved assignment for this agent. It checks the exact registered
origin and tenant. Publication never creates relay assignments. The endpoint
still requires administrator authorization and an exact configuration revision.
The agent independently enforces its local ceiling and opt-in before acknowledging.
Omitting `egress` on a later scan-settings update preserves the previously
published route. To explicitly request direct routing, use version `1`, mode
`direct`, an empty `relays` list and `directFallback: "disabled"`. Relay-only local
approval rejects that request even if conditional fallback was allowed. The runtime configuration acknowledgement and `updaterRoutingStatus` are separate reports.
Neither is independent attestation; compare both revisions to the current configuration.
JavaScript `publishAgentConfiguration(id, revision, settings)`, Python
`publish_agent_configuration(id, revision, settings)`, and OAuth MCP
`agent_configuration_publish` carry the same settings. After an uncertain response,
read the agent's current configuration and history before republishing. These
APIs and the full-page fleet editor are deployed. Bulk deployment plans use
separate relay authorization and per-device approval/bootstrap; they do not accept
unassigned fleet egress settings. Validate runtime and updater acknowledgements
individually after publishing a route.
### Independent updater routing
A managed update supervisor reads `GET /api/v1/agents/egress` using its existing
approved transport. This delivers only its own desired routing, without changing
runtime heartbeat or scan state. It validates the local ceiling, persists an
accepted revision in its own protected identity directory, and switches transport
before reporting to `POST /api/v1/agents/egress-status`. It then uses that route
for update polling, operation reconciliation and independently verified release
downloads. Signed release verification and replacement authorization are unchanged.
Rejected policy, invalid state or a failed acknowledgement stops that update
cycle. No automatic route expansion or direct escape is introduced. Restart uses
the updater's persisted route; it does not read or overwrite the runtime's keys
or routing state. Routing still depends on the route being reachable: an operator
must review recovery if an explicitly selected path prevents contact.
`updaterRoutingStatus` appears in the authenticated agent record separately from
`configurationStatus`. Publishing a new configuration clears both reports. A
status is bound to the current desired revision; stale reports return 409. These
are reports from the agent credential, not cryptographic proof of which process
sent them. The GET/POST operations require the agent role and cannot select another
agent. JavaScript `agentDesiredEgress()` / `reportUpdaterRouting(input)` and Python
`agent_desired_egress()` / `report_updater_routing(data)` expose these agent-only
operations. Administrative OAuth MCP inspection uses the existing `agent_status`
tool; these agent-only reporting operations are not administrative MCP tools.
The source updater transport passed a live development-workspace check with a
separately enrolled updater certificate: independent acknowledgement, restart
persistence, rejection outside local approval, unchanged runtime identity, and
revocation blocking further polling. This does not qualify a compiled updater
supervisor or managed replacement through the changed route; those require
separate native acceptance.
### Review and edit routing in the workspace
Open an agent's **Configuration** page, then **Connection routing and updater
status**. The full-page editor shows runtime configuration and updater routing
reports independently against the current revision. It offers Keep current route,
Direct connection, or Approved relays with explicit primary/secondary choices and
direct fallback disabled by default. Primary and secondary must be distinct.
Relay inventory is loaded in bounded pages and only enabled, credential-ready
nodes with an active host are offered. Agent membership is checked by the server
when publishing; the editor links to relay transit-access management. A previously
selected relay whose destination changed is not silently reselected. Publication
preserves every existing scan setting. If this is the first managed configuration,
new scans default to disabled with empty scope.
The editor shows publication separately from application. After a successful or
uncertain publication, use **Refresh and discard edits** to review current state
before another change. Viewer access is read-only. This interface does not install
an agent, approve new local routes or grant scanner-pool permissions. Runtime and
updater reports remain independent; publication alone does not confirm either.
### Controller-prepared bulk relay enrollment
A relay-only device cannot contact the public enrollment endpoint before it has a
bootstrap grant. Prepare its individual package on the authenticated management
controller, then deliver it through Intune, Jamf, Ansible or another protected
per-device channel. Do not distribute a shared agent or bootstrap credential.
1. Create an ordinary deployment plan with its scan settings and an optional
top-level `relay` object containing ordered `relays: [{id, expectedRevision}]`
and explicit `directFallback`. This captures approved destinations and trust.
`settings.egress` is not a substitute for deployment relay authorization.
2. Allocate each device with its stable UUID through the existing devices API.
3. Just before installation, call
`POST /api/v1/agent-deployments/{id}/devices/{deviceId}/relay-package` with `{}`
as an administrator. It creates that device's agent credential, approved relay
assignments and a ten-minute, eight-connection bootstrap grant atomically.
4. In protected controller memory, combine `settings` with
`relay.configuration` and `managedConfiguration: true` for `agent.json`.
Save `token` separately as `agent.token` and `relay.bootstrapToken` separately
as `bootstrap.token`. Use private files and the platform-specific unified
scanner-service relay enrollment parameters. The receiving local administrator must approve the
supplied scope. Keep credentials out of command arguments, logs and shared
packages. See the [Mac service enrollment guide](../macos-native-package/) for
its native installer commands. Intune/Jamf assignment and controller-to-device
delivery need their own rollout validation.
5. Retain the device's stable enrollment identity for retry and acknowledge only
after its credentials are securely saved. Enrollment acknowledgement alone
does not prove installation or successful scans.
Retrying preparation returns the same encrypted delivery while the plan, agent,
relay approval, trust and bootstrap remain valid. It does not extend expiry,
reset connection usage or create another agent. Changed destinations, revoked
access, paused relays, exhausted/expired bootstrap and lost administrator authority
prevent delivery. Expired bootstrap requires explicit recovery for the existing
agent using the device's Relay package action or the API below. Direct device redemption is
rejected for relay-authorized plans. Existing direct deployment plans are unchanged.
JavaScript `prepareDeploymentRelayPackage(id, deviceId)`, Python
`prepare_deployment_relay_package(id, device_id)` and OAuth MCP
`deployment_relay_package` expose preparation. These responses contain secrets
for the designated device. Public plan/device inspection does not contain them.
The deployment setup page now offers direct or approved-relay routing, ordered
primary/secondary selection and explicit direct fallback. Available relays must
be enabled, credentialed, host-ready and have a bootstrap listener. Selection
captures relay revisions; changed policies require review. The reviewed request
is frozen after dispatch so an uncertain response retries the same authorization.
For a pilot device, the UI can prepare and download its private relay package,
including approved scan scope. The Relay package action can retrieve an already
prepared, unacknowledged delivery without creating another agent. It does not
extend bootstrap expiry. For an unacknowledged prepared device, choose **Renew for
10 minutes** under Bootstrap access to invalidate its old bootstrap grant and
download a replacement. The current bootstrap ID must be available; refresh
deployment details if it is missing. Renewal preserves the agent credential,
identity, device slot and approved scope. Prepare the target device first.
After an uncertain response, retry the same operation. The form retains its
recovery request ID and expected bootstrap ID; it does not silently renew again.
Credentials are kept out of rendered text and cleared when the download closes.
These source API/UI paths are implemented; provider orchestration and end-to-end
installer acceptance for this bulk path are not yet complete or deployed.
### Explicit bulk bootstrap recovery
The deployment UI offers this operation for prepared, unacknowledged devices.
Controllers can use the API directly as follows.
For a prepared but unacknowledged device whose bootstrap expired, read its device
status and review `relayBootstrapId` (an identifier, not a secret). Call the same
relay-package endpoint with:
```json
{
"recovery": {
"requestId": "33333333-3333-4333-8333-333333333333",
"expectedBootstrapId": "44444444-4444-4444-8444-444444444444"
}
}
```
Use a fresh request UUID and the actual current bootstrap ID. Recovery atomically
revokes the old grant, creates a new ten-minute/eight-use grant, and updates the
encrypted delivery. It preserves the agent ID, API credential, scan settings and
approved route. Deliver the replacement bootstrap file privately; keep existing
agent identity state to resume interrupted certificate enrollment.
An exact retry returns the same replacement while valid. Changing the expected
ID, replaying a superseded recovery, or using an old current ID fails. Revoked
agents, deployments, device grants, bootstrap grants or relay memberships cannot
be revived by this operation. Changed trust/destinations and paused relays also
block recovery. Each device permits at most 32 recovery requests for bounded
history; reaching the limit requires reviewing the deployment. Acknowledged
devices use their locally saved credentials and are outside this enrollment
recovery path.
JavaScript passes `{recovery: {...}}` as the third argument to
`prepareDeploymentRelayPackage`; Python passes the recovery object as the third
argument to `prepare_deployment_relay_package`. OAuth MCP accepts the optional
`recovery` object on `deployment_relay_package`. These API capabilities are deployed; provider-managed installation acceptance remains unfinished.
### Streaming controller preparation (Python SDK)
`sdk/python/relay_deployment.py` provides
`prepare_relay_deployment_devices(client, plan_id, devices, deliver)`. It accepts
an iterable of persisted device IDs and names and a **synchronous** protected
per-device delivery callback. Each callback must finish before the iterator
prepares the next device. The helper yields non-secret delivery metadata;
`installationVerified` remains false until independently checked on the host.
```python
from quantum_ready import QuantumReady
from relay_deployment import prepare_relay_deployment_devices
client = QuantumReady(endpoint="https://qscan.dev", token=admin_token)
for status in prepare_relay_deployment_devices(
client, plan_id, persisted_device_inventory, protected_device_delivery
):
save_controller_checkpoint(status)
```
Supply `admin_token` from the controller's secret store. The callback receives
`deviceId`, `agentId`, `files` and `bootstrapExpiresAt`. Its `files` mapping contains
private credentials; do not log it or store it in shared deployment artifacts.
The helper clears retained secret fields after the callback returns, which is
not a claim of memory erasure. Use a synchronous callback; awaitable callbacks
are rejected rather than reported as successful delivery.
Errors expose only the preparation phase and device ID. Stop and review that
device before retrying with its persisted ID. Optional per-device `recovery`
contains the reviewed `requestId` and `expectedBootstrapId`. Neither SDK helper
automatically renews access, acknowledges installation, writes files, executes
installers or provides a provider-managed delivery channel. Intune, Jamf and
Ansible delivery adapters remain separate integration work.
### Streaming controller preparation (JavaScript source SDK)
`sdk/javascript/relay-deployment.mjs` provides
`prepareRelayDeploymentDevices(client, planId, devices, deliver)` for a controller
that already has a protected per-device delivery channel. `devices` can be an
async iterable, so the controller need not load the fleet inventory into memory.
Each item contains a persisted device UUID and name. Optional `recovery` contains
the explicitly reviewed request/current-bootstrap IDs described above.
```js
import {QuantumReady} from './sdk/javascript/index.mjs';
import {prepareRelayDeploymentDevices} from './sdk/javascript/relay-deployment.mjs';
// Obtain adminToken from your controller's secret store. Do not log it.
const client = new QuantumReady({endpoint: 'https://qscan.dev', token: adminToken});
for await (const status of prepareRelayDeploymentDevices(
client, planId, persistedDeviceInventory,
async ({deviceId, files, bootstrapExpiresAt}) => {
// Implement with your management system's authenticated per-device channel.
// Resolve only after all three private files are safely delivered.
await protectedChannel.deliver(deviceId, files, {expiresAt: bootstrapExpiresAt});
}
)) {
await saveControllerCheckpoint(status); // Contains identifiers/status, not secrets.
}
```
The helper waits for each delivery before preparing the next bootstrap. It checks
existing device state, allocates only missing devices, reuses prepared identities,
includes approved scan scope in `agent.json`, and refuses invalid/expired delivery.
It never renews automatically or acknowledges enrollment. Persist device IDs and
recovery request IDs before invoking it. After failure, retry the same item;
delivery callbacks must safely tolerate redelivery to that same device.
The callback receives credential-bearing `agent.token` and `bootstrap.token`
strings in memory. Do not log them, write them to a shared installer, or defer
delivery after the callback resolves. The helper clears its object fields before
yielding status; this is reference cleanup, not guaranteed memory zeroization.
An exception stops consumption and exposes only the failing phase/device ID.
Provider-specific transport, file ACLs, installation, acknowledgement and scan
validation remain the controller's responsibility. This source helper is tested
with simulated clients/channels; it is not provider-managed deployment acceptance.
### Restart routing and certificate enrollment
Runtime and updater retain their own protected fleet routing revision across
restarts. A valid existing identity does not need the bootstrap token again.
Explicit certificate enrollment also honors the saved relay subset, order and
fallback policy, using those relays' corresponding bootstrap listeners. It does
not reset routing to the broader original installation approval. Invalid saved
routing stops enrollment before contacting a relay; preserve the protected state
and investigate the configuration rather than deleting identity files.
### Dedicated Linux service account (source preview)
The relay runs separately from discovery agents, including when both share a
designated host. Give it its own non-login account and matching group. It needs
outbound HTTPS to the control plane and inbound access on the configured relay
ports, not scanner privileges or membership in remote-scanner pools.
The source CLI can generate a reviewable systemd definition:
```sh
quantum-ready relay service-plan \
--executable /opt/qscan-relay/quantum-ready \
--config /etc/qscan-relay/config.json \
--token-file /etc/qscan-relay/initial.token \
--state-directory /var/lib/qscan-relay \
--user qscan-relay
```
This prints JSON containing the unit and prerequisites; it does not install it.
The executable path must refer to a verified complete standalone distribution
that contains these commands. Published Linux 85 includes them; the unified
package provides the managed installation path. The unit uses `relay serve` to provision certificates under the
dedicated account on first start and then run the relay. It refuses root execution.
Configuration and initial token remain administrator-owned, with read access
granted only to that account. The account owns its separate mode-0700 state
directory; code and configuration must be outside that writable directory and
outside home directories.
After successful provisioning, the initial token file can be removed. Restart
uses protected state and preserves explicit credential rotation. An interrupted
certificate issuance resumes its pending key. Configuration changes that differ
from saved approval stop startup for review; they do not silently replace trust
or listener settings. Stop the service before credential rotation or foreground
diagnostics because the state store permits only one process at a time.
The unit uses an empty capability set, read-only system protection and one
writable state directory. It changes no firewall rules. Native systemd 255 syntax
has been checked. The source unit definition alone is not an installed-service
qualification. Published compiled Linux packages have separate Ubuntu/Debian
lifecycle evidence and Ubuntu relay update/reboot evidence; see the current
platform scope at the top of this guide. Older-distribution service qualification
remains open.
### macOS relay service definition
The transactional Mac installer now implements protected installation, separate
updater provisioning, local approval, cloud-update coordination, and journaled
schedule setup/reconfiguration. See [macOS relay installation and updates](../macos-relay-updates/)
for the command sequence, status and recovery behavior. The arm64 relay has passed installed service, reboot and production-signed
scheduled update acceptance. The foreground binary is published; unified installer
delivery remains separate. The lower-level plan below is
still useful for inspecting a forwarding definition, but does not install it.
Source agent 0.26.73 adds `relay service-plan --platform macos`. It generates a
reviewable LaunchDaemon plist; it does not install or start a service. Use a
installer-provisioned non-login account `_qscanrelay`, separate from the scanner
and updater accounts. Code and enrollment inputs must be outside writable state.
```sh
python3 scanner/qr.py relay service-plan --platform macos \
--executable '/Library/Application Support/Sectigo/relay/quantum-ready' \
--config /private/etc/sectigo-relay/relay.json \
--token-file /private/etc/sectigo-relay/relay.token \
--state-directory /private/var/db/sectigo-relay/node \
--user _qscanrelay
```
The executable path is for an independently verified native distribution; generating
this plan does not install a service. Use the qualified installer workflow rather
than manually applying a generated plan. Review the returned ownership requirements
before using administrator commands.
The current source startup path uses `relay macos-service`. Its initial root
process validates the protected account plan, clears supplementary groups, drops
to the dedicated UID/GID and verifies that root cannot be regained before reading
enrollment inputs or opening a listener. The forwarder runs without root access.
This startup path passed native restricted-account acceptance. Older compiled
agents must not be paired with a service definition they do not support.
macOS setup state now rejects extended directory ACLs even when the directory
shows mode `0700`. If setup reports a directory-permissions error, have the local
administrator inspect its ownership and ACLs; do not broaden access to resolve it.
### Transactional Linux relay installer
The published Linux installer provides a `relay-node` command group. It verifies the
signed native archive, expected version and minimum release sequence before
installing a separate relay service. For individual signed release inputs:
```sh
sudo quantum-ready-service relay-node install \
--manifest /root/relay-package/manifest.json \
--signature /root/relay-package/manifest.sig \
--archive /root/relay-package/agent.zip \
--trusted-key /root/relay-package/release-key.json \
--expected-version VERSION --minimum-sequence SEQUENCE \
--config /root/relay-package/relay.json \
--token-file /root/relay-package/relay.token
```
Replace `VERSION` and `SEQUENCE` with the reviewed release values. The signing key
must come from your independently trusted release configuration. Published Linux
installer 0.51.413 / 650 includes this command. The equivalent source entry point is
`python3 scanner/linux_binary_service.py relay-node` with the same arguments.
Installation creates `sectigoqr-relay`, isolated from `sectigoqr`, and a separate
`sectigo-quantum-ready-relay.service`. Original inputs stay administrator-owned;
derived credential/configuration files grant read access to precisely the relay
UID. Only `/var/lib/sectigo-quantum-ready-relay/node` is writable by the running
relay. Releases and installer receipts stay administrator-owned. No firewall
rules or remote-scanner memberships are created.
`relay-node upgrade` accepts a new signed release and preserves enrollment.
`start`, `stop`, `status`, `remove` and `recover` use the protected installation
receipt. Installation and upgrade journal changes before activation and restore
previous definitions on failure. An interrupted transaction requires `recover`.
Removal disables the service and removes its derived delivery files; it preserves
private identity, original credentials and releases for deliberate recovery.
Keep those administrator-owned inputs while the managed installation exists.
The installer checks process stability before committing, which does not prove
control-plane connectivity. Check fleet relay health after installation. Local
transaction tests use a simulated service manager, supplemented by native
Ubuntu/Debian service and reboot acceptance and a production-signed Ubuntu relay
cloud update. See the platform-specific versions at the top of this page; these
results do not establish acceptance on every Linux distribution.
### Unified Linux package commands
The unified launcher source exposes the same relay-node lifecycle:
```sh
sudo ./Deploy-QuantumReady.sh relay-node install \
--config /private/relay.json --token-file /private/relay.token
sudo ./Deploy-QuantumReady.sh relay-node status
sudo ./Deploy-QuantumReady.sh relay-node upgrade
sudo ./Deploy-QuantumReady.sh relay-node recover
sudo ./Deploy-QuantumReady.sh relay-node remove
```
`relay-node start` and `relay-node stop` control only the relay service. Installation
and upgrade use the package's signed release and reviewed sequence. Per-node
configuration and credentials are delivered separately from the shared package.
Relay-node actions do not enroll a scanner or operate its updater. Both services
can coexist on an explicitly designated agent host using separate accounts.
The next Linux installer includes a structured response when `relay-node status`
cannot acquire the installation lock: `status: "busy"`,
`error: "installation-operation-in-progress"`, `retryable: true`, and exit code75.
Retry the status observation after the current operation finishes; do not delete
protected state or replay an install/update command. This response does not claim
that the service is healthy or installed. Published installer408 and qualification
candidate413 still emit the older lock-contention error.
To install a scanning agent that connects through relays, use `install-relay`
with the agent configuration, agent token and short-lived bootstrap token instead.
The launcher rejects mixing these input sets before invoking either binary. A
failed relay operation stops immediately; its success/status message is not shown.
These commands are included in published Linux unified package 0.51.431. Native
service qualification covers the versions and distributions listed above.
Provider-managed enrollment and newer candidate packages require their own
acceptance; launcher orchestration tests alone do not establish that result.
### Windows service identity (source preview)
The Windows relay host uses `SectigoQuantumReadyRelay` and the separate virtual
account `NT SERVICE\SectigoQuantumReadyRelay`. It rejects the discovery service's
account, elevated tokens, missing restricted SIDs and extra privileges before
opening relay state or reading enrollment inputs. Its allowed privilege is
`SeChangeNotifyPrivilege`; relay forwarding does not require scanner privileges.
The `relay windows-service` source entry point accepts `--config`, `--token-file`
and `--state-directory` and must be started through Windows Service Control Manager.
First provisioning runs under the relay account so its DPAPI identity state is
never transferred from an administrator or the scanner. Stop and shutdown requests
are forwarded to the relay runtime; listeners and the protected state lock are
closed on exit. An unexpected runtime exit is reported as a service failure.
This is the service-host implementation, not a released Windows installer.
Installer registration, ACL setup and real virtual-account execution passed
Windows Server native acceptance, including scheduled update and reboot. Unified
Windows package 0.51.432 includes this installer. Do not configure the relay to run as SYSTEM
or an administrator to bypass account validation.
### Windows relay installation commands (source preview)
The installer source exposes `relay-node install` and `relay-node recover`. A
candidate containing these commands accepts the following in an elevated terminal:
```powershell
.\quantum-ready-service.exe relay-node install `
--manifest C:\Private\relay-package\manifest.json `
--signature C:\Private\relay-package\manifest.sig `
--archive C:\Private\relay-package\agent.zip `
--trusted-key C:\Private\relay-package\release-key.json `
--version VERSION --minimum-sequence SEQUENCE `
--config C:\Private\relay-package\relay.json `
--token-file C:\Private\relay-package\relay.token
```
Use the reviewed version and sequence and an independently trusted signing key.
Configuration and token inputs must have private file permissions. The source
equivalent is `python scanner/windows_service.py relay-node install` with the same
arguments. This installs a signed standalone agent distribution as the relay.
Published Windows installer 0.51.413 / 649 includes these commands, and unified
Windows package 0.51.432 supplies the launcher and signed inputs together.
If initial setup is interrupted, use `relay-node recover` with the original
package, configuration, token and release arguments. Recovery requires existing
protected relay roots and a matching installation journal. It preserves relay
identity and cannot adopt an unrelated service or changed enrollment inputs.
An expired package can be used only when its exact release was previously admitted
and recorded in that protected journal; a new expired download is rejected.
The same candidate supports local lifecycle commands without enrollment inputs:
```powershell
.\quantum-ready-service.exe relay-node status
.\quantum-ready-service.exe relay-node stop
.\quantum-ready-service.exe relay-node remove
```
Stop disables the relay service. Remove stops and deletes the exact registered
relay service, preserving credentials, identity and package files. Neither action
revokes its cloud identity; revoke relay access in the workspace separately when
decommissioning. These commands do not change the scanner service.
If removal reports `removal-pending`, allow service handles to close and repeat
`relay-node remove`. If status reports `recovery-required`, repeat the indicated
pending stop or remove action. An interrupted initial installation still requires
`relay-node recover` with its original inputs. A changed service identity or
command requires investigation; the installer will not adopt it.
Local RUNNING status does not establish cloud reachability. Check relay health in
the workspace after installation. Native-account lifecycle acceptance and a
production-signed scheduled update followed by reboot have passed on Windows
Server. Unified Windows package 0.51.432 includes the tested relay installer.
To start a stopped relay, use `relay-node start` with the original `--manifest`,
`--signature`, `--archive`, `--trusted-key`, `--version` and `--minimum-sequence`
arguments. Omit `--config` and `--token-file`: start uses the protected installed
inputs. It verifies the original signed release and exact installed files before
activation, including their permissions. An expired manifest is accepted only for
the exact previously admitted release. This command does not download or upgrade
the relay. Keep the signed package and independently trusted key available.
A failed start leaves the service stopped and disabled. Retry `relay-node start`
with the same evidence after correcting the problem, or use `relay-node stop` to
cancel the pending start before removal. Local start success reports service
state only, not cloud connectivity.
### Windows unified relay-node deployment
The unified launcher source uses `-Action RelayNode` for a relay service. This is
separate from `-Action InstallRelay`, which enrolls a scanner agent that connects
through a relay. These commands are included in Windows unified package 0.51.432.
```powershell
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Install `
-ConfigurationPath C:\Private\relay.json -RelayNodeTokenPath C:\Private\relay.token
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Status
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Stop
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Start
.\Deploy-QuantumReady.ps1 -Action RelayNode -RelayNodeAction Remove
```
For unattended deployment, invoke the script from 64-bit PowerShell with
`-NoProfile -NonInteractive -File`, using your management tool's protected cache
and script execution policy. Deliver relay configuration and the relay credential
privately, outside the package. Use `Recover` with the original configuration and
credential paths after an interrupted installation. Start and recovery use the
package's original signed service release; keep that package available. A newer
package is not an implicit relay upgrade.
Status, stop and removal need no enrollment files. All actions return structured
native relay status after package integrity verification. A successful exit does
not prove cloud health or completed deletion: check `status` and handle
`removal-pending` as described above. The scanner service and its updater are not
queried or modified by this relay-node mode.
### Windows relay upgrades (source preview)
Recovery preserves runtime files after service activation may have occurred.
If the service already points to the replacement release, recovery verifies its
existing signed inventory before making service changes. A missing or altered
runtime stops recovery for administrator review instead of recreating files
beneath the service. Initial-install recovery after registration and completed
install retries apply the same rule. Keep the protected journals and original
package when investigating a failed verification.
Linux native installers likewise reject a same-release upgrade if its recorded
active runtime directory is missing. This preserves service state for review;
the installer does not recreate that directory before stopping the service.
Use a newer signed candidate package with
`-Action RelayNode -RelayNodeAction Upgrade`. The standalone equivalent is
`relay-node upgrade` with the new release's manifest, signature, archive,
independently trusted key, version and minimum sequence. Do not supply enrollment
inputs: the upgrade preserves the relay identity and configuration.
The installer verifies and stages the release before stopping the service. It
requires a higher release sequence, the existing signing identity and no version
downgrade. If activation or a receipt write fails, the owned relay is stopped and
disabled. Preserve both package versions and protected relay state. Run Upgrade
again with the same target package to resume; status reports `recovery-required`
and `pendingAction: upgrade`. Recovery verifies the exact admitted release even
after its manifest expires. Stop remains available during recovery and preserves
the pending upgrade journal. Other lifecycle operations wait for that upgrade to
finish. Recovery proceeds to the admitted target; it does not automatically
restart the old version. Verify cloud health after local completion.
Repeating a completed upgrade with its exact package re-verifies the signed
release, installed files and enrollment inputs, then reports `already-current`
with the actual service state. It does not restart a relay that was subsequently
stopped. Use Start explicitly when required.
## Managed relay updates
Managed update APIs and native supervisor execution are implemented. Linux has
passed offline Ubuntu signed replacement, TLS forwarding, identity preservation
and reboot tests. Windows Server and macOS have also passed production-signed
scheduled relay replacement and reboot acceptance. These receipts do not qualify
every scanner service or unified installer path. Use the published platform
availability information above when choosing a deployment package; unified
macOS package0.51.434 includes native installer433; Windows unified package
0.51.432 includes its qualified relay installer.
Linux source now includes separate relay updater provisioning, a local opt-in
policy and journaled supervisor registration. The `relay-node` installer branch
provides `provision-updater`, `update-policy`, `register-supervisor`, and
`supervisor-status|start|stop|remove|recover`. Registration verifies the signed
installer archive against the locally trusted release key before installing the
dedicated `sectigo-quantum-ready-relay-updates.service`. It does not enable update
permission. The forwarding service cannot read the root-only updater credential.
The policy binds the tenant, relay and node generation and selects explicit
versions and sequence bounds. Published Linux installer 0.51.413 / 650 includes
these commands. The separate updater credential and explicit local approval
remain required even when using the unified package.
The supervisor persists its claim and replacement state before acting. An
interrupted replacement is reconciled from protected installation evidence rather
than automatically replayed. Use `supervisor-recover` for an interrupted supervisor
registration or removal, and the relay installer's `recover` for an interrupted
relay replacement. Neither recovery command grants a new cloud update operation.
Published Windows installer **0.51.413 / 649** provides `relay-node provision-updater --updater-file`,
`relay-node update-policy --policy-file`, and
`relay-node supervise-once --trusted-key`. Inputs require private Windows ACLs;
updater state excludes both the forwarding and scanner service identities. A
pending replacement requires recovery with its exact signed package before the
coordinator reports completion. The installer also supports `relay-node register-supervisor`
with a signed installer package and `supervisor-status|enable|disable|remove` for
the separate relay task. Registration starts disabled; enabling requires local
permission. Disable before removal and let any in-flight update finish. Native
scheduled replacement from agent **0.26.75 / 653** to **0.26.85 / 692**, followed
by reboot and a fresh cloud heartbeat, passed on Windows Server 2025. This
qualifies the relay updater; generic scanner-service managed updates remain
a separate acceptance requirement.
### Configure updater access in the workspace
In **Agent relays**, open the relay, choose **Relay updates**, then
**Configure updater access**. An administrator can issue or replace the separate
updater credential and download its private setup archive. Existing credentials
can also be revoked here. Replacement invalidates the old credential immediately;
revocation cannot undo an installation already in progress.
The archive contains `relay-updater.json` and platform-specific instructions.
It contains a plaintext secret: ZIP packaging is not encryption. Deliver it only
through an approved confidential channel and extract into administrator-only
storage. The updater credential must remain inaccessible to forwarding and
scanner service accounts. Provision it with the qualified installer's
`relay-node provision-updater --updater-file` command. Remove downloaded copies
after protected provisioning. Credentials expire after 90 days.
Provisioning does not enable updates. The node administrator must separately
approve explicit release versions and sequence bounds with a time-limited local
policy and register the supervisor using independently verified installer
artifacts. Published Linux and Windows installers 0.51.413 include this workflow;
use each platform's argument names and independently trusted release inputs.
macOS combined package0.51.426 exposes its separate `relay-node schedule-updates`
and `recover-schedule` commands; scheduling does not enable local update approval.
The full-page update view explains readiness blockers, lists reviewed compatible
releases and refreshes status every ten seconds. Arrange a secondary agent route,
pause forwarding and wait for drained connections before requesting an update.
Only pending requests can be cancelled. If credential delivery or update submission
has an uncertain outcome, refresh and inspect current state before deliberately
retrying. No mutation is automatically retried.
`GET /api/v1/relays/{id}/update-options` returns compatible reviewed releases,
the current operation and a specific readiness blocker. A recent native platform
report allows release inspection before pausing forwarding. Selection alone
never grants installation permission. Updater provisioning, an explicit pause,
current signed pause acknowledgement and zero forwarding/bootstrap tunnels are
required before requesting replacement.
OAuth MCP provides `relay_update_options`, `relay_update_current`,
`relay_update_status`, `relay_update_request` and `relay_update_cancel`. Request
and cancellation require workspace administrator access. Preserve the request ID
and exact inputs for retries. The local updater handles replacement claims and
outcome reports through its separate credential; these are not MCP actions.
An `installed-reported` outcome still needs independent verification of the new
process and forwarding. An expired claimed update becomes `outcome-unknown` and
must be reconciled before another update for that node. Replacing the designated
node advances its generation, preventing inheritance of old update authority.
## Fleet route operations
Open **Agents & sensors > Fleet tools > Fleet connection routing** to prepare a
reviewable selection across all matching agent pages, then publish the chosen
route in bounded background batches. Set fleet filters before opening a new
route change. The full-page workflow includes preview issues, paginated results
and links to each agent's runtime and updater application status. API, SDK and
MCP clients expose the same review and explicit-publication boundary.
Every selected agent needs an existing managed scan configuration. A routing
operation preserves its enabled state, polling interval and all scan scope. It
never grants relay transit membership or remote-scanner pool membership. Prepare
relay access first; the operation rechecks relay state, destination and membership
when it publishes each agent's configuration. Missing configurations, revoked or
archived agents, and configuration revisions changed after selection are reported
as conflicts. No settings are silently replaced to resolve a conflict.
1. Create an operation with a persistent request ID, inventory filters and an
explicit direct or relay policy. Preserve the exact body for a lost-response
retry by the same administrator.
2. Poll until `ready`; inspect the paginated items and each `previewIssue`.
Preparation collects selection over time and excludes newer enrollments; it
is not a globally atomic inventory snapshot. No configuration is published yet.
3. Explicitly apply the reviewed operation using its current `revision` as
`expectedRevision`. Administrator authority is checked before each batch.
4. Follow the outcome totals and per-agent results. `applied` means a desired
configuration was published. Check the individual agent's runtime and updater
acknowledgements before treating that route as active. Host-local approvals
still apply; publication cannot expand them.
Operations expire after 24 hours. At most ten may be active in a workspace.
Authorization loss pauses processing; an administrator must explicitly resume
under current authority. Cancellation stops remaining work and preserves earlier
publications. Detailed outcomes expire 30 days after termination; aggregate
history remains. After an uncertain apply, resume or cancel response, read the
operation before deciding whether to retry.
JavaScript uses `createAgentRoutingOperation`, `agentRoutingOperations`,
`agentRoutingOperation`, `agentRoutingOperationItems`, `applyAgentRoutingOperation`,
`resumeAgentRoutingOperation` and `cancelAgentRoutingOperation`. Python exposes
matching snake_case methods. MCP exposes the `agent_routing_*` tools through the
existing authenticated server; prepare and apply are distinct actions.
---
# Staged agent updates
Source: https://qscan.dev/docs/agent-rollouts
Use **Agents & sensors > Fleet tools > Staged updates** to update a fleet group without sending replacement requests to every agent at once. Preparation reads bounded pages; the console loads 50 agent outcomes at a time. A rollout always starts with one canary. Each subsequent batch requires an administrator to review the results and choose **Start next batch**.
Staged updates open in a full workspace page. Rollout review and current-agent inspection have direct links, and browser Back returns through those views. Use **All rollouts** to return to history or **Back to agents** to return to the fleet. Preparation also uses a full page, with release and batch-size fields aligned side by side on wider screens.
## Prepare hosts and a group
1. Assign the intended agents to a [fleet group](../fleet-groups/). Groups organize selection; they do not grant access.
2. Configure the platform's updater and local permission policy: [Linux supervisor](../linux-update-supervisor/) and [policy](../linux-update-policy/), [Windows service updates](../windows-service/#local-update-permission), or [macOS managed scanner](../macos-native-package/#managed-scanner-service-package-051575). Bound permission to the intended version, sequence and expiry. A cloud approval cannot bypass that policy.
3. Confirm that the agents report a compiled runtime and an older compatible version. The current catalog includes managed-update releases for Linux x86_64, Windows x86_64 and macOS arm64. Each rollout selects one exact release target; other operating systems, architectures and Python agents are excluded. Catalog availability does not prove a host has configured or enabled its updater. Check the platform guide for release-specific qualification and recovery limits.
4. Ensure running discovery can finish and that the hosts can reach the control plane and signed downloads. The rollout waits for drained leases and a fresh idle acknowledgement; it does not terminate running scans to force an update.
## Review the preview
Choose **Prepare rollout**, search by group-name prefix and select a group from the dropdown, then choose the release and choose the later batch size: 10, 25, 50 or 100. The first batch is always one agent. Preparation does not pause or modify agents. The group selector loads 50 groups at a time; use **More groups** or narrow the search. Counts include unrevoked, unarchived agents, regardless of whether they are online or compatible with the selected release. The preview determines compatibility. Groups containing only retired agents and agents without a group are not offered.
If group search or paging fails, the last loaded groups and selected group remain visible. The search prefix returns to the prefix matching those results. Retry the same paging button, or enter a prefix and choose **Search** again. Preparation is disabled while a group request is loading; a failed request restores availability for the previously selected group. Compatibility is still checked when preparing the rollout.
The preview collects compatible active agents across successive pages and excludes agents enrolled at or after preview creation. This is a reviewed selection, not an atomic snapshot of the entire fleet at one instant. New enrollment is never appended later. Incompatible agents are counted separately. Review selected names and IDs before starting. Selection order is stable by agent ID; create a dedicated canary group first if a particular machine must run before the larger group.
Preparation choices remain available when you leave and return within the same tab. **Discard draft** clears an unsubmitted draft. If a preview submission loses its response, **Retry preview** sends the same request ID and body. History shows **Recover preview**; reopening it locks the original group, release, batch size and window, even if the group or release catalog has changed. If the original response arrives after leaving, **Open prepared preview** opens that confirmed preview without submitting again. Recovery is scoped to the current workspace and signed-in identity; reloading clears this tab-memory state. A prepared preview is not permission to install.
## Schedule a maintenance window
In **Prepare rollout**, choose **During a maintenance window**, enter the start in your local time, and choose its duration. The preview shows your browser time zone and the exact UTC timestamps. Review both, especially around daylight-saving changes. Start at least one minute ahead; a window lasts 15 minutes to 24 hours, ends within 30 days, and must end at least one minute before the selected release expires.
Prepare the preview, then choose **Approve canary for window**. Preparation alone never authorizes installation. The approved canary waits without pausing agents until the window opens. Later batches still need separate approval; this is a single window, not a recurring calendar schedule.
Approval from a signed-in administrator survives signing out. It is bound to that account's authorization version, the workspace, approved batch and exact release. Account disablement, role or authorization-version changes invalidate it. API approvals remain bound to their original credential, which must be valid through window end; revocation prevents further execution. Current authority is checked again at execution and replacement authorization.
At window close, no new replacements are authorized. Already-started installation can finish independently. The rollout expires and does not automatically resume affected agents; inspect their current update and scan-admission state before resuming scans. Cancellation before the window opens leaves agents untouched. There is no automatic retry in a later window.
## Run the canary, then approve batches
**Start one-agent canary** begins the first batch:
1. The platform checks current administrator authority, the selected release and the agent's group/revision. Another active update or rollout prevents overlapping work on that agent.
2. It pauses new scans if necessary, then waits for active leases to drain and for a fresh idle acknowledgement.
3. It creates a normal signed-release update request. The local supervisor still verifies the artifact and enforces the local policy.
4. An installed report must be followed by a new process identity, the expected scanner version and a fresh idle acknowledgement. Only then is the item marked installed.
5. If the rollout introduced the pause, it resumes scan admission. An agent that was already paused stays paused.
While an item is **Draining**, the pause stops new claims; it does not cancel the
scan already running. The agent may finish that job and upload its findings. The
rollout waits for active leases to clear and for the agent to report idle before
creating the replacement request. Direct update requests are also rejected while
an active lease remains.
If draining takes longer than expected, open the agent's scan history and local
diagnostics. Do not stop the service merely to make an update advance. Cancelling a
scan is a separate decision from cancelling the remaining rollout; inspect both
states before resuming discovery.
Run an allowed discovery scan and inspect findings before approving another batch. **Installed** is reported installation plus fresh process evidence, not a guarantee of successful scans or independent binary attestation. Rollouts do not automatically launch verification scans or advance to another batch.
The rollout moves to **Review** after a batch finishes. Read individual outcomes, then approve the next batch. If any agents failed, the button explicitly says **Start next batch despite failures**. Failure does not silently broaden the rollout.
## Failure, cancellation and recovery
Agents paused by a rollout are not automatically resumed after a failure. A failure before draining may leave scan admission unchanged; another administrator may also have changed it. Select an agent name in the rollout to inspect current pause state, runtime, contact and update status, then return to the same loaded rollout page. If loading another page fails, the last successful rows remain visible and retry uses the same requested cursor. **Find this agent in fleet** returns to the fleet and filters the inventory to its exact ID, including archived agents when appropriate. Use **Manage > Agent controls** there to review scan admission. Open the agent's update operation, inspect its local supervisor diagnostics, fix the cause, and review scan admission in Agent controls. A changed group, changed maintenance revision, inactive agent, unavailable release or competing update is not overwritten.
Each active batch item has a one-hour deadline. A rollout without a window expires within 24 hours, or sooner if the reviewed release expires. Scheduled rollouts expire at window close; item deadlines begin no earlier than window start and are bounded by window close. A missing supervisor or offline host can therefore produce a deadline failure rather than waiting indefinitely.
Loss of administrator authorization or withdrawal of the release pauses further orchestration. An authorized administrator can resume after correcting the cause. The release and local scope are checked again. Already-authorized replacement may finish independently while the rollout is paused.
**Cancel remaining work** stops further rollout processing and cancels update requests that have not begun. It cannot undo a replacement already applying. Affected agents stay paused; inspect the per-agent update operation before manually resuming scans. Cancellation does not revert completed upgrades.
**Completed** means every selected agent has an outcome. Check installed and failed totals; it does not mean every agent succeeded. Aggregate history is retained; individual details are cleaned up in bounded batches after 30 days. Up to ten rollouts can be active per workspace.
## API and SDK
Use `POST /api/v1/agent-rollouts` with an idempotent `requestId`, `group`, `releaseId` and `batchSize`, optionally `window: { startsAt, endsAt }` using UTC ISO timestamps. Read `/agent-rollouts/{id}` and follow the opaque cursor from `/agent-rollouts/{id}/items`. Send the latest `expectedRevision` to `advance`, `resume` or `cancel`; a stale revision returns 409. After an uncertain action response, refresh status before deciding to retry.
JavaScript SDK methods are `createAgentRollout`, `agentRollouts`, `agentRollout`, `agentRolloutItems`, `advanceAgentRollout`, `resumeAgentRollout` and `cancelAgentRollout`. Python provides the corresponding snake_case names. See the generated [API reference](./api/index.md) for request and response schemas.
Find available groups with `GET /api/v1/agent-groups?q=production/&limit=50`, JavaScript `agentGroups({q, after, limit})`, or Python `agent_groups(q=..., after=..., limit=...)`. Follow `nextCursor` unchanged and reset it when changing the search prefix. This reads a live group directory, not a frozen inventory snapshot.
---
# Connect your first discovery agent
Source: https://qscan.dev/docs/agent-setup
For a new installation, start with the [unified agent quickstart](../unified-agent/): one package, guided scope selection and browser enrollment. Individual agents remain available as an advanced backup. If you already have an enrolled credential or redeemed handoff, follow the existing-identity instructions instead of enrolling again.
## Choose how discovery runs
For public endpoints and supported cloud resources, use the hosted scanner or
[Cloud connections](../cloud-connections/). These do not require installing an
agent. Use an agent for approved local repositories, private endpoints, host
inventory, or captures that must stay in your environment.
For a background agent, open **Agents > Fleet tools > Downloads & updates** and
choose the combined package for the machine that will run discovery:
| Host | Start here | Installation |
| --- | --- | --- |
| Windows x64 / Windows Server x64 | [Windows package and guided installation](../windows-bulk-deployment/#interactive-installation-on-one-machine) | Native enrollment, installer and restricted service; no system Python |
| Ubuntu 24.04 x86_64 | [Linux package and guided installation](../linux-binary-preview/#one-package-guided-or-silent-installation) | Native enrollment, installer and restricted systemd service; no system Python |
| Debian 12 / 13 x86_64 | [Linux package and guided installation](../linux-binary-preview/#one-package-guided-or-silent-installation) | Same unified package; native enrollment, installer and restricted systemd service; no system Python |
| RHEL 8+ / CentOS Stream 9 x86_64 | [Linux distribution coverage](../linux-binary-preview/#linux-distribution-coverage) | Native GLIBC 2.28 baseline; distinguish runtime checks from host-service qualification |
| macOS arm64 | [Native package and service setup](../macos-native-package/) | Unified native package; no system Python |
| Source-based deployment | [Python terminal setup](#guided-terminal-setup-python) | CPython 3.12, 3.13, 3.14 or 3.15; advanced fallback |
Each combined package contains the scanner modules. Select only the scanners and
exact resources you need during setup. Capture analysis additionally needs TShark;
TLS and QUIC endpoint discovery do not. Installing a service requires local
administrator access, while discovery runs under its restricted service identity.
Grant that identity access only to the chosen files and endpoints.
The setup wizard opens normal browser sign-in and MFA. Review the displayed device
code and scope before approving enrollment. Keep its private state if setup is
interrupted, then resume the same installation rather than creating another agent.
Successful enrollment is not proof of service-account access: check service status,
workspace contact, and a completed validation scan after installation.
For unattended rollout, open **Integrations > Agent deployment** and use a separate
per-device enrollment grant with the shared package. Follow the [bulk deployment
guide](../bulk-agent-deployment/) for the supported management-tool workflows.
### Already enrolled from a regular Linux account?
Do not enroll another identity or copy its token. The current combined Linux
package can install a service from the completed private setup state with
`install-enrolled --state-directory --owner-uid `.
Exit the foreground agent first, retain the original ownership and permissions,
and follow the [verified package and enrollment-transfer instructions](../linux-binary-preview/#install-a-service-from-your-regular-user-enrollment).
## Configure scope in the workspace
Open [Getting started in your workspace](https://qscan.dev/workspace.html#getting-started). Choose the discovery source first: AWS KMS, Azure Key Vault, Google Cloud KMS, TLS, SSH, repositories or saved network captures. Choose **Configure an agent** to stay in the setup wizard, or use the separate **Explore hosted cloud connections** link. Network captures also link directly to the upload area, where current hosted availability is shown. Review the current [cloud connection availability](../cloud-connections/) before configuring a hosted scan. For agent-based sources, review specific permissions, then select a compatible agent or enroll a new one. Enrollment creates a credential for that source only; it does not install or connect the agent. Save the one-time credential securely before continuing.
When using a collector, enter the exact resource or approved local directory, then choose where the collector process will run. No operating system is selected by default. For cloud discovery this is the collector host, not an operating system belonging to KMS or Key Vault. AWS setup can download a policy limited to `kms:DescribeKey` on the exact key ARN and accept an optional local AWS profile name. Cloud identities and credentials remain on the host. For capture analysis, confirm the installed TShark executable path. For SSH, optionally supply an independently trusted host-key fingerprint. Download `agent.local.json`; it contains local scope, never the enrollment credential.
Install the verified bundle and dependencies below, inject the scoped credential, and run the agent with that configuration. Choose **Check connection again** to read the latest server heartbeat. Recent contact does not prove your configuration was installed correctly. **Create your first scan** opens a pre-filled review form; nothing is queued until you submit that form.
Changing the host operating system keeps your entered target and resets the decoder path. If a directory uses the previous operating system's path format, the wizard asks you to correct it before downloading. Host and distribution changes preserve your position and keyboard focus; downloading a configuration keeps you at the download control. Changing the source resets the configuration draft. Editing the scope, decoder or fingerprint requires downloading the configuration again before proceeding to a scan. Draft scope is kept only while the page remains open. After reloading, select your agent and prepare its scope again. Existing enrollment and contact status come from the server. An administrator enrolls new agents; administrators and analysts can create scans. The guided flow prepares local scope. Use Agents & sensors to publish managed configuration after explicitly opting in on the machine; see below. For continuous operation on validated Ubuntu hosts, use the [Linux service preview](../linux-service/).
See [agent distributions and updates](../agent-distributions/) for Python and compiled binary availability, validated platforms, and update limitations.
## Guided Windows service installation
Windows x64 and Windows Server x64 administrators can use the [prepared Windows
ZIP and interactive installer](../windows-bulk-deployment/#interactive-installation-on-one-machine).
It combines browser enrollment with restricted service installation. Python is not
required on the managed machine. For unattended rollout, use the separate per-device
grant instructions in the same guide.
## Guided terminal setup (Python)
### QUIC endpoint discovery
QUIC agent support requires scanner **0.26.38 or later** and its qualified QUIC
dependencies. Windows and Linux x86_64 foreground binaries are available.
An older binary cannot acquire this
capability by changing its configuration.
For public endpoints, [hosted network scanning](../hosted-tls-scanning/) already
provides QUIC discovery without an agent.
Choose **QUIC endpoints** in Getting started or the terminal wizard. Approve the
exact UDP host and port, then select **QUIC v1** or **QUIC v2**. Use an ordinary
account with outbound UDP access to that endpoint. No packet capture driver,
root access, server login, or TShark installation is required for this scan.
The local configuration separates UDP discovery from TCP TLS discovery:
```json
{
"allowedQuicTargets": ["api.example.com:443"],
"quicVersion": "v1",
"allowedTargets": [],
"pollSeconds": 15
}
```
Run **doctor** using this configuration before starting the agent. The
`dependency.quic` check must pass. After a qualified agent sends its heartbeat,
the workspace can create and schedule QUIC jobs. Enrolling the capability alone
does not establish that the runtime is installed. With managed configuration
enabled locally, administrators may narrow the QUIC target list; they cannot
expand the machine's approved scope or change its local QUIC version.
A successful scan reports verified TLS 1.3 negotiation, the selected key exchange
and signature, QUIC packet/header protection, and the verified certificate path.
It sends no HTTP/3 application request and uses neither session resumption nor
0-RTT. Python and Windows/Linux x86_64 foreground scanner **0.26.40 or later**,
and hosted QUIC scanning, offer
X25519MLKEM768, SecP256r1MLKEM768 and SecP384r1MLKEM1024 alongside classical
groups. Inventory reports the group actually negotiated. A hybrid exchange does
not make a classical certificate signature post-quantum, and a classical result
does not prove that the server supports no hybrid group. Upgrade older native
binaries to 0.26.40 for hybrid QUIC and private enterprise CA configuration.
#### Private enterprise certificates
Python scanner **0.26.39 or later** and Windows/Linux foreground binaries
**0.26.40 or later** accept an explicit local CA bundle. In terminal setup, choose private
enterprise CA trust and select your approved PEM file. The wizard validates it
before saving configuration. For an individual scan:
```sh
python qr.py quic internal.example:443 --quic-version v2 --ca-bundle /absolute/path/company-ca.pem
```
With a native binary, replace `python qr.py` with `./quantum-ready` on Linux or
`.\quantum-ready.exe` in Windows PowerShell, using an absolute local CA-file path.
For an existing agent, add `"quicCaBundle": "/absolute/path/company-ca.pem"` to
its local configuration alongside `allowedQuicTargets`. On Windows, use an
absolute path such as `C:\\ProgramData\\Sectigo\\company-ca.pem` (escape the
backslashes in JSON). Run `doctor --config agent.json` to check readability and
certificate format before scanning.
The bundle must contain only PEM CA certificates, be at most 2 MB, and be
readable by the account running the agent. It replaces the packaged public roots
for QUIC only; include every CA you intend that agent to trust. The file stays
on the machine and is read for each scan. Managed settings can narrow target
scope but cannot replace this trust configuration. Invalid or missing files
fail the scan without falling back to public roots. Hostname, certificate
purpose and signature checks still apply. No OS trust-store change is needed.
A timeout is inconclusive: check UDP reachability, firewall policy and the chosen
version. The scanner does not switch versions automatically or label a timeout
as proof that the endpoint lacks QUIC. Choose the other version explicitly for
a separate assessment. QUIC v1 and v2 have passed independent local-server
interoperability tests, including all three hybrid groups. Hosted public v1 has
passed live acceptance; public v2 reachability remains endpoint-dependent.
### Start the wizard
From a freshly extracted, signature-verified bundle, start the interactive wizard:
**Windows PowerShell**
```powershell
py -3.12 scanner/setup_python.py --guided
```
**macOS or Linux**
```sh
sh scanner/setup-python.sh --guided
```
Run these commands from the extracted bundle folder. Install Python 3.12 first;
there is no need to create `agent.local.json` or copy an enrollment token.
The launcher prepares a local environment without administrator access.
Choose a local agent or open a direct hosted cloud connection. For an agent,
choose its scanners and exact allowed resources. Setup checks local prerequisites,
then opens the normal browser sign-in. Sign in as a workspace administrator,
complete MFA, and enter the eight-character code displayed in your terminal.
Approve only a request you initiated. Browser approval expires after ten minutes.
After workspace contact is confirmed, choose a resource for a real validation scan.
Setup reports success only when the workspace confirms that scan completed.
It can create one validation job within ten minutes of enrollment; additional scans,
expired validation windows and failed-job recovery use **Scans** in the workspace.
You can then keep the agent running in the foreground. Keep the terminal open;
Ctrl+C stops it. This command does not install a background service.
Rerun the same command to resume the saved configuration and enrollment. State
lives in `~/.sectigo-quantum-ready`: Windows encrypts it for your current user;
Linux and macOS restrict access to your user. Do not copy or delete that directory
to fix a failed scan. If approval expires or is declined, setup offers to check
and restart browser approval. A new code is requested only after the server confirms
that the previous request never began issuing an agent. This recovery is available
for 24 hours after approval expiry. If issuance may already have begun, setup keeps
the saved state and asks you to resume delivery or review Agents in the workspace.
A saved credential is retained even when delivery acknowledgement is interrupted.
Safe approval restart requires source bundle **0.51.190** or newer.
For a local cloud collector, first prepare the provider-specific environment and
identity using the cloud guides. Run `scanner/qr.py setup` with that environment's
Python interpreter. The general launcher installs local scanner dependencies;
it does not install cloud SDKs or grant cloud permissions. Hosted cloud connections
do not require this local preparation.
This Python wizard is available in source bundle **0.51.189** and newer. Windows
native agent **0.26.5** also includes `quantum-ready.exe setup`; see the Windows
foreground guide for its tested scope. The combined Windows and Linux packages now provide guided service installation.
The [macOS native package](../macos-native-package/) also provides guided
foreground enrollment and separate managed-service instructions. Native Mac
qualification is documented there. A single-command hosted bootstrap remains
separate from downloading and verifying these packages.
## Submit and recover a scan
When you choose **Queue discovery scan**, the review form locks while the server confirms your submission. If the response is interrupted, keep the dialog open and choose **Check submission again**. The same request ID and scope are reused to recover the original job rather than queue a duplicate. If the job has already finished, the confirmation reports its current state. Validation errors allow you to correct the form before submitting again.
Before sending, the console saves the original request ID and scope in this tab's session storage. If you close the dialog or reload, open **Scans** and choose **Review pending submission**, then **Check submission again**. Choosing New discovery scan also opens the pending request first. Recovery retains the original name, scanner, target and agent; it can recover an existing job even after the agent is revoked or archived. A confirmed result clears the reminder.
Recovery is scoped to the workspace and the exact credential/sign-in that submitted it. The saved record contains target metadata and the request ID, never a token. It is not shared across tabs, and closing the tab or starting a new sign-in can lose access to the reminder. Before starting another job after a sign-in change, inspect scan history. If the browser blocks session storage, the form explains that recovery lasts only while the page remains open. A reminder is not proof that a job failed or was cancelled. Scans shows the newest jobs first, with **Older**, **Newer** and **Refresh latest** controls. Each page contains up to 50 jobs. A queued job still needs its agent to connect and execute it. Review its eventual status and evidence before claiming discovery succeeded.
## 1. Prepare a dedicated environment
The remaining numbered steps are the advanced Python installation path. For a
combined native package, use the platform-specific installation guide above.
The Ubuntu service preview has also passed a live development-workspace test: native enrollment/contact, managed scope rejection and application, repository discovery into inventory, pause, credential revocation and service removal. Use scanner **0.15.1 or newer** for the corrected HTTP-error handling used by revocation and retry logic. Follow the [Linux service guide](../linux-service/) for installation and confirm contact and scan results in your own workspace.
Use CPython 3.12, 3.13, 3.14 or 3.15. Use an ordinary account with read access only to intended repositories and network access to authorized endpoints. TLS, SSH and source discovery do not require blanket administrator/root privileges. A [Linux service preview](../linux-service/) is available for Ubuntu 24.04 x86_64. Windows and macOS also have [unified native packages](../unified-agent/) with separate managed-service instructions. Live packet capture requires its separately scoped capture workflow. Saved PCAP/PCAPNG files can be analyzed through the separate [offline capture workflow](../capture-analysis/).
Download the discovery bundle from Developer tools. **Verify its signature before extraction or execution**, using a reviewed verifier and independently trusted public key. Follow the published [verification instructions](https://qscan.dev/downloads/VERIFY.txt). Do not run a verifier taken from an unverified archive.
### macOS quick start
Use the current signed bundle. The same launcher handles local discovery and AWS,
Azure or GCP collectors from the scope in your downloaded configuration.
1. Use **Python 3.12** for a consistent setup across all collectors, from your managed software catalog or,
if Homebrew is already installed, run `brew install python@3.12`.
The [versioned Homebrew formula](https://formulae.brew.sh/formula/python@3.12)
supplies maintained 3.12 releases. `brew install python` may select an unsupported
version. You do not need to change PATH or replace macOS system Python.
2. Extract the verified bundle into a fresh folder. Save **agent.local.json** from
Getting started beside **Start Agent.command** and the **scanner** folder.
For a cloud collector, configure the cloud identity and key permissions first.
3. Open Terminal, type `sh ` (including the space), drag **start-agent.sh** into
the window and press Return. It selects compatible Python, prepares the
matching environment and checks configuration. Cloud collectors also check key
access before asking privately for your enrollment token.
Keep Terminal open while the agent runs. Press Ctrl+C to stop; use the same
launcher to reconnect. No folder navigation, virtual-environment activation or administrator access is needed.
You can also double-click **Start Agent.command** if macOS permits it.
If macOS requests software approval, follow your organization's normal process.
Start from Terminal instead
Type `sh ` (including the space), drag **start-agent.sh** into Terminal, then press
Return. You do not need to type or change directories. If Terminal is already in
the extracted bundle folder, use:
```sh
sh start-agent.sh
```
Fix a tomllib, Python or certificate error
`tomllib` is included with supported Python; do not install it with pip. An old
`python3` command may select Apple's older interpreter even after a newer Python
is installed. Use the launcher above, which searches the standard python.org and
Homebrew locations, prefers Python 3.12 when available and checks Python before importing the scanner. If no usable installation is found, it lists the interpreters it detected.
Download the current bundle into a fresh folder and copy **agent.local.json** there.
An existing enrollment token remains valid unless revoked. If an old environment
is incompatible, stop the agent and run this from the current bundle folder:
```sh
sh start-agent.sh --repair-environment
```
The launcher reads your configuration and repairs the correct local, AWS, Azure or
GCP environment. It preserves the old environment in a backup folder and keeps
`agent.local.json`. Cloud dependencies are verified before the old environment is
moved. Use your installed Python through this launcher, not Python inside the
broken environment. A fresh extracted folder remains an alternative.
For certificate failures, run **Install Certificates.command** and retry. If native
libraries cannot load, use an approved local folder that permits application execution;
do not move an existing environment or disable endpoint protection.
Azure and GCP require CPython 3.12 on macOS 11+ (Apple Silicon or Intel).
Azure CLI authentication additionally requires macOS 13+ for Microsoft's current CLI.
Local non-cloud discovery also supports CPython 3.13 and 3.14. These Python
instructions are the source fallback; they do not establish qualification of every
Python/provider combination. For the delivered compiled arm64 package and its
hardware acceptance, use the [native Mac guide](../macos-native-package/).
### Repair an incompatible Python environment
Stop the running agent first. From the extracted bundle folder, repair the environment with:
```sh
sh start-agent.sh --repair-environment
```
On Windows, use your separately installed Python:
```powershell
py -3.12 scanner/setup_python.py --repair-environment --connect
```
Repair preserves the old `.venv` inside a uniquely named `.agent-env-backup-*` folder. It keeps `agent.local.json`, creates a fresh environment, installs and checks dependencies, then prompts for your enrollment token. It does not revoke or replace the agent's enrollment. If rebuilding fails, the old files remain in the backup. Linked environment folders and the interpreter currently running the repair are refused. Review or remove old backups only after the replacement works.
### Windows and Linux Python
For Windows foreground discovery, install CPython 3.12 with its launcher, extract
the verified bundle and save `agent.local.json` beside `scanner`. Open PowerShell
in that folder and run:
```powershell
py -3.12 scanner/setup_python.py --connect
```
This prepares `.venv`, installs and checks dependencies, then runs local diagnostics
and the hidden enrollment-token prompt. It requires no administrator access,
environment activation or PowerShell execution-policy changes. Keep the terminal
open; Ctrl+C stops the agent. Existing incompatible environments are preserved;
extract a fresh bundle folder to recover. For reconnecting without package installation:
```powershell
.venv/Scripts/python.exe scanner/qr.py connect --config agent.local.json
```
Linux uses the wizard's **Copy environment setup**, then **Copy connect command**.
Cloud collectors use their provider-specific setup commands instead of this helper.
For compiled agents, choose **Binary** instead; no Python installation is needed.
## 2. Enroll in your workspace
An administrator enrolls the agent in Agents & sensors and selects the capabilities it needs. Store the returned credential in a secret manager or protected environment. Never paste it into a support message, repository, URL, or screenshot.
Set `QR_ENDPOINT` to `https://qscan.dev` and inject the agent credential as `QR_TOKEN`. Do not use a broad administrator credential for the polling agent.
### Use a protected credential file
Scanner **0.14.0 or newer** can read the credential from a local file instead of `QR_TOKEN`. This keeps the credential value out of command lines and service definitions. The file contains only the credential, optionally followed by a newline, and must be at most 4 KiB. Use an absolute local path. The agent rejects symlinks, Windows reparse points, network paths on Windows, directories and invalid contents.
On Linux/macOS, the file must be owned by the running account or root, with no group or other permissions, such as mode `0600` or `0400`. It must still be readable by the running account. On Windows, disable ACL inheritance and allow access only to the running account, SYSTEM and Administrators. The owner must also be one of those identities. The loader checks Windows permissions through the system PowerShell executable using a fixed command; it does not pass the credential to that process. Run doctor as the intended agent account. Broader access causes rejection rather than a warning.
Create the file with your approved secret-management tooling, outside the bundle and repository. Do not put a credential literal in shell history. Then run:
```text
python scanner/qr.py doctor --config agent.local.json --token-file C:/ProgramData/Sectigo/QuantumReady/agent.token
python scanner/qr.py agent --config agent.local.json --token-file C:/ProgramData/Sectigo/QuantumReady/agent.token
```
On Linux/macOS, substitute an approved absolute path such as `/etc/sectigo-quantum-ready/agent.token`. `--token-file` takes precedence over `QR_TOKEN`; an invalid file never falls back to the environment. The loader does not copy the file value into environment variables. Credentials are read at startup; restart the agent after rotating the file, and revoke the old credential from the workspace as appropriate.
## 3. Limit its local scope
Copy `scanner/agent.example.json` to `agent.local.json`. Replace examples with your authorized scope:
```json
{
"source": "repository-agent-01",
"allowedTargets": ["api.example.com:443"],
"allowedSshTargets": [],
"sshHostKeyPins": {},
"repositoryRoots": ["/srv/repositories/my-project"],
"pollSeconds": 15
}
```
Use paths that exist on the agent machine. In Windows JSON, escape backslashes or use forward slashes, for example `C:/Repositories/my-project`. An empty allowlist authorizes no targets of that kind. Remote jobs must pass local target or repository checks.
## 4. Check local readiness
Run this from the verified bundle directory, in the same environment and account that will run the agent:
```text
python scanner/qr.py doctor --config agent.local.json
```
Doctor returns JSON with a `ready` flag and a list of check codes and actionable messages. Exit code **0** means local checks passed; **2** means something needs attention. It validates the bounded configuration, exact endpoint allowlists, directory accessibility, polling interval, SSH pin shape, dependencies needed by your scope, and endpoint/credential environment shape. It never prints configured paths, hosts or credentials.
This command performs no network requests, scans, job claims or configuration changes. Passing does not verify credential validity, enrolled capabilities, remote connectivity or readability of every repository file. Start the agent below and review its heartbeat and first scan separately. Doctor is an explicit setup command; the polling agent does not run it automatically.
## 5. Start polling
```text
python scanner/qr.py agent --config agent.local.json
```
In Agents & sensors, check last contact, scanner version and reported runtime. Scanner 0.22.0 reports Python or compiled distribution, operating-system family and process architecture without sending a hostname, username or OS build. Older agents show **Platform not reported**; they are not assigned a guessed host or distribution. This report does not establish signed-release identity, update permission or scan health. Recent contact confirms communication; it does not prove a particular scan will succeed. Start a scoped job from Discovery scans and inspect its final state and evidence.
### Stop and restart safely
Scanner 0.14.0 handles interrupt and termination signals by stopping new requests and interrupting polling/backoff waits. On Windows, console break is also handled. A running discovery checks the stop request at its next checkpoint. Repository and capture analysis check during processing; a running decoder is terminated when its checkpoint observes the stop. TLS/SSH operations and HTTP requests can finish their bounded in-flight calls before stopping. Shutdown is cooperative, not instantaneous.
A stopped scan is not falsely marked completed or failed, and no new upload starts after the stop is observed. Already accepted observations remain evidence. An in-flight request may already have reached the server; stopping does not undo it. An unfinished claimed job retains its lease until the server expires or otherwise resolves it. Review the job state before scheduling another run. These foreground runtime controls do not register an OS service. Use the [unified platform guides](../unified-agent/) for Linux, Windows and macOS background-service installation.
## 6. Handle partial analysis
A malformed supported manifest, Python parse failure or unreadable input can mark analysis incomplete. Fix the reported issue and scan again. Do not treat partial results as a complete repository assessment.
Agent credentials cannot upload arbitrary standalone scans: assigned jobs and live leases control ingestion. Standalone CI uploads use a separate ingestor credential. See the [API reference](../api/) for the implemented contract.
## 7. Manage configuration from your workspace
With scanner **0.11.0 or newer**, add `"managedConfiguration": true` to the local configuration and restart the agent. Keep the approved maximum host allowlists, repository roots, SSH trust pins and source label in that file. Its `pollSeconds` is the minimum permitted polling interval; remote configuration cannot increase polling frequency beyond it. An opted-in agent waits for its first published configuration before claiming work.
In **Agents & sensors**, an administrator selects **Configure agent** to open a
dedicated configuration page. **Back to agents** returns to the inventory.
Unpublished edits are kept in memory in this tab when navigating between workspace
pages. Leaving the browser page (including opening documentation) or reloading
prompts the browser's unsaved-changes warning when edits remain. Confirming that
navigation, signing out or switching workspaces clears them. They are not saved
to browser storage or sent to the agent until published.
1. Enter exact TLS/SSH endpoints or absolute repository directories, one per line, within local limits. Empty lists disable that discovery type. Only enrolled capabilities appear.
2. Choose a polling interval and whether to allow new scans. New configurations default to paused.
3. Publish the next revision. The editor stays open and shows that application is awaiting acknowledgement. Edit the form to enable another publication.
4. Choose **Check application status** without losing your draft. The panel explains local opt-in, rejected scope, disabled scans or accepted settings. A newer remote revision keeps your draft visible and blocks stale publication; **Discard draft and load latest** explicitly replaces it. Acknowledgement is agent-reported, not independent attestation.
Each publication temporarily blocks new claims until the current revision is acknowledged. Remote hosts must match local endpoints; repository directories must resolve inside an approved local root. The agent keeps local trust pins and source identity. Rejected scope is not partially applied, and local files are never rewritten. Changes to local opt-in or maximum scope require a process restart.
The agent receives only its own configuration over its authenticated heartbeat. Only workspace administrators publish revisions. **Configuration history** opens a full page of earlier publications, newest first, with up to 20 revisions per request. Summaries include QUIC targets and Windows certificate stores alongside the other scanner scopes. Use **Older revisions** or **Latest revisions** to navigate. Open a revision on its own page to inspect its settings; **Back to history** preserves the list cursor. Administrators can choose **Use as draft**, review or edit the scope, then publish a new revision. The editor reloads the current revision before drafting and rejects conflicting later publications. Inspecting history never changes the agent. Viewers and analysts can inspect history but cannot restore settings. Revoked agents retain readable history for audit and cannot accept new configuration. Publication/application events are audited.
**A running scan can finish under its previous configuration.** Pause applies to new claims. To stop a running scan, cancel it; to remove all agent access, revoke the agent. Older agents cannot acknowledge managed configuration and will stop receiving new jobs after publication. Upgrade and opt in before publishing. Without managed configuration, existing agents continue using local scope.
## Archive retired agents
After revoking an agent, select **Archive agent** on its card. Administrators can archive revoked agents; active agents must be revoked first. Archived agents leave the default list so retired installations do not obscure current deployments.
Choose **View archived agents** to inspect their configuration history or **Restore to list** to show an entry again. Restoring an entry does **not** reactivate credentials, schedules, or jobs. Enroll a new agent to restore scanning access. Evidence remains in inventory and the archive action is audited.
The API uses `POST /api/v1/agents/{id}/archive` and `/unarchive`; `GET /api/v1/agents?archived=true` lists archived entries. These actions are idempotent. JavaScript SDK methods are `archiveAgent`, `unarchiveAgent`, and `agents({archived:true})`; Python methods are `archive_agent`, `unarchive_agent`, and `agents(archived=True)`.
## Pause new scans for maintenance
Open **Agents & sensors**, then **Scan admission** on an active agent. Workspace administrators can pause or resume new claims; viewers and analysts can inspect status. The dialog shows active server leases and queued jobs, with a refresh control.
Pausing prevents new scan claims immediately. Existing leases may renew and finish, and retrying a previously issued claim returns its same valid lease. Queued jobs and schedules remain in place, subject to their existing deadlines and retry limits. Pause schedules separately if you also want to stop new scheduled jobs from being queued. Resuming admission does not override a paused or unacknowledged managed configuration.
A stale browser revision returns a conflict instead of overwriting another administrator's change. Refresh status before deciding again. Revoked agents cannot resume claims.
**Zero active leases is not proof that the local process is idle.** A disconnected process may still be winding down after lease expiry. Confirm local readiness before stopping or replacing an agent. This control does not download software, change local update permission, or start a cloud rollout.
The SDKs expose the same explicit revision contract:
```js
const status = await client.agentMaintenance(agentId);
await client.setAgentMaintenance(agentId, true, status.revision);
```
```python
status = client.agent_maintenance(agent_id)
client.set_agent_maintenance(agent_id, True, status['revision'])
```
Use `false` / `False` to resume after checking the current revision. Reconcile a lost response by reading status before submitting another mutation.
### Confirm the agent observed a pause
Scanner 0.23.0 and newer receives the current pause revision through its authenticated heartbeat. After an existing job finishes, it reports that it observed the pause between jobs and skips new claims while paused. A malformed pause response also prevents claims. A resume or changed revision clears the prior observation.
The Scan admission dialog distinguishes **waiting for an agent**, **a current idle report**, and **an outdated observation**. Reports expire after three minutes without renewal. Both the Python distribution and Ubuntu x86_64 compiled preview 0.23.1 support this acknowledgement. Older agents continue to obey the server claim gate but cannot supply the observation; upgrade them to see it in the console.
Agent 0.23.2 includes the same temporary random process identifier in each heartbeat and idle acknowledgement. It changes after restart. A changed reporter invalidates the previous idle acknowledgement; the current process must acknowledge the pause again before replacement can be authorized. Older agents remain compatible, but cannot provide heartbeat process correlation.
This is a self-report from one polling process, identified by a temporary random process identifier. It does not prove that another process using the same credential has stopped, attest the installed release, or authorize a software replacement. Independent local supervisor checks are still required. Managed discovery configuration is reconciled after the maintenance pause is lifted.
## Diagnose service startup before discovery
Source scanner **0.23.7** reports service preparation failures as structured JSON with a stable check code and an actionable message. Run `scanner/service_host.py --preflight-only --service-config ` with the source distribution's Python environment, as the intended restricted account. This command checks local setup; it does not start the polling agent, claim a job or verify remote access. It may write the bounded local service log when that directory is accessible.
| Failed check | Next step |
| --- | --- |
| `service.account` | Rerun as the intended non-administrator service account; do not elevate to bypass a read failure. |
| `service.account-inspection` | Repair the OS account inspection environment before retrying. |
| `service.identity` | Review the Windows installer service-account setup and required identity policy. |
| `service.scanner` | Verify the signed distribution and retain its complete directory. |
| `service.settings` | Check the absolute settings path, file access and required fields. Use `--check-settings` for structure-only validation. |
| `service.logs` | Create the configured log directory and give the runtime account write access to that directory only. |
| `service.diagnostics` | Verify the runtime and dependencies, then rerun local preflight. |
Failed preparation returns exit code 2 with `ready: false`. Messages contain fixed guidance, not exception text, token values or local paths. Once preparation succeeds, the existing doctor checks identify configuration, dependency and credential issues. Review all failed checks before starting discovery.
`--preflight-only` describes the current process account and always reports `serviceAccountVerified: false`; it is not proof that an installed service runs under its configured identity. The Windows installer's authenticated service-account diagnostic is separate. These expanded preparation checks ship in the source bundle and Windows compiled agent 0.23.7. The Linux compiled preview retains its earlier diagnostics.
## Browse your fleet
The agent screen shows 50 entries per page. Use **Next** and **Previous** to browse, or **Refresh list** to return to the first page. Entries are ordered by stable agent ID, not by heartbeat or online status. Current entries include revoked agents until you archive them. Switching to the archive starts a separate first page; restoring an entry does not reactivate its credential.
A failed page request keeps the previous agents visible and offers retry. This is a live list: enrollment and archive changes can occur while you browse. Refresh from the beginning to see changes that fall before your current cursor. The overview agent count covers the entire active fleet, independent of the page size. Scan, schedule and onboarding setup search compatible agents on the server, 20 results at a time. Your selection remains visible when you search another page.
For automation, `GET /agents` returns `items` and `nextCursor`. Pass that cursor as `after` until it is null, keeping the same `archived` setting. `limit` accepts 1 to 1000 (default 1000 for existing clients). Use JavaScript `allAgents({limit:100})` or Python `all_agents(limit=100)` for iteration; both reject repeated cursors. MCP `agents` returns a bounded page, so callers must follow `nextCursor`. Use the exact `agent_status` tool or `GET /agents/{id}` when an ID is already known; absence from one page does not prove that an agent is missing.
## Find and review enrolled agents
In **Agents & sensors**, search by agent name or ID and choose an access state. Search covers the whole selected fleet, not just the visible page. **Access active** means the credential has not been revoked; check last contact, configuration acknowledgement and job results separately. **View archived agents** searches the archive while retaining your filters. Use **Clear filters** to return to the full list. Failed requests keep the previous agents visible so you can retry without losing your place.
## Diagnose an agent scan
Choose **Scan history** on an agent card to inspect its jobs without leaving the fleet list. The panel includes target, status, observation count, reported scanner version, creation time and job ID. Failed jobs show the reported error; queued jobs suggest checking contact, configuration acknowledgement, maintenance pause and local scope. Use **Older** and **Newer** to traverse history or **Refresh latest** to see new work. Revoked and archived agents retain their history. A failed request preserves the previous results, and closing the panel discards late responses.
A completed job is evidence of that operation, not complete discovery coverage. Zero observations alone do not establish quantum readiness. The panel is read-only; review diagnostics before submitting replacement scans.
## Contact and control delivery
Routine last-contact timestamps can trail an agent heartbeat by about 30 seconds under normal operation. Queued updates are processed in bounded batches, with prompt follow-up batches when a backlog remains; a delivery outage can delay them further. First contact and a changed runtime are published immediately. If contact appears delayed, refresh after a short wait and check the agent connection logs before enrolling another copy. Contact, access state, configuration acknowledgement, scan results and update health are separate signals.
Configuration, pause and revoke actions wait for the affected polling channel to receive the change. If an action says **Change saved; agent-channel delivery is pending**, refresh the agent before retrying: the platform retains the change and retries delivery. A saved revocation already prevents new work and update authorization at the control plane. The API does not report successful revocation delivery until the channel acknowledges it.
Agent endpoints and credentials are unchanged. No re-enrollment or binary upgrade is needed for this polling change. For installation archives use **Agents > Downloads & updates**; for managed replacement read [Managed Linux agent updates](../agent-update-operations/).
## Organize agents into fleet groups
Use fleet groups to separate environments, locations or teams, for example `production/eu`, `development` or `finance`. Group names use up to 64 letters, numbers, dots, hyphens, underscores or slashes; the first character is a letter or number. Names are normalized to lowercase. Each agent has one group, or is ungrouped. Groups belong to the current workspace.
1. Open **Agents & sensors**, find the agent, then choose **Actions > Set fleet group**.
2. Enter a group name and choose **Save group**. To remove the assignment, save an empty field.
3. Enter the exact name in **Fleet group** above the inventory and choose **Search**. An empty filter shows every group. Group filters apply before pagination and remain active while browsing the archive.
Only administrators can change groups. Readers and analysts can filter and inspect them. Assignment changes are audited. Retired agents can be regrouped without restoring access. Groups organize inventory; membership does not apply configuration, grant permissions, schedule scans or authorize software replacement.
If another administrator changes the assignment, the editor reports a conflict and offers **Reload latest**. Review that current assignment before saving again. After an interrupted response, reload rather than repeatedly submitting the stale revision. Moving an agent out of the selected group removes it from the current results after saving; search its new group or clear the filter to find it again.
### Automate enrollment and grouping
```js
const enrolled = await client.enrollAgent('Toronto collector', ['tls'], 'production/ca');
// Save the returned enrollment token directly into your protected deployment secret store.
const current = await client.agent(enrolled.id);
await client.setAgentGroup(current.id, 'finance/ca', current.groupRevision ?? 0);
for await (const agent of client.allAgents({group: 'finance/ca', limit: 100})) {
console.log(agent.id, agent.name);
}
```
Python provides `enroll_agent(name, capabilities, group=None)`, `set_agent_group(agent_id, group, expected_revision)` and `all_agents(group='finance/ca', limit=100)`. Use `groupRevision` from an exact agent read, defaulting to zero for older records. A stale revision returns HTTP 409. Filtered pages are live results, not a frozen snapshot; restart from the first page when a group changes during traversal. Fleet-wide staged rollout orchestration remains separate work.
## List actions and keyboard navigation
Open an item's **Actions** dropdown to inspect or manage it. Menus keep the row height fixed and remain above the scrolling table; the fleet action column stays visible during horizontal scrolling. Use the arrow keys to move between available actions, Enter to choose one, and Escape to close the menu and return to its trigger. Clicking outside also closes it. Repository names open their scan history directly. Destructive actions retain their confirmation flows.
To organize matching agents across all inventory pages, use [reviewed bulk fleet groups](../fleet-groups/). The preview, progress and outcome history are under **Fleet tools > Group operations**.
## Choose a cloud collector distribution
For Windows or Linux, select **Binary** in Getting started to use the bundled provider
SDKs without installing Python. Follow [cloud binary collectors](../cloud-binary-collectors/)
for the local identity and provider access check. The commands below are for the
Python distribution.
## Prepare a cloud collector with one command
For a local AWS, Azure or GCP collector, download and verify the latest source bundle,
extract it into a fresh folder, and save the wizard's `agent.local.json` there.
Hosted cloud connections do not need this setup.
On Windows with Python 3.12 installed:
```powershell
py -3.12 scanner/setup_cloud.py --provider aws
```
On macOS or Linux:
```sh
sh scanner/setup-cloud.sh aws
```
Replace `aws` with `azure` or `gcp` for that provider. Azure and GCP currently require
x86_64 Windows or glibc Linux, or macOS 11+ on Apple Silicon/Intel. Linux and macOS Azure
and GCP require CPython 3.12. The helper checks compatibility before downloading,
verifies dependencies against the release's hashes, creates an isolated environment,
and prints the matching connect command. It does not request cloud permissions or
enroll the agent. Follow the provider guide to configure your local identity first.
Existing environments are preserved. If setup says an environment already exists,
use its connect command or extract the bundle into a fresh folder for a new installation.
## Negotiated TLS evidence
Source scanner 0.26.10 observes the actual server-selected TLS 1.3 key share and
TLS 1.2 ECDHE named curve or finite-field DHE parameters during a verified handshake. It records the group ID,
recognized group name, and negotiated signature-scheme ID separately from the
certificate signature OID. A HelloRetryRequest is not itself a negotiated result.
The scanner sends no application data and retains no raw handshake or key-share
bytes. Normal native certificate, hostname and validity verification still applies;
a failed trust check does not produce a successful observation.
The observation and CBOM include explicit metadata availability/validity fields.
The CPython diagnostic hook must be available; unsupported backends, unrecognized
groups and unparsed negotiation modes remain unknown.
The reported authentication field describes the certificate public key; the separate
signature-scheme ID identifies the observed handshake signature. This is one actual
negotiation, not an exhaustive server capability scan. TLS 1.3 hybrid/PQC group
recognition does not add those algorithms to an older TLS backend's offered groups.
Real local Windows/native-trust acceptance covers TLS 1.2 and TLS 1.3 X25519,
TLS 1.3 P-256 retry, TLS 1.2 DHE-2048, and untrusted-certificate rejection. Linux/macOS and compiled
agent acceptance remain separate gates. Existing binaries keep their published
scanner version until rebuilt. Hosted active TLS execution remains roadmap work.
### Finite-field parameters and signature names
For signed TLS 1.2 DHE, the scanner measures modulus, generator and server public-value
bit lengths from ServerKeyExchange. It exports a SHA-256 fingerprint of canonical
length-prefixed modulus/generator values, not raw parameters or public-value bytes.
The fingerprint excludes the ephemeral public value, so it can correlate parameter
reuse. `DHE-2048` means a measured 2048-bit modulus; it does not assert the modulus
matches RFC 7919 ffdhe2048, is prime, or is otherwise cryptographically strong.
`dhNamedGroupIdentified` remains false until exact parameter recognition is implemented.
Recognized handshake signature IDs also have names. TLS 1.2 ECDSA pairs are named
`ecdsa_sha256`/`ecdsa_sha384`/`ecdsa_sha512`; those pairs do not constrain the
certificate curve. TLS 1.3 uses the corresponding curve-specific scheme names.
Unknown or unsupported IDs retain their numeric value and an unknown name.
The mapping uses the [IANA SignatureScheme registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-signaturescheme)
and the TLS 1.2 structure from [RFC 5246 section 7.4.3](https://www.rfc-editor.org/rfc/rfc5246.html#section-7.4.3).
### Presented certificate inventory
Source scanner 0.26.11 emits the TLS endpoint plus separate certificate observations
for up to 16 certificates presented by the peer. The endpoint links to those assets;
certificate fingerprints provide stable identity within the scanner source. Each
certificate records its own public-key type/size/curve, signature OID/algorithm/hash,
serial number, validity dates and CA flag. A certificate's public key and the issuer's
signature algorithm are separate: an RSA leaf can be signed by an ECDSA intermediate.
The peer-presented list is **not the operating system's verified trust path**. The
connection still passes native trust verification, but `verifiedPathCaptured` and
`certificateSignatureVerified` on these inventory records remain false. Roots may
be omitted, and a server can present extra certificates. No issuer dependency is
inferred from adjacent positions or matching names. Endpoint dependencies mean
certificates presented on that connection.
When the chain API is unavailable, inventory falls back to the verified connection's
leaf certificate. `peerChainInventoryComplete` is false for unavailable, truncated,
invalid or mismatched chain data. Duplicate certificates are deduplicated. Raw DER,
PEM and key material are not exported. CBOM uses native CycloneDX certificate
properties for names, dates, serial and fingerprint, preserving separate key/signature
metadata and the limits on trust claims. Existing compiled binaries require an update
to include this scanner behavior.
Source scanner **0.26.13** identifies TLS 1.2 FFDHE2048, FFDHE3072, FFDHE4096,
FFDHE6144 and FFDHE8192 only when the full modulus and generator match RFC 7919.
The evidence identifies this as parameter matching, not a selected-group identifier
observed on the wire. Same-sized custom parameters retain their measured DHE label.
Named FFDHE remains vulnerable to a cryptographically relevant quantum computer.
### Bounded TLS capability discovery
Source scanner **0.26.45** selects the opt-in `modern-v2` capability profile with:
```sh
python scanner/qr.py tls example.com:443 --capabilities --output tls-capabilities.json
```
For managed TLS jobs, set `"tlsCapabilities": true` in the local agent JSON.
The existing target allowlist still applies. The initial verified connection is
followed by nine serial probes: TLS 1.2 and 1.3 with default offers, TLS 1.2
ECDHE-RSA/AES128-GCM, ECDHE-ECDSA/AES128-GCM and DHE-RSA/AES256-GCM, plus TLS 1.3
with X25519 and P-256, and TLS 1.2 RSA transport with AES128-GCM and AES256-GCM.
Each probe uses a five-second connection/handshake timeout.
Probes use the original hostname and the baseline peer IP, verify certificates,
and send no application data. No trust or cryptographic security settings are relaxed.
Managed jobs check their lease between probes and stop starting new probes after
lease loss or cancellation. An in-flight connection remains bounded by its timeout.
`negotiated` means that exact probe completed a verified handshake. `inconclusive`
means it failed; an alert, certificate rejection or timeout does not establish lack
of server support. `local-unavailable` means the local TLS library could not
configure the probe. The profile is explicitly non-exhaustive: it does not enumerate
every cipher, signature, legacy protocol or hybrid/PQC group. Probe outcomes and
certificate fingerprints survive CBOM export; additional peer certificates are
linked in inventory. Source 0.26.45 also accepts `--capability-profile pq-v2`,
adding six explicit PQ/hybrid probes for fifteen after the baseline; these require
Python 3.15 and OpenSSL 3.5 group controls. Native agents before 0.26.47 retain
the seven-probe `modern-v1` and thirteen-probe `pq-v1` profiles. Explicit v1
profiles remain supported by the newer source scanner. Service and update lifecycle
validation remains specific to the separately listed service releases.
### Managed SSH probing
Source scanner **0.26.92** adds SNTRUP761/X25519 negotiation on Windows x86_64,
Linux x86_64 and Apple Silicon. Install the whole signed Python bundle and rerun
**doctor**; backend files are supplied with the release and verified before use.
No SSH credentials, username or remote command execution is required. ML-KEM
remains preferred when the peer supports it. The reported host signature retains
its separate risk assessment, even when key exchange is hybrid. Installed native
agents need a matching compiled release; a new source bundle does not replace them.
Platform **0.51.353** adds **SSH probing** to configuration for agents enrolled
with SSH capability and source scanner **0.26.70**.
- **Use local setting** omits the cloud override and keeps the host administrator's choice.
- **Baseline handshake** narrows discovery to one SSH handshake.
- **Raw host keys** (`host-keys-v1`) permits at most five connections. The local profile must approve v1 or v2.
- **Host keys + certificates** (`host-keys-v2`) permits at most ten connections and requires source scanner **0.26.90** and local `"sshHostKeyProfile": "host-keys-v2"`. Existing v1 settings are not upgraded automatically.
Managed configuration must also be enabled locally. The cloud cannot expand the
local profile permission. If the host has not opted into inventory, the agent
rejects the revision as outside local scope and does not claim new work until the
configuration is corrected. Local source names and `sshHostKeyPins` stay local;
additional observed keys do not inherit trust from the baseline fingerprint.
Publication waits for agent acknowledgement. Changing a setting while its revision
is being submitted is disabled; use **Check application status** before retrying an
uncertain publication. Remote inventory still requires separate pool and run approval.
Explicit managed SSH profile selection requires a qualified **0.26.70**, **0.26.71** or **0.26.90** heartbeat; certificate inventory requires **0.26.90**. Earlier agents can still use **Use local setting** while managing other
settings. After updating the agent, wait for its heartbeat and reload the editor.
The source release and native package versions are qualified separately.
## Recover a schedule submission
Create recurring agent work under **Discovery schedules**. If the response is lost,
**Check schedule submission** recovers the original schedule without creating another.
The reviewed scope is locked while its outcome is uncertain. Closing and reopening
this form in the same tab restores the request; reloading clears this browser recovery
state. If you reload, inspect the schedule list before creating another schedule.
API clients can supply a UUID `requestId` to `POST /api/v1/schedules`. Reuse it only
with the same caller and exact scope. A recovered response reflects the existing
schedule, including a later pause; it does not restart it or renew authorization.
Conflicting reuse returns HTTP 409. Clients omitting `requestId` retain independent
creation semantics. The JavaScript and Python SDK schedule methods accept this field.
## Configure a recurring discovery scan
Open **Discovery schedules > Create schedule**. Configuration opens on a full page. Choose a scanner and its locally approved target, find a compatible active agent, and set the frequency and optional first-run time. The first-run field uses your browser's local time. Agent target allowlists still apply, and overlapping occurrences are skipped.
Search and page through compatible agents without loading the entire fleet. QUIC targets require an agent that advertises QUIC support and has the relevant UDP target approved locally.
Unfinished fields remain available when you navigate away and return within the same tab and signed-in workspace. The selected agent is fetched again when restoring a draft. Reloading clears the draft. After a submission with an uncertain response, fields are locked to the original request; **Check schedule submission** reuses its request ID to recover the same schedule. Check its current state before starting separate work.
## Queue a discovery scan
Open **Discovery scans > New discovery scan**. Setup opens on a full page with scanner-specific target guidance and searchable, paginated compatible agents. The guided agent setup also opens this page with its reviewed target and agent preselected; opening it does not submit a job.
Unsent fields survive navigation within the same tab, workspace and identity. Returning to setup fetches the selected agent again. Reloading clears unsent drafts. After submitting, the existing pending-request recovery is separate from the draft: if the response is uncertain, return to **Discovery scans > Review pending submission** and check the original request. Recovery reuses the original scope and request ID, including when an agent has since been retired. The page explains whether this browser can retain the pending request across reloads.
A confirmed job returns you to the scans list. A confirmation received after you navigate away does not redirect the page you are viewing.
## Diagnose a command failure
Scanner 0.27.9 adds an opt-in, redacted traceback for failures that reach the
scanner command boundary. Put `--debug` before the command:
```sh
python scanner/qr.py --debug tls example.com:443
```
For a compiled agent, use `quantum-ready --debug tls example.com:443` (or
`quantum-ready.exe` on Windows). Diagnostics go to stderr, leaving report output
on stdout unchanged. The traceback shows scanner file locations and line numbers;
exception values, local variables, source lines and external paths are omitted.
Delegated service/database commands retain their own handled-error behavior.
The flag does not change scan scope, certificate verification or permissions.
A missing optional dependency names the affected capability and suggests repairing
the prepared source environment or reinstalling the signed binary. Use the reviewed
provider setup for cloud dependencies; do not install arbitrary packages into a
compiled agent. A failed or incomplete scan remains failed or incomplete when debug
is enabled. Check the exit status and coverage diagnostics before using its results.
## Review an agent's scan history
Select an agent name or **Manage > Scan history** in **Agents & sensors**. History opens as a full page, with ten jobs per request. **Older**, **Newer**, and **Refresh latest** load history for that specific agent. Failed page requests retain the previous results.
When opening history from a deployment's enrolled-device list, **Back to deployment** preserves the deployment and its device-page cursor. **Back to agents** returns to the fleet for histories opened there.
Each job shows its outcome, target, reported scanner version and observation count. Partial results include coverage diagnostics where reported. A heartbeat alone does not establish a successful scan, and a QUIC timeout is inconclusive about the endpoint's cryptography.
## Return to your place in the fleet
Opening **Scan history**, **Configuration history**, or **Configure agent** from a fleet row preserves the selected agent and your position. Returning to **Agents & sensors** in the same tab and signed-in workspace restores the existing filters/page, document scroll, fleet-table scroll on both axes, and focus on the selected agent name. Changing fleet filters or pages clears a pending return position; signing out clears it as well. The position is held in memory and does not survive a reload. If the agent no longer appears in the returned results, no row is focused.
On narrow screens, the fleet presents each agent as a labeled card with its actions below its status and configuration. Names and group names wrap so they remain readable without scrolling sideways. Desktop screens retain the comparison table. Both views load the same 50-agent page.
**Agent controls** opens as a full workspace page. Refreshing keeps expanded status sections and your place on the page. If a pause or resume request cannot be confirmed, refresh the status before trying again; leaving the page does not cancel a request already sent. Use **Back to agents** to return to the fleet. Software update review opens as a full page with release selection, local policy preparation and explicit confirmation.
Update review keeps a sent request in this tab, scoped to your workspace and identity. Reopening the page shows its confirmed receipt or asks you to check Agent controls if the outcome is uncertain; it does not send another request. Reloading clears this memory and does not cancel an existing request.
---
# Managed agent updates
Source: https://qscan.dev/docs/agent-update-operations
Managed update requests are available to workspace administrators for compatible compiled agents. The current catalog includes Linux x86_64, Windows x86_64 and macOS arm64 releases. Selection requires the agent's reported operating system and architecture to match the signed release, with a newer compatible version available. Python source installations do not use binary replacement.
Prepare the updater and local permission policy using the platform-specific guide:
- [Linux supervisor](../linux-update-supervisor/) and [local policy](../linux-update-policy/).
- [Windows service updates](../windows-service/#local-update-permission).
- [macOS managed scanner updates](../macos-native-package/#managed-scanner-service-package-051575).
[Staged group rollouts and maintenance windows](../agent-rollouts/) are available; each later batch requires administrator approval. Catalog availability is not host readiness or whole-platform qualification. The Windows 0.27.3-to-0.27.4 scheduled update retained identity and completed a scan from the replacement process; that test was not a new reboot test. macOS 0.27.4 has separate signed replacement and managed-scan evidence, with its first-attempt relay-admission diagnostic still unresolved. Consult the platform guides for exact release and lifecycle boundaries. General operational-health verification remains incomplete.
In **Agent controls**, **Refresh status** keeps your open update details, keyboard
focus and scroll position. You can close the dialog while a refresh is pending;
a late response will not reopen it or replace a different task you opened. The
same applies while **Review software update** loads its release options: the button
shows loading progress, and closing the dialog or navigating away discards the late
view response. If loading fails while the dialog is still open, the review button
becomes available again. A submitted update may still be accepted after you close
its review; reopen Agent controls to inspect the recorded outcome before retrying.
## Review an update in the workspace
Open **Agents > Agent controls > Software update > Review software update**. The review action appears when a newer compatible reviewed release is available. Pause new scans first and wait for running scans to finish and the agent to acknowledge it is idle. The review explains any remaining blocker.
Select a release. If local policy is not prepared, expand **Prepare the local update policy** to download JSON pinned to that version and sequence, choose its permission duration, and copy the host-side apply command. See the [local policy guide](./linux-update-policy.md#prepare-a-policy-in-the-workspace) for review and application. Downloading does not request an update or prove host readiness. Confirm that the local supervisor and its update policy are configured. The request preserves the reviewed maintenance revision; it does not grant local installation permissions or resume scans. If the response is interrupted, use **Check agent status** before trying again. A pending request can be cancelled from Agent controls before replacement is authorized.
Administrators can read the same snapshot through `agentUpdateOptions(agentId)` or Python `agent_update_options(agent_id)`. It includes compatible newer releases, current version, maintenance revision, and a readiness blocker. The server rechecks state when requesting and beginning an update; the snapshot is not installation authorization.
## Linux supervisor setup and recovery
Installer 0.50.5 provides both `supervise-once` and a persistent supervisor service with signed-archive staging. It uses the installed agent's endpoint and enrollment, requires explicit local update permission, and verifies the selected release against installed trust. Follow [Linux update supervisor setup and recovery](../linux-update-supervisor/) to install the background service; running a one-shot command alone does not install it.
The supervisor saves its operation receipt before downloading. After interruption it reconciles the recorded installation and cloud outcome instead of blindly repeating replacement. An interrupted download can resume with the same claim. Cancellation or expiry removes only matching staging and receipts. A changed installed release requires review.
Resolve pending installer recovery before continuing. Retain the operation receipt while diagnosing an interrupted update; deleting it does not prove the previous attempt failed. If staged work has no receipt or cloud intent, inspect the operation identified by `staging-review-required` before using `discard-update`. The supervisor does not automatically resume scan admission or declare discovery healthy.
## Check availability first
Both SDKs expose the capability response:
```js
const capabilities = await client.agentUpdateCapabilities();
// enabled, supervisorAvailable, operationalHealthVerified
```
```python
capabilities = client.agent_update_capabilities()
```
An enabled API does not mean a supervisor is installed or local replacement is permitted. Creation, polling and replacement authorization return `503` when execution is disabled. Reading existing state, cancelling a pending request and reporting a previously authorized outcome remain available.
`supervisorAvailable` describes public software availability: at least one current
managed-update agent release has a matching current installer. It does not report
that any particular agent has an installed or running supervisor. Use that agent's
update options and local supervisor status for its platform and configuration.
`operationalHealthVerified` remains false here; verify health from the specific
update operation, subsequent contact and an actual discovery result.
## Operation contract
An administrator selects an exact reviewed agent release ID from the native download catalog. Arbitrary packages, commands and URLs are not accepted. The agent must report a matching compiled OS/architecture. Claims must already be paused with no active leases; creation requires that maintenance revision. This preparation does not establish local process readiness or permission to install.
`createAgentUpdate(agentId, {requestId, releaseId, maintenanceRevision})` and Python `create_agent_update(agent_id, request)` create durable tenant-scoped intent. Generate a unique UUID v4 request ID. Retrying the same requester and selection returns the same operation; reusing that ID for a different selection returns `409`. Only one active operation is allowed per agent. History is retained without a lifetime 1,000-operation cap. Use the paged fleet history endpoint to read it. Deadlines are at most one hour and cannot exceed signed-release expiry.
Use `agentUpdate(agentId)` / `agent_update(agent_id)` for the current operation, or `agentUpdateOperation(id)` / `agent_update_operation(id)` for a known operation. Viewers and analysts can read tenant operations. Agent credentials can read only their own operation, poll their own intent, and report against their own replacement authorization.
| State | Meaning |
| --- | --- |
| `requested` | Intent is recorded; replacement has not been authorized. |
| `cancelled` | Intent was cancelled before replacement authorization. |
| `expired` | Intent expired before replacement authorization. |
| `applying` | The server authorized the replacement boundary; the local outcome is not yet known. |
| `outcome-unknown` | The deadline passed after authorization. Do not assume replacement failed or succeeded. |
| `installed-reported` | An agent reported installation. Operational health remains unverified. |
| `failed-reported` | An agent reported a failure, rollback or recovery requirement. Inspect local state. |
No state is called healthy or completed. `operationalHealthVerified` is always false. Local signature verification, update-policy checks, protected service stop and post-restart discovery verification remain separate requirements.
## Supervisor protocol and authorization
`nextAgentUpdate()` / `next_agent_update()` returns the authenticated agent's current intent and a bounded local staging request. Polling rechecks the original administrator's authorization and release availability. It does not authorize replacement. The locally configured supervisor must stage and verify the release, then call `beginAgentUpdate(id, claimId, expectedRevision)` / `begin_agent_update(...)` immediately before applying it.
Begin requires the original administrator to remain authorized, the current matching pause revision, a fresh idle observation, and no active scan leases. The local installer must independently enforce policy and readiness. Generate a unique UUID v4 claim ID; a retry with the same claim ID recovers the same authorization. It is omitted from public operation responses.
`cancelAgentUpdate(id, expectedRevision)` / `cancel_agent_update(...)` can cancel only `requested` intent. Begin and cancel compete in one tenant transaction; only one can win. Once replacement is authorized, cancellation returns `409` because it cannot promise to undo local work. Cancellation leaves scan admission paused. Inspect the outcome and explicitly resume claims when appropriate.
`reportAgentUpdate(id, report)` / `report_agent_update(...)` accepts the matching claim ID, current revision, an `installed` or `failed` outcome and a bounded reason code. Caller timestamps and extra fields are rejected. Reports can resolve an unknown outcome after the deadline, but they do not prove health. After an interrupted report, read the current operation before retrying. If the original administrator loses access before begin, cancel the intent and request a new operation under an authorized administrator.
The API has passed isolated tenant/role, idempotency, revocation, cancellation-race and simulated-outcome checks through both SDKs. These checks did not replace software. The local supervisor executes authorized updates, and [staged group rollouts](../agent-rollouts/) provide canaries and reviewed batches. One-time maintenance windows can bound each reviewed rollout; see the rollout guide for approval and expiry behavior. Recurring calendar windows and independent operational-health verification remain unfinished.
## Fleet history
**Agents & sensors > Fleet tools > Update history** shows 50 operations at a time across the workspace. Filter by outcome or exact agent ID, expand a request for contact/scan evidence, and refresh newest for recent requests. Failed requests keep the prior page visible. Revoking or archiving an agent preserves its update history.
`GET /api/v1/agent-updates` accepts `status`, `agentId`, `after`, and `limit` (default 50, maximum 100). JavaScript `agentUpdates`, Python `agent_updates`, and MCP `agent_update_history` expose the same filters. Results are ordered by creation time and ID descending. Pass `nextCursor` unchanged as `after`; reset it when changing filters. Expiration is evaluated before filtering. A reported installation never substitutes for post-update process and scan evidence.
Update history opens as a dedicated workspace page. **Back to agents** returns to
the fleet; reopening history in the same tab preserves the last successfully
loaded filters and page. Reloading the browser resets this view. Pagination is
available above and below the results; expanded details use normal page scrolling.
---
# MCP and AI assistants
Source: https://qscan.dev/docs/ai-integrations
Connect your assistant to a workspace to inspect discovery coverage, run an authorized repository scan, and follow its findings without copying credentials into a chat.
## Connect to the hosted endpoint
Add **https://qscan.dev/mcp** as a **Streamable HTTP** server in your assistant. For a host supporting OAuth discovery and public-client registration, choose browser sign-in. Sign in with your existing account and MFA or passkey, review the assistant name, workspace, role and return address, then choose **Allow connection**. Only approve a connection you started. Client names are supplied by the connecting app and are not a verification badge.
The assistant receives an opaque MCP-only token, never your password or workspace API credential. Its tools run with the role shown on the consent screen. For read-only use, sign in as a viewer. Each connection requires explicit consent. **Account & security > Manage assistant connections** shows current grants and lets you revoke them.
Access expires within one hour and is shortened by the remaining browser session lifetime, including the 30-minute idle timeout. Signing out, revoking the authorizing session, changing account access or suspending the workspace stops the connection. Reconnect from the assistant when it expires; unattended refresh tokens are not issued.
The hosted MCP transport rechecks the original OAuth grant before each workspace
API call, including calls within the same tool request. If access has been revoked
or replaced since that request began, the next call is rejected. Revocation does
not undo a mutation that has already completed. Background-job cancellation and
authorization follow the individual tool's documented lifecycle; this request
check does not itself cancel an already submitted job.
For automation or a host without browser authorization, use a dedicated workspace API credential in its protected `Authorization: Bearer` secret setting. Start with a viewer credential for inspection. Never put credentials in the URL, chat, tool arguments or source control.
No local server installation is required. In the product, open **Integrations > MCP** for the connection details. Call `workspace_identity` first and confirm the intended workspace and role. Both hosted HTTP and local stdio expose the same toolset and support 2026-07-28 and legacy 2025-11-25 clients.
Every HTTP request authenticates the credential, including initialization and discovery. Each tool call then goes through the existing workspace API authorization and limits. Revoked/expired credentials stop working; agent enrollment credentials and browser cookies do not grant MCP access. Requests are not cached. The endpoint is stateless: operations and request IDs live in the platform, while MCP sessions and subscriptions are not retained.
OAuth uses authorization code + S256 PKCE, exact registered HTTPS or HTTP loopback redirect addresses, RFC 8707 resource binding to `https://qscan.dev/mcp`, and the `mcp:tools` scope. Public registrations last 30 days. Client metadata URL registration and offline refresh are not advertised. A client must support dynamic registration, PKCE and the resource parameter; otherwise use a protected API credential or local stdio.
| Response | Recovery |
| --- | --- |
| 401 | Reconnect using browser sign-in, or replace an expired/revoked API credential in host secret settings. |
| 403 | Confirm the workspace role and endpoint. Foreign browser origins and agent credentials are rejected. |
| 405 | Use Streamable HTTP POST. Session GET/DELETE and persistent subscriptions are not available. |
| 400 / interrupted upload | If the server could not read the request body, check the connection and client transport. After a lost response, inspect operation state before retrying a mutation and retain its request ID. |
| 413 / 415 | Keep JSON requests below 512 KiB; compressed request bodies are not accepted. |
| 429 | Honor Retry-After. Authentication and individual tool API calls consume the workspace request budget. |
| Tool error | Read the returned status/action. Inspect operation state before retrying a mutation; retain its request ID. |
The browser flow follows the [MCP OAuth discovery and resource-binding flow](https://ts.sdk.modelcontextprotocol.io/v2/clients/oauth). The transport uses the [official MCP web-standard handler](https://ts.sdk.modelcontextprotocol.io/v2/serving/web-standard) with application-level authorization and canonical host/origin checks.
## Install and connect a local server
Download the [signed discovery bundle](https://qscan.dev/downloads.html), verify its release signature using the [distribution guide](../agent-distributions/), and extract it. Install Node.js 22 or newer. From the extracted directory:
```sh
npm --prefix mcp ci --omit=dev --ignore-scripts
```
Configure your MCP host to launch `node` with the absolute path to `mcp/server.mjs`. Supply `QSCAN_TOKEN` through the host's secret/environment configuration. Use a workspace API credential with the role appropriate to your task; an enrollment or operator credential is not a substitute.
```json
{
"mcpServers": {
"sectigo-quantum-ready": {
"command": "node",
"args": ["/absolute/path/to/bundle/mcp/server.mjs"],
"env": {"QSCAN_ENDPOINT": "https://qscan.dev"}
}
}
}
```
The host must also inject `QSCAN_TOKEN`; the example deliberately contains no credential. Windows paths may use forward slashes, for example `C:/Tools/QuantumReady/mcp/server.mjs`. Restart the host after updating its environment. This alternative uses local stdio and calls the workspace HTTPS API. It offers the same tools and authorization rules as the hosted endpoint.
## First successful scan
Ask: **Identify my workspace, show its repository connections, check access to the selected repository, then run a scan and report coverage and cleanup.**
1. `workspace_identity` confirms the tenant and role.
2. `repository_connections` and `repository_connection` select the scope and current revision.
3. `repository_test_access` checks the configured provider credential.
4. `repository_scan_start` accepts `connectionId`, `expectedRevision`, and a caller-generated UUID `requestId`.
5. `repository_scan_status` follows the operation to a terminal result. Review findings, coverage and cleanup separately.
Retain the request ID if a submission times out. Reusing that ID with identical scope prevents duplicate scans. Do not treat a queued response or empty inventory as successful assessment. Provider authentication is configured in **Repository scanning > Edit access**, never in an MCP argument.
## Available tools
| Area | Tools |
| --- | --- |
| Workspace | `workspace_identity` |
| Repository setup | `repository_capabilities`, `repository_connections`, `repository_connection`, `repository_test_access` |
| Code scanning | `repository_scan_start`, `repository_scan_status`, `repository_scans`, `repository_scan_cancel`, `repository_scan_sarif` |
| Cloud setup | `cloud_capabilities`, `cloud_connections`, `cloud_connection`, `cloud_connection_trust` |
| Cloud execution | `cloud_test_start`, `cloud_scan_start`, `cloud_operations`, `cloud_operation_status`, `cloud_operation_results`, `cloud_operation_cancel` |
| Fleet and evidence | `agents`, `agent_status`, `assets` |
| Assessment | `asset_impact`, `asset_context`, `asset_context_update`, `asset_risk_history`, `workspace_cbom` |
| Hosted captures | `capture_capabilities`, `captures`, `capture_status`, `capture_cancel` |
| Agent configuration | `agent_configuration_history`, `agent_configuration_revision`, `agent_configuration_publish` |
| Agent maintenance | `agent_maintenance`, `agent_maintenance_set` |
| Agent updates | `agent_update_capabilities`, `agent_update_options`, `agent_update_current`, `agent_update_status`, `agent_update_request`, `agent_update_cancel` |
| Agent jobs | `agent_jobs`, `agent_job_start`, `agent_job_status`, `agent_job_cancel` |
The server delegates authorization to the API on every call. A viewer cannot start scans. Repository credentials are not exposed. Cloud creation and capture uploads remain available through their existing product/API workflows. Managed update requests now have MCP tools; local supervisor installation and update policy remain separate administrator setup.
## Review findings and capture cleanup
Ask: **Show the selected finding's dependency impact and risk history, then report capture processing and raw-data cleanup separately.**
Use `assets` to select an exact asset ID. `asset_impact` follows declared dependencies with bounded `maxDepth` (1-20) and `maxNodes` (1-500). Read `truncated`, `truncationReasons` and unresolved references before describing the affected scope. Unobserved dependencies are not proof of isolation. `asset_risk_history` explains retained score changes; pass its returned `nextBefore` value as `before` for further pages. `workspace_cbom` returns the current CycloneDX inventory for assessment; it is not a promise of complete discovery or quantum safety.
For hosted uploads, start with `capture_capabilities`. Use `captures` with `limit` (1-100) and follow `nextCursor` as `after` until null. Read `capture_status` by exact operation ID. `capture_cancel` stops an authorized operation; it does not retract findings already accepted. Poll status after cancellation and report `rawDataState` separately: `released` confirms cleanup, `not-uploaded` means no upload took place, and cleanup-pending is unresolved. Viewers can inspect these results but cannot cancel operations. Upload through [Capture analysis](../capture-analysis/) or the SDK; do not send binary capture data or provider secrets as MCP arguments.
## Direct cloud discovery workflow
1. Confirm the workspace with `workspace_identity`, then inspect `cloud_capabilities` and choose a connection from `cloud_connections`.
2. Read `cloud_connection` to review the provider, exact resource scope, revision and verification state. An administrator can read `cloud_connection_trust` for the provider trust configuration. Apply trust through the provider's existing setup workflow; the MCP server does not change provider permissions.
3. An administrator starts `cloud_test_start` with the connection ID, expected revision and a retained UUID request ID. Poll `cloud_operation_status` with bounded backoff. A successful test establishes access, not completed discovery.
4. Start `cloud_scan_start` on the verified connection using a **different** retained request ID. Administrators and analysts can scan. Poll the returned operation ID and read `cloud_operation_results`.
5. Results use a numeric `nextAfter` cursor. Pass it as `after`, including zero, until null. Connection and operation history use `nextCursor`. Both SDKs' all-results iterators handle this distinction.
Report failed resources and successful observations separately. A partial result is not complete cloud coverage. Configuration changes require reviewing the scope and verifying the new revision. On an interrupted submission, reuse the original request ID and input; do not start a second operation. `cloud_operation_cancel` requests cancellation; inspect terminal status and retained resource outcomes afterward.
`cloud_connections` accepts `archived: true` to inspect retired connections and their retained history. Archive and restore are administrator actions in the product or SDK; restoring does not grant scan access. Cloud creation remains in the workspace setup flow or SDK. No cloud secrets belong in MCP arguments. These tools exercise the existing AWS KMS, Google Cloud KMS and Azure Key Vault integrations; tool availability does not establish real-account acceptance for every provider.
## Discovery through an enrolled agent
1. Confirm `workspace_identity`, then use `agents` to select an active enrollment with the required scanner capability. A recent heartbeat does not prove access to your target. Review the intended target and the agent's local allowlist with its administrator.
2. Call `agent_job_start` with a descriptive `name`, `kind`, exact `target`, `agentId` and a retained UUID `requestId`. Supported kinds are `tls`, `ssh`, `code`, `capture`, `aws-kms`, `gcp-kms` and `azure-keyvault`. A code or capture path belongs to the agent host, not the assistant's machine. Cloud targets must be an exact AWS key ARN, GCP numeric key-version resource or Azure versioned key URL. Starting a job does not enroll or install an agent.
3. Poll `agent_job_status` using the returned job ID with bounded backoff. Report queued/running/completed/failed/cancelled accurately. Inspect observations and errors before describing coverage. Local scope checks can reject a job even when the cloud accepts its submission.
4. If the start response is lost, reuse the same request ID and identical input with the same workspace principal. This returns the original job, including its current terminal state. Changing the name, kind, target or agent returns 409. Do not generate a new request ID to work around an ambiguous response.
5. Use `agent_job_cancel` with a reason when requested, then inspect status. Accepted observations remain in inventory. The agent receives cancellation through its normal control-plane checks; cancellation is not an assertion that an operating-system process has already exited.
`agent_jobs` returns jobs newest first. Pass each `nextBefore` value as `before` until null; `limit` accepts 1 to 200. Timestamp ties use job ID ordering, so older pages do not skip equal-time jobs. Refresh the first page to see new arrivals. Use exact IDs with `agent_job_status` for known jobs. The JavaScript SDK exposes `createJob`, `job`, `jobs`, `allJobs` and `cancelJob`; Python exposes `create_job`, `job`, `jobs`, `all_jobs` and `cancel_job`. SDK creation accepts the same optional `requestId`; MCP requires it. Legacy SDK/API submissions without a request ID create a new job on each request. Viewer credentials may read status but cannot start or cancel work. API responses omit lease tokens and completion digests.
### Verified compiled-agent workflow
The live development-workspace acceptance has exercised MCP job submission and status with Windows x86_64 agent **0.23.7** and Linux x86_64 agent **0.23.4**. Both executed real TLS and local code jobs, rejected an out-of-scope directory and produced linked inventory/evidence and a TLS CBOM entry. Code fixtures included Python, `.mjs`, `.cjs`, `.mts` and `.cts`; the scanner did not execute them. Repeated MCP submissions reused the original job. The control plane's pause acknowledgement and credential revocation were also checked. Both platform checks now request and read the pause through MCP and confirm that the real compiled process reports idle at that revision. Both also publish managed settings through MCP: local opt-in is required, expanded local scope is rejected, disabled settings hold an unclaimed job, and a corrected enabled revision permits that same job to complete. Enrollment, evidence verification and revocation use SDK/API calls.
Windows ran as a foreground process with an empty PATH. Linux ran as UID 10001 in a disposable Ubuntu container with no system Python, a read-only root filesystem and dropped capabilities. These checks validate that workflow and those artifacts. They do not establish Windows service/Server acceptance, macOS support or real cloud-account permissions. See the [distribution guide](../agent-distributions/) for the separate platform and update status.
## Agent skill
The bundle includes `skills/sectigo-quantum-ready/SKILL.md`. Copy that folder into your assistant's skill directory. A plain-text copy is available at [skills.md](https://qscan.dev/docs/skills.md). The skill explains scope selection, access repair, stable request IDs, polling, coverage interpretation and safe treatment of source findings.
## Troubleshooting
- **Startup fails:** confirm Node 22+, install dependencies in `mcp`, and inject `QSCAN_TOKEN` into the child process environment.
- **401:** replace the expired or revoked workspace credential.
- **403:** check workspace membership and role. Do not use another tenant's credential.
- **409:** reload the affected resource and review scope before retrying. For agent job request-ID conflicts, recover the original submission; do not silently create another job.
- **429:** honor the retry interval. Private repository provider quotas depend on the configured provider credential.
- **Scan pending:** inspect the operation ID rather than starting another scan. Report cleanup pending independently from processing state.
Machine-readable documentation: [llms.txt](https://qscan.dev/docs/llms.txt), [complete guide text](https://qscan.dev/docs/llms-full.txt), [OpenAPI](https://qscan.dev/docs/openapi.json). These are rebuilt from the guides with every documentation release.
Use `repository_scan_sarif` to export an exact completed scan for code review. Review `runs[0].properties.analysisComplete` and the recorded commit before using the report in CI. Partial coverage remains explicitly incomplete. The tool returns static candidates at note level and does not upload them to a provider. See [repository exports](../repository-connections/#export-a-scan-for-ci-and-code-review) for SDK examples and import boundaries.
## Manage an enrolled agent
Start with `workspace_identity` and `agent_status`, using an exact agent ID. The status separates desired `configuration` from `configurationStatus`: publishing a revision does not mean the host accepted it. Revoked or archived agents remain readable for investigation.
### Publish scoped configuration
1. Read `agent_status` and inspect the existing settings, capabilities and reported version. Review the local administrator's maximum allowlist; remote publication cannot grant filesystem, network or cloud permissions.
2. Call `agent_configuration_publish` only for an authorized change. Supply the exact current `expectedRevision` (zero before the first publication) and all required settings: `enabled`, `pollSeconds`, `allowedTargets`, `allowedSshTargets`, and `repositoryRoots`. Optional capture/cloud lists must match the agent's enrolled capabilities. Credentials and local identity profiles do not belong in these settings.
3. Poll `agent_status` with bounded backoff. Confirm that `configurationStatus.revision` matches the published revision and `status` is `applied`. `rejected` requires reviewing its reason, including local opt-in and scope. Missing acknowledgement means application is unconfirmed. Existing jobs may finish under their earlier configuration.
4. Use `agent_configuration_history` and follow `nextBefore` to examine changes. `agent_configuration_revision` reads exact historical settings. Restoring requires reviewing those settings and publishing a new revision against the current one; reading history changes nothing.
On a timeout or conflict, reread current state and history. Publishing has optimistic concurrency, not a request-ID receipt: do not blindly increment the revision and republish a request whose response was lost.
### Pause, update and verify
Read `agent_maintenance`, then use `agent_maintenance_set` with the current revision to pause admission. This blocks new claims, not running jobs. Inspect active leases and the current process's idle acknowledgement. A stale acknowledgement or leases-drained state alone is insufficient to establish local readiness. Pause schedules or cancel jobs separately when that is the intended task.
Before a software change, read `agent_update_capabilities`, `agent_update_options` and `agent_update_current`. Use only an explicitly reviewed release ID returned for that agent, and resolve the reported blocker. `agent_update_request` requires that selection, the current `maintenanceRevision` and a retained UUID `requestId`. Reuse identical input if its response is lost. The host must already have the supported supervisor and local update policy; the tool does not install either or bypass local verification.
Poll `agent_update_status` by operation ID. Distinguish requested, applying, outcome-unknown and terminal results. Inspect heartbeat and post-update scan evidence before reporting health; installation alone does not verify target access or successful discovery. `agent_update_cancel` requires the current operation revision and cannot reverse a replacement already in progress. Follow the [distribution and update guide](../agent-distributions/) for supported platforms, rollback and recovery limits. Resume admission through `agent_maintenance_set` only when the requested maintenance is complete.
### SDK equivalents
JavaScript: `agent`, `agentConfigurationHistory`, `allAgentConfigurationHistory`, `agentConfigurationRevision`, `publishAgentConfiguration`, `agentMaintenance`, `setAgentMaintenance`, `agentUpdateCapabilities`, `agentUpdateOptions`, `agentUpdate`, `createAgentUpdate`, `agentUpdateOperation`, and `cancelAgentUpdate`.
Python uses the corresponding snake_case names, including `all_agent_configuration_history`. Iterators follow every history cursor and reject repeated cursors. Mutations do not retry automatically. All management writes require a workspace administrator; read-only availability follows the API role contract, and release-selection options also require administrator access.
## Traverse agent inventory
The `agents` tool accepts `archived`, `after` and `limit` (default 50, maximum 1000). Results are in stable ID order; current entries include revoked agents until archived. Pass `nextCursor` as `after` until null. Keep `archived` unchanged throughout traversal and restart from the first page when switching views. This is a live list, not a snapshot. Never infer fleet size or a missing enrollment from one page. Use `agent_status` for a known exact ID.
### Find an agent
The `agents` tool accepts `q` (up to 100 characters) for a literal name or ID substring and `status` (`all`, `active`, `revoked`) for credential access state. Active access does not establish recent contact or scan readiness. Search applies across the fleet before pagination. Keep `q`, `status` and `archived` unchanged while following cursors; restart on any filter change. The JavaScript `agents`/`allAgents` and Python `agents`/`all_agents` methods expose the same options.
### Diagnose one agent
Pass an exact `agentId` to `agent_jobs` to read that agent's retained jobs, including revoked and archived enrollments. Filtering occurs before newest-first pagination. Keep the same agentId while following nextBefore; reset the cursor when changing agents. Review status, error, observations and claimedScannerVersion; use agent_job_status for an exact current job. JavaScript jobs/allJobs accept agentId; Python jobs/all_jobs accept agent_id. All calls retain workspace authorization and omit lease secrets.
### Fleet update history
Use `agent_update_history` to inspect software update operations across the workspace, newest first. Optional `status` and `agentId` filters apply before pagination. Follow `nextCursor` as `after`, and reset it when changing filters. Each response is bounded to at most 100 entries. Installation reported is distinct from fresh-process contact and post-update scan evidence. The history includes revoked and archived agents.
## Fleet groups
Call `agent_groups` to discover available named groups before selecting agents or preparing a rollout. Use `q` for a case-normalized name prefix and follow `nextCursor` as `after` with the same prefix; reset the cursor when changing the search. Pages contain at most 100 groups. Counts exclude revoked and archived agents and omit ungrouped entries. They do not prove connectivity, scan health or update compatibility. An empty directory means no named group has active access; inspect the inventory before proposing a group assignment.
Filter `agents` by an exact `group` name, retaining the filter when following `nextCursor`. An administrator can use `agent_group_set` with the exact agent ID, group name and current `groupRevision` from `agent_status` (zero when absent). Empty group removes assignment. On a conflict or uncertain response, reread before changing membership again. Grouping is inventory metadata; it does not change host permissions or initiate scans or updates.
For bulk organization, follow the [fleet group workflow](../fleet-groups/). Prepare a selection with `agent_group_prepare`, review `agent_group_operation` and every page of `agent_group_operation_items`, then explicitly apply the reviewed scope with `agent_group_apply`. Read the current revision before apply, resume or cancel. Group assignment does not initiate discovery or expand permissions.
### Inspect one evidence record
Use `evidence_details` with an exact evidence UUID to read its current archive stages. JavaScript `evidence(id)` and Python `evidence(evidence_id)` provide the same lookup. Missing stage timestamps on older records mean unknown timing. Pending archival does not mean ingestion failed. The lookup remains workspace scoped and does not expose storage keys.
SCM inspection uses `scm_connections`, `scm_connection`, `scm_scans`, `scm_scan` and `scm_schedule`. These tools read metadata, progress and coverage. Administrators can use `scm_scan_start` with a retained requestId and `scm_scan_cancel`; poll `scm_scan` until terminal. Original OAuth authorization must remain valid for background imports. Credential and schedule changes remain in the workspace. See [SCM setup and automation](../scm-connections/).
### Staged fleet updates
Use `agent_rollout_prepare` to prepare a group-scoped preview and read `agent_rollout` and `agent_rollout_items` before requesting approval to advance. `agent_rollout_advance` starts the one-agent canary or a later batch; it is a mutation that pauses scans and requests signed replacement. `agent_rollout_resume` and `agent_rollout_cancel` require the current revision. Preparation is not authorization to install. See [Staged agent updates](../agent-rollouts/).
Use `asset_context` to read scanner values alongside reviewed business requirements. `asset_context_update` requires explicit approval of the values, a reason, the returned context revision and evidence ID. Do not infer retention, ownership or criticality from cryptographic algorithms. A conflict requires reloading and renewed review. An empty `values` object restores scanner values.
## Recurring source discovery
Use `repository_schedule` to inspect the connection's schedule. When recurring scans have been explicitly requested, `repository_schedule_manage` saves, pauses or removes it with revision guards. Saving requires current administrator access, `confirmDelegation: true`, an interval of 3600 to 2592000 seconds and a successful access check within 15 minutes. `startNow` is optional and defaults to false. Never infer recurring authorization from a request for one scan. Read saved state after an uncertain response before retrying. See [recurring repository scans](../repository-connections/#recurring-repository-scans) for ownership, invalidation, cleanup and skip behavior.
Network telemetry inspection uses `telemetry_connections`, `telemetry_connection` and `telemetry_status`. These read scoped metadata and receipts without receiver secrets. A destination check does not prove delivery, and provider reports do not prove a verified handshake. Configure receivers in the administrator workspace. See [network telemetry setup](../network-telemetry/).
## Evidence history
Use `evidence_list` to page through received observations and `evidence_details` to inspect one record. Follow `nextCursor` as `before`, keeping any `assetId` filter unchanged. See [Browse evidence history](../evidence-history/) for pagination and archive semantics.
## Splunk delivery assistance
Splunk HEC configuration uses the workspace administrator UI or SDK; this MCP server does not expose a dedicated Splunk credential-management tool. Do not paste HEC tokens into assistant context. Follow the [Splunk guide](../splunk-connections/) to inspect event IDs, distinguish collector acceptance from indexing and review uncertain sends. Do not automatically approve duplicate risk or turn an expired acknowledgement into a new event send.
Use `event_destinations`, `event_deliveries` and `event_delivery` for read-only signed webhook and Splunk diagnostics with a workspace administrator identity. Follow `nextBefore` as `before` for the same destination. Revoked destinations retain history. Compare the stable event ID with receiver records; distinguish collector acceptance from confirmed indexing and unknown outcomes. These tools never create credentials, send tests, enable delivery or retry events. Keep tokens out of assistant context and use the product workflow for reviewed changes.
## Remote scanning through approved agents
Use `remote_pools`, `remote_pool`, and `remote_pool_members` to inspect policy, effective state, revision, and scanner readiness. Administrator tools `remote_pool_create`, `remote_pool_update`, `remote_pool_state`, and `remote_pool_member_update` manage explicitly reviewed approval. `remote_pool_member_configuration` returns the local configuration and firewall review; it does not apply settings to an agent. The agent must still opt in locally.
For an authorized scan, call `remote_run_preview` with a retained UUID `requestId`, `poolId`, current `expectedRevision`, name, literal devices/subnets in `targets`, approved `services`, and ISO `notBefore`/`notAfter` timestamps. Review expanded addresses, exclusions and limits. Submit that exact input with `remote_run_start`; reuse it unchanged after a lost response. Preview does not queue traffic. Optional `sshHostKeyProfile: "host-keys-v1"` requires `sshHostKeyInventory` pool approval (five connections). `host-keys-v2` requires separate `sshHostCertificateInventory` approval (ten connections), scanner 0.26.90 and matching local profile/connection permission. Neither preference expands the approved devices, source addresses or scan window.
Follow progress with `remote_run`, `remote_runs` and `remote_targets`. Run history uses `nextBefore` as `before`; target results use `nextAfter` as `after`. Keep the pool/run and filters unchanged while paging. `remote_run_state` accepts `pause`, `resume`, or `cancel` with the current run revision. An unknown target is an unconfirmed attempt; never automatically rescan it. Cancellation cannot undo traffic already sent.
These tools use the same OAuth connection and role enforcement as other workspace tools. Viewers can inspect state; administrators manage approval; administrators and analysts may preview and submit reviewed runs. Pool approval alone does not establish network access, local configuration, or scan success. See [remote network scanning](../remote-network-scanning/).
## Risk-profile previews
### Custom profile lifecycle
Platform 0.51.476 adds tenant-scoped custom-profile tools to the hosted OAuth MCP server. Start with `custom_risk_profiles` and `custom_risk_profile`; use `custom_risk_profile_versions`, `custom_risk_profile_version`, `custom_risk_profile_history` and `custom_risk_profile_compare` to inspect immutable versions and changes. Follow `nextCursor` for profile lists and `nextBefore` for version/history pages.
Administrators can create or clone drafts, save definitions, publish, restore old definitions into drafts and archive with the matching `custom_risk_profile_*` tools. Mutation inputs require `confirm: true`, a reason and the current revision where applicable. Confirmation records the caller's explicit intent; it is not an authorization bypass. The API enforces roles, tenant isolation, exact built-in versions, draft opt-in, valid weights/boundaries and immutable history. After uncertain creation, inspect the library before repeating it.
Use `custom_risk_profile_preview` with the exact `targetVersion` and UTC assessment date before `custom_risk_activate`. Review score/severity differences and unknown dimensions with the user; choose `recalculate` explicitly. A bounded sample does not prove workspace-wide outcomes. Publishing and restoring do not activate. Customized derivatives are tenant-defined and cannot be described as official standards or compliance certification.
Read `custom_risk_progress`, `custom_risk_run` and paginated `custom_risk_run_results`. `asset_custom_risk` reports whether the latest result is stale. `custom_risk_recalculate` needs a UUID request ID: reuse it only with identical input after uncertain delivery. Completion does not establish complete evidence coverage. Explicit deactivation supersedes pending work while retaining history. OAuth authority is rechecked before every API dispatch, including mutations; a viewer's mutation receives a permission error.
The hosted server includes these tools independently of the downloadable source bundle. Existing signed source bundles keep their published MCP tool set until a newly qualified source release is delivered.
Platform 0.51.474 includes `risk_profiles` and `asset_risk_profile_preview`. They use the same OAuth authority and tenant API as other workspace tools. Administrators, analysts and viewers may preview; collector identities may not.
First list profiles and review their exact version, publication status, declared mapping scope and source references. Preview a stored asset with an explicit UTC assessment date and applicability. Use `unknown` when applicability has not been established. Draft guidance requires your explicit opt-in before the assistant supplies `allowDraft: true`.
A preview reads existing evidence. It does not start a scan, change workspace policy or recalculate stored risk scores. Results retain their evidence ID, normalization version, partial coverage and unknown roles. A result with no transition finding is not certification or proof of compliance with an entire standard. Do not supply credentials or invented cryptographic facts to these tools.
### Cloud connection setup through OAuth MCP
Administrators can use `cloud_connection_create` with a `configuration` matching the OpenAPI CloudConnectionInput schema, then inspect `cloud_connection_trust`. This supports the same AWS, GCP and Azure scopes as Cloud connections, including database metadata connectors. Do not supply cloud secrets or database passwords. Creating a draft does not grant provider access or start a scan; apply the scoped federation/IAM instructions in the provider account, then use `cloud_test_start` and poll its operation before `cloud_scan_start`.
Use `cloud_connection_update` with `id`, `expectedRevision` and the complete `configuration`. Editing clears verification and invalidates ongoing work. Reload the connection after an uncertain response before retrying. Creation is not idempotent: list existing connections after an uncertain response to avoid duplicates.
`cloud_connection_revoke` requires `id`, `expectedRevision` and `confirm: true`. It stops further authorized work but does not remove provider-side trust or findings. Remove that trust separately in the cloud account. To permanently remove a revoked connection, use `cloud_connection_delete` with explicit confirmation. Workspace role checks apply to OAuth tools exactly as they do to API requests; a viewer cannot provision cloud access.
## Managed database discovery
`agent_job_start` supports `kind: "database"`. Its `target` is the lowercase
connection UUID created on the host, never a database URL or credential.
Confirm the selected agent's database approval and current readiness first.
Use the [database automation workflow](../database-scanning/#queue-a-database-job-through-the-api-sdk-or-mcp)
for request identity, status, partial evidence and cancellation. MCP cannot expand
the host's local policy, and a cloud-database inventory connector is a separate
control-plane metadata workflow.
---
# Ansible deployment
Source: https://qscan.dev/docs/ansible-deployment
Download the Ansible collection 0.1.2. Install it on your controller with `ansible-galaxy collection install sectigo-quantum_ready-0.1.2.tar.gz`.
Collection `sectigo.quantum_ready`, version 0.1.2. This initial collection provides
the Linux service lifecycle module and a role for controller-delivered release
files and individual device credentials. Windows tasks, automatic deployment-grant
authorization/redemption, provider reporting, and macOS deployment are still being
built. This is not yet an accepted full fleet deployment integration.
## Prepare one host, then roll out
Use a Linux controller with Ansible Core 2.19 or later. Target Ubuntu 24.04 x86_64
hosts with Python 3.11 or later for Ansible modules, systemd and become access.
The installed compiled agent does not use Python. Discovery runs under the
installer's restricted service account, not the Ansible administrator.
1. Download and verify the signed native Linux installer using the Quantum Ready
agent instructions. Install that complete verified distribution in a root-owned,
non-writable-by-others directory on each host. Pin the executable SHA256 from
its **verified** signed manifest, not an unverified download checksum.
2. Stage the signed agent manifest, signature, archive, and independently reviewed
public verification key on the controller. Choose the exact version and sequence.
3. Supply each host's approved local configuration. Obtain a unique agent credential
for each host, storing it in Ansible Vault or your controller secret store. Never
reuse one credential across hosts or put it in a shared deployment package.
4. Install the collection download on your controller, then run a single-host pilot:
```sh
curl --fail --show-error --location --output sectigo-quantum_ready-0.1.2.tar.gz https://qscan.dev/downloads/ansible/sectigo-quantum_ready-0.1.2.tar.gz
ansible-galaxy collection install sectigo-quantum_ready-0.1.2.tar.gz
ansible-playbook -i inventory.yml deploy.yml --limit pilot --check
ansible-playbook -i inventory.yml deploy.yml --limit pilot
```
Example `deploy.yml` (set the referenced variables in inventory and your secret store):
```yaml
- name: Deploy reviewed Quantum Ready release
hosts: quantum_ready
become: true
serial: 1
any_errors_fatal: true
roles:
- role: sectigo.quantum_ready.linux_agent
qscan_installer: /opt/qscan-installer/quantum-ready-service
qscan_installer_sha256: '{{ reviewed_installer_executable_sha256 }}'
qscan_version: '{{ reviewed_agent_version }}'
qscan_sequence: '{{ reviewed_agent_sequence }}'
qscan_release_files:
manifest: '{{ controller_release_directory }}/manifest.json'
signature: '{{ controller_release_directory }}/manifest.sig'
archive: '{{ controller_release_directory }}/sectigo-quantum-ready-linux-x86_64.zip'
trusted_key: '{{ controller_trusted_key }}'
qscan_configuration: '{{ approved_host_configuration }}'
qscan_device_token: '{{ vault_host_agent_token }}'
```
`qscan_device_token` is needed only for the first installation. The role transfers it
to a root-only staging file with logging/diffs disabled, then removes that transport
copy in an `always` task. The installer retains its own protected credential. An
interrupted controller can leave the staging copy until the next run; keep the host
and controller private. Do not enable Ansible debug logging or dump registered host
variables. The module takes only file paths, never a credential argument.
## Install from completed enrollment
With compiled Linux installer **0.51.206 / sequence 352** or later, you can replace
`qscan_device_token` with `qscan_deployment_state: /root/qscan-enrollment`.
Use the directory created by the agent's unattended enrollment command on that
host. Run enrollment as root, keep the directory mode `0700`, and pass the same
approved configuration through `qscan_configuration`. Do not copy another device's
state or combine the two credential options.
The role passes only the directory path to the installer. It never reads the
credential into Ansible variables, creates a transport token file, or removes
saved enrollment state. The installer validates completed enrollment, endpoint,
configuration and private state permissions. Subsequent runs and upgrades reuse
the installed credential. Check mode validates the directory but does not redeem
or validate the saved enrollment contents; application performs those checks.
This option connects completed device enrollment to service installation.
Automatic grant authorization and redemption by the role are still being built.
## Check mode, retries and lifecycle
- `qscan_state`: `started` (default), `stopped`, `present`, or `absent`.
- Repeating a successful run at the same release leaves a healthy service unchanged.
`present` makes no running-state change to an unchanged installed release; installing
or upgrading starts the service. `stopped` stops it after install/upgrade.
- To upgrade, supply the next signed release and exact version/sequence. Downgrades,
version/sequence conflicts, pending recovery journals and changed local configuration
stop the rollout for review. This module does not edit the local discovery scope.
- Check mode never invokes the installer or writes credentials. The role previews
changed staging inputs; it cannot validate a not-yet-staged signature. Once inputs
are staged, the module previews lifecycle actions and reads systemd running status.
Actual signature, expiry, archive inventory and installer diagnostics are checked
during application. Check-mode success is not proof of installability.
- Set `qscan_state: absent` to stop/disable and remove the managed service definition.
The installer deliberately retains configuration, credentials, logs and releases.
Revoke the device credential in the workspace separately if it must no longer work.
- Recovery is explicit. Inspect the installer's private local diagnostics and use its
`recover` command before retrying; Ansible will not erase or bypass a recovery journal.
After a pilot, confirm agent contact and queue an approved scan in the workspace.
Successful service startup does not prove contact or discovery. Increase `serial`
only after that validation. No Ansible output currently advances a deployment's
workspace status automatically.
## Verified Linux lifecycle
Collection 0.1.2 adds completed enrollment state as an alternative to transferring
a per-device token. It passed 28 real-Ansible container checks with installer and
systemd test doubles. A November 5 tutorial pilot verified actual check/apply/unchanged-repeat/removal with collection 0.1.2 and native agent 0.27.4/790 from unified package 0.51.512 on Ubuntu 24. Controller and target shared the isolated guest using local transport and a unique individual TLS identity. The same agent contacted the production workspace and completed an approved TLS scan. This does not qualify remote SSH, automatic grant redemption, provider assignment, or other operating-system roles. See [the complete pilot walkthrough](../tutorial-ansible-pilot/).
Collection 0.1.1 passed 16 lifecycle checks using real Ansible and systemd in an
offline Ubuntu VM. The test installed signed native agent 0.25.4/291, upgraded to
0.26.6/346 using compiled installer 0.50.5/81, and verified non-root execution,
check mode, unchanged repeat runs, stop/start, recovery after a real reboot, and
repeatable service removal. Configuration and the protected credential survived
removal; the temporary credential transport file was removed and the credential
did not appear in Ansible output or the service journal.
This test used a synthetic device credential without network access. Before a
production rollout, complete a pilot with your device credential, confirm agent
contact in the workspace, and run an approved validation scan. Live cloud enrollment,
Intune/Jamf assignment, and Windows/macOS Ansible deployment are separate acceptance
requirements and are not covered by this Linux lifecycle result.
Implementation follows the official [Ansible module guidance](https://docs.ansible.com/projects/ansible/latest/dev_guide/developing_program_flow_modules.html)
and [module conventions](https://docs.ansible.com/projects/ansible/latest/dev_guide/developing_modules_best_practices.html).
---
# AWS KMS discovery development preview
Source: https://qscan.dev/docs/aws-kms-development
The signed discovery bundle includes an experimental, metadata-only collector at `scanner/aws_kms.py`. It inspects explicitly selected KMS key ARNs. Platform 0.26.0 and scanner 0.16.0 support exact-key jobs, schedules, guided setup and managed scope. This is a preview validated with synthetic provider responses; it has not yet been validated against a live AWS account. The current compiled Windows and Linux agents include the AWS SDK.
## One-command Python connection
Save `agent.local.json` from Getting started in the verified bundle folder and
configure the local cloud identity and read permissions first. Open a terminal in
that folder. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider aws --connect
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh aws --connect
```
This first checks that your configuration contains valid resources for the selected
provider, before downloading dependencies. It then prepares or verifies the locked
environment, reads the selected cloud resources to check access, and only then
prompts privately for the agent enrollment token. If the configuration is rejected,
return to Getting started, select the matching cloud collector and download a fresh
`agent.local.json` into this folder. Repeat the same command after replacing it.
If cloud access fails, follow the diagnostic and run the same command again. No agent
connects and no findings are uploaded by the access check. Keep the terminal open;
Ctrl+C stops the foreground agent. Use the same command to reconnect.
Omit `--connect` to prepare dependencies only. The separate access-check and connect
commands below remain available for troubleshooting. Azure and GCP Python setup
includes separate macOS 11+ wheel locks for Apple Silicon and Intel with CPython 3.12. Mac wheel hashes, tags and dependency requirements are verified; native Mac execution and live cloud-account acceptance remain pending.
## Compiled collector
Choose **Binary** in Getting started to use the Windows or Linux collector without
installing Python or provider SDKs. Follow [cloud binary setup](../cloud-binary-collectors/)
for the local identity, access check and service-account requirements. The Python
workflow below remains available.
## Guided installation and access check
For a connected host, use [Getting started](https://qscan.dev/workspace.html#getting-started)
to select this collector, save its scoped configuration, and prepare the verified bundle.
The wizard offers the combined command above, with separate checks available under troubleshooting. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider aws
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh aws
```
Repeating setup verifies and reuses a matching environment without downloads or
installation. It checks Python, SDK imports, locked package versions and dependency
health. An incomplete or mismatched environment is preserved; prepare a fresh bundle
folder for recovery. Run **Check cloud access** afterward to verify provider permissions.
Use the wizard's **Copy access check** command with the prepared environment. It reads
only the configured resources with your local identity, requires no platform enrollment
token, and uploads nothing. A successful result has `"ready": true` and exit code 0.
Failures provide fixed recovery guidance and a zero-based `resourceIndex` referring
to the configured resource order. Resolve failures before using **Copy connect command**.
Access can change after the check; inspect the first scan result as well.
The lower-level commands below remain available for offline dependency preparation.
## Select the smallest scope
In [Getting started](https://qscan.dev/workspace.html#getting-started), choose **AWS KMS** before enrolling. Save the scoped credential, enter your exact key ARN, and optionally name an existing local AWS profile. **Download scoped IAM policy** produces a reviewable `kms:DescribeKey` policy for that ARN; it does not modify AWS permissions.
Choose the operating system of the machine running the collector. No host is preselected. Changing it preserves the key ARN. Download the configuration, follow the dedicated cloud-environment commands, run doctor, and start the collector. A heartbeat verifies contact only; a successful discovery scan verifies access to your key.
Choose between 1 and 200 full key ARNs. Aliases, wildcard resources, duplicate ARNs and mismatched partitions are rejected before SDK initialization. Generate the proposed IAM permission document locally; this command does not load AWS credentials:
```shell
python scanner/aws_kms.py policy --key-arn arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
```
Replace the example ARN with an authorized key. Repeat `--key-arn` for additional keys. The policy grants only `kms:DescribeKey` on those resources. Your AWS administrator must review the effective IAM and key policies; generating a policy does not change AWS permissions. No key enumeration, encryption, decryption, signing, key export, or key mutation permissions are requested.
AWS documents that resolving certain predefined aliases through `DescribeKey` can create an AWS-managed key. This collector accepts only full key ARNs to avoid that alias behavior. See the [DescribeKey API](https://docs.aws.amazon.com/kms/latest/APIReference/API_DescribeKey.html) and [KMS permissions reference](https://docs.aws.amazon.com/kms/latest/developerguide/kms-api-permissions-reference.html).
## Run from a development environment
Scanning requires a dedicated Python environment with Boto3 and Botocore. The signed bundle includes a separate hash lock for all seven AWS SDK packages and an offline environment creator. These optional dependencies are not included in the native service runtime locks yet. Use your existing short-lived AWS credentials or named profile; do not place credentials in the command or report.
On a machine with CPython 3.12–3.14 and pip, prepare the approved wheels. This is the only setup command below that requires package-index access:
```shell
python scanner/download_dependencies.py --target aws-sdk-python3 --directory aws-wheels
```
Copy the verified bundle tools and complete wheel directory to the agent host if necessary. Create a new environment; this step installs only from the supplied wheels, requires exact hashes, and does not change global Python:
```shell
python scanner/create_cloud_environment.py --directory aws-agent-env --wheelhouse aws-wheels
```
The destination must be new. Setup verifies the wheel inventory, creates a virtual environment, installs offline, checks dependency consistency and installed versions, then writes a completion receipt. Interrupted environments retain a pending marker and are never reused automatically. Correct the cause and choose a new destination. This is a foreground AWS agent environment, not a native service installation or a TLS/SSH scanning environment.
On Windows, use `aws-agent-env/Scripts/python.exe` for the scan, doctor and agent commands. On Linux or macOS, use `aws-agent-env/bin/python`. For example, on Windows:
```shell
aws-agent-env/Scripts/python.exe scanner/aws_kms.py scan --profile discovery --source aws-kms --key-arn arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
```
The collector uses the SDK credential chain, verifies TLS, disables configured endpoint URL overrides, and bounds request timeouts and attempts. Credential retrieval follows the host's SDK configuration. See [Botocore configuration](https://docs.aws.amazon.com/botocore/latest/reference/config.html).
## Understand the result
- Exit code `0` means every requested key returned usable metadata. Exit code `2` means an incomplete scan or setup failure.
- `observations` contains platform-shaped inventory evidence. This command does not upload it or create a managed scan job.
- `diagnostics` identifies failed selections by their zero-based input index and a fixed error code. Permission failures remain visible; they are not reported as an empty successful inventory.
- Reports include resource ARNs and account IDs. Descriptions, tags, external-key identifiers, raw provider errors, and credentials are excluded.
- Key specifications describe capability. Authentication and key-establishment posture remain `unknown`; the collector does not establish runtime use or quantum safety. `SYMMETRIC_DEFAULT` also remains an unknown algorithm.
For `aws.kms.access-denied`, review access to the exact selected key rather than adding broad list or write permissions. For `aws.kms.invalid-metadata`, stop and investigate the response identity. For `aws-sdk-unavailable`, repair the development environment before retrying. Managed cloud credentials, production AWS onboarding, Azure and GCP connectors remain under development.
## Manage an AWS agent
1. Enroll an agent with **AWS KMS metadata (preview)**. This grants platform job permissions, not access to AWS.
2. In **Getting started**, choose the agent, select AWS KMS, enter one approved full key ARN, and download the configuration. Review the generated `allowedAwsKmsKeys` list. For multiple keys, add explicit ARNs locally, up to 200.
3. Create the locked AWS environment above and provision a least-privilege AWS identity on the agent host. Use the default SDK credential chain, or add a local `awsProfile` string. No AWS credentials or profile selectors are submitted to the workspace.
4. With the environment's Python executable, run `scanner/qr.py doctor --config agent.local.json`. The check validates key scope and SDK availability without creating an AWS session or querying credentials. It does not verify actual AWS access.
5. With the same executable, run `scanner/qr.py agent --config agent.local.json` with the platform endpoint and agent credential configured. Create a first scan from Getting started. Each job targets one exact ARN; recurring schedules use the same scope enforcement.
For centralized configuration, explicitly add `"managedConfiguration": true` locally. The workspace can narrow `allowedAwsKmsKeys`, pause new scans and adjust polling within local limits. It cannot change AWS profiles, credentials, endpoints or widen the original local key list. Omitting the key list from a published configuration disables AWS jobs for that configuration. Publication pauses claims until the agent acknowledges the revision.
Cancellation, agent revocation and service shutdown are checked before and after the provider request and before upload. A request already in progress may run until its SDK timeout; it cannot publish results after the next failed lease/stop check. Provider errors fail the job with a fixed diagnostic code. Incomplete results are never uploaded.
Local integration tests exercise enrollment, configuration, lease-bound upload, tenant isolation, pause and revocation using synthetic AWS responses. Live AWS access and production installation still require separate acceptance.
The locked environment has been created and exercised on Windows with CPython 3.12. Real Boto3/Botocore tests use [AWS Stubber](https://docs.aws.amazon.com/botocore/latest/reference/stubber.html) to validate request/response models, error redaction and endpoint resolution with all network calls disabled. This does not establish live AWS permissions or native platform acceptance. Universal wheel compatibility alone does not prove successful setup on every operating system.
## Verify access before starting the agent
Scanner 0.21.0 adds an explicit read-only access check. After local doctor checks pass, run this with the dedicated cloud environment's Python interpreter (Windows example):
```shell
aws-agent-env/Scripts/python.exe scanner/qr.py cloud-check --config agent.local.json --kind aws-kms
```
On Linux use the environment's `bin/python`. The command contacts the provider using the identity configured on this host and reads only the exact locally allowlisted resources for the selected source. It never contacts the platform or uploads observations. No platform credential is required. It uses the same metadata validation as discovery, so invalid or mismatched responses fail the check.
Exit 0 means every configured resource was read and validated; exit 2 means configuration, identity, provider access or metadata validation failed. `resourceIndex` is zero-based and refers to the selected provider's array in your local configuration. Output includes fixed diagnostic codes and suggested remedies, excluding resource identifiers, key metadata and raw SDK errors. Partial success remains a failure overall. Correct the failed resource or identity setup before starting the agent; do not widen permissions to fix a dependency or connectivity failure.
This is a point-in-time access check. It does not verify platform enrollment, continuous service operation, future permissions or an end-to-end scan. The local doctor remains offline. Open **Getting started > Review local diagnostics**, select this provider and your agent distribution, and copy the command to save `cloud-access.json`. Choose that file in the dialog for per-resource results and corrective guidance. The file is read only in your browser; it is not uploaded or saved.
---
# Azure hosted connection setup
Source: https://qscan.dev/docs/azure-hosted-setup
Use this guide for **Cloud connections > Azure Key Vault**. It runs from the hosted
platform; you do not install Python or an agent. The [local collector guide](../azure-keyvault-development/)
is a separate workflow.
You need two separate setup permissions: ownership of the app registration (or
permission to manage its federated credentials), and permission to assign Azure
roles on the selected keys or discovery vault. The discovery identity itself needs neither of these
administrative permissions.
## Choose the correct connection path
| Where the scan runs | Identity to configure | Setup action |
| --- | --- | --- |
| Hosted Cloud connections | Dedicated Entra application with federation | Follow this guide; no local Azure CLI sign-in or Python is needed for scanning |
| Agent on your Mac, Windows or Linux workstation | Azure CLI identity under your user account | Select **Azure CLI** in Getting started, sign in to the vault's directory, and follow the [collector guide](../azure-keyvault-development/) |
| Agent on an Azure VM or other eligible Azure host | Managed identity attached to that host | Enable the host identity and grant it selected-key access; choosing it in the wizard does not create it |
Exact-resource scans need the full key-version identifier and permission to read that key. Hosted connections also support a vault/key discovery scope with List and Get access.
Setting up federation alone does not grant Key Vault access.
## 1. Create or select the application
In Microsoft Entra ID, select the directory containing your vault and open
**App registrations**. Create a dedicated single-tenant registration or select one
your administrator has approved. Copy its **Directory (tenant) ID** and
**Application (client) ID** into Quantum Ready. Do not use the application Object ID
or an enterprise application's Object ID in those two fields. No client secret is needed.
For exact-resource scanning, add full key-version URLs, such as
`https://your-vault.vault.azure.net/keys/your-key/0123456789abcdef0123456789abcdef`.
Find it in **Azure portal > Key vaults > your vault > Keys > your key > a specific version > Key Identifier**. Copy the complete HTTPS identifier, including its version. Use a **key**, not a secret or certificate identifier. This example is not a working key.
Alternatively, choose **Discover a vault or key** and enter the vault URL or a key URL without its version. See [discovery permissions](#discover-a-vault-or-all-versions-of-one-key) below.
Save the connection and select **Show trust configuration**.
## 2. Add the federated credential
In the same app registration, open **Certificates & secrets > Federated credentials >
Add credential**. Choose **Other issuer**. Copy the exact issuer, subject and audience
from Quantum Ready. Use the name shown in the generated federated-credential JSON.
The issuer includes `/cloud-identity`; the subject belongs to this workspace connection;
the audience is `api://AzureADTokenExchange`. Do not substitute your tenant URL or
application ID for those values.
### Cloud Shell alternative
If the portal layout differs, open Azure Cloud Shell in **Bash**, run `az account show --query "{directory:tenantId,subscription:id,name:name}" -o table` and confirm the directory matches the connection, then copy **Create federated credential** from the product. Paste it into Cloud Shell and run it once. The command contains the complete JSON and uses your application client ID directly; no file, variable substitution or object-ID lookup is required.
There are three different IDs: Quantum Ready stores the **application client ID**; federation is configured on the **app registration object ID**; key permissions are assigned to the **service principal object ID**. Use the ID requested by each field. Azure CLI accepts either the client ID or app registration object ID for the federation command; role assignments require the service principal object ID. This follows [Microsoft's application federation instructions](https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-create-trust).
Save the credential. If you recreate the Quantum Ready connection, its subject changes,
so create the matching federated credential again.
## 3. Grant key read permission
Check **Key Vault > Access configuration**. These steps assume **Azure role-based
access control**. An existing access-policy vault follows a different authorization
model; ask its administrator to configure key **Get** access for the application.
Do not switch a shared vault's access model as a setup shortcut.
For an existing access-policy vault: open **Access policies > Create**, select only
**Key permissions > Get**, and select the enterprise application matching your
application client ID as the principal. Create the policy (and select **Save** if
the portal offers it). Do not grant secret or certificate permissions. Skip the
RBAC role commands below for this vault. Access policies grant access across the
vault, not individual keys; the administrator must approve that scope. The
collector still requests only the configured versions. Hosted discovery instead requires both List and Get permissions. See [Microsoft?s access-policy instructions](https://learn.microsoft.com/en-us/azure/key-vault/general/assign-access-policy).
For the shortest setup, open **Create the minimal key-read role** in the saved connection. Copy **Create role in Cloud Shell Bash**, run it in Azure Cloud Shell Bash, and enter the vault subscription ID. Save the returned role ID for **Assign the approved role to these keys**. This avoids manually editing JSON. If an approved role already exists, reuse its ID.
For manual setup on an RBAC vault, have an authorized Azure administrator create a custom role with
an empty `Actions` list and this single `DataActions` entry. Save this Azure CLI
role definition as `quantum-ready-role.json`, replacing the subscription placeholder:
```json
{
"Name": "Quantum Ready selected key reader",
"IsCustom": true,
"Description": "Read selected Key Vault keys for cryptographic inventory",
"Actions": [],
"NotActions": [],
"DataActions": ["Microsoft.KeyVault/vaults/keys/read"],
"NotDataActions": [],
"AssignableScopes": ["/subscriptions/"]
}
```
Create the role with `az role definition create --role-definition quantum-ready-role.json`
and retain its returned role ID. The subscription-level assignable scope only defines
where the role can be assigned; it does not grant subscription-wide access. Assign
the role at each selected key's Azure resource ID. This permission can read public key material as
well as properties and covers all versions of the selected key. The scanner reads
only configured or discovered versions and discards key material. Do not substitute broad
Contributor, Key Vault Administrator or cryptographic-operation roles.
### Find the correct IDs
Use Azure Cloud Shell **Bash**, select the subscription containing the vault, then
run the lookups supplied in **Show trust configuration**. You need:
- The **service principal object ID**, obtained with `az ad sp show --id --query id -o tsv`.
- The **vault resource ID**, obtained with `az keyvault show --name --query id -o tsv`.
A key's role-assignment scope is the vault resource ID followed by `/keys/`.
It is not the HTTPS key URL, and it does not include the key version. An administrator
can assign the approved custom role with the command below. If the service principal
lookup returns no result, the application owner must provision the enterprise
application with `az ad sp create --id `, then repeat the lookup.
An app created through a CLI or API may not have a service principal yet. Do not
create another one when the lookup already succeeds. Ordinary **Reader** and
**Key Vault Contributor** do not provide key data access.
For a copyable command with fewer manual substitutions, open **Assign the approved role to these keys** in the product. Run it in Cloud Shell **Bash**, then enter the vault subscription ID and the custom role ID you created above. It resolves the service principal and every vault resource ID and checks the directory and the RBAC mode of every vault before creating assignments. It assigns only the listed keys, once per key even when multiple versions were selected. Keep keys from different subscriptions in separate connections for this helper. It does not create the role or change a vault's access model. If a command fails after earlier assignments succeeded, those assignments remain; correct the reported issue before continuing.
To assign the reviewed role manually:
```bash
az role assignment create \
--assignee-object-id '' \
--assignee-principal-type ServicePrincipal \
--role '' \
--scope '/subscriptions//resourceGroups//providers/Microsoft.KeyVault/vaults//keys/'
```
Replace the labeled placeholders. The identity performing setup needs permission to
create the role assignment; the scanner identity does not need that permission.
The console also offers **Use Azure Cloud Shell instead of the portal**. Select Bash, verify the directory, and copy **Create federated credential**. This command includes the exact credential JSON; you do not have to create a file or substitute the issuer, subject or audience. It creates trust only: complete the key role assignment separately. For an existing credential, edit it instead of creating a duplicate.
## 4. Test, then scan
Return to the saved connection and select **Test access**. After all keys pass,
select **Run scan**. Allow time for Azure changes to propagate before retesting.
| Failure | Check |
| --- | --- |
| Token exchange fails | Directory and client ID; exact federated issuer, subject and audience; credential saved on the correct app registration |
| Access denied | Service principal assignment; key resource scope; RBAC versus access-policy mode; vault network restrictions |
| Key not found | Actual key-version identifier, correct vault and version |
| Vault is private-only | Hosted scans need an approved network route. Use a collector inside the private network when the hosted platform cannot reach it. Do not open the vault broadly to make a test pass. |
[Microsoft federation setup](https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-create-trust)
and [Key Vault RBAC guidance](https://learn.microsoft.com/en-us/azure/key-vault/general/rbac-guide)
cover the provider-side controls.
## Discover a vault or all versions of one key
In Cloud connections, select **Discover a vault or key** instead of entering exact
versions. Use the canonical vault URL, or a key URL without its version. The
connection's generated trust guide provides the required data action and an
optional Cloud Shell script that resolves the vault and principal IDs and assigns
access at the selected vault or key scope. Vault discovery requires vault-level
key-read access. One-key discovery can use key-level RBAC access. Access-policy
vaults require Key **List** and **Get** permissions at vault scope; retain their
existing access model.
The discovery Cloud Shell script resolves your subscription selection to its
canonical ID. It creates **Quantum Ready key discovery reader** once per
subscription, or reuses it only when it is a custom role with exactly the listed
key-read permission and that subscription's assignable scope. It still assigns
access only at the selected vault or key. A same-name role with different
permissions, a broader assignable scope, or ambiguous matches stops setup before
assignment; ask your Azure administrator to review it. The script never edits an
existing role. A failed role lookup also stops setup instead of assuming the role
does not exist. See [Azure custom-role lookup](https://learn.microsoft.com/en-us/azure/role-based-access-control/custom-roles-cli#list-a-custom-role-definition).
Run **Test access** after configuring provider trust, then **Run scan**. Both
operations enumerate the current scope; only scans publish inventory. Follow
page/resource discovery progress, then metadata-read results in operation history.
The [cloud connection guide](../cloud-connections/#azure-vault-and-key-discovery)
describes scope, pagination checks and coverage limits. Live provider account
acceptance is still pending.
---
# Azure Key Vault collector setup
Source: https://qscan.dev/docs/azure-keyvault-development
Use this page when a **local collector** will read Azure Key Vault. For scans
without an installed agent, follow [hosted Azure connection setup](../azure-hosted-setup/).
The hosted connection uses application federation; a local collector uses an identity
already available on its host. Do not mix their authentication steps.
## One-command Python connection
Save `agent.local.json` from Getting started in the verified bundle folder and
configure the local cloud identity and read permissions first. Open a terminal in
that folder. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider azure --connect
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh azure --connect
```
This first checks that your configuration contains valid resources for the selected
provider, before downloading dependencies. It then prepares or verifies the locked
environment, reads the selected cloud resources to check access, and only then
prompts privately for the agent enrollment token. If the configuration is rejected,
return to Getting started, select the matching cloud collector and download a fresh
`agent.local.json` into this folder. Repeat the same command after replacing it.
If cloud access fails, follow the diagnostic and run the same command again. No agent
connects and no findings are uploaded by the access check. Keep the terminal open;
Ctrl+C stops the foreground agent. Use the same command to reconnect.
Omit `--connect` to prepare dependencies only. The separate access-check and connect
commands below remain available for troubleshooting. Azure and GCP Python setup
includes separate macOS 11+ wheel locks for Apple Silicon and Intel with CPython 3.12. Mac wheel hashes, tags and dependency requirements are verified; native Mac execution and live cloud-account acceptance remain pending.
## Before you install
For a workstation, install [Azure CLI](https://learn.microsoft.com/cli/azure/install-azure-cli)
on the same computer as the collector. Reopen Terminal or PowerShell after installation.
The current Azure CLI requires **macOS 13 or newer**, even though the Python
collector's wheel set supports macOS 11+. With Homebrew already installed, run
`brew update && brew install azure-cli`. On Windows with WinGet, run
`winget install --exact --id Microsoft.AzureCLI`; Windows Server without WinGet
can use Microsoft's installer. Check `az version` in a new terminal.
See Microsoft's [Mac prerequisites](https://learn.microsoft.com/cli/azure/install-azure-cli-macos).
Run `az login` locally under the account that runs the collector. Signing in to
Azure Cloud Shell does not sign in your Mac or Windows workstation. Azure CLI's
bundled runtime does not provide the agent's Python 3.12 environment.
In Getting started choose **Azure CLI — this workstation**. The generated sign-in
command asks for the **Directory (tenant) ID** from **Microsoft Entra ID > Overview**,
opens browser sign-in, and prints the selected directory so you can check it.
The guided command now verifies that the active directory matches your input and
stops on a mismatch. With multiple subscriptions, select one in the vault's directory
during sign-in. Signing in alone does not prove permission to read the selected key;
the collector's **Check cloud access** step performs that check.
This path uses your signed-in identity; do not create the federated app described in
the hosted-connection guide. The CLI must remain available to the account running
the collector. A background service does not inherit your workstation login.
If signing in manually, replace `DIRECTORY_ID` with that Azure directory ID:
```sh
az login --tenant DIRECTORY_ID --allow-no-subscriptions
az account show --query tenantId -o tsv
```
The directory must contain the vault. `--allow-no-subscriptions` supports identities
with key data access but no subscription listing access; it does not grant key access.
If the browser cannot open, use `az login --tenant DIRECTORY_ID --allow-no-subscriptions --use-device-code`
and follow Azure's instructions on your own trusted browser.
1. Copy a complete **Key Identifier** from Azure portal > Key vaults > your vault >
Keys > your key > a specific version. It must end in the version, not just the key name.
2. Choose the identity: **Azure CLI** for a workstation signed in with `az login`,
**managed identity** for an Azure host with that identity enabled, or an explicitly
configured service principal/workload identity. A laptop cannot use managed identity
merely by selecting it in the wizard.
3. Ask the vault administrator to grant that identity key read access. For an RBAC vault,
use a reviewed role containing `Microsoft.KeyVault/vaults/keys/read` at the selected
key scope. For an access-policy vault, use key **Get**. Do not change a shared vault's
authorization model. The grant covers the key's versions; local configuration limits
which versions this collector reads.
4. Confirm the host can reach the vault. Private vaults require the appropriate network
and DNS access. Do not broaden the firewall to work around an authentication error.
In **Getting started**, select Azure Key Vault, the host operating system and **Binary**
for setup without Python. Download the scoped configuration, follow the installation
steps, then run **Check cloud access** before connecting the agent.
macOS 11+ Python setup is available for Apple Silicon and Intel using CPython 3.12.
Native Mac execution and live Azure account acceptance remain outstanding;
SDK transport fixtures validate the collector but do not prove access to your vault.
## macOS Python setup
Install maintained **CPython 3.12** through your managed software catalog or, if
you already use Homebrew, run `brew install python@3.12`. The launcher finds it
without changing PATH. For an existing python.org installation, run
**Install Certificates.command** in Applications > Python. Use macOS 11
or newer. Setup selects the wheel lock for the architecture of the running Python
interpreter (Apple Silicon or Intel), verifies all package hashes, and prepares an
isolated `azure-agent-env` directory. It never installs global packages or requires sudo.
Save `agent.local.json` beside **Start Agent.command** in the current verified
bundle. Double-click **Start Agent.command**. It detects Azure from your configuration
and prepares the Azure environment automatically. Alternatively, type `sh ` in
Terminal, drag **start-agent.sh** into the window and press Return. You do not need
to navigate folders or select a Python executable. Use the same launcher to reconnect.
For a workstation, select **Azure CLI** explicitly in Getting started and sign in
to the directory containing your vault with `az login --tenant `. A managed identity is not created by selecting
it in the wizard. A passing local check does not prove provider access; the combined
command checks access before asking for your enrollment token.
Mac wheel downloads and dependency closure have passed verification. Execution on
actual Mac hardware is still pending. The native CI workflow includes this setup
path; these instructions do not imply a compiled macOS binary or launchd service.
## Compiled collector
Choose **Binary** in Getting started to use the Windows or Linux collector without
installing Python or provider SDKs. Follow [cloud binary setup](../cloud-binary-collectors/)
for the local identity, access check and service-account requirements. The Python
workflow below remains available.
## Guided installation and access check
For a connected host, use [Getting started](https://qscan.dev/workspace.html#getting-started)
to select this collector, save its scoped configuration, and prepare the verified bundle.
The wizard offers the combined command above, with separate checks available under troubleshooting. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider azure
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh azure
```
You can repeat this setup command. If the existing environment matches this bundle,
setup checks its Python, SDK imports, locked package versions and dependency health,
then reuses it without downloading or reinstalling packages. An incomplete or mismatched
environment is preserved: extract the current signed bundle into a fresh folder and
run setup there. This local check does not verify Azure permissions; run **Check cloud access** next.
Use the wizard's **Copy access check** command with the prepared environment. It reads
only the configured resources with your local identity, requires no platform enrollment
token, and uploads nothing. A successful result has `"ready": true` and exit code 0.
Failures provide fixed recovery guidance and a zero-based `resourceIndex` referring
to the configured resource order. Resolve failures before using **Copy connect command**.
Access can change after the check; inspect the first scan result as well.
The lower-level commands below remain available for offline dependency preparation.
## Select the access scope
Use complete key-version URLs from Azure public cloud, for example:
```shell
python scanner/azure_keyvault.py permissions --key-version https://quantum-test.vault.azure.net/keys/signing/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```
This offline command needs no Azure SDK or credentials. It produces review guidance for the `Microsoft.KeyVault/vaults/keys/read` data action, or `get` for a legacy access policy. It does not grant permissions or generate a complete deployable role assignment. The returned URLs are data-plane key identifiers; an administrator must resolve the corresponding ARM key resource scope when assigning a reviewed custom role. Prefer a key-scoped RBAC grant to vault-wide access. A key grant covers its versions; the collector's version selection is a separate local boundary.
Azure's [key-read permission](https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/security) provides public key material and permits some public-key operations. Do not describe it as a metadata-only IAM permission. The collector only calls [Get Key](https://learn.microsoft.com/en-us/rest/api/keyvault/keys/get-key/get-key?view=rest-keyvault-keys-2025-07-01), never encryption, signing, verification, key mutation, secret retrieval, or enumeration. It retains neither public nor private key material in its report.
The collector accepts 1–200 unique URLs with explicit 32-character hexadecimal versions. It rejects versionless paths, aliases, query parameters, fragments, user information, custom ports, wildcard scopes, and alternate hosts before initializing credentials. Managed HSM endpoints and sovereign clouds are not supported yet. Private endpoints can use the normal public-cloud vault hostname with the host's approved private DNS configuration.
## Choose a local identity
Prepare the fourteen pinned dependencies on a connected machine, using the target that matches the agent host:
| Dependency target | Agent environment | Validation so far |
| --- | --- | --- |
| `azure-windows-x86_64-cpython312` | Windows x86_64, CPython 3.12 | Offline installation and real SDK transport fixtures passed |
| `azure-windows-x86_64-cpython314` | Windows x86_64, CPython 3.14 | Downloaded wheel hashes verified; environment execution pending |
| `azure-linux-x86_64-cpython312` | Linux x86_64, CPython 3.12, glibc 2.34+ | Restricted Linux installation, imports, CLI startup and repeat preservation passed |
```shell
python scanner/download_dependencies.py --target azure-windows-x86_64-cpython312 --directory azure-wheels
python scanner/create_cloud_environment.py --provider azure --directory azure-agent-env --wheelhouse azure-wheels
```
The first command downloads only the hash-approved wheel set. Copy the completed wheel directory and verified bundle setup tools to an offline host if needed. The second command selects the host's lock, verifies every wheel, installs offline into a new directory, checks imports and versions, then writes a completion receipt. It preserves existing or interrupted environments; after resolving a failure, choose a new destination. Neither command changes global Python or installs a native service.
Use `azure-agent-env/Scripts/python.exe` on Windows or `azure-agent-env/bin/python` on Linux for the collector. Native dependencies require platform-specific locks. macOS 11+ has separate Apple Silicon and Intel locks for CPython 3.12. Linux/Windows ARM64 and Python 3.13 remain unsupported by this setup tool.
For a workstation, install Azure CLI and run `az login --tenant `
as the same OS user who will start the collector. Select **Azure CLI** in the wizard.
Managed identity works only on an Azure host with that identity enabled; selecting it
on a regular laptop does not create an identity. The signed-in user still needs the
key data permission described above. Use the hosted [Azure connection](../azure-hosted-setup/)
when you want scans without a collector.
Choose one identity method explicitly. There is no fallback to another account if authentication fails:
| Method | Intended setup |
| --- | --- |
| `managed-identity` | An Azure-hosted agent with a system-assigned identity, or a user-assigned identity selected locally through `AZURE_CLIENT_ID` |
| `workload-identity` | Locally configured tenant, client ID and federated token file for Azure workload identity |
| `environment` | A locally provisioned service-principal environment supported by Azure Identity |
| `azure-cli` | Foreground development using the operator's existing Azure CLI sign-in |
For example, on Windows after preparing the environment and reviewing its Azure identity:
```shell
azure-agent-env/Scripts/python.exe scanner/azure_keyvault.py scan --identity azure-cli --key-version https://quantum-test.vault.azure.net/keys/signing/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
```
The collector does not launch a browser, prompt for credentials, or sign the user in. Identity configuration remains local. Environment and workload identity use the public-cloud authority; the token scope is fixed to Key Vault. Azure CLI execution has a ten-second process timeout. Identity acquisition otherwise follows the selected SDK method and is separate from the provider-request time budget.
Provider requests use verified HTTPS, API version `2025-07-01`, no redirects, and no proxy or CA overrides inherited from the environment. Authentication challenges cannot change the target authority or token audience. Requests have connect/read timeouts of 3/10 seconds, a 128 KiB response limit, and cancellation checkpoints. A twenty-second elapsed budget is checked between response chunks; it is not a hard process deadline. These provider settings do not override the identity SDK's own transport configuration.
## Read results and resolve failures
Reports retain the selected key identity, known key type, software/HSM protection, enabled state when present, and recognized EC curve. Tags, key parameters, release policy, attestations, credentials and raw provider errors are excluded. Authentication and key-establishment posture remain unknown because key capability does not prove runtime use. Symmetric key types remain `unknown` rather than implying a cipher or strength.
## Managed agent development
Use scanner 0.18.0 or newer for managed Azure jobs. Enroll the `azure-keyvault` capability and configure a local ceiling of approved versions:
In the workspace console, select **Azure Key Vault metadata** when enrolling, then open **Getting started**. Choose the agent operating system, paste the complete key-version URL and select the identity method already configured on the host. Download the local configuration, prepare the locked environment and run the displayed doctor command. Changing the key or identity method requires preparing the configuration again before creating a scan. The wizard does not sign in to Azure, grant permissions or transmit identity credentials. Mac setup uses the same single command with a platform-specific environment.
```json
{
"source": "azure-keyvault-agent",
"allowedAzureKeyVersions": [
"https://quantum-test.vault.azure.net/keys/signing/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
],
"azureIdentity": "managed-identity",
"managedConfiguration": true,
"pollSeconds": 15
}
```
Run `scanner/qr.py doctor --config agent.local.json` with the Azure environment's Python executable before starting the agent. Doctor validates scope and imports the SDK without initializing an identity or requesting a token. Configure the scoped platform credential separately through the protected environment or token file described in the agent guide.
Publish managed settings containing `allowedAzureKeyVersions` as a subset of the local list, alongside the required enabled, polling and other scope fields. The agent acknowledges the revision before claiming jobs. Omitting the Azure list disables Azure discovery for that revision. The control plane cannot select `azureIdentity`, supply credentials, or replace provider endpoints; these settings are rejected. Jobs and schedules each target one complete version URL.
The agent checks its approved local scope before initializing Azure credentials. Incomplete discovery fails the job without uploading observations. Cancellation and lease loss stop processing at checkpoints and prevent subsequent uploads or completion. Provider requests already in flight remain subject to their network timeouts. Cloud scope publication does not grant Azure IAM access.
## Local command diagnostics
Exit code `0` means all selected versions returned matching metadata. Exit code `2` means setup failure or incomplete analysis. Reports are local JSON; this command does not upload evidence.
| Diagnostic | Next check |
| --- | --- |
| `azure.keyvault.unauthenticated` | Confirm the selected identity belongs to the intended tenant and can obtain a public-cloud Key Vault token. |
| `azure.keyvault.access-denied` | Review key-scoped read access and the vault's firewall/private endpoint rules. |
| `azure.keyvault.not-found` | Copy the full key URL and its version again. |
| `azure.keyvault.invalid-metadata` | The response did not match the requested key or expected structure; do not treat the scan as complete. |
| `azure.keyvault.request-failed` | Check the selected local identity configuration, DNS, TLS trust and connectivity. Raw SDK errors are intentionally omitted. |
## Validation status
Collector tests cover scope restrictions, conservative evidence, response identity, malformed and oversized JSON, cancellation, resource cleanup and fixed diagnostics. Additional tests use the hash-locked Azure Identity 1.26.0 and Requests 2.34.2 environment on Windows CPython 3.12 with synthetic Azure CLI output and intercepted HTTP. They verify real token parsing, request headers, TLS/proxy settings, redirect refusal, authentication-challenge handling and error redaction. Processes and network connections are blocked in those tests; they do not establish live Azure connectivity or production readiness. Dependency setup tests also verify platform selection, separate provider inventories, offline installation commands and preservation of incomplete environments.
## Verify access before starting the agent
Scanner 0.21.0 adds an explicit read-only access check. After local doctor checks pass, run this with the dedicated cloud environment's Python interpreter (Windows example):
```shell
azure-agent-env/Scripts/python.exe scanner/qr.py cloud-check --config agent.local.json --kind azure-keyvault
```
On Linux use the environment's `bin/python`. The command contacts the provider using the identity configured on this host and reads only the exact locally allowlisted resources for the selected source. It never contacts the platform or uploads observations. No platform credential is required. It uses the same metadata validation as discovery, so invalid or mismatched responses fail the check.
Exit 0 means every configured resource was read and validated; exit 2 means configuration, identity, provider access or metadata validation failed. `resourceIndex` is zero-based and refers to the selected provider's array in your local configuration. Output includes fixed diagnostic codes and suggested remedies, excluding resource identifiers, key metadata and raw SDK errors. Partial success remains a failure overall. Correct the failed resource or identity setup before starting the agent; do not widen permissions to fix a dependency or connectivity failure.
This is a point-in-time access check. It does not verify platform enrollment, continuous service operation, future permissions or an end-to-end scan. The local doctor remains offline. Open **Getting started > Review local diagnostics**, select this provider and your agent distribution, and copy the command to save `cloud-access.json`. Choose that file in the dialog for per-resource results and corrective guidance. The file is read only in your browser; it is not uploaded or saved.
---
# Bulk agent deployment
Source: https://qscan.dev/docs/bulk-agent-deployment
---
title: Bulk agent deployment
---
[Ready-made Windows deployment packages](../windows-bulk-deployment/) are available
for Intune and Configuration Manager, including install, detection, removal and
identity-preserving restoration. The [Ansible Linux collection](../ansible-deployment/)
supports customer-run service lifecycle management. Deployment enrollment controls
are available for Intune, Jamf Pro, Ansible, Configuration Manager and Group Policy.
Jamf/macOS managed packages remain in development. Provider publication and assignment
are performed in your management tool; Quantum Ready does not yet create those
assignments. In the workspace, open **Integrations**, find **Bulk agent deployment**,
then choose **Manage deployments** to prepare, inspect or revoke enrollment authorizations.
Preparation and deployment details open as dedicated workspace pages. **Back to deployments** returns to the authorization list. Setup fields and any uncertain submission stay in this tab when navigating away; reopening preparation restores them. Reloading clears this draft. **Retry same authorization** reuses the original identifier and scope, including after returning to the form. Navigating away does not cancel a request already sent; use **Refresh** in the deployment list to check its result. Successful creation opens that authorization directly.
The deployment list loads up to 50 authorizations per page. **Next**, **Previous**, and **Refresh** retain the current records if loading fails; **Retry loading page** repeats the failed navigation. On phones, each authorization shows labeled fields without requiring horizontal scrolling.
## Prepare enrollment in the workspace
Workspace administrators can select Intune, Jamf Pro, Ansible, Configuration Manager
or Group Policy; choose platform and architecture, fleet group, device limit and an
enrollment window; and specify exact TLS/SSH endpoints or absolute source/capture
directories. Other capability combinations remain available through the API.
The form creates an authorization, not a provider assignment or installation package.
Review its scope and expiry in the deployment details. Device rows distinguish a
pending grant, an issued credential awaiting receipt, and confirmed credential receipt.
They do not imply agent health or successful discovery. Lists load 50 records at a time. Device-page links retain their cursor in the address, so browser Back can return to the prior page. Device authorization and revocation use short dialogs; returning closes the dialog and refreshes the deployment details.
An ambiguous creation failure retries the same request to avoid duplicate plans.
Once a device has an issued agent identity, choose **Scan history** in its row to
review actual scan results. **Back to deployment** returns to the same device-list
page. A device with an expired enrollment window is labeled **Enrollment expired**
and no longer offers grant download. If a credential was issued before the window
closed, the row says **Credential issued; receipt window closed**; the agent may
still have a valid credential, so check its scan history separately.
Use **Revoke authorization** to stop additional enrollment while retaining existing
agent credentials. Refresh the list to obtain current device allocation counts.
## Authorize a pilot device
Before issuing a device grant, the current Python bundle and published native
scanner **0.26.42** can check the proposed configuration locally:
```sh
python scanner/qr.py deployment-enroll --preflight --config agent.json
```
Use the Python environment prepared by Getting started (`python3` on systems where
that is its command). Preflight prints JSON with `schema`, `status`, `ready`,
`enrolled: false` and individual `checks`. Exit **0** means local checks passed;
exit **2** means blocked or invalid command usage. It does not require a grant or
state directory, contact enrollment, install a service or start discovery. Do not
combine it with `--grant-file`, `--run` or `--once`.
This checks configuration and local dependencies under the current account. It
does not verify cloud-provider access, service-account access, enrollment or a
successful scan. Run the normal enrollment and first-scan checks afterwards.
For a native agent, use the same arguments with its executable:
```powershell
.\quantum-ready.exe deployment-enroll --preflight --config agent.json
```
```sh
./quantum-ready deployment-enroll --preflight --config agent.json
```
Older 0.26.40 native releases lack this flag; update to a current signed package
or use their existing `doctor` command for its narrower diagnostic checks. For
service installation and device-grant handoff, follow the [Windows package
guide](../windows-bulk-deployment/) or [combined Linux package
guide](../linux-binary-preview/#one-package-guided-or-silent-installation).
Preflight alone does not install or enroll the device.
Open a deployment and choose **Authorize test device**. Enter its name, then download
both its device grant and configuration. This allocates one device slot; a failed
request retries the same device ID instead of allocating another slot.
The grant contains a secret for this device only. It is downloaded on request and is
not shown in the page or stored in browser local/session storage. Keep it out of shared
installer packages. If the dialog closes before download, use **Download grant** beside
a pending device. Once enrollment begins, recover from the saved state on that device.
Place the downloaded files in the verified agent bundle folder and rename the
selected pair to `device-grant.json` and `agent.json`. The commands in
[Unattended enrollment client](#unattended-enrollment-client) protect the grant and
create private state for retries. Choose the Windows or Linux binary, or the source-bundle
instructions for your system; the binary needs no Python installation.
Pilot authorization does not install an agent or assign a provider policy. Use the
unattended client instructions below for the pilot and the controller API for fleets.
## Check device enrollment
To check one device from a deployment controller, use
`GET /api/v1/agent-deployments/{id}/devices/{deviceId}` (platform 0.51.202 onward).
This performs a direct indexed lookup instead of paging through the fleet. The
JavaScript SDK method is `deploymentDevice(planId, deviceId)`; Python uses
`deployment_device(plan_id, device_id)`. Both require a workspace administrator.
The response contains the device/grant IDs, name, expiry, enrollment state and an
agent ID when one has been issued. It never returns a bootstrap secret or credential.
Controllers must inspect the deployment's revocation/expiry separately. An expired
or revoked authorization remains readable for troubleshooting. `acknowledged`
means the device confirmed credential receipt; verify contact and a completed scan
separately. A missing device returns 404, while an invalid ID or unexpected query
parameter returns 400.
## Revoke a device grant
Choose **Revoke grant** beside a pending device or a credential awaiting receipt.
Review the named device, then confirm. This blocks further redemption and
acknowledgement for that device and removes its recoverable encrypted delivery.
Other devices in the deployment continue enrolling.
An already issued agent credential remains valid, even if receipt was not yet
acknowledged. Revoke that agent separately in the agent fleet when it must stop.
Revoked grants retain their allocated slot and cannot be reused to enroll a replacement.
Retrying the revocation is safe. The API is
`DELETE /api/v1/agent-deployments/{id}/devices/{deviceId}`; SDK methods are
`revokeDeploymentDevice` and `revoke_deployment_device`.
## Deployment authorization
An administrator creates a deployment plan with a stable UUID, provider, target
platform/architecture, approved scanner capabilities, managed settings, fleet group,
maximum device count and expiry (up to seven days). Repeat the same request to recover
its result; a changed plan cannot reuse its UUID. A workspace can retain up to 1,000
plans. Each plan can authorize up to 100,000 individual devices. These limits are not
a claim of provider or fleet throughput acceptance.
Use `POST /api/v1/agent-deployments` and keep the returned plan ID. Then call
`POST /api/v1/agent-deployments/{id}/devices` with a stable device UUID and name.
Each device receives its own grant ID and enrollment secret. Deliver that secret
privately through your management controller; do not put it into a shared package,
command line, log, or source repository. A hostname or a device UUID alone does not
prove device identity.
Repeated device authorization returns the same grant before redemption begins.
Once enrollment has begun, the device must resume using its saved grant rather than
ask the controller to create another identity. Device capacity counts allocated grants,
even when a device has not installed or connected yet.
## Unattended enrollment client
Scanner **0.26.6** includes `deployment-enroll` in the source bundle and the signed
Windows and Linux x86_64 foreground binaries. Download and verify your release from
**Agents** before running it. The binary needs no Python installation. For source
use, prepare the Python environment with the agent setup script.
Your controller delivers a private JSON file containing `tenantId`, `grantId` and
`deviceSecret` for this device only. On Windows, disable inheritance on that file
and restrict its ACL to the runtime account (SYSTEM and Administrators are allowed).
On POSIX systems, use an owner-only file and a private mode-700 state directory.
Run enrollment as the account that will run the agent, not as a different installer
account: Windows state uses that account's DPAPI protection.
Prepare the local configuration with `managedConfiguration: true`, a source label,
`pollSeconds`, and the approved scope arrays. It must encompass the deployment
plan's scope. Local preflight checks run before requesting a credential.
### Windows binary
From the verified binary folder, with the downloaded `agent.json` and
`device-grant.json` beside `quantum-ready.exe`, run this in PowerShell. It protects
the grant, enrolls, and removes the grant only after enrollment succeeds:
```powershell
$deploymentGrant = (Resolve-Path -LiteralPath .\device-grant.json).Path
$deploymentState = Join-Path (Get-Location).Path '.quantum-ready-deployment'
$deploymentAccount = [Security.Principal.WindowsIdentity]::GetCurrent().Name
icacls.exe $deploymentGrant /inheritance:r /grant:r "${deploymentAccount}:F"
if ($LASTEXITCODE -ne 0) { throw 'Could not protect the device grant.' }
.\quantum-ready.exe deployment-enroll --config .\agent.json --state-directory $deploymentState --grant-file $deploymentGrant
if ($LASTEXITCODE -ne 0) { throw 'Enrollment did not finish. Keep the grant and state, then retry this command.' }
Remove-Item -LiteralPath $deploymentGrant
```
Resume from the same folder and Windows account. No grant is needed:
```powershell
$deploymentState = Join-Path (Get-Location).Path '.quantum-ready-deployment'
.\quantum-ready.exe deployment-enroll --config .\agent.json --state-directory $deploymentState --run
```
For the Windows source bundle, first prepare its environment without starting
interactive enrollment:
```powershell
py -3.12 scanner/setup_python.py
```
Then run these same arguments with
`.\.venv\Scripts\python.exe -I scanner\qr.py` in place of `.\quantum-ready.exe`.
### Transfer Windows enrollment to the service
The signed Windows installer **0.51.205 / sequence 349** can provision service
inputs directly from completed enrollment state. Use the Windows foreground
agent's `deployment-enroll` command above first. Keep the approved `agent.json`
and its state directory together in a private folder.
From the separately downloaded and verified installer folder, run an elevated
PowerShell terminal as the **same Windows account that completed enrollment**.
For example, if enrollment files are in `C:\QscanEnrollment`:
```powershell
.\quantum-ready-service.exe setup --endpoint https://qscan.dev --config C:\QscanEnrollment\agent.json --deployment-state C:\QscanEnrollment\.quantum-ready-deployment
if ($LASTEXITCODE -ne 0) { throw 'Service setup did not finish. Preserve the enrollment state and review the reported error.' }
```
Then follow the [Windows service installation instructions](../windows-service/)
with the reviewed signed service-agent release. Setup alone does not register or
start the service. It decrypts the completed enrollment under the enrolling
account and writes the installer's protected credential for the restricted service
identity. Do not extract or copy a plaintext credential. Keep the saved enrollment
state private for recovery; copying it to a different account will not transfer
its DPAPI protection. A management tool running setup as SYSTEM must also perform
enrollment as SYSTEM.
The installer rejects incomplete or expired enrollment, a changed configuration,
and combining `--deployment-state` with `--token-file`. Native Windows Server
acceptance covered this handoff, disabled installation, signed upgrade and removal
using a synthetic credential. Intune/Configuration Manager policy assignment is
a separate integration step and is still being built.
### Linux binary
Use the signed Linux x86_64 agent **0.26.6 / sequence 346** on Ubuntu 24.04.
From its verified bundle folder, place the downloaded `agent.json` and
`device-grant.json` beside `quantum-ready`. Run as the non-root account that will
operate this foreground agent:
```shell
deployment_grant="$PWD/device-grant.json"
deployment_state="$PWD/.quantum-ready-deployment"
chmod 600 "$deployment_grant" &&
mkdir -p -m 700 "$deployment_state" &&
./quantum-ready deployment-enroll \
--config agent.json --state-directory "$deployment_state" \
--grant-file "$deployment_grant" &&
rm -- "$deployment_grant"
```
After successful enrollment, resume from the same folder and account:
```shell
./quantum-ready deployment-enroll \
--config agent.json --state-directory "$PWD/.quantum-ready-deployment" --run
```
This path needs no Python and runs in the foreground. The grant is removed only
after successful enrollment. If a step fails, preserve the state and retry; the
client reuses the same enrolled identity. For a persistent Linux service, use the
[service credential handoff](#linux-service-credential-handoff) below with the
published compiled installer. Complete enrollment as root in protected staging
when preparing a service installation; the foreground example above intentionally
uses a non-root account. Do not make another account's state readable to bypass
ownership checks.
### Linux or macOS source bundle
Install a supported Python version as described in [agent setup](../agent-setup/),
then prepare `.venv` without starting interactive enrollment:
```shell
sh scanner/setup-python.sh
```
From that bundle folder, with the two downloaded
files renamed to `agent.json` and `device-grant.json`, run:
```shell
deployment_grant="$PWD/device-grant.json"
deployment_state="$PWD/.quantum-ready-deployment"
chmod 600 "$deployment_grant" &&
mkdir -p -m 700 "$deployment_state" &&
.venv/bin/python -I scanner/qr.py deployment-enroll \
--config agent.json --state-directory "$deployment_state" \
--grant-file "$deployment_grant" &&
rm -- "$deployment_grant"
```
If enrollment fails, the grant and state remain for a retry. After success, resume
from the same bundle folder and operating-system account:
```shell
.venv/bin/python -I scanner/qr.py deployment-enroll \
--config agent.json --state-directory "$PWD/.quantum-ready-deployment" --run
```
`--run --once` performs one foreground polling iteration for diagnostics. It does
not create a scan job. Queue an approved agent-targeted job in the workspace and
inspect its result. Enrollment emits the agent ID and explicitly leaves scan
validation pending; it does not claim installation or scan success.
Keep the same local configuration and state directory on retry. Changing the grant
or configuration is rejected; do not erase existing state to resolve a failed request.
Network failures preserve pending enrollment; credentials are saved durably before
receipt acknowledgement, and acknowledgement retries do not request another agent.
The bootstrap secret is removed from saved state once receipt is confirmed.
Windows 11 source and compiled-client acceptance covers protected-file delivery,
DPAPI persistence, grant-free resume, centrally managed scope acknowledgement and a
real TLS job. Linux compiled-client acceptance also covered private-file permission
rejection, non-root enrollment, grant-free resume, managed configuration and a real
TLS job. Both compiled checks ran without Python on PATH. Windows Server acceptance
separately covered the compiled service credential handoff and local lifecycle with
a synthetic credential. Provider-managed assignment and macOS client acceptance
remain outstanding.
## Windows source installer credential handoff
The complete signed source bundle from platform **0.51.196** includes the Windows
Python service installer and its dependencies, including a handoff from completed
unattended enrollment:
```powershell
python scanner/windows_service.py setup --config agent.json --deployment-state C:\PrivateDeployment\state
```
Run enrollment and this command as the same deployment account, elevated for service
setup. The installer decrypts that account's saved state, checks credential expiry
and the exact approved local configuration, then provisions the existing protected
service inputs. The token stays in memory until the protected service credential
file is written; it is not exported through the command line, environment or logs.
The saved enrollment remains available for a retry. The service continues to use its
restricted service identity; it does not need access to the installer account's DPAPI
state. Do not also provide `--token-file`.
This operation only provisions service inputs. Continue through signed release
verification, service installation, runtime preflight and first-scan checks in the
[Windows service guide](../windows-service/). For the compiled installer, use
[Transfer Windows enrollment to the service](#transfer-windows-enrollment-to-the-service)
above. Tests cover DPAPI state reading, configuration/tenant/expiry rejection and
existing journal recovery; provider-managed installation with this handoff still
needs acceptance.
## Linux service credential handoff
The signed compiled Linux installer **0.51.206 / sequence 352** supports completed
deployment enrollment state without requiring Python. The source bundle also includes
`scanner/linux_binary_service.py` and its update/supervisor dependencies. For unattended
installation, enroll with a
root-owned configuration and private root-owned state directory, then use that
same directory with the elevated installer. Discovery still runs as the restricted
`sectigoqr` service account.
In your reviewed signed `install` command, replace `--token-file` with
`--deployment-state /absolute/private/enrollment-state`. Keep `--config`, the signed
archive, manifest, signature, independently trusted key, expected version and minimum
sequence. The installer checks the saved configuration and credential before passing
them in memory to its existing service installation transaction. It uses the existing
systemd credential delivery; no token enters the unit environment or command line.
`--deployment-state` is only valid for first installation and cannot be combined with
`--token-file`. Upgrades reuse installed credentials. Private directory ownership and
mode, and state-file ownership and mode, are checked. A successful handoff is not
proof of cloud contact or a completed scan. Offline Ubuntu 24.04 acceptance with
agent **0.26.6 / sequence 346** verified installation from completed enrollment, a
running restricted service, credential protection and removal. A separate native
lifecycle test verified signed updates, rollback, supervisor recovery and reboot.
These tests use synthetic credentials; provider assignment remains unvalidated.
Use **Agents & scanners** to obtain the current signed Linux installer and its
verification commands. The Ansible collection currently accepts individual device
credentials; automatic enrollment-state handoff in the role is still being built.
## Device redemption and recovery
The native device client sends its secret in JSON to
`POST /api/deployment-enrollment/{tenantId}/{grantId}/redeem` on `https://qscan.dev`.
Send no browser cookies, Origin, Authorization header or content encoding. This is
not an administrator API call and needs no account password.
The response contains one agent credential and the plan's managed settings. Save
these durably in protected local storage before calling the corresponding
`/acknowledge` endpoint with the same device secret. Before acknowledgement,
redemption retries return the same credential. Acknowledgement removes recoverable
delivery. The credential never authorizes workspace administration.
Plan expiry, revocation, workspace suspension or loss of the approving administrator's
access stops further redemption. Browser-created plans retain their approval across
browser-session expiry, but remain tied to the approving member's authorization
version. Plans created by API credentials depend on that credential remaining valid.
Expired encrypted delivery is removed in bounded cleanup batches. An archived or
revoked agent cannot be revived by replaying its grant.
The initial managed configuration is revision 1. Local installation must approve
and apply the exact scope, then report configuration status before claiming work.
Enrollment alone does not prove installation, first contact or a successful scan.
## SDKs and visibility
JavaScript SDK methods: `createAgentDeployment`, `agentDeployments`,
`agentDeployment`, `authorizeDeploymentDevice`, `deploymentDevices`, and
`revokeAgentDeployment`.
Python equivalents: `create_agent_deployment`, `agent_deployments`,
`agent_deployment`, `authorize_deployment_device`, `deployment_devices`, and
`revoke_agent_deployment`.
List endpoints return at most 100 records per page and a `nextCursor`. Pass it as
`after` with the same deployment to continue. Device lists expose enrollment state
and agent IDs, never secrets or encrypted delivery. Only workspace administrators
can create or inspect these plans.
`DELETE /api/v1/agent-deployments/{id}` revokes the deployment authorization. It does
not revoke credentials already saved by enrolled agents. Use the normal agent
revocation controls when a running device must lose access.
Until provider deployment packages are delivered, follow the existing
[agent setup](../agent-setup/), [Windows service](../windows-service/) and
[Linux service](../linux-service/) guides for installation. The enrollment API
must not be presented as a completed Intune, Jamf or Ansible integration.
## Reuse guided browser enrollment (source installer)
Source bundle **0.51.258** adds `--terminal-state` to reuse the identity and exact
local configuration saved by `qr.py setup`. The Windows compiled installer **0.51.258 / sequence 455** also supports this
option. Linux compiled installer **0.51.258 / sequence 457** supports it too. It is the transfer step for the unified
installer under development, not a completed single-command installation.
Stop the foreground agent and exit guided setup first. Keep its private state
folder intact. The installer requires completed credential delivery, the same
control-plane origin and the same platform. It reads the saved configuration
when `--config` is omitted; an explicit configuration must match exactly. Changed
scope is rejected. No token is exported or passed on the command line, and no
second agent is enrolled.
On Windows, use the same Windows account in an elevated terminal (DPAPI state
cannot be read by SYSTEM or a different administrator):
```powershell
python scanner/windows_service.py setup --terminal-state C:\private\qscan-setup
```
This provisions private service inputs. Continue the existing signed installation
procedure; it does not register or start the service by itself. Installed discovery
still runs as the restricted service account, whose access can differ from the
interactive account. Service preflight must pass before activation.
On Linux, `scanner/linux_binary_service.py install` accepts `--terminal-state`
instead of `--token-file` and can load its configuration from that state. Supply
the signed agent archive, manifest, signature, trusted key, exact version and
minimum sequence as in the existing installation procedure. The state must belong
to the installing account with directory mode 700 and file mode 600. Automatic
transfer from an unprivileged user's state to root is not implemented; do not
relax permissions or copy credentials to bypass that boundary. Existing per-device
bulk enrollment remains available for unattended service deployment.
The transfer has Windows DPAPI and Linux private-state tests plus installer command
routing tests. Windows compiled installer 0.51.258 additionally passed offline
Server 2025 scope rejection, repeat transfer, service installation, upgrade,
detection and removal. Linux compiled installer 0.51.258 passed private-state and scope rejection,
identity/configuration reuse, restricted systemd startup, secret-log checks and
removal in an offline Ubuntu VM. Provider assignment and macOS remain unqualified.
## Prepare enrollment for a service package (source CLI)
Source bundle **0.51.261**, scanner **0.26.42**, adds:
```sh
python scanner/qr.py setup --prepare-service --state-directory /absolute/private/state
```
On Windows, use an absolute local Windows path. The wizard signs in through the
browser, confirms exact scope and optionally validates a scan. It then exits so a
service package can reuse the protected enrollment, without starting a foreground
agent. Exit 0 means enrollment is ready, 3 means local installation was declined
or a hosted cloud connection was chosen, 2 indicates a failed prerequisite or
operation, and 130 indicates interruption. Preserve the state directory on retries.
This command alone does not install a service. It requires an interactive terminal
and is available for Windows and Linux; use deployment enrollment for silent setup.
The Windows package now includes `-Action Guided`, with enrollment client
0.26.42 and installer 0.51.258. Follow the [interactive Windows installation
instructions](../windows-bulk-deployment/#interactive-installation-on-one-machine).
Existing installs reuse their saved identity and scope. A newly enrolled service
still needs restricted-account access checks and a successful scan after installation.
---
# Analyze an existing network capture
Source: https://qscan.dev/docs/capture-analysis
Analyze an authorized PCAP or PCAPNG directly in your workspace, or use a local collector when the raw file must stay on your machine. Both paths report observed TLS parameters; neither starts live packet capture or decrypts application traffic.
## Analyze from your workspace
Open [Discovery → Capture analysis](https://qscan.dev/workspace.html#captures). Hosted upload is available as a limited preview for workspace administrators and analysts; viewers can review results. No agent or local TShark installation is needed for hosted uploads. Each workspace can have two active analyses. Shared processor capacity is limited, so busy periods may require an explicit retry. To keep raw bytes on your machine, choose **Set up local capture analysis**.
1. Choose or drop one uncompressed PCAP or PCAPNG (24 bytes–64 MiB). The browser checks the format signature and computes its fingerprint locally; this is not full packet validation.
2. Review the file and confirm you have permission to upload it. Select **Upload & analyze**. Progress measures bytes sent from the browser, followed by processing and cleanup status.
3. Wait for **Completed** and **Raw capture released**, then open the inventory. A completed analysis with zero findings is different from a failed analysis. Cleanup pending is never reported as success.
If processors are busy, the result explicitly reports failure. When the server requests a wait, the retry button shows a countdown. **Try a new analysis** requires confirmation again and creates a new request; failed uploads are never silently replayed. If creation loses its response, **Retry creating analysis** recovers the same request. Keep the tab open while uploading. After an interruption, inspect history and refresh status before retrying.
History is newest first and retains metadata and normalized findings, not file names or raw captures. Administrators can cancel any active workspace analysis; analysts can cancel their own. Cancellation waits for confirmed cleanup before displaying raw capture released.
## Prepare your machine
Install a trusted, patched [TShark](https://www.wireshark.org/download.html) 4.6 release (4.6.9 or newer in that minor series). Use an ordinary account with read access to the authorized file. Reading a saved capture does not require administrator/root privileges or a packet-capture driver.
## Analyze locally
```text
python scanner/qr.py capture authorized.pcapng --tshark "C:/Program Files/Wireshark/tshark.exe" --source capture-review --output findings.json
```
On macOS/Linux, omit `--tshark` if the executable is on PATH, or pass its trusted absolute path. Both PCAP and PCAPNG decoding have been validated with real TShark 4.6.9 on Windows. The hosted runtime has passed synthetic TLS, QUIC v1/v2, and mixed TLS 1.2/1.3 decoding checks. Mixed-version captures retain separate observations, including when a TLS 1.2 server flight contains multiple handshake messages in one packet. macOS capture decoding still needs native validation.
## Observed service names in scanner 0.26.56
The Python source scanner and hosted capture processor distinguish services with different observed SNI names
at the same IP address and port in TCP TLS 1.0 through 1.3 captures. Inventory entries use
the observed name; their location retains the captured IP and port. Certificate
and key-exchange relationships remain attached to the corresponding observation.
A name is associated only with an earlier ClientHello in the same quality-checked
TCP stream and matching peer direction. Names from damaged streams are excluded.
Missing ClientHellos, absent names and ambiguous names remain explicitly unknown.
SNI is an observed client request: it does **not** verify server identity, ownership,
certificate trust or successful authentication. Encrypted inner names and matching these findings to active scans are not covered.
This change is available in **source scanner 0.26.58** and **hosted capture
processor 0.26.58**, and in compiled **Linux agent 0.26.56 / 551**. The published
Windows agent remains **0.26.55** pending its separate package qualification.
Check the scanner version on your report before relying on name-based separation.
Source and hosted processor 0.26.58 report **unknown exposure** for passive capture
findings. A captured address, SNI name or certificate does not establish public
reachability or access policy. Review the asset's business context to supply that
information. Risk policy 0.16 applies conservative exposure weighting until then;
it does not label an unknown asset public. Older explicit observations retain
their recorded context, including older scanner defaults.
## QUIC observed names in scanner 0.26.58
Source scanner and hosted capture processor **0.26.58** also separate QUIC v1/v2 services with different
observed ClientHello SNI names at the same IP and port, including separate
connections sharing one UDP tuple and coalesced Initial/Handshake datagrams.
The name must come from an earlier quality-checked ClientHello with matching
connection identity, version, peer direction and echoed client connection ID.
Missing or ambiguous names remain unknown. Malformed association data excludes
findings from the affected UDP stream while preserving independent streams.
This does not authenticate the server or establish a successful connection.
Encrypted inner names and connection migration are not correlated. Use hosted
PCAP upload or the signed Python bundle with collector upload for this capability.
The currently published compiled agents do not include QUIC name separation yet;
their separate qualification remains in progress.
## Scanner compatibility
Source scanner **0.26.46** and the hosted decoder identify RSA key transport from
11 exact TLS 1.2 cipher suites in captured ServerHello messages, plus the compatible
3DES/AES-CBC suites in TLS 1.0/1.1. Evidence records
`keyExchangeSource: captured-server-hello-cipher-suite`; CBOM retains this provenance.
This describes the selected suite, not a verified RSA exchange, key size, certificate
authentication or completed connection. ECDHE-RSA, DHE-RSA and RSA-PSK are distinct
and do not acquire an RSA-transport label. See
[RFC 5246](https://www.rfc-editor.org/rfc/rfc5246.html#section-7.4.3).
Published Windows and Linux native **0.26.50** packages include this field. Older
installed agents may need a qualified update; check the platform download page.
The platform accepts the released 0.26.41 and 0.26.42 capture evidence formats,
including certificate links, passive key exchanges and legacy TLS record-protection
metadata. These remain passive observations: a captured signature is not proof of
a completed or authenticated handshake. Keep the full report intact when importing
findings; changing detector versions or removing provenance can invalidate it.
The Windows x86_64 **0.26.42** binary has also passed live managed capture jobs
with TShark 4.6.9, including mixed TLS, legacy certificate flights, passive key
exchange, CBC and QUIC v1/v2, plus malformed-input and local-scope rejection.
See [Windows capture qualification](../windows-binary-preview/#earlier-live-capture-qualification)
for the exact test boundary. These were saved synthetic captures; no live traffic
interception or service-mode capture acceptance is implied.
## Mixed TLS 1.2 and TLS 1.3 captures
Use scanner **0.23.1 or newer** from the verified discovery bundle. One capture can contain both versions, including connections to the same server address and port. Findings keep their observed protocol and selected parameters separate; TLS 1.3 uses the ServerHello supported-version extension rather than its legacy version field.
TLS 1.2 commonly places its ServerHello beside Certificate, ServerKeyExchange, CertificateRequest or ServerHelloDone messages. The scanner accepts these server flights when there is exactly one unambiguous ServerHello. Multiple hellos or conflicting selected values still prevent upload. This fixes a case where a TLS 1.2 flight could block valid TLS 1.3 findings in the same file.
Missing handshakes cannot establish protocol coverage or successful connections. Both the Python discovery bundle and the [Ubuntu x86_64 compiled preview](../linux-binary-preview/) include this fix in scanner 0.23.1. TShark remains a separate dependency for either distribution.
## TLS 1.3 retries
A HelloRetryRequest asks the client for another key share; it is not a final
negotiation. Retry-only captures produce no negotiated-group findings. When the
final ServerHello is present, its selected group is reported, including when it
spans TCP segments. Controlled capture tests cover X25519, all three ML-KEM hybrid
groups and ML-KEM-512/768/1024 through the real decoder, Windows binary and hosted
upload path. These tests do not establish peer authentication, handshake completion
or key-share validity. Missing capture data still limits what can be concluded.
## Reading completion and partial coverage
A hosted operation with `status: completed` means processing and raw-capture
cleanup finished. Inspect `analysisComplete` separately. When it is `false`, the
UI shows **Partial analysis**, including when zero findings were retained. This
is not evidence that the capture is free of cryptographic risks.
Validated `coverage` describes checked frames and transport streams, excluded
streams, packet-decoding gaps, semantic parsing errors and retained/deduplicated
observations. Findings from affected connections are excluded; independent clean
connections can retain certificate, key-exchange and record-protection details.
Unassigned errors or inconsistent coverage cannot be accepted as isolated partial
results. Missing packets or unsupported protocol features may still be unknown;
absence of decoder errors does not establish complete traffic coverage.
Coverage is retained with the operation, immutable evidence and assets. CBOM
properties use `sectigo:capture:coverage:*` on findings and their derived algorithm
entries. Older records without coverage have unknown stream-level coverage.
Older decoder reports without validated isolation still reject partial uploads.
Stream isolation is bounded to **100,000 frames** and an **8 MiB quality
projection**, within the existing 64 MiB file limit. Larger projections fail
explicitly; split the capture into smaller files. Enrichment projections are also
bounded to 20,000 selected rows and 16 MiB. Raw capture data must be released and
authorization must remain valid before any findings are admitted.
Python scanner 0.26.52 and platform 0.51.316 support standalone and managed
collector reports with validated isolated partial coverage. See the
[collector report guide](../collector-capture-reports/). Earlier collectors still
reject incomplete uploads; upgrading the platform does not update an agent binary.
## Review and upload
### Post-quantum certificate identities
Hosted scanner 0.26.36 identifies ML-KEM-512/768/1024 and all twelve pure
SLH-DSA public-key parameter sets in visible X.509 certificates. It also reports
the certificate's signing algorithm separately. The decoder handles large
SLH-DSA certificates split across TLS records and TCP segments, and links the
certificate findings to the observed connection and CBOM public-key entries.
These are public certificate encoding checks. They do not verify a certificate
signature, trusted chain, successful handshake or use of the key. TLS 1.3
encrypts its certificate messages; an ordinary encrypted capture cannot reveal
those certificates. Prehash SLH-DSA variants are not covered by this identity
extension. The local compiled distributions have their own release versions;
see their download pages for qualified coverage.
Review `findings.json`. It contains observed server IP addresses/ports, capture timestamps, a capture SHA-256, frame references, selected cipher/group identifiers and your source label. Scanner 0.26.56 and later also retain validated observed TCP SNI names as described above; these names are not authenticated service identities. Capture payloads, local paths, client addresses and TLS random bytes are excluded. Choose a source label appropriate for your workspace.
Inject a separate scoped **ingestor** credential as `QR_TOKEN` and set `QR_ENDPOINT` to `https://qscan.dev`. Polling-agent credentials cannot upload standalone scans.
```text
python scanner/qr.py upload findings.json
```
Find the resulting TLS assets in Cryptographic inventory and inspect their evidence. Passive-capture findings remain separate from active TLS probes. Earlier uploaders refuse incomplete reports. Scanner 0.26.52 can upload isolated partial reports through the collector report protocol while preserving their coverage. Decoder failure produces no uploadable report; exit code 2 indicates incomplete local analysis and may accompany a saved partial report.
## Queue or schedule analysis through an agent
Agent-managed capture jobs require scanner **0.13.0 or newer**. In **Getting started**, enroll an agent with the **Offline capture** capability and select an approved local capture directory. Download its local configuration. For Windows, a minimal configuration is:
```json
{
"source": "capture-agent",
"captureRoots": ["C:/Captures/approved"],
"tsharkExecutable": "C:/Program Files/Wireshark/tshark.exe",
"pollSeconds": 15
}
```
Set `QR_ENDPOINT` and the enrolled agent's `QR_TOKEN` using the setup instructions. Check the configuration before starting:
```text
python scanner/qr.py doctor --config agent.local.json
python scanner/qr.py agent --config agent.local.json
```
Doctor checks directory access and runs TShark's version command without analyzing a capture. In **Scans**, select **Offline capture file**, the capture-enabled agent, and the absolute path of an existing file, such as `C:/Captures/approved/session.pcapng`. The file stays on that machine. The API accepts target paths up to 300 characters. Relative paths, directories and files outside the approved roots are rejected.
Use **Schedules** to repeat analysis of the same configured pathname. Publish a complete replacement file atomically between runs if that pathname represents a rotating export. This does not watch directories or collect packets. Reanalyzing unchanged files can create repeated evidence.
For cloud-managed configuration, enable `managedConfiguration` locally, then publish capture directories from **Agents > Configure agent**. Cloud settings can narrow the local directory permissions; they cannot select a decoder executable or supply command-line arguments. Keep `tsharkExecutable` in the local configuration. Omit `captureRoots` when managing older agents. If cancellation or lease loss is detected at a job checkpoint, the running decoder is terminated before upload.
## Interpret the evidence
TLS ServerHello over TCP is analyzed; scanner 0.19.0 also supports selected QUIC v1/v2 datagrams as described in the capture guide. HelloRetryRequest is excluded; ambiguous multi-handshake rows are rejected. Authentication remains unknown. The reader does not validate certificates, prove handshake completion, or infer TLS 1.3 key exchange from a cipher suite. Recognized classical selected groups are labeled; other group IDs remain unknown. TLS 1.2 key exchange remains unknown in this workflow.
Repeated endpoint/protocol/cipher/group combinations are deduplicated within one file. The first retained occurrence supplies its timestamp and frame reference. An empty result means no supported ServerHello was found, not that the network is safe. `analysisComplete` means the selected fields were processed without errors; it does not prove a complete capture or network assessment.
### Post-quantum group identification
Scanner **0.20.0**, included in platform **0.30.0**, identifies additional TLS 1.3 selected groups using the [IANA TLS Supported Groups registry](https://www.iana.org/assignments/tls-parameters), reviewed against its 2026-10-21 snapshot. Earlier scanner versions do not include these additional mappings.
| Group IDs | Evidence and key-establishment label |
| --- | --- |
| 512, 513, 514 | ML-KEM-512, ML-KEM-768, ML-KEM-1024 |
| 4587 | SecP256r1MLKEM768 hybrid |
| 4588 | X25519MLKEM768 hybrid |
| 4589 | SecP384r1MLKEM1024 hybrid |
| 4585, 4586, 4590 | Registry name retained with `draft` status; posture remains unknown |
| 25497, 25498 | Pre-standard Kyber draft names retained with `obsolete` status; posture remains unknown |
The same mappings apply to supported TCP and QUIC ServerHello observations. Authentication remains unknown even when key establishment is identified as hybrid or post-quantum. The scanner does not validate the key-share bytes (`keyShareValidated: false`), prove that the handshake completed, or infer the algorithm from the cipher suite. A registry assignment is not a deployment recommendation or an interoperability result.
Evidence includes `selectedGroupName`, `selectedGroupStatus` and `groupRegistrySnapshot`. Unknown, private-use and GREASE identifiers remain unknown; TLS 1.2 does not inherit the TLS 1.3 mapping. Assigned finite-field groups 256–260 are also identified as FFDHE. Tests cover real TShark decoding of synthetic hybrid and ML-KEM ServerHello records and the resulting risk/CBOM fields; they do not prove a working cryptographic exchange.
## Processing limits
### QUIC development coverage
Scanner **0.19.0**, included in platform **0.29.0**, additionally reads TLS 1.3 ServerHello from decoded **QUIC v1/v2** datagrams containing one Initial packet and optional Handshake packets. Older scanner versions support TCP only. This path uses the same local capture roots, decoder, cancellation and upload controls; it does not start live capture or request decryption secrets.
Keep the client's Initial packet in the capture. The decoder generally needs its destination connection ID to derive the public Initial protection keys. A server-only capture may yield no result. Initial protection does not authenticate the peer: authentication, peer identity and connection completion remain unverified. Seeing QUIC does not establish HTTP/3 use. These distinctions follow [RFC 9001](https://www.rfc-editor.org/rfc/rfc9001.html#section-7).
QUIC observations carry `transport: QUIC`, their version, a long-header packet count and an explicit false `initialProtectionAuthenticatesPeer` value. Evidence is datagram-scoped (`datagramScoped: true`); `packetAssociationVerified` stays false because flat decoder fields do not establish which coalesced packet supplied the TLS fields. They remain TLS-kind assets but use separate identities from TCP findings at the same IP and port. Key material, connection IDs and payloads are excluded from evidence.
The reader accepts at most 16 same-version long-header packets in one datagram, containing exactly one Initial and otherwise only Handshake packets. It rejects mixed versions, repeated Initial packets, Retry or 0-RTT companions, conflicting v1/v2 packet-type fields, nested TCP/UDP transports, multiple TLS handshake records and unsupported versions. Such decoded rows mark analysis incomplete. Reports can retain findings from other streams only when validated isolation coverage permits it; earlier uploaders reject incomplete reports. Missing or undecodable traffic can produce empty results; an empty result does not establish safety. Broader coalescing support and cross-OS validation remain open. Synthetic v1/v2 Initial exchanges, including an opaque coalesced Handshake packet, have been decoded with real TShark 4.6.9 on Windows without a key-log file; this is not validation of a live QUIC service. Version 2 follows the distinct version identifier and header types in [RFC 9369](https://www.rfc-editor.org/rfc/rfc9369.html#section-3). See the [QUIC field reference](https://www.wireshark.org/docs/dfref/q/quic.html).
### Shared limits
- Uncompressed PCAP/PCAPNG input: at most 64 MiB.
- Decoder runtime: 60 seconds; output: 16 MiB; unique findings: 5,000.
- A temporary local snapshot binds provenance to the decoded bytes and is removed afterward.
- Name resolution is disabled. The child process receives no QR credentials or SSLKEYLOGFILE and uses a temporary Wireshark configuration directory.
The decoder is trusted local software, not a sandbox. Run it with ordinary permissions and keep it patched. Do not supply decryption keys. Live capture, broader QUIC coverage, SSH capture analysis, certificate-chain analysis and OS capture helpers remain in development.
For decoder errors, check the executable version and capture integrity locally; do not upload the capture or secrets to support. Split oversized captures using your approved local tooling.
References: [TShark command-line options](https://www.wireshark.org/docs/man-pages/tshark), [TLS field reference](https://www.wireshark.org/docs/dfref/t/tls.html).
## Capture evidence in inventory and exports
Platform **0.30.0** adds a **What this capture establishes** section to capture asset details. It shows the transport, selected group, registry status and frame reference, with explicit warnings for draft or obsolete groups. Missing fields in older observations remain unknown; rescanning is required to collect new fields.
CycloneDX exports preserve validated capture metadata in `sectigo:capture:` properties, including `captureSha256`, `frameNumber`, `selectedGroupName`, `selectedGroupStatus` and `groupRegistrySnapshot`. Boolean values are exported as strings, including explicit `"false"` values for `hostIdentityVerified`, `handshakeCompletedVerified` and `keyShareValidated`. QUIC findings also retain their datagram scope and unverified packet association. Consumers must not interpret a missing property as verification.
Only allowlisted metadata is exported. Capture payloads, local paths and credentials are excluded. A registered post-quantum group describes observed key-establishment parameters; it does not verify authentication, key-share validity or a completed connection. These inventory and export changes require platform 0.30.0 or newer.
## Hosted upload availability
Uploading a capture directly in the workspace is in development and is not enabled yet. Continue using the local workflow above. The hosted processing runtime has passed isolated decoding, malformed-input and interrupted-upload checks. Tenant authorization, job tracking, the upload screen and deployment acceptance remain required before it becomes available.
The planned hosted workflow will upload a capture for analysis, release the raw capture after processing, and retain normalized findings plus provenance. Its upload and deletion states will be shown explicitly. This is separate from the current local workflow, which uploads only findings.
## Hosted upload API availability
`GET /api/v1/capture-capabilities` reports whether hosted uploads are enabled. This release keeps them **disabled** while concurrent runtime capacity and the complete tenant workflow are validated. Creating or uploading a hosted capture returns 503 while disabled. Local collector capture analysis is available as described above.
The capture API now defines workspace-scoped creation, history, status, binary upload and cancellation. Capture records distinguish awaiting upload, processing, cleanup pending, completed, failed and cancelled. A busy processor or failed analysis must not be interpreted as a successful scan with zero findings. Only a completed operation's findings count represents a successful result.
When enabled, metadata binds an operation to a file's exact size and SHA-256 and the credential that created it. A shared capacity reservation is required before forwarding bytes. Administrators may cancel any workspace capture; analysts may cancel their own. Raw captures are processed in memory, and normalized findings are accepted only after confirmed destruction and current authorization. If cleanup cannot be confirmed, the operation remains pending recovery. Do not treat closing a browser tab as proof of cleanup; inspect operation status.
## Capture SDKs
Both SDKs are included in the signed discovery bundle. Verify the bundle before using it, following the [agent distribution guide](../agent-distributions/). These methods do not enable hosted uploads: check capture capabilities first. The current deployment reports hosted uploads disabled.
Preparation is local. It checks the 24-byte to 64 MiB size bound, recognizes PCAP/PCAPNG magic bytes and calculates SHA-256. This format check does not prove the entire capture is valid; the decoder performs analysis. Use the returned body with its metadata to preserve the same file snapshot. No filename, local path, session secrets or arbitrary decoder options are sent.
### JavaScript
This Node.js example uses `openAsBlob` to open the file. Browser callers can pass a `File` from a file input instead. Keep API credentials out of source control and persistent browser storage.
```js
import { openAsBlob } from 'node:fs';
import { QuantumReady, prepareCapture } from './sdk/javascript/index.mjs';
const client = new QuantumReady({
endpoint: 'https://qscan.dev',
token: process.env.QR_TOKEN,
});
if (!(await client.captureCapabilities()).hostedUploadEnabled) {
throw new Error('Hosted uploads are not enabled; use the local capture collector.');
}
const prepared = await prepareCapture(await openAsBlob('./capture.pcapng'));
const operation = await client.createCapture(prepared.metadata);
const controller = new AbortController();
try {
const result = await client.uploadCapture(operation.id, prepared.body, {
signal: controller.signal,
});
console.log(result.status, result.findings);
} catch (error) {
// HTTP errors expose status, retryAfterSeconds and any returned operation.
// An interrupted request does not establish the operation's final state.
console.log(await client.captureStatus(operation.id));
}
```
Use `client.cancelCapture(operation.id)` to request server-side cancellation. Aborting the upload signal stops the client request; confirm cleanup through `captureStatus`. `client.captures({limit:25, after:cursor})` reads bounded history pages. Uploads have a 165-second client deadline and never automatically replay a body or follow a redirect.
### Python
```python
import os
from sdk.python.quantum_ready import QuantumReady, prepare_capture, CaptureUploadError
client = QuantumReady('https://qscan.dev', os.environ['QR_TOKEN'])
if not client.capture_capabilities()['hostedUploadEnabled']:
raise RuntimeError('Hosted uploads are not enabled; use the local capture collector.')
prepared = prepare_capture('capture.pcapng')
operation = client.create_capture(prepared['metadata'])
try:
result = client.upload_capture(operation['id'], prepared['body'])
print(result['status'], result.get('findings'))
except CaptureUploadError as error:
# status, retry_after_seconds and operation describe an HTTP failure.
print(client.capture_status(operation['id']))
```
`prepare_capture` accepts a path or bytes and reads no more than the size bound plus one byte. The returned bytes are immutable. Python uploads use a 165-second network timeout and do not follow redirects or automatically retry. Transport errors may propagate separately from `CaptureUploadError`; inspect status after any interruption. Call `client.cancel_capture(operation['id'])` for server-side cancellation, and `client.captures(limit=25, after=cursor)` for history.
### Completion and retries
A successful HTTP response can contain a **failed** or **cleanup-pending** operation. Treat findings as successful only when `status` is `completed`; zero findings is then a valid result. A capacity rejection before forwarding returns HTTP 429 with a retry delay and a failed operation marked `not-uploaded`. After waiting, create a new operation with a new request ID if you want another attempt. Do not automatically replay an upload, reuse a terminal operation, or claim cleanup merely because a client request ended. Reuse a request ID only to reconcile an ambiguous metadata-creation request with identical file metadata.
## Hosted processing validation
The hosted path has passed validation-workspace tests for synthetic TLS, QUIC v1 and QUIC v2 captures through authenticated tenant APIs, decoder execution, inventory, risk assessment and normalized evidence storage. Both SDKs have completed a real hosted upload. Tests also confirmed cleanup and rejection of late findings after cancellation, credential revocation and client disconnects while a decoder was running.
Hosted upload is available as a limited preview when your workspace reports the capability. Use Capture analysis to review consent, upload progress, processing, cleanup and retry guidance. Acceptance results do not establish production load capacity or all malformed-file behavior. Choose local analysis when the raw capture must remain in your environment.
## Native Linux capture jobs
The published Linux x86_64 agent **0.26.42** passed 15 live managed capture cases
using TShark 4.6.9 without system Python. Eight successful synthetic analyses
cover mixed TLS 1.2/1.3 in both packet orders, legacy TLS certificate flights,
passive key exchange, CBC protection and QUIC v1/v2. Five malformed inputs and
two out-of-scope paths were rejected. MCP submitted the jobs; claims matched the
actual agent process, and findings retained their per-job evidence and CBOM links.
The agent does not bundle TShark. Install a separately trusted decoder and configure its absolute executable path locally. Use **Local capture analysis** in guided setup to select an authorized capture directory and prepare `captureRoots` and `tsharkExecutable`. Enroll the host with the `capture` capability. Run the verified agent with that configuration and a protected enrollment credential, then submit a capture job for an exact existing file inside the approved directory.
Foreground acceptance ran as UID and GID 10001, with a read-only root, no Linux capabilities, no system Python, no dumpcap helper and an empty executable PATH. Both an outside-directory target and a symlink escaping the approved directory were rejected. Raw captures remained in the local test runtime; only normalized evidence was submitted.
Earlier release 0.23.8/154 passed systemd service acceptance in an isolated Ubuntu 24.04 guest using the signed native installer 0.50.5/81. The running service had the dedicated `sectigoqr` identity, zero capabilities and no-new-privileges. Both mixed TLS orders, QUIC v1/v2, per-job fingerprints and CBOM passed. Cloud configuration could narrow the local scope but could not broaden it; pause left new work queued, and revocation rejected the credential and cancelled queued work. Service removal and credential-free journal checks passed. Follow the [native service installation guide](../linux-binary-preview/).
These tests do not establish a customer decoder installer, live traffic collection, macOS capture support or production load capacity. Provision TShark separately and validate one authorized file before scheduling wider discovery.
Repeated observations may update the same inventory asset. To verify a specific analysis, inspect evidence records associated with its `jobId` and capture fingerprint. The latest asset record alone is not the complete scan history.
## Notify your security workflow
Use [signed webhook subscriptions](../webhook-integrations/#capture-analysis-notifications) to receive `capture.completed`, `capture.failed` or `capture.cancelled`. The event references the operation ID only. A final event waits for raw-data cleanup confirmation, except when no upload took place. Read the operation with the SDK or API to inspect findings, reason and `rawDataState`. Cleanup-pending operations remain visible in capture history and do not announce completion.
## Incomplete captures
Scanner 0.26.15 adds a bounded, payload-free quality pass for packet truncation,
malformed dissection and unresolved TCP sequence gaps. Segments that arrive out
of order and are subsequently reassembled are distinguished from unresolved gaps.
A quality failure marks analysis incomplete even when no ServerHello was decoded.
Earlier decoders rejected these incomplete uploads. Hosted decoder 0.26.51
retains valid findings from unaffected streams with explicit partial coverage.
Python collector 0.26.52 preserves that coverage through the collector report
API. Unisolated damage remains rejected. Local partial scans still exit with
code 2, even when a saved report is eligible for a partial upload. This check does not prove that
all traffic, protocols or handshakes were captured; successful peer authentication
and handshake completion still require separate evidence.
This improvement is in source scanner 0.26.15, the hosted capture runtime and
the Windows and Linux x86_64 foreground agents 0.26.15. Each passed 17
actual binary/Python comparisons with TShark: mixed TLS 1.2/1.3 in PCAP and
PCAPNG, QUIC v1/v2, segmented/retransmitted/reordered records, missing segments
and snaplen truncation. The agent still requires a separately installed TShark.
Linux acceptance used TShark 4.6.9 in a network-disabled container, with a
read-only root and candidate, UID 10001 and no capabilities. An initial decoder
version-check timeout was followed by a successful timing check and a complete
corpus rerun under unchanged limits; load and startup timing can still cause an
explicit analysis failure. Separate service and macOS acceptance remain open.
These results do not establish detection of every possible incomplete or
ambiguous capture.
## Contradictory handshake fields
Scanner 0.26.26 checks that a TLS 1.3 ServerHello carries the TLS 1.2 legacy
version plus the TLS 1.3 supported-versions extension. Older hellos cannot carry
TLS 1.3 key-share or supported-version fields. Null and signaling cipher values
are not selectable suites; the five original TLS 1.3 suites cannot identify an
older TLS version. Unknown suite identifiers remain visible rather than being
rejected solely because the local catalog is finite.
HelloRetryRequest is excluded from negotiated-parameter inventory only after its
endpoint, timestamp, version and scalar fields pass validation. Contradictory rows
make the analysis incomplete. Locally decoded valid findings remain available for
review, but incomplete reports cannot be uploaded as complete analysis. Hosted
results without validated stream-isolation coverage reject incomplete analysis
and release raw capture data. These checks do
not validate key-share bytes, the full transcript, peer identity or a completed
handshake. They follow [TLS ServerHello and version negotiation rules](https://www.rfc-editor.org/rfc/rfc8446.html#section-4.1.3).
## CBC record protection
Scanner 0.26.30 correlates complete ClientHello and ServerHello messages within
one TCP stream for TLS 1.2 AES-CBC. It reports observed encrypt-then-MAC or
MAC-then-encrypt only when endpoint direction, selected suite, message lengths
and extension vectors agree and capture quality checks pass. Fragmented client
hellos and coalesced TLS 1.2 server flights are supported.
Missing client evidence, unsolicited server acceptance, repeated or malformed
hellos and conflicting fields leave record order unknown. These observations do
not verify Finished messages, peer identity or successful application traffic.
The result appears in inventory evidence, transport findings and CBOM; quantum
risk scores remain separate. The current correlator does not establish 3DES,
DTLS or QUIC record-protection negotiation.
## Certificates visible in TLS 1.2 captures
Scanner 0.26.31 inventories public X.509 certificates from TLS 1.2 Certificate
messages, including reassembled and coalesced messages. It records the certificate
fingerprint, key and signature algorithms, usage constraints, observed peer role
(client or server), message position and capture provenance. TLS findings link to
the observed certificates; CBOM exports retain those relationships and algorithm
metadata. Certificate observations are scoped to their capture and handshake so
repeated use cannot silently merge different peer roles or associations.
A certificate seen in traffic is not proof of trust, a verified signature, completed
authentication or successful application traffic. Client role means the message
came from the client direction. A missing or ambiguous ServerHello, repeated hello,
invalid certificate list or unparseable certificate makes analysis partial.
Hosted isolation excludes the affected stream; collector uploads still reject
incomplete reports. Empty client certificate lists contain no certificate
findings; an empty server certificate list is treated as incomplete evidence.
This path requires a quality-checked TLS 1.2 TCP capture and has bounds of 16
certificates per peer, 64 KiB per certificate and 256 KiB per chain. Encrypted TLS 1.3
certificate messages are not inventoried. Raw certificate bytes and private key
material are not included in findings. Compiled downloads have their own published
version; check that an agent is on 0.26.31 or later before expecting this capability.
## Key-exchange parameters visible in TLS 1.2
Scanner 0.26.32 adds evidence from signed ephemeral ServerKeyExchange messages.
For supported ECDHE suites it reports the observed curve, validating public points
for P-256, P-384 and P-521. X25519 and X448 receive length checks only. For supported
DHE suites it reports modulus size and a fingerprint of the public parameters;
FFDHE names require an exact parameter match, not merely a matching key size.
Findings include the declared signature scheme and the type of public-key check
performed. The signature is **not verified**, and authentication remains unknown.
DH range checks do not establish primality or subgroup membership. These limits
are retained in CBOM exports alongside the capture and message references.
CBOM exports link the TLS observation to separate algorithm nodes for observed
key establishment and the declared handshake signature. These nodes preserve
the capture reference and explicit nonverification flags. A signature scheme
declaration does not establish a signer key, RSA key size or successful
authentication. Algorithms from different observations are kept separate.
The scanner requires an unambiguous TLS 1.2 ServerHello, a supported cipher suite,
consistent server direction and bounded, complete message fields. Fragmented and
coalesced messages are supported. Invalid points, contradictory signature families
and ambiguous associations make analysis partial. Hosted isolation excludes the
affected stream; collector uploads still reject incomplete reports.
An absent key-exchange message does not prove that a handshake was complete.
Static DH/ECDH, anonymous and PSK exchange layouts are not interpreted by this
signed-exchange parser. Check the published scanner version before expecting this
capability; hosted and compiled releases are qualified separately.
## Legacy TLS evidence in scanner 0.26.33
Scanner 0.26.33 is available in hosted capture processing, the signed Python
source release, and the qualified Windows x86_64 and Linux x86_64 foreground
binaries. Check your installed scanner version before relying on this extension.
Scanner 0.26.33 extends public certificate and signed ephemeral key-exchange
inventory to TLS 1.0 and 1.1. Captures containing several TLS versions retain each
observation and its certificate links. Certificate messages followed by key-exchange
messages in the same record are supported, including fragmented TCP records.
Legacy TLS carries an opaque signature rather than the signature/hash pair used
by TLS 1.2. Findings therefore identify RSA, DSA or ECDSA from the selected cipher
suite and explicitly label that source. They do not infer a hash, signer key or
verified signature. CBOM represents these as **suite-implied handshake signature**
nodes, distinct from TLS 1.2's declared signature scheme nodes.
Legacy AES-CBC record-protection evidence requires complete, consistent client and
server hellos. The scanner handles both empty and omitted extension blocks, rejects
unsolicited Encrypt-then-MAC acceptance, and does not interpret TLS 1.2-only suites
as legacy suites. TLS 1.0 and 1.1 still receive deprecated-protocol findings even
when Encrypt-then-MAC is observed. None of this evidence verifies peer identity,
Finished messages or successful authentication.
## Composite certificate metadata
The hosted upload processor and Python scanner 0.26.59 identify the18 ML-DSA
composite public-key algorithms in draft-ietf-lamps-pq-composite-sigs-19 when
certificate messages are visible in TLS1.0,1.1 or1.2 traffic. Mixed versions,
coalesced server flights and reassembled TCP fragments retain separate certificate
and handshake evidence. These algorithms retain draft status.
The subject public-key encoding and issuer signature identifier are recorded
separately. CBOM exports preserve their exact OIDs and component descriptions,
without claiming signature verification, trusted identity or a completed
handshake. TLS1.3 encrypts certificate messages; this feature does not recover
those certificates from ordinary encrypted captures. Uploaded capture bytes are
discarded after processing, while findings and immutable evidence remain.
Installed native agents keep their published version's coverage until updated;
the current source bundle and hosted processor provide this composite metadata
coverage independently of pending native releases.
### History refresh and paging
History shows loading and retry feedback beside its controls. A failed page request keeps the last successful records and page number. **Next**, **Previous**, and **Refresh history** are disabled while a history request is running. If the first history request fails, capture upload remains available when your workspace permits it; use **Refresh history** to retry the list.
Opening an uploaded capture from history keeps a prepared upload and its confirmation intact until the analysis is read successfully. Read failures show **Retry opening analysis** beside history. Selecting a new file, starting an upload, or switching history tabs invalidates a pending history read so it cannot replace newer work.
---
# Code scanning in CI
Source: https://qscan.dev/docs/ci-scanning
Run one static discovery scan in your own pipeline and retain **JSON evidence, SARIF and a coverage summary**. Local CI scanning needs Python 3.12 or later and the reviewed source bundle. The scan itself needs no repository API token or network access. Scanner 0.26.16 adds pinned parser wheels for JavaScript and TypeScript; install them in an isolated environment before scanning. It reads the checked-out source without importing it, installing its dependencies or running its build.
## Get running
### Exact algorithm names
Scanner 0.26.8 preserves all 18 standardized parameter-set names: ML-KEM-512/768/1024,
ML-DSA-44/65/87, and SLH-DSA with SHA2 or SHAKE and 128s/128f/192s/192f/256s/256f.
Hyphenated, underscored and compact spellings are normalized to canonical names.
For example, `ml_kem_768` becomes `ML-KEM-768`. Multiple parameter sets on the same
line remain separate findings, including in JSON and SARIF. Bare `ML-KEM` remains
a family with unspecified parameters. Unsupported suffixes are not silently
converted to a recognized parameter set; Kyber, Dilithium and SPHINCS+ names are
not treated as aliases for finalized standards.
These are static candidates. Languages still using text patterns may report a
name in a string or comment; this does not verify execution, implementation conformance, deployed
configuration or quantum readiness. Python uses call analysis and does not report
ordinary comments or string-only mentions. JavaScript/TypeScript in scanner
0.26.16 also uses syntax parsing, with direct Node crypto import resolution and
separate lower-confidence unresolved call-name candidates. Unresolved calls keep
usage unknown; variable arguments do not establish an algorithm identity. Hybrid/composite identifier coverage is a separate capability.
The parameter reference tables are [FIPS 203](https://csrc.nist.gov/pubs/fips/203/final),
[FIPS 204](https://csrc.nist.gov/pubs/fips/204/final), and
[NIST SLH-DSA parameter sets](https://pages.nist.gov/ACVP/draft-livelsberger-acvp-slh-dsa.html).
This behavior ships in the hosted repository scanner and source bundle. Check the
reported scanner version when using compiled agents; older binaries keep their
previous detectors until updated.
### Run a scan
1. Download the signed source bundle from **Agents, then Downloads** and verify it using the [distribution guide](../agent-distributions/). Review it before execution. Pin the reviewed version in your repository; do not download an unverified latest script in CI.
2. Extract the complete bundle into `vendor/quantum-ready/`. Keep `integrations/` and `scanner/` beside each other. The scanner excludes `vendor/`, so its own implementation is not counted as application evidence. Before committing the reviewed files, add the following lines to your repository's `.gitattributes` to preserve their verified bytes instead of applying Git line-ending conversion:
```gitattributes
/vendor/quantum-ready/** -text
/.github/workflows/quantum-ready.yml -text
```
Keep any existing `.gitattributes` rules. Add these entries before the first
`git add` of the bundle. If it was already committed with converted line endings,
restore the verified archive's files and restage them with these rules in place.
3. Run from your repository root:
```sh
QSCAN_PYTHON_ENV="$(mktemp -d /tmp/qscan-parser.XXXXXX)"
python -I -m venv "$QSCAN_PYTHON_ENV"
"$QSCAN_PYTHON_ENV/bin/python" -I -m pip --isolated install --only-binary=:all: --no-deps --require-hashes -r vendor/quantum-ready/scanner/locks/javascript-parsers.txt -r vendor/quantum-ready/scanner/locks/go-parser.txt
"$QSCAN_PYTHON_ENV/bin/python" -I vendor/quantum-ready/integrations/ci-scan.py . --output-dir .quantum-ready-results
```
Use a fresh output directory for each run. Existing directories are rejected to prevent stale reports being mistaken for current results. These commands target Linux/macOS with Python 3.12. The `-I` flag excludes repository imports and Python environment overrides; the isolated environment contains only reviewed parser wheels. Do not add `-S` for JavaScript/TypeScript scans because it hides those installed dependencies. Missing parser dependencies produce incomplete coverage, not a fallback text scan. For offline setup, pre-download the hash-locked wheels and add `--no-index --find-links /path/to/wheels` to the installation command. Older bundles without the parser lock retain their previous detector behavior. Optional `--source` sets a nonsecret source label; `--commit` accepts an exact lowercase 40- or 64-character Git hash. A CI-supplied commit is metadata, not proof that the working tree is unchanged.
## Choose your pipeline
### GitHub Actions
Copy `vendor/quantum-ready/integrations/github-actions.yml` to `.github/workflows/quantum-ready.yml`. The template checks out the repository with persisted credentials disabled, uses read-only repository permissions, and pins third-party actions to reviewed commit hashes. Scan output is retained as a 14-day artifact even when coverage is incomplete.
Download **quantum-ready-findings** from the run to inspect all three reports. This template does not automatically upload to GitHub's code-scanning security tab. SARIF ingestion requires the appropriate repository features and permissions; see [GitHub's upload documentation](https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/integrate-with-existing-tools/upload-sarif-file).
GitHub-hosted execution was verified on November 4, 2026 with the unchanged
template from signed source bundle **0.51.564 / sequence 844**. All 256 vendored
files matched their signed hashes after committing. A one-file Python fixture
produced one SHA-1 static candidate, complete coverage and downloadable JSON,
SARIF and summary reports. Fixture source was not executed. This verifies the
hosted runner and artifact path for that bounded example; optional workspace
upload and GitHub security-tab ingestion were not exercised.
### GitLab CI
Include the vendored template from your existing `.gitlab-ci.yml`:
```yaml
include:
- local: vendor/quantum-ready/integrations/gitlab-ci.yml
```
The template uses the `test` stage; add that stage or change both jobs to a stage in your pipeline. Its Python image is pinned by digest. Downloadable artifacts are retained for 14 days, including on a failed scan. SARIF report ingestion requires a supported GitLab version and subscription: consult [GitLab SARIF support](https://docs.gitlab.com/user/application_security/detect/sarif/). On older installations that reject the SARIF report keyword, remove only `artifacts.reports`; keep `artifacts.paths` and `when: always` to retain downloadable reports.
GitLab ingests security findings only from a successful job. An incomplete scan intentionally fails and retains its diagnostic artifacts; do not suppress its exit code to make coverage look complete. Actual GitLab-hosted execution and provider ingestion remain pending acceptance.
## Understand the outcome
### Exit 0: completed
The static scan completed within its supported scope. Review findings and skipped-file counts. Zero findings is not a quantum-readiness certification.
### Exit 2: incomplete coverage
Read JSON diagnostics and SARIF invocation status. Fix parse errors or reduce scope, then rerun. All three reports are retained.
### Exit 1: failed
Scan/report creation failed, or arguments/output are invalid. Inspect the job log. A failed `summary.json` is written when report-directory creation succeeded.
### Your reports
- **observations.json:** discovery evidence, paths, file hashes and bounded coverage diagnostics.
- **quantum-ready.sarif:** SARIF 2.1.0 static candidates, encoded relative locations, stable fingerprints and invocation coverage.
- **summary.json:** machine-readable completion state, finding count, scanned/skipped counts and error count.
An invalid command or inability to create the output directory may leave no artifacts. A cancelled or timed-out runner may also prevent artifact retention. Never treat missing output as a clean scan. SARIF candidates use note-level severity: runtime use, exploitability and key usage have not been verified. Reports contain paths and metadata, not raw source; set artifact access and retention for your repository's sensitivity.
The scanner is bounded to 10,000 supported files and 180 seconds. Ordinary source files have a 1,000,000-byte limit; supported lockfiles have a 5,000,000-byte limit. Generated, dependency and environment directories such as `vendor`, `node_modules`, `.git`, `dist`, `build` and virtual environments are excluded. File and diagnostic counts describe this supported static scope, not whole-application runtime coverage. See [repository scanning](../repository-connections/) for interpretation and hosted scanning.
## Optional evidence upload
Both templates default to local artifacts only. To send complete evidence to your workspace, create a dedicated **ingestor** credential, set `QR_ENDPOINT` and `QR_TOKEN` as CI secrets, and explicitly enable `QSCAN_UPLOAD_EVIDENCE=true` (a GitHub repository variable or GitLab CI variable). Never use an administrator or agent credential.
The templates permit upload only after successful scans on pushes to the default branch. Protect that branch and review workflow changes. In GitLab, mark variables protected and masked, and ensure protected variables are unavailable to untrusted merge-request pipelines. A rule on the upload job alone does not isolate project-level secrets from other jobs. GitHub secrets are referenced only in the trusted upload step; do not change this to `pull_request_target` execution of untrusted source.
Standalone evidence upload creates ingestion evidence; it does not create or attach a hosted repository-scan operation. Actual provider-side artifact/SARIF ingestion and CI credential acceptance must be checked in your own pipeline. Schema validation alone is not proof of successful provider ingestion.
## Troubleshooting
- **Output already exists:** choose a new directory or remove only the previous disposable report directory before starting a new run. Never reuse stale output.
- **Incomplete with no findings:** open `observations.json` diagnostics; a malformed supported manifest or source parse error is a coverage failure.
- **Reports absent:** check checkout/setup failure, runner cancellation, output permissions and command arguments before drawing conclusions.
- **SARIF visible as a download but absent from security results:** check provider feature availability, upload configuration, permissions and job success separately.
- **Upload denied:** check that the endpoint is the intended workspace and the credential has the ingestor role. Do not broaden it to admin.
### Diagnose a failed CI invocation
With scanner 0.27.9, add `--debug` to request redacted failure frames on stderr:
```sh
python integrations/ci-scan.py ./source --output-dir ./new-reports --debug
```
Use a new output directory for each invocation. Debugging does not change the
existing exit statuses: 0 for complete analysis, 2 for incomplete analysis, and
1 for command/report failure. A failure after report-directory creation retains
the failed `summary.json`; argument failures may occur before any report exists.
The diagnostic output omits exception values, locals, source lines and external
paths. Missing optional modules produce fixed repair guidance. Do not interpret a
traceback, an empty findings list or missing reports as successful analysis. Keep
the exit status and coverage diagnostics alongside the reports when investigating.
### Go modules
Scanner 0.25.3 includes [Go module declarations](../repository-connections/#go-module-discovery) in evidence and SARIF. Unresolved local replacements and workspaces keep findings available while marking coverage incomplete and returning exit 2. No Go installation, module download, or build execution is required.
### .NET dependency evidence
Scanner 0.26.0 reads NuGet project declarations and `packages.lock.json` without
running .NET, restoring packages or executing project code. Include the project and
lockfile in the approved scan root. Central versions, MSBuild conditions and imports
can yield `nuget-scope-unresolved`; retain the findings and coverage warnings rather
than treating the run as clean. See [.NET and NuGet discovery](../repository-connections/#net-and-nuget-discovery)
for formats, interpretation and limits.
### Yarn and pnpm lockfiles
Use scanner 0.26.91 or later to include supported `yarn.lock` and `pnpm-lock.yaml`
records. The parser is bundled; no Yarn, pnpm or separate YAML installation is
needed. Keep lockfiles inside the approved scan root. Partial or unsupported
records appear in coverage diagnostics and cause the existing incomplete-analysis
exit status of 2. See [supported formats and interpretation](../repository-connections/#yarn-and-pnpm-resolved-dependencies).
---
# Cloud collectors without Python
Source: https://qscan.dev/docs/cloud-binary-collectors
Use the compiled Windows or Linux agent to read explicitly selected AWS KMS keys,
Azure Key Vault key versions or Google Cloud KMS key versions. The current 0.25.3
binaries include all three provider SDKs. You do not install Python, run pip, or
prepare separate provider dependency environments.
For discovery from the hosted platform, choose **Connect cloud account** instead.
A collector is useful when your identity or network access must stay in your environment.
## Set up a collector
1. Open **Getting started**, choose the provider, then **Use a collector in my environment**.
2. Enroll or select an agent for that source. Enter the exact resource and choose
the computer running the collector. Cloud keys do not have a host operating system.
3. Select **Binary**. Windows 11 x86_64 foreground and Ubuntu 24.04 x86_64 are the
current accepted platforms. Save `agent.local.json` from the wizard.
4. Follow the signed release download and verification instructions. Keep the
complete binary distribution together. On Linux, begin with **In this terminal**.
5. Configure a local cloud identity with the permissions below. Run the wizard's
**Cloud access check**, then connect with your enrollment token at the hidden prompt.
6. Check contact and run a scan. Review its findings and diagnostics before widening scope.
## Identity and permissions
| Provider | Identity on the collector | Required resource permission |
| --- | --- | --- |
| AWS KMS | Attached AWS role, short-lived credential chain or a locally configured profile; optional profile name in the wizard | `kms:DescribeKey` on each selected full key ARN |
| Azure Key Vault | Explicitly selected managed identity, workload identity, environment credential or Azure CLI identity | `Microsoft.KeyVault/vaults/keys/read` at each selected key for RBAC vaults; key Get for an existing access-policy vault |
| Google Cloud KMS | Application Default Credentials for the account running the process | `cloudkms.cryptoKeyVersions.get` on each selected parent CryptoKey |
The provider permission can cover more versions than the configured collector
scope. The collector still reads only the exact configured resources. It does not
list the whole account or request encryption, decryption or key export.
A local Azure laptop normally uses **Azure CLI**, with the CLI installed and
`az login` completed in the same account. Managed identity requires an Azure host
with that identity enabled. Workload identity requires its configured local token file.
Azure Key Vault metadata reads can include public key material; the collector discards it.
For GCP local development, follow [Google's ADC setup](https://docs.cloud.google.com/docs/authentication/provide-credentials-adc).
A normal `gcloud auth login` is separate from Application Default Credentials.
Use an approved workload identity for unattended operation.
Detailed policies and identity setup: [AWS](../aws-kms-development/),
[Azure](../azure-keyvault-development/), [GCP](../gcp-kms-development/).
## What the access check proves
The generated `cloud-check` command reads metadata using the configured provider
identity. It does not need a Quantum Ready enrollment token and does not upload
findings. A report with `ready: true` confirms this point-in-time read only. It does
not confirm platform connectivity, future permission availability or service-account access.
A failed report includes stable check codes and recovery guidance. Correct the
identity, exact resource, permission or network issue, then repeat the check.
Do not install Python to fix a compiled SDK diagnostic: verify the complete binary
release and review the reported scanner version instead.
## Running as a Linux service
After a successful foreground check, choose **Background service** for continuous
operation. The installer creates a restricted service account. That account does
not inherit your terminal login, home directory or shell environment.
Prefer the identity attached to the cloud host. If your policy requires a local
credential file, provision it privately for the service account and configure its
service environment explicitly. Do not copy your personal CLI credential cache,
put secrets in the discovery configuration, or give the service broader filesystem
access to make authentication work. Confirm a real scan after service installation.
A successful check under your own account does not verify the service's identity.
The existing [Linux update supervisor](../linux-update-supervisor/) replaces the
signed binary while preserving local scope and credential configuration. Cloud
permission changes are separate from software updates.
## Validation scope
The published Windows and Linux binaries load the bundled SDKs without Python on
PATH. Actual executable checks cover invalid resource scope, missing identities,
redacted diagnostic output and refusal to report successful access without credentials.
Provider transport and mapping tests use controlled responses. Live customer-account
acceptance remains outstanding; run the access check and a scan in your environment.
Windows Server and Windows background-service acceptance remain separate work.
---
# Cloud connections
Source: https://qscan.dev/docs/cloud-connections
Open **Discovery > Cloud connections** in your workspace to configure hosted key metadata discovery. Hosted connections do not require an agent, operating-system choice, or Python installation. Choose **Run a collector instead** when execution must remain in your environment.
## AWS RDS and Aurora
Choose **AWS RDS & Aurora** to inventory database storage encryption and KMS key
references. This is a separate connection from AWS KMS key discovery.
1. Enter a connection name, the IAM role ARN in your database account, and one AWS
region. The account ID comes from the role ARN.
2. Choose **RDS instances** or **Aurora and RDS clusters**. Aurora storage encryption
belongs to the cluster; an instance listing alone does not establish its storage
protection. Create separate connections if you need both inventories.
3. Save, then open **Show trust configuration**. Apply the displayed OIDC trust policy
and regional metadata-read policy to the role. The subject is specific to this
workspace and connection. No static AWS keys, database passwords, decrypt
permissions or secret-retrieval permissions are needed.
4. Choose **Test access**, then **Run scan**. Testing verifies the listing without
creating inventory assets. Scans paginate and publish normalized findings.
Storage findings distinguish AWS-owned encryption, AWS-managed or customer-managed
KMS encryption, unencrypted configuration, and unknown metadata. A KMS reference
alone does not establish its key algorithm or customer ownership. Discovery does
not connect to returned database endpoints, authorize network scanning, verify
negotiated TLS, or prove database TDE or post-quantum protection.
Operation history shows page and resource progress. Editing or revoking a connection
invalidates in-flight work. Retry an uncertain save with **Retry same save**; this
recovers the original request instead of creating another connection. Listings are
not point-in-time snapshots: duplicate identities retain the first observation and
are counted. Inventory limits fail explicitly rather than silently truncating.
The API uses the standard cloud connection, trust, test, scan and schedule endpoints:
```json
{
"name": "Production Aurora",
"provider": "aws",
"capability": "rds",
"roleArn": "arn:aws:iam::123456789012:role/qscan-rds",
"scope": {
"accountId": "123456789012",
"region": "us-east-1",
"resourceType": "cluster"
}
}
```
The role account and scope account must match. The JavaScript/Python SDK cloud
connection methods accept this configuration. Availability and live-provider
qualification are reported by `/api/v1/cloud-capabilities`.
## Google AlloyDB
Choose **Google AlloyDB** to inventory clusters and instances in one database
project and region. This connection is separate from Cloud SQL and Cloud KMS.
1. Enter a connection name, the database project ID and an explicit region such
as `us-central1`. Wildcard regions are not accepted. Create another connection
for each additional project/region you intend to inventory.
2. Enter the numeric project number owning the workload identity pool, its pool
ID and provider ID. The pool can belong to a different project from the databases.
3. Save and open **Show trust configuration**. Configure the displayed issuer,
audience, attribute mapping and exact workspace/connection subject condition.
Bind the displayed federated principal to a custom role on the database project
containing only `alloydb.clusters.list` and `alloydb.instances.list`. Enable the
AlloyDB API in the database project. No service-account key, database password,
SQL role, key retrieval or decrypt permission is required.
4. Choose **Test access**, then **Run scan**. Testing traverses the same listing
without creating inventory. Scanning lists clusters, then instances within each
cluster, and publishes normalized observations. Operation history shows page and
resource progress. Schedules use this same saved scope and authorization.
The connection uses [AlloyDB REST v1 cluster listing](https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.clusters/list)
and [instance listing](https://docs.cloud.google.com/alloydb/docs/reference/rest/v1/projects.locations.clusters.instances/list),
with the `alloydb.readonly` OAuth scope. Cluster evidence distinguishes configured
storage key references from reported encryption state and used key versions.
Instance evidence records configured SSL mode and connector requirements. Deprecated
cluster SSL configuration does not override instance settings. Missing metadata
remains unknown; neither a key reference nor an encryption setting establishes a
negotiated cipher, key algorithm, SQL-level TDE or post-quantum protection.
Unreachable locations, changed duplicate records or pagination limits prevent
verification instead of silently reporting a complete inventory. Revocation or
configuration changes invalidate in-flight results. Provider endpoints discovered
in metadata never authorize network probes. Use an explicitly authorized PostgreSQL
engine scan when you need session evidence.
The standard cloud API, SDK connection methods and OAuth MCP cloud tools accept:
```json
{
"name": "Production AlloyDB",
"provider": "gcp",
"capability": "alloydb",
"projectNumber": "123456789012",
"poolId": "qscan-pool",
"providerId": "qscan-provider",
"scope": {"projectId": "my-database-project", "region": "us-central1"}
}
```
Availability comes from `/api/v1/cloud-capabilities`. Configure a connection, apply
its scoped trust and read permissions, then choose **Test access** and **Run scan**.
Each workspace verifies access using its own cloud identity.
## Key-provider availability
The page reports availability from the deployed platform. AWS KMS, Google Cloud KMS and Azure Key Vault test and scan execution is enabled on qscan.dev. Each connection still requires its provider trust and read permissions. The workload issuer and its public verification keys are published for provider trust configuration. You can save a draft configuration while execution is unavailable; this does not establish cloud access.
Google Cloud KMS supports exact versions or discovery within one configured key ring/location. AWS KMS supports exact keys or discovery in one account and region. Azure supports exact versions or discovery within one vault or key. This is not complete account inventory, certificate discovery, or coverage of every cryptographic service. Test access validates the configured scope before scanning.
## Configure a connection
A workspace administrator chooses a provider, a descriptive name, the identity identifiers, and either 1 to 200 exact resources or an explicit provider discovery scope. Do not enter passwords, access keys, downloaded credential files, or client secrets.
- **AWS:** IAM role ARN and either exact KMS key ARNs in the same account or a region to discover. Discovery lists keys with a region-restricted session; each subsequent read uses its own exact-key session. Hosted scanning uses OIDC federation and a 15-minute role session restricted to `kms:DescribeKey` on one selected key per request. Public AWS regions are supported by configuration; GovCloud and China hosted connections are not yet supported. The optional collector uses an identity configured on its host.
- **Google Cloud:** numeric project number, workload identity pool and provider IDs, and either exact CryptoKeyVersion resource names or **Discover a key ring or location**. Enter a root such as `projects/my-project/locations/us-central1/keyRings/main` or `projects/my-project/locations/us-central1`.
- **Azure:** directory ID, application client ID, and either exact versioned Key Vault key URLs or **Discover a vault or key** with a vault URL or an unversioned key URL. Follow the [Azure hosted setup guide](../azure-hosted-setup/) for federated credentials, service-principal IDs and key-scoped permissions; the local Python collector is a different workflow.
If a save response is interrupted, choose **Retry same save**: it reuses the original creation request. If saving succeeds but the details cannot load, choose **Open saved connection** to reload without creating another connection. Inputs stay locked during recovery to preserve the submitted scope.
API clients can send a UUID in the optional `Idempotency-Key` header when creating a connection. Reuse the same UUID, administrator, and configuration after an uncertain response. A retry returns the existing connection, including its current revoked or archived state, without reactivating it.
Saving creates a draft. The form retains your input on a validation error. Editing an existing connection clears its verification and requires a new access test.
## Trust, verification, and scanning
Once the workload issuer is published, **Show trust configuration** opens a provider-specific checklist. It separates identity setup from resource permissions and labels the exact workspace-bound issuer, subject, audience and scope. Each value or policy has its own **Copy** control; JSON previews and the complete trust plan stay collapsed until needed. You can review these before hosted execution is activated. Configure those in your cloud provider. Never broaden the trust subject to all workspaces. Provider grants may cover key versions more broadly than the selected resources; execution enforces the configured exact list or discovery root.
The checklist follows the provider setup order:
- **AWS:** add or reuse the IAM OIDC identity provider, apply the connection-bound role trust policy, then attach the generated metadata permission policy. Discovery requires `kms:ListKeys` restricted by region and `kms:DescribeKey` for keys in that account and region; exact-key connections only require `kms:DescribeKey` on their selected keys. The role ARN is displayed so you can verify the target before editing it. [AWS identity provider instructions](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_create_oidc.html).
- **Google Cloud:** configure the pool's OIDC provider with the issuer, allowed audience, attribute mapping and subject condition; then grant the displayed federated principal the displayed metadata permissions at the listed IAM binding resources. Exact versions use `cloudkms.cryptoKeyVersions.get`. Key-ring discovery also needs `cloudkms.cryptoKeys.list` and `cloudkms.cryptoKeyVersions.list`, bound at the selected key ring. Location discovery additionally needs `cloudkms.keyRings.list` and a project-level binding, which gives broader provider visibility; requests remain restricted to the configured location. Use a custom role with these permissions. No cryptographic-use permissions are requested. [Google Cloud federation instructions](https://docs.cloud.google.com/iam/docs/workload-identity-federation-with-other-providers).
- **Azure:** select the displayed directory and application, add its external federated credential, and grant the listed key read data action at the selected key scopes, or the selected vault scope for vault discovery. Access-policy discovery requires List and Get. [Microsoft Entra federation instructions](https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-create-trust).
Copying a value does not apply provider changes. If your browser blocks clipboard access, the checklist opens the value for manual selection. Return to this connection after saving the provider configuration.
**Test access** reads metadata without publishing inventory. A successful test verifies the current configuration revision. **Run scan** then publishes observations, evidence, and inventory. Administrators and analysts can scan verified connections; viewers can inspect saved configuration and operation history.
Active operations update automatically while their connection is open, preserving expanded scope and result panels. A successful access test enables **Run scan** without a page reload. Polling pauses in hidden tabs and stops when you leave the connection. If live updates fail, use **Refresh status** to reconnect; do not start a second scan. Operation history survives page reloads; **View resource results** shows resource indexes and redacted result codes. Results do not expose temporary cloud credentials. A retry after a failed submission response uses the same request ID while the page remains open. If you reload after an uncertain submission, inspect operation history before starting another operation.
## Change or revoke access
An administrator can edit configuration or revoke a connection. Revocation requires a second confirmation click, prevents new work, and cannot be undone. Already issued provider credentials may remain valid until expiry. Remove the cloud-side trust or permissions when immediate provider-side revocation is required.
## Collector alternative
The collector path is independent of hosted connection verification. Choose the host operating system only after explicitly selecting collector execution. Follow the provider guide: [AWS KMS](../aws-kms-development/), [Google Cloud KMS](../gcp-kms-development/), or [Azure Key Vault](../azure-keyvault-development/). Current runtime coverage and limitations are documented there.
## Automate this workflow
Use the [JavaScript and Python cloud SDK guide](../cloud-sdk/) for revision-aware setup, retained request IDs, paginated history and resource results.
## Archive retired connections
After revoking a connection, select **Archive connection** in its details to remove it from the current list. **Show archived** opens the separate archive; administrators can select **Restore to list** there. Restoring preserves revoked access. Create and verify a new connection if you need to resume discovery.
Archiving retains configuration, revisions, audit events, operation history and resource results. It does not delete findings or change provider-side trust. Archived connections no longer consume the 100-connection current-list allowance. Restoring requires room in that list. Viewers and analysts can inspect archived history; only workspace administrators can archive or restore.
### Permanently delete a retired connection
A workspace administrator can select **Delete connection** on a revoked connection, including one in Archived. Review the inline confirmation, then select **Delete permanently**. Choose **Keep connection** to cancel without changing anything.
Deletion removes connection settings, configuration revisions and recurring schedules. It cancels unfinished operations and rejects results from requests already in flight. Existing findings, resource results, operation history and audit events remain. This action does not remove trust in AWS, GCP or Azure or invalidate a token already issued by that provider; remove provider-side trust separately when retiring access.
If the response is lost, choose **Retry deletion**. The same connection and revision are reused, so a retry can confirm the original result without recreating the connection. A deleted connection cannot be restored; create and verify a new connection to resume scans. API clients can still retrieve retained operations by the original connection ID.
## Diagnose a failed resource check
Open the connection, then **Operation history > View resource results**. Each failed
resource includes provider-specific recovery steps, a setup-guide link and expandable
**Diagnostic details** with the operation ID and error code. Guidance distinguishes
identity trust failures from key permissions, missing resources and temporary provider
errors. It does not expose provider response bodies or credentials.
New results retain the exact checked resource, provider, configuration revision and
check time, so their identifiers stay visible after configuration changes or revocation.
Legacy results without a saved identifier use the current resource list only when
the revisions match. Otherwise they are labeled as historical; changed or reordered
scope cannot make an old failure appear to belong to a different key.
For transient failures, let the running operation finish its bounded retries. After
correcting trust or permissions, use **Test access** before running a new scan.
## Follow a submitted test or scan
**Test access** and **Run scan** show submission progress immediately. Once accepted, the operation appears at the top of history and updates automatically. Open trust instructions and resource results stay in place. A separate history-refresh failure cannot turn an accepted submission into a failed one.
If the submission response is lost, keep the page open and choose **Check test submission** or **Check scan submission**. This retries the same request ID and configuration revision. It recovers the original operation instead of creating a duplicate. The reminder is held in the current page only; after reloading or signing in again, inspect operation history before submitting new work. A confirmed completed access test refreshes verification so scanning can become available. If connection status cannot refresh, the confirmed result remains visible and **Refresh status** retries that read.
## Cancel an active operation
Select **Cancel operation** in its history entry. The entry shows the returned outcome immediately and keeps open trust instructions and resource results in place. If the operation completed before cancellation, it remains **completed**; the console does not label it cancelled. Previously published findings remain in inventory.
If the response is interrupted, choose **Check cancellation** on that same entry. This retries cancellation of the original operation and recovers its current outcome. A confirmed outcome remains visible even when connection status cannot refresh. Use **Refresh status** to retry that read. An older in-flight poll cannot change a terminal operation back to running.
## Keep inventory current with recurring scans
After a successful access test, open **Recurring scans** on the connection. Choose a frequency, review the administrator delegation checkbox, then select **Enable recurring scans**. The first run is one interval after authorization. You can choose hourly, every six hours, daily, weekly or every 30 days; the API accepts intervals from 3,600 to 2,592,000 seconds.
The schedule uses the exact verified connection revision and resource list. It does not grant additional provider permissions or discover an entire account. The approving administrator's access is checked before dispatch and during execution. Browser-authorized schedules continue after sign-out without retaining or extending the browser session. Removing or changing that administrator's authorization invalidates the schedule. API-authorized schedules also stop when the approving API credential expires or is revoked.
The page shows the approving administrator, next run, last dispatch and skipped occurrences. **Operation history** contains scan progress and per-resource results. **Refresh schedule** reads current scheduling status. Scheduling is best effort, not an exact-time guarantee: overlapping operations are skipped, and after downtime only the latest missed occurrence is dispatched. No catch-up queue is created.
**Pause**, **Remove schedule**, and authorizing a replacement invalidate active scheduled work at its next access check. Already published findings remain. Editing the connection requires a fresh successful access test and explicit schedule authorization. A provider permission error appears in operation results; it does not silently expand access. If a save response is lost, the controls ask you to refresh the saved schedule before another change.
## Cloud keys in CBOM exports
Cloud key resources export as CycloneDX 1.7 **related cryptographic material** of
type **key**. They are metadata inventory, not copies of private or secret keys.
The export preserves reported provider algorithm/key specification, usage, state,
curve and protection level as named properties. Exact AWS RSA specifications and
recognized GCP RSA/AES algorithms also populate the native key size in bits.
PQC parameter-set numbers are not key lengths. EC curve sizes are not inferred as
encoded key lengths, and provider states are not translated into NIST lifecycle
states without equivalent evidence. The export does not claim key exportability,
private/public-half access, runtime use or a generation-algorithm relationship.
Additional algorithm references and cross-service key relationships remain open.
## GCP discovery progress and coverage
Each test or scan lists the current rings, keys and versions within the selected
root. **Discovering** shows pages read, versions found and pending pages. After
listing completes, the operation reads metadata for every discovered version.
Testing performs these reads without publishing inventory. An empty scope can
pass, but reports zero resources; this is not proof that the project has no keys.
The runner checkpoints each page and read. Restarted work resumes from saved
progress. Revocation, changed configuration or lost authorization prevents late
results from being accepted. Duplicate versions are deduplicated; pagination
cycles and limits fail explicitly. A listing is not a transactional snapshot:
resources can change between pages or before their metadata is read. A missing or
inaccessible discovered version is reported as a resource failure.
Current bounds are 100 resources per page, 100,000 queued pages and 100,000 unique
versions per operation, plus the workspace inventory capacity. Exceeding a bound
never counts as complete coverage. Discovered names, normalized metadata and
per-resource failures are retained; provider credentials are not exposed.
Azure vault/key discovery follows the same durable listing and reading phases. Subscription-wide vault enumeration remains roadmap work.
## AWS regional discovery
### Symmetric key metadata
Hosted scanning and Python source scanner **0.26.47** identify AWS
`SYMMETRIC_DEFAULT` as AES-256-GCM. The Python collector identifies SM4-128
instead for China-region ARNs; hosted connections still support the public AWS
partition. CBOM exports retain the configured algorithm and key size without
claiming a verified encryption operation.
Azure `oct-HSM` identifies AES. The configured GET-key API does not expose a
public symmetric key-size field, so size and mode remain unknown. QScan never
reads or exports symmetric key material to determine size. Generic `oct` denotes
symmetric material but does not establish AES; it retains unknown algorithm
classification. An AES family with unknown size is not labeled quantum-ready.
These mappings follow the
[AWS key-spec reference](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose-key-spec.html),
[Azure supported key types](https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys)
and [Azure GET-key contract](https://learn.microsoft.com/en-us/rest/api/keyvault/keys/get-key/get-key?view=rest-keyvault-keys-2025-07-01).
Existing inventory requires a fresh collection to obtain corrected observations;
risk recalculation alone does not rewrite collected evidence. Published native
agents retain the behavior of their bundled scanner version until updated.
Choose **Discover keys in one region** when configuring AWS KMS. Enter the role ARN and region; the account is taken from the role ARN. No access keys are needed. Apply the generated trust and permission policies, then test access and run a scan.
The hosted scanner follows [AWS ListKeys pagination](https://docs.aws.amazon.com/kms/latest/APIReference/API_ListKeys.html) with at most 100 keys per page. It durably saves page progress and validates every returned key ARN against the configured account and region before scheduling metadata reads. A listing session permits only `kms:ListKeys`; each read session permits `kms:DescribeKey` for one exact discovered key. Listing requires `Resource: "*"` with a region condition; the role's DescribeKey permission is restricted to that account and region's key ARN prefix. Key policies may further restrict reads.
Operation history shows pages, resources discovered, pending pages, and subsequent read successes/failures. Revocation, configuration changes and cancellation prevent stale results from being accepted. A partial list, invalid cursor or resource limit does not count as complete inventory. An empty completed list proves only that this identity returned no keys in this scope at that time. AWS listing is eventually consistent, not a point-in-time snapshot.
This covers KMS key metadata in one public AWS region. It does not discover every AWS cryptographic service, inspect key material, scan other accounts/regions or prove runtime usage. GovCloud and China are not supported by hosted connections. Real AWS account acceptance was waived for this delivery and has not been performed; signed transport, pagination, scope enforcement and durable execution are covered by local tests.
## Azure vault and key discovery
Choose **Discover a vault or key** in an Azure connection. Use a vault URL such as
`https://production-vault.vault.azure.net`, or narrow discovery to a key URL
`https://production-vault.vault.azure.net/keys/signing` without a version.
The scanner lists base keys, lists every returned version, and reads each version
for cryptographic metadata. It uses pages of at most 25 items and persists the
traversal before advancing. Progress separates discovery from metadata reads.
The generated trust guide retains the existing Entra workload federation flow.
For RBAC vaults, use a custom role with only
`Microsoft.KeyVault/vaults/keys/read`, assigned at the vault resource ID for vault
discovery or its `/keys/` resource ID for one-key discovery. For legacy
access-policy vaults, keep the existing access model and grant **List** and **Get**
key permissions. Access policies apply to every key in the vault even when this
connection selects a single key. Neither path requires secrets access, key
mutation, signing or decryption permissions. The read operation may return public
key material; the scanner retains normalized metadata only.
Continuation URLs must keep the selected vault, collection and API version.
Explicit HTTPS port 443 and reordered query parameters are accepted; extra
parameters, changed destinations, API versions and cycles are rejected. The
scanner extracts the opaque pagination token and rebuilds the next request.
An invalid or incomplete traversal does not become a successful empty inventory.
Existing exact-version connections cannot silently acquire list access.
This feature covers publicly reachable Azure Key Vault keys and their versions.
It does not enumerate subscription vaults, Managed HSM, certificates, secrets,
private-only vaults or runtime key usage. Discovery is not an atomic snapshot;
keys can change while scanning. Real Azure account acceptance was waived for this delivery and has not been performed.
References: [List keys](https://learn.microsoft.com/en-us/rest/api/keyvault/keys/get-keys/get-keys),
[list versions](https://learn.microsoft.com/en-us/rest/api/keyvault/keys/get-key-versions/get-key-versions),
[Azure key-read permissions](https://learn.microsoft.com/en-us/azure/role-based-access-control/permissions/security).
## Key-to-algorithm relationships in CBOM exports
For recognized exact GCP algorithm variants, the CycloneDX export now links the
key material component to a separate algorithm component through `algorithmRef`
and a dependency edge. RSA padding families and sizes, AES modes, EC curves,
HMAC digest names and supported PQ parameter sets come from provider metadata.
PSS exports the provider-defined salt length. Raw PKCS1 keeps its padding family
but records the absence of digest encoding. SLH-DSA prehash variants remain
distinct from pure message variants.
These are configured algorithm relationships, not verified runtime operations.
ECDSA's provider-named hash is a default, because GCP also permits other hashes.
Exports retain `runtimeUseVerified: false` and `parametersComplete: false`.
Algorithm components stay scoped to their key observations: matching parameters
do not merge keys or establish a shared implementation. Unknown and conflicting metadata does not create a guessed relationship.
Hosted Azure collection and Python source **0.26.21** retain the configured
`key_ops` list after validation. EC/EC-HSM keys with a recognized curve and only
sign/verify operations link to ECDSA on that curve in CBOM exports. Missing,
malformed, or incompatible operation lists do not produce a guessed link.
For RSA/RSA-HSM, the collector derives a 2048-, 3072-, or 4096-bit size from a
canonical public modulus and immediately discards its bytes. The export records
`public-modulus` as size provenance. Malformed or unsupported lengths remain
unspecified. RSA operation lists do not select a padding scheme or digest.
Symmetric key types remain unknown because the returned metadata does not select
an algorithm, mode or key size. No key-operation metadata proves runtime activity.
See Microsoft's [key response schema](https://learn.microsoft.com/en-us/rest/api/keyvault/keys/get-key/get-key?view=rest-keyvault-keys-2025-07-01)
and [algorithm reference](https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys-details).
Windows and Linux foreground binaries **0.26.21** include these collector
changes. Existing stored observations need a new scan to
obtain these fields. Live provider-account acceptance remains separate from
binary packaging and SDK diagnostic checks.
AWS KMS exports now link ML-DSA parameter sets, HMAC digest families, and EC
curves to their key observations when both `KeySpec` and `KeyUsage` agree.
NIST EC signing and key agreement produce distinct ECDSA and ECDH relationships.
These links describe configuration only; they do not establish a message hash,
signature mode, runtime use, or application ownership. RSA key sizes remain
available, but the export does not select a request-dependent RSA scheme.
Missing or incompatible key usage produces no algorithm link. Semantics follow
the [AWS key specification reference](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose-key-spec.html).
Hosted collection and Python source collector **0.26.20** recognize AWS
`ECC_NIST_EDWARDS25519` as Ed25519. With `SIGN_VERIFY` usage, CBOM exports link
the key to EdDSA on the Ed25519 curve. This key is quantum-vulnerable; provider
metadata does not prove a runtime signature or select pure versus prehash mode.
Windows and Linux foreground binaries **0.26.21** include this AWS registry
update. Older binaries retain their original registry and report this key spec
as unknown.
Parameter semantics follow the [GCP algorithm reference](https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm).
### Additional GCP variants (source collector 0.26.19)
Hosted scans and the Python source collector recognize the three
`PQ_SIGN_ML_DSA_*_EXTERNAL_MU` variants, `KEM_ECDH_P256`, `KEM_ECDH_P384`, and
`AES_256_KWP`. The exact provider identifier stays in evidence. External-MU
signatures preserve their externally supplied message-representative mode;
ECDH KEMs identify the curve and raw shared-secret operation; AES-KWP records
RFC 5649 key wrapping and a 256-bit key in CBOM exports. None proves that an
application actually used the key. Similar but unknown labels remain unknown.
These changes are included in hosted cloud scans and the signed Python source
release. Previously compiled agent releases retain their original algorithm
registry until an updated binary has been built and qualified.
### Hybrid X-Wing relationships
For GCP `KEM_XWING`, the CBOM links the key to a composite KEM algorithm, which
in turn depends on ML-KEM-768 and X25519 algorithm components. These components
stay scoped to that key observation and are not exported as separate keys.
The export does not infer encoded key sizes, an independently verified draft
revision, implementation identity or runtime operation. The composite has no
invented CycloneDX algorithm-family value; its exact provider label and composition
remain explicit properties. This follows the composition in the
[GCP algorithm reference](https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm).
### Google Cloud SQL metadata
Choose **Cloud connections → Google Cloud SQL → Configure connection**. This is a direct hosted metadata connection; no endpoint agent or database password is required.
1. Enter the **database project ID** (for example, `production-databases`) and a connection name. The project ID selects the instances to inventory.
2. Enter the numeric **project number owning the workload identity pool**, its pool ID and provider ID. The identity pool can be in a different project from the databases.
3. Save and open **Show trust configuration**. Configure the OIDC provider with the displayed issuer, audience, `google.subject` mapping and exact connection-subject condition.
4. On the database project, create a custom IAM role containing only `cloudsql.instances.list`, then bind the displayed federated principal to that role. Enable the Cloud SQL Admin API. The person configuring IAM needs their normal administration permissions; the scanning identity does not need database administrator, login, connect, decrypt or user-management permissions.
5. Return to **Test access**. A successful test verifies the current saved scope without creating inventory. Then choose **Run scan**, follow operation progress and open the resulting database assets. Existing cloud scheduling and revocation controls also apply.
The collector retains configured TLS/client-certificate requirements and configured/used storage-key references. These are provider configuration, not a verified database session, TDE assessment, key algorithm or proof of PQC protection. Missing encryption fields remain unknown. Modern `sslMode` takes precedence over legacy `requireSsl`; contradictory legacy metadata remains flagged. SQL Server has different client-certificate semantics from PostgreSQL/MySQL. Provider response bodies, database passwords and user labels are not stored as evidence.
Inventory uses bounded, resumable pages. An unreachable-region or other provider warning prevents verification and complete inventory ingestion; the operation retains warning codes and discovered counts. Resolve provider availability/access issues and retry. Results are not an atomic snapshot of the project. Canonical project IDs are supported; legacy domain-scoped project IDs and AlloyDB require separate support.
API clients and SDKs use the existing cloud connection and operation endpoints with `provider: "gcp"`, `capability: "cloud-sql"`, `projectNumber`, `poolId`, `providerId` and `scope: {projectId}`. Omit KMS `resources` and `discovery` fields. Read the generated OpenAPI schema for the exact request. Cloud SQL metadata appears in CBOM under database and cloud-scope properties, separately from numerical risk scores.
References: [Google Cloud SQL permissions](https://docs.cloud.google.com/sql/docs/mysql/iam-permissions?hl=en), [instance listing](https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances/list), [TLS configuration semantics](https://docs.cloud.google.com/sql/docs/mysql/admin-api/rest/v1beta4/instances). Hosted plumbing and isolated acceptance are tested; a real customer-project authorization/scan is not implied by those checks.
## Azure SQL Database: logical-server inventory
In **Cloud connections**, choose **Azure SQL Database**. This hosted connection reads Azure Resource Manager metadata for one logical server and its databases. It needs no local agent, SQL password or inbound database connection. SQL Managed Instance, Azure Database for PostgreSQL/MySQL and sovereign Azure endpoints use separate APIs and are not covered by this option.
1. Enter the subscription ID, resource group and logical server name from the Azure SQL server overview. Enter the short server name, without `.database.windows.net`.
2. In the correct Microsoft Entra directory, create or select an app registration and its enterprise application (service principal). Enter its directory ID and application/client ID in QScan. Save the connection.
3. Open **Show trust configuration**. In the app registration, add a federated credential for an external issuer using the exact issuer, subject and audience displayed by QScan. The subject binds this workspace and connection; do not reuse another connection's subject. No client secret is required.
4. Have an Azure administrator create the displayed custom role and assign it to that application's service principal at the exact logical-server resource ID. The assignment uses the service principal object ID, which differs from the client ID. Its four actions are:
- `Microsoft.Sql/servers/read`
- `Microsoft.Sql/servers/databases/read`
- `Microsoft.Sql/servers/encryptionProtector/read`
- `Microsoft.Sql/servers/databases/transparentDataEncryption/read`
5. Allow permission propagation, then select **Test access**. A test reads metadata but creates no inventory. After successful verification, choose **Run scan**. Follow database discovery and TDE progress in the connection's operation history. Editing configuration clears verification.
The role has no data actions. Do not grant SQL administrator, Contributor, Key Vault decrypt or secret-read access to make this scan work. Federated token requests target ARM, using its documented `https://management.azure.com//.default` scope. They do not obtain SQL data-plane tokens.
### Interpret the results
Server minimum TLS is a configured policy, not proof of a negotiated session or cipher. Per-database TDE configuration is distinct from server and database-level protector references. A key URI does not establish its algorithm, PQC protection or successful key use. Enclave configuration does not prove that application columns are encrypted. Use an explicitly authorized database agent connection for engine/session evidence.
A denied or missing optional protector/TDE response remains an evidence gap. Verification can complete with those gaps; review them before relying on results. Server access or database-listing failure stops verification. Database lists are paginated and each database receives a separate TDE request, so large servers take longer. The bounded workflow retains progress and rejects stale/revoked work. It supports up to 100,000 discovered databases and 10,000 list pages within the operation deadline; exceeding a bound fails rather than reporting truncated inventory as complete. This is not an atomic Azure snapshot.
For authentication failures compare all three federated credential values and the directory/client IDs. For access denials inspect the role assignment's principal, server scope and read actions. For missing servers verify subscription/resource group/name. Optional database disappearance during a scan is recorded as missing evidence. Provider response bodies, passwords and administrator identities are not stored in normalized findings.
The implementation pins stable ARM API `2023-08-01`. Primary references: [server metadata](https://learn.microsoft.com/en-us/rest/api/sql/servers/get?view=rest-sql-2023-08-01), [database inventory](https://learn.microsoft.com/en-us/rest/api/sql/databases/list-by-server?view=rest-sql-2023-08-01), [server protector](https://learn.microsoft.com/en-us/rest/api/sql/encryption-protectors/get?view=rest-sql-2023-08-01), [database TDE](https://learn.microsoft.com/en-us/rest/api/sql/transparent-data-encryptions/get?view=rest-sql-2023-08-01) and [Entra scopes](https://learn.microsoft.com/en-us/entra/identity-platform/scopes-oidc). Use **Test access** to verify authorization against your Azure tenant before scanning.
### Historical selection provenance
New hosted cloud observations retain a `cloudScope` record in inventory and
immutable evidence. CBOM exports use `sectigo:cloud-scope:*` properties. The record
identifies the operation, connection revision, resource index, selected resource
count, and whether selection used explicit identifiers or paginated discovery.
For discovery it also records completed listing pages. Explicit selection has no
listing, so its listing-complete value is not applicable.
This describes selection when the observation was accepted. It does not certify
that every sibling resource was readable, that the overall operation succeeded,
or that the provider listing was an atomic account snapshot. A later read failure
leaves earlier valid evidence intact. Use the recorded operation ID to inspect
final status and per-resource errors. Historical observations are not backfilled
with selection claims that were never recorded.
## Azure PostgreSQL and MySQL Flexible Server
Choose **Azure PostgreSQL Flexible Server** or **Azure MySQL Flexible Server** in Cloud connections. Use the full-page form to name the connection and enter its subscription ID, resource group, server name (without a DNS suffix), Entra directory ID and application client ID. Each connection selects one Flexible Server. Single Server, SQL Managed Instance and sovereign Azure endpoints are separate integrations and are not covered by this option.
After saving, open **Show trust configuration**. In the selected Entra app registration, create the displayed federated credential using its exact issuer, workspace/connection subject and audience. The included Cloud Shell command uses your application client ID. For the role assignment, use the application's **service principal object ID**, which is different from the application client ID.
Create the displayed custom role and assign it at the selected server resource ID. PostgreSQL needs `Microsoft.DBforPostgreSQL/flexibleServers/read` and `Microsoft.DBforPostgreSQL/flexibleServers/configurations/read`. MySQL needs the equivalent two `Microsoft.DBforMySQL` actions. No data actions, database account, client secret or Key Vault data permission is needed. The service uses short-lived federated ARM credentials and reads only the selected server plus named TLS settings.
Run **Test access**, then **Run scan**. Testing checks metadata access without creating inventory. Scan progress distinguishes server/configuration reads and evidence gaps. A missing or denied server read fails verification. Missing or denied individual TLS settings remain visible as gaps; they never establish a secure default. A verified connection therefore does not mean all configuration evidence was available. Editing the connection clears verification; retest before scanning. Revocation stops future use, including results returned after revocation. Remove provider-side trust separately when retiring the connection.
The result separates key-management configuration from engine encryption and negotiated transport. PostgreSQL reads `require_secure_transport`, `ssl_min_protocol_version` and `ssl_max_protocol_version`; its pinned API does not supply an admitted current-value field. MySQL reads `require_secure_transport` and `tls_version`, retaining configured and current values separately. Pending-restart state is explicit. A configured TLS setting is not a successful connection, a key reference does not prove key usability, and neither proves PQC protection. Discovered server metadata never authorizes an automatic endpoint scan. Use an explicitly scoped agent database connection to collect private-network engine/session evidence.
### API, SDK and OAuth MCP
Create through `POST /api/v1/cloud-connections` with this configuration (replace identifiers):
```json
{
"name": "Production PostgreSQL",
"provider": "azure",
"capability": "flexible-database",
"directoryId": "11111111-1111-4111-8111-111111111111",
"clientId": "22222222-2222-4222-8222-222222222222",
"scope": {
"engine": "postgresql",
"subscriptionId": "33333333-3333-4333-8333-333333333333",
"resourceGroup": "production-data",
"serverName": "production-database"
}
}
```
Set `scope.engine` to `mysql` for MySQL. JavaScript `createCloudConnection(configuration)` and Python `create_cloud_connection(configuration)` accept this same structure. Use the existing revision-bound trust/test/scan/status/results methods; retain request IDs for retries. OAuth MCP exposes `cloud_capabilities`, `cloud_connections`, `cloud_connection`, `cloud_connection_trust`, `cloud_test_start`, `cloud_scan_start`, `cloud_operation_status` and result tools for saved connections. Configure the connection in the UI or API first. These tools retain existing tenant and role restrictions; an agent or relay identity does not gain cloud-administrator access. Inventory and CBOM retain the structured cloud database evidence with unknown cryptographic roles.
Configure the connection and use **Test access** to verify its scoped permissions before scanning. API versions are pinned to PostgreSQL `2024-08-01` and MySQL `2024-12-30`.
Primary references: [PostgreSQL server metadata](https://learn.microsoft.com/en-us/rest/api/postgresql/servers/get?view=rest-postgresql-2024-08-01), [PostgreSQL configuration metadata](https://learn.microsoft.com/en-us/rest/api/postgresql/configurations/get?view=rest-postgresql-2024-08-01), [MySQL server metadata](https://learn.microsoft.com/en-us/rest/api/mysql/servers/get?view=rest-mysql-2024-12-30), [MySQL current/configured values](https://learn.microsoft.com/en-us/rest/api/mysql/configurations/get?view=rest-mysql-2024-12-30). Reviewed November 2, 2026.
### Reading large discovery results through MCP
`cloud_operation_results` accepts `after` from -1 through 99,999 for discovered inventories. Start at -1 and follow each returned `nextAfter` exactly until null, including zero. Pages remain limited to 100 results. The tenant API checks the actual operation scope; accepting a cursor does not grant access to another operation. Older downloadable MCP bundles may reject cursors above 199; use the hosted OAuth MCP endpoint until an updated source bundle is published.
## Azure SQL Managed Instance
Choose **Cloud connections ? Azure SQL Managed Instance**. This is a direct hosted ARM metadata connection, distinct from Azure SQL Database. No agent, SQL login or client secret is required.
1. Enter a connection name, subscription ID, resource group and the short managed instance name from Azure. Supply its Entra directory ID and application client ID.
2. Save, then open **Show trust configuration**. Add the exact displayed issuer, subject and audience to the application's federated credentials. The subject is unique to this workspace connection.
3. Create a custom role with the four displayed read actions and assign it to the application's service principal at the selected instance resource ID:
- `Microsoft.Sql/managedInstances/read`
- `Microsoft.Sql/managedInstances/databases/read`
- `Microsoft.Sql/managedInstances/encryptionProtector/read`
- `Microsoft.Sql/managedInstances/databases/transparentDataEncryption/read`
4. Run **Test access**. After successful verification, run **Run scan**. Progress reports databases discovered, TDE checks completed and evidence gaps. Test access does not create inventory.
No data actions, SQL administrator access, Contributor access, Key Vault secret retrieval or decryption permissions are requested. The connection uses ARM over HTTPS; it does not need a route to the private SQL endpoint. Inspecting an actual SQL session is a separate, explicitly configured agent database scan.
The inventory records configured minimum TLS, instance protector references/rotation metadata and each database's TDE configuration. Missing or denied protector/TDE reads remain explicit evidence gaps. Configuration does not prove negotiated TLS, current engine encryption, key algorithm, Always Encrypted or PQC protection. Unrelated properties, database rows and credentials are excluded. SQL Database per-database protector/enclave fields are not reused for Managed Instance.
Large inventories are paginated with resumable progress. Revoking the connection or changing its configuration prevents in-flight results from being accepted. Saving edits clears verification; test again before scanning. Scans do not claim an atomic provider snapshot. Public Azure is supported; sovereign endpoints are not covered by this connector.
API, SDK and OAuth MCP clients use the existing cloud connection methods with `provider: "azure"`, `capability: "sql-managed-instance"`, `directoryId`, `clientId`, and `scope: {subscriptionId, resourceGroup, instanceName}`. Omit KMS resources/discovery and SQL Database serverName. Results appear in inventory and CBOM with engine `azure-sql-managed-instance`, separate from numerical risk scores. Consult the generated OpenAPI schema for exact payloads.
API baseline: Microsoft stable `2023-08-01`, verified 2026-11-02: [instance](https://learn.microsoft.com/en-us/rest/api/sql/managed-instances/get?view=rest-sql-2023-08-01), [databases](https://learn.microsoft.com/en-us/rest/api/sql/managed-databases/list-by-instance?view=rest-sql-2023-08-01), [protector](https://learn.microsoft.com/en-us/rest/api/sql/managed-instance-encryption-protectors/get?view=rest-sql-2023-08-01), [TDE](https://learn.microsoft.com/en-us/rest/api/sql/managed-database-transparent-data-encryption/get?view=rest-sql-2023-08-01). Isolated lifecycle and provider-response tests do not establish successful authorization in your Azure account; real-account acceptance was waived for this delivery and has not been performed.
---
# Automate cloud connections with the SDKs
Source: https://qscan.dev/docs/cloud-sdk
Use the JavaScript and Python SDKs to manage connections and inspect hosted discovery. Both are included in the signed discovery bundle. [Verify the bundle](https://qscan.dev/downloads/VERIFY.txt) before using it. Run examples from its extracted root.
These methods call your workspace API. They do not require a collector or local AWS/GCP/Azure SDK. Provider authentication remains in the hosted control plane. Supply a scoped workspace credential from your secret store, never from source control or a public browser application.
## Roles and availability
Administrators configure connections, retrieve trust instructions and run access tests. Administrators and analysts can scan verified connections. Viewers can read connections and results. Cancellation remains subject to the operation's ownership and administrator permissions.
Read `cloudCapabilities()` / `cloud_capabilities()` first. `identityPublished` permits trust setup; `executionEnabled` controls test/scan submission. A published issuer does not establish provider access. Cloud test and scan submission is enabled on qscan.dev; the selected account must grant the documented trust and read permissions.
## JavaScript
Save this as an `.mjs` file. Set `QR_TOKEN` and `QR_CONNECTION_ID` for an existing connection.
```js
import {QuantumReady} from './sdk/javascript/index.mjs';
const client = new QuantumReady({
endpoint: process.env.QR_ENDPOINT || 'https://qscan.dev',
token: process.env.QR_TOKEN,
});
const connection = await client.cloudConnection(process.env.QR_CONNECTION_ID);
const capabilities = await client.cloudCapabilities();
if (capabilities.identityPublished) {
const trust = await client.cloudConnectionTrust(connection.id);
console.log('Provider trust subject:', trust.subject);
}
if (capabilities.executionEnabled) {
// Retain this request in your integration's job state before sending.
const request = {
expectedRevision: connection.revision,
requestId: crypto.randomUUID(),
};
const operation = await client.testCloudConnection(connection.id, request);
console.log('Access test reference:', operation.id);
console.log(await client.cloudOperation(operation.id));
} else {
console.log('Hosted tests and scans are not activated.');
}
```
Submission returns a queued operation, not completed verification. Poll `cloudOperation(id)` with your own interval and deadline. After completion, fetch the connection again and check its current revision and verification state. Use `scanCloudConnection(connection.id, request)` with a **new retained request ID** for an intentional scan of the verified revision.
```js
for await (const result of client.allCloudOperationResults(operationId, {limit: 50})) {
console.log(result);
}
```
## Python
The Python SDK has no third-party dependencies. Set the same environment variables.
```python
import os
import uuid
from sdk.python.quantum_ready import QuantumReady
client = QuantumReady(os.getenv('QR_ENDPOINT', 'https://qscan.dev'), os.environ['QR_TOKEN'])
connection = client.cloud_connection(os.environ['QR_CONNECTION_ID'])
capabilities = client.cloud_capabilities()
if capabilities['identityPublished']:
trust = client.cloud_connection_trust(connection['id'])
print('Provider trust subject:', trust['subject'])
if capabilities['executionEnabled']:
# Retain these values in your integration's job state before sending.
revision = connection['revision']
request_id = str(uuid.uuid4())
operation = client.test_cloud_connection(connection['id'], revision, request_id)
print('Access test reference:', operation['id'])
print(client.cloud_operation(operation['id']))
else:
print('Hosted tests and scans are not activated.')
```
Use `scan_cloud_connection(connection_id, expected_revision, request_id)` after successful verification. Inspect results with `all_cloud_operation_results(operation_id, limit=50)`.
## Connection lifecycle
Pass the provider configuration described in [Cloud connections](../cloud-connections/). Mutations require the revision you reviewed. Updating clears verification and requires another access test.
| Task | JavaScript | Python |
| --- | --- | --- |
| List page | `cloudConnections({after, limit})` | `cloud_connections(after=None, limit=50)` |
| Iterate connections | `allCloudConnections({limit})` | `all_cloud_connections(limit=50)` |
| Read | `cloudConnection(id)` | `cloud_connection(id)` |
| Create | `createCloudConnection(configuration)` | `create_cloud_connection(configuration)` |
| Update | `updateCloudConnection(id, revision, configuration)` | `update_cloud_connection(id, revision, configuration)` |
| Revoke | `revokeCloudConnection(id, revision)` | `revoke_cloud_connection(id, revision)` |
| Trust | `cloudConnectionTrust(id)` | `cloud_connection_trust(id)` |
| History page | `cloudOperations(id, {after, limit})` | `cloud_operations(id, after=None, limit=50)` |
| Iterate history | `allCloudOperations(id, {limit})` | `all_cloud_operations(id, limit=50)` |
| Status | `cloudOperation(operationId)` | `cloud_operation(operation_id)` |
| Result page | `cloudOperationResults(operationId, {after, limit})` | `cloud_operation_results(operation_id, after=-1, limit=50)` |
| Iterate results | `allCloudOperationResults(operationId, {limit})` | `all_cloud_operation_results(operation_id, limit=50)` |
| Cancel | `cancelCloudOperation(operationId)` | `cancel_cloud_operation(operation_id)` |
Connection/history cursors are opaque strings. Result cursors are numeric: **0 is valid**, and **null/None ends pagination**. Iterators preserve these distinctions and reject repeated cursors. They paginate existing records; they do not wait for running operations.
## Retry, conflicts and partial results
Neither SDK automatically retries mutations. JavaScript test/scan methods require `{expectedRevision, requestId}`; Python requires both arguments. Generate the ID once and persist it before sending. If submission loses its response, reuse the **same ID, revision, connection and action**. Inspect history if you cannot recover the request. A fresh ID creates a separate intentional operation.
JavaScript HTTP failures expose `error.status` and, when supplied, `error.retryAfterSeconds`. Python JSON requests raise `urllib.error.HTTPError` with `error.code`; close the error response after handling it. Respect `Retry-After`. A 409 revision conflict requires reviewing the current configuration, not automatically overwriting another administrator's change. A 503 execution gate is not a provider permission failure.
Check terminal status (`completed`, `failed`, `cancelled`) and each resource result. Failed or cancelled scans can retain findings accepted earlier. Cancellation prevents further acceptance but does not erase evidence or revoke cloud-side trust. Revoke the provider trust separately when necessary.
## Custom agent process identity
Both SDKs support agent heartbeats and the scan lease lifecycle. Use an enrolled agent credential. Generate one process UUID at startup, send it in `agentHeartbeat({instanceId, scannerVersion, platform})` / `agent_heartbeat(...)`, and reuse it in each claim. Generate a new claim UUID per attempt; retain that same claim UUID if retrying a lost response. The helpers never retry mutations automatically.
| JavaScript | Python | Purpose |
| --- | --- | --- |
| `agentHeartbeat(runtime)` | `agent_heartbeat(runtime)` | Report process and runtime metadata |
| `claimJob(claimId, instanceId)` | `claim_job(claim_id, instance_id)` | Claim an assigned scan with stable process identity |
| `renewJob(jobId, leaseToken)` | `renew_job(job_id, lease_token)` | Keep an active lease current |
| `completeJob(jobId, result)` | `complete_job(job_id, result)` | Report completed or failed work with the current lease token |
The completion result contains `leaseToken`, `status`, and the accepted `observations` count. Discovery must enforce the local allowlist, maintain the lease, and stop work when ownership is lost. These helpers are transport methods, not a complete agent loop; use the provided scanner for the full implementation. Report the real runtime distribution and version. Claim identity is correlated evidence, not binary attestation.
## Retire and archive a connection
Revoke first, then archive using the returned revision. The operations preserve evidence and history. Restore changes list visibility only; it never restores trust or scan access.
```js
const revoked = await client.revokeCloudConnection(connection.id, connection.revision);
const archived = await client.archiveCloudConnection(revoked.id, revoked.revision);
for await (const item of client.allCloudConnections({archived: true})) {
console.log(item.id, item.state);
}
// When intentionally restoring visibility:
await client.unarchiveCloudConnection(archived.id, archived.revision);
```
Python equivalents are `archive_cloud_connection(id, expected_revision)`, `unarchive_cloud_connection(id, expected_revision)` and `all_cloud_connections(archived=True)`. Ordinary connection lists exclude archived entries. Direct reads and operation history remain available. Retrying the latest archive/restore action with its original revision is idempotent; a stale revision after subsequent changes requires rereading the record.
## Retained resource context
New per-resource outcomes include `resource` (the exact configured identifier),
`provider`, `connectionRevision` and `checkedAt`. These values are recorded when the
resource outcome is accepted. They remain unchanged if the connection is subsequently
edited, revoked or archived. Failed outcomes also retain this context; access tests
still do not store provider metadata observations.
JavaScript, Python and the OAuth MCP `cloud_operation_results` tool return these
fields with each result. They are optional for legacy records. Do not infer a missing
identifier by indexing the current connection scope unless its revision equals the
operation's `connectionRevision`. Follow every result page to assess full coverage.
## Recurring scans
Read the connection and schedule immediately before authorizing. This example delegates recurring scanning to the current administrator credential; its expiry or revocation ends that authority. Use a managed credential with an appropriate lifetime and rotate through explicit reauthorization. The SDK does not extend credentials.
```js
const connection = await client.cloudConnection(process.env.QR_CONNECTION_ID);
const {schedule} = await client.cloudSchedule(connection.id);
await client.manageCloudSchedule(connection.id, {
operation: 'save',
expectedRevision: schedule?.revision || 0,
expectedConnectionRevision: connection.revision,
intervalSeconds: 86400,
confirmDelegation: true,
});
```
Python exposes `cloud_schedule(connection_id)` and `manage_cloud_schedule(connection_id, configuration)` with the same request fields. To pause or remove, send `operation: 'pause'` or `'remove'` and the current `expectedRevision`. Read again after an uncertain response; do not replay a save blindly. Changes invalidate active scheduled work at its next authorization check. Only verified connections can be scheduled, intervals are one hour to 30 days, and overlapping work is skipped. See [recurring scan behavior](../cloud-connections/#keep-inventory-current-with-recurring-scans).
OAuth MCP clients can read `cloud_schedule` and request `cloud_schedule_manage`. Saving requires explicit administrator delegation; a tool must not infer that approval from a request to run a single scan.
## Permanently delete a revoked connection
Deletion requires administrator access and explicit confirmation. Read the current revision before starting, then retain that revision for retries after an uncertain response.
```javascript
const current = await client.cloudConnection(connection.id);
const result = await client.deleteCloudConnection(current.id, current.revision, true);
if (result.deleted !== true) throw new Error('Deletion was not confirmed');
```
```python
current = client.cloud_connection(connection_id)
result = client.delete_cloud_connection(current['id'], current['revision'], True)
assert result['deleted'] is True
```
The connection must already be revoked; an archived revoked connection can also be deleted. The API is `POST /api/v1/cloud-connections/{id}/delete` with `expectedRevision` and `confirm: true`. The MCP tool is `cloud_connection_delete`, with the same fields plus `id`.
Settings and schedules are removed, unfinished operations are cancelled, and in-flight results cannot publish after deletion. Existing findings, audit and operation results remain; `cloudOperations(id)` / `cloud_operations(id)` still enumerate retained history. Provider-side trust and already-issued token validity are unchanged. A minimal deletion receipt supports same-revision retries and prevents reuse of the original creation request ID.
---
# Collector capture report API
Source: https://qscan.dev/docs/collector-capture-reports
Collector reports send normalized findings from a local capture. The original
PCAP or PCAPNG stays on the collector. Use [hosted capture analysis](../capture-analysis/)
when you want to upload the capture itself for processing.
:::note Version requirements
Collector report uploads require platform 0.51.316 or newer and scanner 0.26.52.
The Python bundle and Windows native 0.26.52 include this protocol. Linux native
0.26.50 and older agents retain their earlier upload behavior;
check the installed version before relying on partial-report uploads.
:::
## Choose the credential
For standalone imports, use a workspace **ingestor**, analyst or administrator
credential. For a managed capture job, use the agent credential that holds its
current lease. The scanner version must match that agent's claimed version.
An agent cannot submit a standalone report or substitute another agent's job.
The updated Python collector includes file identity even when no findings remain.
Save a local report with `python scanner/qr.py capture capture.pcap --output report.json`,
then send its findings with `python scanner/qr.py upload report.json`. A partial
scan exits with code 2 after writing the report; inspect it before uploading.
The upload command negotiates protocol 1 and does not fall back to an upload that
would discard coverage. It never rereads the raw capture while sending findings.
These commands require the updated collector and server release noted above.
Retrying the same saved report uses a stable request ID and resumes accepted
chunks. Changed metadata or a different managed attempt produces a different ID.
Do not edit a report while retrying its upload. The JavaScript and Python SDKs
also expose the six collector-report control operations for custom integrations.
For a standalone report that was cancelled or expired, start a new upload with
`python scanner/qr.py upload report.json --request-id NEW_UUID`, replacing
`NEW_UUID` with a newly generated UUID. Keep that UUID for retries of the new upload.
Managed reports require a new authorized job attempt after cancellation or expiry.
The credential that creates the report owns subsequent upload-control status,
chunk, completion and cancellation requests. Workspace administrators, analysts
and viewers can separately review report metadata and coverage. Keep credentials and lease tokens in headers or JSON
bodies, never URLs. Revocation prevents further publication.
## Upload a report
1. Read `GET /api/v1/collector-capture-capabilities` and require protocol version 1.
2. Serialize each observation as one UTF-8 JSON line, ending with a newline.
Reject duplicate JSON keys. Divide the stream only at finding boundaries.
3. Calculate SHA-256 over the exact concatenated line bytes, including newlines.
This is `reportSha256`; it is different from the original file's `captureSha256`.
4. Create `POST /api/v1/collector-captures` with `{manifest, leaseToken?}`.
The manifest includes a stable `requestId`, source, scanner, capture digest and
byte count, report digest and byte count, chunk and finding counts, coverage,
and an optional managed `jobId`. Preserve these values for retries.
5. Send ordered chunks to `POST /api/v1/collector-captures/{id}/chunks` as
`{chunk: {index, data}, leaseToken?}`. Indexes start at zero; `data` is base64
of the chunk's exact bytes. Staging does not publish inventory findings.
6. Call `POST /api/v1/collector-captures/{id}/complete` with `{leaseToken?}`.
Completion checks the digest, counts, coverage and certificate links across
the entire report, then writes inventory, immutable evidence and archive work.
Managed job completion is part of that same transaction. A client using this
protocol must not submit a second job-completion request after the report succeeds.
Read `result.jobStatus`: it is `completed` or `partial`. The report's own
`status: completed` means processing finished; inspect `analysisComplete` to
understand coverage. Zero findings can still be a partial result.
The API records collector-declared capture identity. It cannot independently
verify the contents, retention or deletion of a file that stayed on the collector.
Passive findings do not authenticate peers or prove completed TLS handshakes.
## Limits
| Limit | Maximum |
| --- | ---: |
| Original local capture | 64 MiB |
| Encoded finding stream before base64 | 8 MiB |
| Decoded bytes per chunk | 256 KiB |
| Findings per chunk | 200 |
| Chunks per report | 128 |
| Findings per report | 5,000 |
| Active reports per workspace | 2 |
| Report history per workspace | 10,000 |
| Upload lifetime | 1 hour |
All limits apply together. Never split a certificate-linked report into separate
reports merely to bypass a size limit. A zero-finding report has zero chunks,
zero stream bytes and the SHA-256 digest of the empty stream, with explicit coverage.
## Resume, cancel and diagnose
Use `POST /api/v1/collector-captures/{id}/status` with `{leaseToken?}` to read
`receivedChunks`, `receivedBytes`, `receivedFindings`, status and expiry. Retry
creation with the original request ID and metadata. An identical chunk retry
does not increment counts; changing a previously accepted chunk is rejected.
A repeated successful completion returns the original receipt.
Honor `Retry-After` on rate-limit responses. After an interrupted request, inspect
status before resending. Never assume a lost response means the transaction failed.
Use `POST /api/v1/collector-captures/{id}/cancel` to discard staged findings.
Expiry also discards them. Cancellation does not separately cancel a managed job;
use the job controls when you intend to stop that scan. A cancelled report cannot
be resumed, and a managed attempt cannot be reused for a different report.
If completion rejects missing certificate references, a changed digest or count
mismatch, fix the report writer rather than deleting individual findings.
An expired lease, different scanner claim or new job attempt requires new work
under the correct lease. Older evidence is retained without replacing a newer
inventory snapshot. Completed reports retain coverage in evidence and CBOM exports.
## Review reports in the workspace
Open **Capture analysis ? Collector reports** to review local report history.
Select a report to see received chunks and finding counts, coverage gaps and
capture/report references. **Uploaded captures** continues to show hosted
processing and raw-upload cleanup separately.
Receiving findings and awaiting confirmation are distinct states: findings remain
staged until the collector confirms completion. An interrupted managed upload
needs a new authorized scan attempt. Expired reports show when cleanup is still
pending. A partial report with zero findings is explicitly incomplete.
Workspace read-only history uses `GET /api/v1/collector-captures` and
`GET /api/v1/collector-captures/{id}`. It requires an administrator, analyst or
viewer role and never returns upload credentials, lease hashes or staged finding
bodies. Pagination is bounded to 100 reports and uses the returned `nextCursor`
as `before`; the default page size is 20. Agents and standalone ingestor tokens
use their own POST status operation instead of workspace-wide history.
Opening a collector report shows loading feedback beside capture history. If the report cannot be read, choose **Retry report** in that same area. You can close the details while a request is pending; a late response will not reopen them. Switching reports ignores responses from the previous selection.
---
# Database cryptography discovery
Source: https://qscan.dev/docs/database-scanning
:::note Delivery status
The current unified packages include native agent **0.27.4** for Windows x86_64, Linux x86_64 and macOS arm64. Database scanning is available through local commands and workspace-managed jobs. The packages include guided setup for multiple connections and extension of an existing policy, introduced in 0.27.3. Native packages include their database drivers; no system Python installation is required. Older installed agents may need an update before these commands are available.
The packages remain signed preview releases. The supported engine boundaries below describe what the evidence can establish; a successful scan does not certify an entire database deployment as quantum ready.
:::
Database discovery examines cryptographic metadata, rather than application rows. A connection is authorized locally on the collector. The workspace selects an opaque connection ID; a queued scan cannot replace the target, credential file or optional metadata permissions.
## Enroll a new database-only collector
In **Agents & sensors**, choose **Enroll agent**, expand **Advanced: enroll an individual agent**, and select **Database cryptography**. Review the local access requirements, give the collector a name, and save its masked credential in your approved secret store. **Continue to configuration** opens scanner approvals and the database-policy setup guide; it does not send you through a network-target wizard.
This creates the workspace identity and database approval. You must still install a compatible runtime, authorize connections locally, protect credentials and validate readiness. For a service deployment, prepare the policy and service-account permissions before starting the service.
Bulk deployment grants currently do not accept the database capability. Use individual enrollment for a database-only collector, or follow the existing-agent approval workflow below. Do not interpret a successful unified-package download as authorization to scan a database.
## Enable database scanning on an existing agent
An agent enrolled before database scanning was available may be approved only for its original scanner types. Installing a newer runtime does not silently expand that approval.
1. As a workspace administrator, open the agent's **Configure agent** page, then **Review scanner approvals**.
2. Select **Databases**, enter the reason for approval, and choose **Approve selected scanners**. Approval history records the change and administrator. If another administrator changed approvals, reload and review before submitting again.
3. On the host, configure the protected database policy and credentials using the instructions below. Keep the policy bound to the enrolled workspace and readable by the actual service account.
4. Check local readiness, start the configured agent, and wait for database readiness in the workspace. Approval alone does not mean the driver, permissions or connection are ready.
5. Submit a database scan using the locally generated connection UUID and inspect its evidence and diagnostics.
Scanner approval preserves the agent's identity. It does not grant database privileges, supply credentials, change target allowlists, enable a remote-scanner pool, authorize relay transit, resume updates or start a scan. Existing approvals cannot be removed from this additions workflow; pause scans or revoke the agent when access must be stopped. Read-only roles can inspect approvals and history but cannot add permissions.
Automation uses `GET/POST /api/v1/agents/{id}/capability-approvals`, JavaScript `agentCapabilityApprovals` / `approveAgentCapabilities`, Python `agent_capability_approvals` / `approve_agent_capabilities`, or OAuth MCP `agent_capability_approvals` / `agent_capabilities_approve`. Submit the current `revision` as `expectedRevision`, an explicit `add` list and a `reason`; follow `nextBefore` for older history. An uncertain response requires reading the current state before retrying.
## Queue a database job through the API, SDK or MCP
First confirm the intended workspace, agent database approval and fresh
`databaseReady` runtime status. Read the connection UUID from the host's protected
policy using `database list`. The workspace receives only that UUID, not database
credentials, hostnames or a replacement policy.
Submit `POST /api/v1/jobs` with this shape after replacing all UUID placeholders:
```json
{
"name": "Reviewed database discovery",
"kind": "database",
"target": "",
"agentId": "",
"requestId": ""
}
```
JavaScript uses `createJob(input)` and `job(jobId)`; Python uses
`create_job(input)` and `job(job_id)`. Hosted OAuth and local MCP use
`agent_job_start` with the same fields and `agent_job_status` with the returned
job ID. Administrators and analysts can submit; viewers can inspect but cannot
start a job. A database-ready heartbeat does not prove database authentication,
TLS verification or metadata permissions: those are checked during execution.
Preserve the request UUID and identical input after an uncertain response.
Changed scope with the same request UUID is a conflict, not a replacement job.
Poll the exact job until terminal, then read findings, diagnostics and coverage.
A partial result can contain useful evidence; zero findings does not mean safe.
Use `agent_job_cancel` or the API cancellation operation to stop authorized work;
accepted observations remain historical. See [Create a discovery job](../api/operations/createJob/)
and the [SDK setup guide](../sdk-setup/).
## What the agent examines
| Database | Evidence collected | Boundaries |
| --- | --- | --- |
| PostgreSQL | Current-session TLS and visible server settings | An ordinary account can see its own session. Broader settings visibility is optional. Missing settings remain partial evidence. |
| MySQL | Current-session TLS, selected settings and optional tablespace encryption counts | No application table contents. Tablespace visibility depends on the account's permissions. |
| Microsoft SQL Server | Session encryption, optional TDE state and aggregate Always Encrypted column metadata | TDE and column inspection are separately enabled locally. Metadata visibility does not prove that applications use encryption correctly. |
| SQLite | Read-only runtime and schema readability | Does not establish disk encryption or verify every database page. |
| SQLCipher | Selected format's encryption metadata and schema readability with the supplied passphrase | Formats 1-4 are tested. Raw-key syntax and custom cipher parameters are not supported. |
These observations do not establish post-quantum readiness by themselves. Unknown key establishment, authentication and storage-encryption context remain explicitly unknown or not assessed.
## Connection and credential controls
Server connections require an explicit hostname, approved IP address, port, database name and local CA file. The collector verifies TLS identity and trust before sending database credentials. It does not silently retry with plaintext transport or accept an untrusted certificate.
Policy and credential files must have protected parent directories and private file permissions. Run diagnostics as the actual agent account: a successful check in an administrator's session does not prove that a service can read the same files.
The published Windows agent supports user-bound DPAPI credential envelopes. Create them under the identity that runs the agent. An envelope created under an administrator's identity cannot simply be handed to a different service account. Native agent 0.27.2 and source bundle 0.51.495 or newer also offer explicit elevated setup for the dedicated Windows service, described below. Existing permission-protected plaintext credential files are still accepted. Linux and macOS credential JSON and its backups contain plaintext credentials; protect them with host access controls and encryption at rest. Credential rotation remains administrator-managed.
Credentials travel to a bounded worker through a private input pipe, not command-line arguments. Worker output contains selected metadata. Driver errors are sanitized rather than exposing connection strings or secret values. Collection uses a deadline and platform memory limits; revoking or changing local authorization discards the result before upload.
## Guided local setup
Run these commands as the account that will run the agent. Use a new, existing private directory with protected parents. The wizard refuses to overwrite a policy, replace credentials or adopt an untrusted directory. Native agent 0.27.2 includes these commands; no system Python or separate database driver installation is required. Run from the extracted agent runtime directory and retain its accompanying files.
Windows PowerShell:
```powershell
& {
$databaseDirectory = Join-Path $env:LOCALAPPDATA 'QScanDatabase'
New-Item -ItemType Directory -Path $databaseDirectory -ErrorAction Stop | Out-Null
$databaseOwner = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
icacls.exe $databaseDirectory /inheritance:r /grant:r "*${databaseOwner}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F'
if ($LASTEXITCODE -ne 0) { throw 'Could not protect the database directory' }
.\quantum-ready.exe database configure --directory $databaseDirectory --tenant
}
```
Linux or macOS terminal:
```bash
database_directory="$HOME/.qscan-database"
mkdir -m 700 "$database_directory" &&
./quantum-ready database configure --directory "$database_directory" --tenant
```
These examples create a fresh private directory for the current foreground-agent
account before starting the wizard. If the directory already exists, stop and
inspect it: use the existing policy's `list` or `check` commands, or choose a new
directory for policy extension. Do not delete existing credentials to rerun setup.
On Windows, run the commands together and stop if directory creation or ACL setup
fails. These commands are **not** service-account provisioning: use the dedicated
Windows service procedure below, or provision POSIX files under the actual service
identity. Running the ordinary wizard with `sudo` creates root-owned credentials
that a restricted service may be unable to read.
The directory must exist and be writable only by the intended account.
Use the workspace UUID shown by the agent configuration, not the workspace name.
For the optional Python source distribution, replace the native executable with
`python scanner/qr.py` in the commands below; its separate runtime dependencies
still apply.
The wizard offers PostgreSQL, MySQL, SQL Server and SQLite/SQLCipher. It asks for the exact TLS hostname, approved destination IP, port, database and CA file for server connections. Additional TDE, Always Encrypted and tablespace metadata are separate opt-ins. SQLCipher requires an explicit file-format version. Passwords are entered twice without terminal echo and are never command-line arguments. Windows writes a user-bound DPAPI envelope with a protected ACL; Linux and macOS write private credential JSON under protected parents. These POSIX files and their backups contain plaintext credentials; protect them with host access controls and encryption at rest.
Saving prints the generated connection UUID and `databasePolicyFile` setting to add to the agent JSON configuration. It then runs local preflight without making a database connection. If a dependency is missing, configuration remains saved and preflight exits 2; fix the runtime and rerun the check instead of rerunning creation. Configure does not enroll or restart a service. Mac agent 0.27.2 has passed compiled setup, connection listing and selected preflight, plain SQLite and SQLCipher formats 1-4, and live PostgreSQL/MySQL/SQL Server foreground fixtures. These local commands are also verified in Windows and Linux agent 0.27.2.
```bash
./quantum-ready database list --policy --tenant
./quantum-ready database check --policy --tenant
./quantum-ready database scan --policy --tenant --connection
```
In Windows PowerShell, use `.\quantum-ready.exe` in place of `./quantum-ready`.
`database list` shows locally authorized connection IDs; it does not connect to a
server. `database check` checks local readiness. Only `database scan` connects to
the selected database. Never put a password into any of these arguments.
The scan performs one bounded, locally authorized metadata inspection and prints normalized JSON. It does not upload anything. Exit 0 means the selected scope completed; exit 2 means partial evidence or failure, so read the report or diagnostic. In particular, unsupported SQLite cipher metadata remains partial rather than being interpreted as encryption disabled. After local validation, configure/restart the enrolled agent and select the connection UUID in the workspace database job form. A different service identity needs its own readable credentials; the wizard does not bypass that boundary.
### Provision the Windows service
This option is available in native agent 0.27.2 and source bundle 0.51.495 or newer. Disposable Windows service-identity tests verified authorized access, unrelated-identity denial and wrong-engine refusal. Do not use an administrator's ordinary user-bound DPAPI credential for the Windows service.
From an elevated PowerShell terminal, use an existing protected directory and the workspace UUID of the enrolled agent:
```powershell
.\quantum-ready.exe database configure --windows-service --directory "C:\ProgramData\SectigoQuantumReady\database" --tenant
```
The directory must already exist with protected parents. The wizard checks this before requesting a password, asks for the password twice without echo, and exclusively creates new policy and credential files. It grants the dedicated `SectigoQuantumReady` service read access; SYSTEM and administrators retain full access. It never overwrites an existing policy or credential. This does not grant database permissions, enroll the agent, update its configuration or restart it.
The credential is encrypted with machine-bound DPAPI and isolated by the file ACL. Machine-bound DPAPI does not itself isolate one local account from another: another local user who obtains the encrypted blob and its context could decrypt it on that host. Protect backups and host access. Local administrators and SYSTEM are outside this protection boundary. The unrelated relay service receives no credential access.
A successful save returns `saved: true`, `ready: false`, `readiness: pending-service-check` and `databaseConnectionAttempted: false`. This is an honest handoff, not a successful connection test. Add the printed `databasePolicyFile` to the installed agent's JSON configuration, restart through the supported service manager, and inspect that agent's database readiness in the workspace. Once ready, submit a database job for the generated connection UUID and inspect the job's evidence and diagnostics. Local readiness does not establish network reachability, TLS trust or database authentication.
Do not try to sign in interactively as the virtual service account or interpret an administrator's `database check` as service readiness. The service must perform its own check. If readiness fails, inspect the local policy, its tenant ID, file/parent permissions, CA file access and the installed runtime. Keep the encrypted credential out of support bundles.
### Find the connection that needs attention
Native agent 0.27.2 includes a local connection list and an optional connection selector for preflight on Windows, Linux and macOS. Run them under the actual agent identity. In the following commands, use `./quantum-ready` on Linux/macOS or `.\quantum-ready.exe` in Windows PowerShell:
```sh
./quantum-ready database list --policy --tenant
./quantum-ready database check --policy --tenant --connection
```
The list reports each authorized UUID, engine, readiness code and remediation message. It does not print target paths, server addresses, usernames or passwords. A broken connection does not hide the readiness result for another connection. Exit 2 means at least one listed connection is not ready; without `--connection`, `check` still checks the complete policy. These are local permission, target and driver checks, not database authentication or TLS tests. A changed policy during listing requires another check. Agent 0.27.2 creates one connection per new policy. Agent 0.27.3 adds the guided multi-connection and extension workflow below. Windows service provisioning is included in native agent 0.27.2 as described above.
Creation failures leave any already-created protected files for inspection; they are never silently overwritten or deleted. No secret is written before destination permissions have been checked.
### Multiple connections and policy extension
These options require **native agent 0.27.3 or source bundle 0.51.503 or newer**.
Existing single-connection commands remain available.
Use `--connections 3` to enter three new connections in one wizard. Each connection
has its own engine, exact destination, credential and optional metadata permissions.
The wizard validates all entries before a single save confirmation; cancellation
or an invalid entry writes nothing. The combined policy is limited to 256 entries.
To add connections to an existing policy, choose a **new protected output directory**:
```bash
./quantum-ready database configure --directory /absolute/private/database-next --tenant --extend-policy /absolute/private/database-current/database-policy.json --connections 2
```
For the dedicated Windows service, run elevated and add `--windows-service`:
```powershell
.\quantum-ready.exe database configure --windows-service --directory "C:\Private\database-next" --tenant --extend-policy "C:\Private\database-current\database-policy.json" --connections 2
```
Extension retains every existing connection UUID, target, metadata permission and
credential-file reference. It adds the requested new connections without rewriting
the original policy or credentials. **Keep the old credential directories:** the
new policy still references those files. The wizard rejects another workspace,
duplicate IDs, too many entries or a source policy changed during setup.
Saving does not activate the policy. Run readiness checks under the actual agent
identity, explicitly update `databasePolicyFile` using the supported service
configuration workflow, then check workspace readiness before submitting scans.
Existing job connection IDs remain valid after activation. Windows service setup
reports pending service readiness rather than pretending an administrator's
session proves service access. On macOS use the managed configuration transaction
below. Keep the previous policy for rollback, but never restore revoked access
without an explicit administrator review.
## Understanding local diagnostics
### Managed macOS configuration update
Use the current macOS unified package with installer 0.51.495 for this workflow. Do not edit the installed `agent.json` or its installation hash manually: managed startup checks that binding. The following commands are unavailable in older installer 0.51.433.
After provisioning a local database policy readable by the dedicated scanner account, stop the scanner and explicitly disable its update schedule and local update approval. Prepare a protected root-owned copy of the complete installed agent JSON, changing only `databasePolicyFile` to the policy's absolute path. Keep every enrollment, relay, credential and other scan-scope field unchanged. The input file must use the installer's protected-input permissions (root:wheel, mode 0400 or 0600, no granting ACL or writable parent).
```sh
sudo ./Deploy-QuantumReady.sh scanner-service configure-database --config /private/scanner-with-database.json
sudo ./Deploy-QuantumReady.sh scanner-service status
```
Configuration success does not prove database access. The service remains stopped and updates remain disabled. Run the installed agent's `macos-scanner-service --preflight-only` command with `sudo`: it validates the managed installation and drops to the dedicated scanner account before local checks. Use the executable in the exact installed `/opt/sectigo-quantum-ready/releases/-/` directory. This command does not start discovery or contact a database. Inspect `config.database` and the overall readiness result before starting the scanner with its exact installed signed package, checking workspace database readiness, and submitting an authorized database job. Restore update approval/scheduling explicitly after validation.
The scanner account needs read and traversal access to each policy-path parent so it can inspect pinned directory handles and ACLs. Traversal-only parent permissions fail this check. Keep the policy/credential directory private to the service account, with no group/other write access or granting ACLs; do not make credential files publicly readable to fix a parent-directory error.
If interrupted, preserve the input and local state. When status reports configuration recovery, use the **same original input file**:
```sh
sudo ./Deploy-QuantumReady.sh scanner-service recover-database --config /private/scanner-with-database.json
```
Recovery refuses files changed outside the transaction. Do not delete the recovery journal or replace it with a newly edited request. Completed update history is retained; configuration never grants new relay permissions or makes a database connection. The native candidate has passed a privileged configuration round trip, recovery after an OS-enforced write failure, rejection of the wrong recovery input, and installed service-account preflight on macOS arm64. The installed 0.27.2 service has completed a queued SQLite metadata job through its approved relay. Unknown encryption coverage remains partial; successful transport does not prove encryption at rest.
The agent's `doctor` command checks local policy, credential access, target configuration and driver loading. It does **not** connect to the database. A passing preflight must be followed by a scan to verify TLS, authentication and database grants.
| Diagnostic | Next step |
| --- | --- |
| `database-local-policy-invalid` | Check the absolute `databasePolicyFile` path, workspace ID, unique connection IDs and parent/file permissions under the service identity. |
| `database-local-target-or-credential-invalid` | Check target fields, credential permissions and account-bound encryption. A SQLite target must be an existing file reached without links. |
| `database-runtime-unavailable` | Use the same runtime as the service and check required drivers. Adding database privileges will not fix a local driver-loading failure. |
| `database-worker-platform-pending` | The operating system is outside the supported Windows, Linux and macOS worker paths. Use a qualified runtime; adding database privileges will not resolve this. |
| `database-ready` | Local checks passed. Run an authorized scan to check the actual database connection. |
The published Linux native agent includes psycopg 3.3.4 with libpq 18.6, PyMySQL 1.1.2, python-tds 1.17.1, SQLCipher 4.20.0 and its sqlcipher3 0.6.4 binding. Optional driver installation for the Python source bundle is not yet a supported guided workflow. Do not install arbitrary driver upgrades into a managed agent.
## Installed-agent acceptance
Current **0.27.4** qualification includes production managed database scans on
Windows, Linux and macOS. Windows also completed installed scans after service
restart and a scheduled signed upgrade; macOS used its approved relay. See the
[unified package qualification](../unified-agent/#choose-your-platform) and
platform guides for the exact package versions and lifecycle boundaries. These
results do not imply every engine version or cloud account has been tested.
The following earlier engine-specific acceptance remains useful historical
evidence; it does not identify the current package version.
Published agent **0.27.2** completed production database jobs under dedicated
service accounts on Mac arm64, Windows Server 2025 and Ubuntu 24.04 x86_64 for
PostgreSQL 16, MySQL and SQL Server, using owned, isolated database fixtures and
ordinary collector accounts. Each job produced correlated workspace evidence and
verified TLS against its locally authorized destination. The Mac used its existing relay with direct fallback disabled; Windows and Linux
connected directly to the control plane.
Missing settings or optional metadata privileges remained partial coverage; unknown
key establishment was not converted into a PQC claim. These checks do not certify
every database version, cloud variant or optional TDE/Always Encrypted grant. Mac tests restored the original configuration and identity, stopped the service
and removed temporary credentials. Windows and Linux tests preserved identity and
configuration through the scans, then revoked/archived their temporary agents,
removed the services and cleaned private inputs. The Windows VM was stopped for
reuse; the disposable Linux VM snapshot and credential disk were removed. Native foreground negative tests
remain separate evidence from these installed-service jobs.
## Cloud databases
AWS RDS/Aurora, GCP Cloud SQL and AlloyDB, Azure SQL Database and Managed Instance,
and Azure PostgreSQL/MySQL Flexible Server control-plane discovery are available
through **Cloud connections**. Start with **Test access**, then explicitly run a
scan and inspect its progress, findings and evidence gaps. Follow the
[cloud connection guide](../cloud-connections/) for provider-specific identity,
permissions and scope.
Real AWS, Azure and GCP account acceptance was waived for this delivery. The
workflows remain available, but account-specific authorization, quotas and scan
outcomes have not been verified. Test access checks your configured identity;
it does not establish a completed inventory scan. Provider metadata cannot
substitute for inspection of an actual database session. Use a locally authorized
agent connection for engine/session evidence, including private endpoints.
Guided multi-connection setup and extension of an existing policy are delivered
in the current unified packages; use the instructions above. Configuration,
transport, encryption-at-rest metadata and verified cryptographic use remain
separate evidence categories.
The Linux unified agent passed live PostgreSQL, MySQL and SQL Server foreground fixtures, including TLS failures and permission changes, plus installed systemd jobs with ordinary collector permissions. SQLite and SQLCipher formats 1-4 passed on a clean host without Python. These checks establish the tested collector paths; they do not claim every database release, cloud variant or deployment mode is supported.
---
# Send agent setup to an administrator
Source: https://qscan.dev/docs/enrollment-handoffs
For a new installation, start with the [unified agent quickstart](../unified-agent/): one package, guided scope selection and browser enrollment. Individual agents remain available as an advanced backup. If you already have an enrolled credential or redeemed handoff, follow the existing-identity instructions instead of enrolling again.
Start in **Getting started** with the discovery-source grid. Select the source you want to assess. Connection alternatives are shown with their relevant sources, rather than as a separate decision before source selection:
- **Direct cloud connection:** configure provider trust for AWS, Azure or GCP without installing an agent. Run Test access, then explicitly start a scan and review its result. Real cloud-account acceptance was waived for this delivery.
- **Install an agent:** use a host with access to approved endpoints, repositories, capture files or cloud resources. The host operating system is independent of the cloud provider being inspected.
- **Repository scanning** and **Capture analysis** offer direct source scanning and upload where execution is enabled.
## Delegate installation
In **Agents & sensors > Enroll**, or the selected source in **Getting started**, open **Advanced: enroll an individual agent > Send setup package** in enrollment, or **Send setup to an administrator** in the selected-source guide. Setup opens as a full workspace page. You can also choose **Send setup package** from **Sent enrollment packages**. The selected source and any entered agent name carry into a new draft. An existing draft is retained until you discard it or finish it. Enter an agent name, discovery source and recipient email. Choose a lifetime (24 hours by default, up to 7 days) and delivery:
- **Email:** the recipient receives a secure setup link.
- **ZIP:** after creation, choose **Download enrollment ZIP** to download detailed instructions and the same secure setup link to share with the designated recipient. The ZIP contains no platform credential or cloud secret.
Draft fields and completed ZIP results remain available while navigating in the same tab, workspace and signed-in identity. Reloading clears this state. Keep the private ZIP download with its intended recipient. If a successful ZIP response is lost, review sent packages, revoke that pending link and create another handoff.
If submission cannot be confirmed, the form locks the original fields and offers **Check sent packages**. It does not automatically repeat the request or send another email. Check whether the package exists before choosing **Start a separate handoff**. A late successful response is available when returning to setup; downloading the ZIP always requires an explicit click.
The recipient needs access to the designated mailbox, but does not need workspace membership. Opening the link does not consume it. They request a six-digit code, then enter it to redeem the link and create one agent. Codes last 10 minutes, bounded by the handoff expiry. Only the latest code works. Requests are at least a minute apart; five sends and five verification attempts are allowed per handoff.
## Install and verify
After redemption, save the displayed credential securely. It is shown once and expires after 90 days; the handoff's shorter expiry controls redemption only. If the page is reloaded or its response is lost, revoke the new agent and create a new handoff.
The package explains signed download verification, platform selection, least-privilege local scope, protected credentials, diagnostics, connection checks and the first scan. Follow the linked source-specific guide for cloud permissions or capture dependencies. Windows/Windows Server x86_64, Linux x86_64 and macOS arm64 offer native packages. Follow the platform guide for existing-identity setup, qualified service paths and distribution limits. Do not run guided browser enrollment again after redeeming a handoff. Cloud collectors require their separately prepared provider environment; hosted cloud connections need no local agent. The redeemed page presents numbered installation steps and clickable source and platform guides; ZIP instructions use the same step definitions.
No remote host is installed or configured merely by creating the package. Review exact approved targets and local paths with the administrator. Enrollment does not grant cloud IAM permissions or enable live packet capture.
## Manage access
Open **Agents & sensors > Fleet tools > Sent enrollment packages** to review handoffs in a full workspace page. **Manage sent packages** in enrollment opens the same page. Search by agent name or recipient email and filter by pending, redeemed, expired or revoked status. The page displays 50 matches at a time; filters and the display page are retained while navigating within the same workspace and tab. The current API returns up to 1,000 stored handoffs, so these are display pages rather than server cursors. Use **Refresh** for current status and **Revoke link** on a pending row to block enrollment. Revocation and expiry block online redemption even if someone retained the ZIP. A downloaded ZIP cannot itself be recalled. For redeemed links, revoke the resulting agent in **Agents & sensors**.
Handoffs created by a signed-in administrator remain valid until their selected deadline, even after that browser session expires or signs out. Disabling the administrator or removing their administrator role permanently revokes their pending handoffs. Workspace suspension blocks redemption. Handoffs created using an API credential (and older handoffs) remain bound to that credential and stop working if it expires or is revoked.
Link secrets and codes are hashed in storage. They never appear in audit events or handoff list responses. The agent credential is minted only at successful redemption. Keep the link private even though email verification is required.
---
# Browse evidence history
Source: https://qscan.dev/docs/evidence-history
Open **Evidence archive** to browse received observations, newest first. Use
**Older** and **Newer** to move through pages of 50 observations. **Refresh latest**
returns to the first page and includes new arrivals. A failed page request keeps
the previous observations visible so you can retry without losing your place.
Select **View details** to inspect provenance and archive processing stages.
**Download JSON** appears when the canonical artifact is archived; the console
verifies its SHA-256 before saving. An observation being received, archived, or
exported does not establish complete discovery or quantum readiness.
## Read every page through the API
`GET /api/v1/evidence` accepts an optional `assetId`, `limit` from 1 to 200, and
`before` cursor. The default is 200 workspace observations, or 100 for one asset.
Use the returned `nextCursor` as `before` on the next request, keeping the same
asset filter, until it is null. Every request requires current workspace access;
viewer, analyst and administrator roles can read evidence.
Ordering uses received time and evidence ID together so observations received at
the same time remain reachable. Pages are not a frozen snapshot. New arrivals
are visible on a fresh first-page request; they are not inserted into an older
page traversal. Do not infer a total workspace count from one page's length.
## SDKs and MCP
After configuring a workspace SDK client as described in [SDK setup](../sdk-setup/):
```javascript
for await (const evidence of qr.allEvidence({limit: 100})) {
console.log(evidence.id, evidence.receivedAt);
}
// One asset: qr.allEvidence({assetId, limit: 100})
// One page: qr.listEvidence({assetId, before, limit: 100})
```
```python
for evidence in qr.all_evidence(limit=100):
print(evidence['id'], evidence['receivedAt'])
# One asset: qr.all_evidence(asset_id=asset_id, limit=100)
# One page: qr.list_evidence(asset_id=asset_id, before=cursor, limit=100)
```
OAuth MCP clients can use `evidence_list` with the same `assetId`, `before` and
`limit` inputs, followed by `evidence_details` for an individual record. Follow
all cursors needed for the requested scope before describing the result as a
complete history. Both SDK iterators reject repeated cursors instead of looping.
---
# Organize a large agent fleet
Source: https://qscan.dev/docs/fleet-groups
Fleet groups organize inventory. They do not change agent permissions, configuration, scan targets or software update policy.
## Preview, review and apply
1. Open **Agents & sensors**. Set the name/ID, group and access-state filters. Use **View archived agents** if those are the entries you intend to organize.
2. Open **Fleet tools > Group operations > New assignment**. The selection includes matching agents across all pages, not just the visible page.
3. Enter a target group such as `production/eu`, or leave it blank to remove group assignments. Choose **Prepare preview**.
4. Wait for **Ready for review**. Check the target, filters, selected count and agent results. No agent group has changed yet.
5. Choose **Apply to N agents**. Keep the dialog open to follow progress, or return through **Fleet tools > Group operations** later. Processing continues after you close the browser.
Group names use up to 64 letters, numbers, dots, hyphens, underscores or slashes. They begin with a letter or number and are normalized to lowercase. An administrator can change groups; analysts and viewers can inspect operations and results.
The preview is collected during preparation, not at a single global snapshot instant. Agents enrolled at or after operation creation are excluded. Filters are evaluated as preparation visits each page. Once selected, each agent's group revision and retirement state are recorded for the later apply check.
## Understand results
| Outcome | Meaning | Next step |
| --- | --- | --- |
| Pending | Selected, but not processed | Wait for apply or review why the operation paused |
| Applied | Group assignment changed | No further action |
| Unchanged | Already in the target group | No further action |
| Conflict | Group or archived/revoked state changed after selection | Review the current agent and prepare a new selection if appropriate |
| Missing | Agent no longer exists | Review the inventory or audit history |
Filter the result list by outcome. Results are paginated; keep the same outcome filter while following pages. Successful processing can include conflicts or missing agents, so review the totals before treating the intended organization as complete.
## Pause, cancel and expiry
Current administrator access is checked before each bounded batch. If it cannot be confirmed, the operation pauses. An administrator can inspect the remaining work and choose **Resume operation**. Resuming an applying operation starts changing remaining agents immediately.
Use **Actions > Cancel operation** to stop remaining work. Cancellation does not undo changes already applied. Operations expire 24 hours after creation, including time spent waiting for review or paused. Per-agent details remain for 30 days after termination; aggregate history remains afterward.
A conflicting revision means the operation changed while you were reviewing it. Refresh and inspect the current status before acting again. If a request fails or its response is lost, do not assume it failed on the server.
## Automate the same workflow
JavaScript and Python expose the same operations:
| JavaScript | Python |
| --- | --- |
| `createAgentGroupOperation(input)` | `create_agent_group_operation(input)` |
| `agentGroupOperations(options)` | `agent_group_operations(**options)` |
| `agentGroupOperation(id)` | `agent_group_operation(id)` |
| `agentGroupOperationItems(id, options)` | `agent_group_operation_items(id, **options)` |
| `applyAgentGroupOperation(id, revision)` | `apply_agent_group_operation(id, revision)` |
| `resumeAgentGroupOperation(id, revision)` | `resume_agent_group_operation(id, revision)` |
| `cancelAgentGroupOperation(id, revision)` | `cancel_agent_group_operation(id, revision)` |
Create with a caller-retained UUID `requestId`, `group`, and `filters` containing `q`, `status`, `archived`, `group` and optional `capability`. Reuse the same request ID and exact scope after an uncertain creation response. A different principal or scope cannot reuse that ID. Do not automatically apply a newly prepared preview.
Read the current operation before apply, resume or cancel and pass its `revision`. Poll with bounded backoff. Follow `nextCursor` for history and results; reset the result cursor when changing outcome filters. HTTP 409 requires review, not blind retry. See the [API reference](./api/index.md) for exact request and response fields and [SDK setup](../sdk-setup/) for authentication.
The [OAuth MCP server](../ai-integrations/) provides `agent_group_prepare`, `agent_group_operations`, `agent_group_operation`, `agent_group_operation_items`, `agent_group_apply`, `agent_group_resume` and `agent_group_cancel`. Authorizing a preview does not imply authorization to apply it.
---
# GCP KMS discovery development preview
Source: https://qscan.dev/docs/gcp-kms-development
The signed bundle collector `scanner/gcp_kms.py` reads metadata for explicitly selected Cloud KMS key versions. Scanner 0.17.0 and platform 0.27.0 support managed GCP jobs, schedules, scope configuration and guided onboarding. The signed bundle includes hash-locked dependency preparation and an offline environment installer. Real authentication-transport tests pass with networking intercepted; live-account acceptance remains unfinished.
## One-command Python connection
Save `agent.local.json` from Getting started in the verified bundle folder and
configure the local cloud identity and read permissions first. Open a terminal in
that folder. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider gcp --connect
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh gcp --connect
```
This first checks that your configuration contains valid resources for the selected
provider, before downloading dependencies. It then prepares or verifies the locked
environment, reads the selected cloud resources to check access, and only then
prompts privately for the agent enrollment token. If the configuration is rejected,
return to Getting started, select the matching cloud collector and download a fresh
`agent.local.json` into this folder. Repeat the same command after replacing it.
If cloud access fails, follow the diagnostic and run the same command again. No agent
connects and no findings are uploaded by the access check. Keep the terminal open;
Ctrl+C stops the foreground agent. Use the same command to reconnect.
Omit `--connect` to prepare dependencies only. The separate access-check and connect
commands below remain available for troubleshooting. Azure and GCP Python setup
includes separate macOS 11+ wheel locks for Apple Silicon and Intel with CPython 3.12. Mac wheel hashes, tags and dependency requirements are verified; native Mac execution and live cloud-account acceptance remain pending.
## macOS Python setup
Install **CPython 3.12** from [python.org](https://www.python.org/downloads/macos/),
then run **Install Certificates.command** in Applications > Python. Use macOS 11
or newer. Setup selects the wheel lock for the architecture of the running Python
interpreter (Apple Silicon or Intel), verifies all package hashes, and prepares an
isolated `gcp-agent-env` directory. It never installs global packages or requires sudo.
Save `agent.local.json` beside the `scanner` folder. Open Terminal in the extracted
bundle folder and run `sh scanner/setup-cloud.sh gcp --connect`. To avoid typing
the folder path, type `sh `, drag `scanner/setup-cloud.sh` into Terminal, then type
` gcp --connect` and press Return. The launcher finds its own bundle directory.
Use your local Azure CLI identity for Azure, or Application Default Credentials
for Google Cloud, as described below. A managed identity is not created by selecting
it in the wizard. A passing local check does not prove provider access; the combined
command checks access before asking for your enrollment token.
Mac wheel downloads and dependency closure have passed verification. Execution on
actual Mac hardware is still pending. The native CI workflow includes this setup
path; these instructions do not imply a compiled macOS binary or launchd service.
## Compiled collector
Choose **Binary** in Getting started to use the Windows or Linux collector without
installing Python or provider SDKs. Follow [cloud binary setup](../cloud-binary-collectors/)
for the local identity, access check and service-account requirements. The Python
workflow below remains available.
## Guided installation and access check
For a connected host, use [Getting started](https://qscan.dev/workspace.html#getting-started)
to select this collector, save its scoped configuration, and prepare the verified bundle.
The wizard offers the combined command above, with separate checks available under troubleshooting. On Windows, run:
```powershell
py -3.12 scanner/setup_cloud.py --provider gcp
```
On a supported POSIX host, run:
```sh
sh scanner/setup-cloud.sh gcp
```
Repeating setup verifies and reuses a matching environment without downloads or
installation. It checks Python, SDK imports, locked package versions and dependency
health. An incomplete or mismatched environment is preserved; prepare a fresh bundle
folder for recovery. Run **Check cloud access** afterward to verify provider permissions.
Use the wizard's **Copy access check** command with the prepared environment. It reads
only the configured resources with your local identity, requires no platform enrollment
token, and uploads nothing. A successful result has `"ready": true` and exit code 0.
Failures provide fixed recovery guidance and a zero-based `resourceIndex` referring
to the configured resource order. Resolve failures before using **Copy connect command**.
Access can change after the check; inspect the first scan result as well.
The lower-level commands below remain available for offline dependency preparation.
## Review the access scope
Supply a full resource name, including its numeric version. The collector accepts 1–200 unique names, up to 300 characters each. URLs, wildcards, aliases, traversal segments and duplicate selections are rejected before credential initialization.
```shell
python scanner/gcp_kms.py permissions --key-version projects/quantum-test/locations/us-central1/keyRings/approved/cryptoKeys/signing/cryptoKeyVersions/1
```
This offline command produces a custom-role definition containing only `cloudkms.cryptoKeyVersions.get`, plus the parent keys on which to review bindings. It does not create a role or grant access. Google documents this permission for the [key-version metadata endpoint](https://docs.cloud.google.com/kms/docs/reference/rest/v1/projects.locations.keyRings.cryptoKeys.cryptoKeyVersions/get).
**IAM access is key-scoped; collection is version-scoped.** Grant the reviewed role at each required CryptoKey rather than an entire project. That key-level grant can cover its versions; the collector separately restricts requests to the exact versions selected. Do not treat its local selection as a provider IAM boundary. See [Cloud KMS access control](https://docs.cloud.google.com/kms/docs/iam).
## Development execution
The collector uses locally configured Application Default Credentials with the Cloud KMS OAuth scope. Credential acquisition follows the host's identity configuration; no credential, principal, token or endpoint can be supplied through the scan arguments.
Prepare the eleven pinned dependencies on a connected machine. Choose the target matching the agent host, not necessarily the download machine:
| Dependency target | Agent environment | Validation so far |
| --- | --- | --- |
| `gcp-windows-x86_64-cpython312` | Windows x86_64, CPython 3.12 | Offline setup and real transport fixtures passed |
| `gcp-windows-x86_64-cpython314` | Windows x86_64, CPython 3.14 | Wheel hashes verified; environment execution pending |
| `gcp-linux-x86_64-cpython312` | Linux x86_64, CPython 3.12, glibc 2.34+ | Restricted Linux installation, imports, CLI startup and repeat preservation passed |
The current Google authentication dependencies include native cryptography components. There is no universal GCP wheel lock. macOS 11+ has separate Apple Silicon and Intel locks for CPython 3.12. Linux/Windows ARM64 and Python 3.13 remain unsupported by this setup tool.
```shell
python scanner/download_dependencies.py --target gcp-windows-x86_64-cpython312 --directory gcp-wheels
python scanner/create_cloud_environment.py --provider gcp --directory gcp-agent-env --wheelhouse gcp-wheels
```
The first command requires package-index access. Copy the complete wheel directory and verified bundle tools to an offline host if needed. The second command detects the host, checks the corresponding lock, requires a new destination, installs offline and verifies versions. It preserves interrupted environments with a pending marker; after correcting the cause, use a new destination. Neither command changes global Python or configures a native service.
Use `gcp-agent-env/Scripts/python.exe` on Windows or `gcp-agent-env/bin/python` on Linux. For example, on Windows:
```shell
gcp-agent-env/Scripts/python.exe scanner/gcp_kms.py scan --source gcp-kms --key-version projects/quantum-test/locations/us-central1/keyRings/approved/cryptoKeys/signing/cryptoKeyVersions/1
```
Provider requests use the fixed HTTPS Cloud KMS endpoint, TLS verification and disabled redirects. They do not inherit proxy or CA environment overrides. Connect/read timeouts, response size limits and cancellation checkpoints bound processing; the elapsed budget is checked between streamed chunks and is not a hard process deadline. Credential acquisition is a separate SDK operation. See the [Google authentication transport reference](https://googleapis.dev/python/google-auth/latest/reference/google.auth.transport.requests.html).
## Interpret the evidence
Reports retain the selected resource identity, location, known algorithm, version state and protection level. Attestations, external-key URIs, import identifiers, provider error text and credential material are excluded. Algorithm capability does not prove runtime usage: authentication and key-establishment posture remain unknown. Provider-managed or external symmetric algorithm labels remain unknown unless an explicit supported algorithm is returned. Supported mappings follow the [Cloud KMS algorithm reference](https://docs.cloud.google.com/kms/docs/reference/rest/v1/CryptoKeyVersionAlgorithm).
Exit code `0` means every selected version returned matching metadata. Exit code `2` means incomplete analysis or setup failure. A failed selection produces a fixed diagnostic and its zero-based input index. Inspect `gcp.kms.access-denied` against the exact key's policy, `gcp.kms.not-found` against the selected version, and `gcp.kms.invalid-metadata` against response identity. The CLI emits local JSON only and never uploads evidence.
Tests use the real pinned Google authentication and Requests libraries with synthetic credentials and HTTP responses; socket access is blocked. They verify authorization headers, endpoint selection, TLS and proxy settings, redirect refusal, bounded token refresh, and permission-error redaction. Neither a successful fixture nor metadata about a post-quantum key establishes quantum-safe runtime behavior or live GCP connectivity.
## Managed agent setup
1. Enroll an agent with **GCP KMS metadata (preview)**. This grants platform job permissions only; configure Google IAM independently.
2. In **Getting started**, choose the agent and GCP KMS, select a supported host platform and enter one full version name. Download the configuration. It contains `allowedGcpKmsVersions`, not credentials or identity configuration. Additional exact versions can be reviewed and added locally, up to 200.
3. Create the locked GCP environment above. Configure Application Default Credentials on the host using your approved identity process. Keep the platform agent credential separate from Google credentials.
4. With the GCP environment's Python executable, run `scanner/qr.py doctor --config agent.local.json`. This checks scope and library availability without loading Google credentials or making provider requests.
5. Set the platform endpoint and agent credential through the protected environment, then run `scanner/qr.py agent --config agent.local.json` using the same interpreter. Create the first exact-version scan from the wizard. Schedules use the same local permission limits.
To opt into central configuration, add `"managedConfiguration": true` locally. The workspace can narrow `allowedGcpKmsVersions`, pause new scans and adjust polling within local limits. It cannot widen the list or select Google projects, principals, credential files or endpoints. Omitting the list in a published revision disables GCP scope. Publication pauses claims until the agent acknowledges the revision.
Provider failures produce fixed job diagnostics and no evidence upload. Cancellation, revocation and shutdown checks run before discovery, during response processing and before upload. A request already in progress may continue until its transport timeout/checkpoint; results cannot pass a failed lease check. Local API/agent tests verify scoped uploads, tenant isolation, configuration, pause and revocation with synthetic provider data.
## Verify access before starting the agent
Scanner 0.21.0 adds an explicit read-only access check. After local doctor checks pass, run this with the dedicated cloud environment's Python interpreter (Windows example):
```shell
gcp-agent-env/Scripts/python.exe scanner/qr.py cloud-check --config agent.local.json --kind gcp-kms
```
On Linux use the environment's `bin/python`. The command contacts the provider using the identity configured on this host and reads only the exact locally allowlisted resources for the selected source. It never contacts the platform or uploads observations. No platform credential is required. It uses the same metadata validation as discovery, so invalid or mismatched responses fail the check.
Exit 0 means every configured resource was read and validated; exit 2 means configuration, identity, provider access or metadata validation failed. `resourceIndex` is zero-based and refers to the selected provider's array in your local configuration. Output includes fixed diagnostic codes and suggested remedies, excluding resource identifiers, key metadata and raw SDK errors. Partial success remains a failure overall. Correct the failed resource or identity setup before starting the agent; do not widen permissions to fix a dependency or connectivity failure.
This is a point-in-time access check. It does not verify platform enrollment, continuous service operation, future permissions or an end-to-end scan. The local doctor remains offline. Open **Getting started > Review local diagnostics**, select this provider and your agent distribution, and copy the command to save `cloud-access.json`. Choose that file in the dialog for per-resource results and corrective guidance. The file is read only in your browser; it is not uploaded or saved.
---
# Register the GitHub app
Source: https://qscan.dev/docs/github-app-setup
Platform operators register one GitHub App for Sectigo Quantum Ready. This is platform configuration; it does not grant the platform access to every repository or replace workspace sign-in.
## Before you begin
- Sign in to the provisioning portal with your platform operator account and complete MFA.
- Sign in to GitHub as **hassard0**, the configured app owner.
- Keep the operator session open. The setup callback expires after 10 minutes and works only in the session that started it.
## Register
1. Open **GitHub integration** from the provisioning portal, or [open GitHub setup](https://qscan.dev/account.html#github-integration).
2. Review the requested permissions: **Contents: read-only** and **Metadata: read-only**. No repository writes or administration access are requested. Webhook delivery is disabled.
3. Select **Register with GitHub**. GitHub opens in the same tab with the manifest already supplied. Review the app owner and name, then create the app.
4. GitHub returns you to Quantum Ready. The server verifies the owner and permissions, stores the app credentials encrypted, and displays the registered app. Secrets never appear in the browser or status API.
Do not grant extra permissions to make setup pass. The callback rejects a different owner, write permissions, additional permission categories and event subscriptions.
## What this enables
After registration, workspace administrators can select **Connect GitHub** on a saved repository. Install the app for the selected repositories, then authorize the GitHub account. The scan uses the intersection of that account's permissions and the app's repository access. Expiring user tokens renew automatically; credentials remain encrypted and are removed on disconnect. PAT access remains available. Follow the [repository guide](../repository-connections/) for installation, authorization and recovery.
The complete registration/authorization/renewal path is tested through the Worker with an isolated GitHub fixture. Real-account OAuth acceptance still requires app registration and an authorized private-repository scan; fixture success is not that evidence.
## Recover from interrupted setup
- **Session expired or mismatched:** return to the operator portal and start a new setup in that same browser session.
- **GitHub created the app but callback failed:** inspect your [GitHub developer settings](https://github.com/settings/apps) before creating another app. The conversion code is single-use. A lost conversion response cannot be safely retried; remove the incomplete app in GitHub before registering a replacement. Credential import/recovery is not implemented yet.
- **Wrong owner or permissions:** correct the account choice or remove the incomplete app and restart with the supplied manifest.
- **Already configured:** the portal shows the registered app and its GitHub link. It does not silently overwrite an existing app or its credentials.
## API and operational details
`GET /api/auth/integrations/github-app` returns registration metadata. `POST /api/auth/integrations/github-app/start` returns the manifest and fixed GitHub form action. `POST /api/auth/integrations/github-app/finish` exchanges the callback code. All require a verified operator session; POST also requires the canonical Origin. Tenant administrators cannot configure the platform app.
App secrets use the platform identity encryption key with an app-specific authenticated encryption context. Audit records include the operator, action and app ID, never the client secret or private key. The app registration cannot be replaced through these endpoints. The account page suppresses referrers and removes callback parameters before making the same-origin completion request.
The registration follows GitHub's [manifest flow](https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest). Workspace installation consent remains a separate step.
---
# Hosted TLS scanning
Source: https://qscan.dev/docs/hosted-tls-scanning
## QUIC handshake scanning
Hosted scans support QUIC v1/v2 using `protocol: "quic"`,
`profile: "baseline"` and `quicVersion: "v1"` or `"v2"` (default v1).
QUIC v1 has passed restricted-container, deployed-broker and development-tenant
acceptance against qscan.dev, including immutable evidence and CBOM export.
QUIC v2 timed out on that public endpoint and remains independently unverified.
QUIC uses UDP port 443 by default. It verifies a fresh TLS 1.3 handshake,
server identity and certificate path, then reports the selected cipher, group and
signature. It sends no HTTP/3 request or application payload. Its offers include
the three standardized ML-KEM hybrid groups with classical fallback. The selected
key exchange and certificate authentication are assessed independently. TLS probe profiles
and SSH fingerprints do not apply. A timeout is inconclusive; check UDP routing,
firewalls and the selected version rather than treating it as a clean scan.
In hosted scan setup, choose **QUIC**, select its version, and enter your authorized
public hostname and optional port. The selected version remains fixed when
recovering a lost submission. The history shows the version and scan outcome.
```js
const operation = await client.startNetworkScan({
requestId: crypto.randomUUID(),
target: 'your-authorized-host.example:443',
protocol: 'quic', quicVersion: 'v1', profile: 'baseline'
});
// Retain requestId for identical retries; poll networkScan(operation.id).
```
The Python SDK accepts the same keys in `start_network_scan(configuration)`.
The OAuth MCP tool `network_scan_start` accepts the same version and profile;
poll `network_scan_status` until terminal. Findings are accepted only after
executor cleanup and renewed authorization.
Scan an authorized public TLS endpoint without deploying an agent. This performs
a certificate-verified baseline TLS handshake and inventories the presented certificates.
Choose `modern-v2` for nine additional bounded capability probes, including two
TLS 1.2 RSA transport suites, or `pq-v2` for those nine plus six explicit PQ/hybrid probes.
TLS 1.3 HelloRetryRequest is recorded separately from the final negotiated group.
Real loopback qualification covers retries for all three supported ML-KEM hybrid
groups, ML-KEM-512/768/1024 and X25519 in the source scanner, hosted runtime and
published Linux foreground binary (0.26.21, sequence 390). Each group also rejects
an untrusted certificate after retry. Retry evidence survives inventory ingestion
and CBOM export as `sectigo:tls:helloRetryRequestObserved`. These exchanges still
use classical certificate authentication; a hybrid key exchange does not make
authentication quantum-safe. The seven-group Windows retry matrix remains unqualified.
Scanner 0.26.22 adds certificate key-usage restrictions, exact extended-key-usage
OIDs, extension criticality and CA path-length constraints. Missing extensions,
an empty usage list, a zero path limit and an unlimited CA path are distinct.
Oversized metadata is marked incomplete. These fields describe certificate
permissions, not observed application behavior or a verified certification path.
They are retained in inventory and exported under `sectigo:certificate:*` in CBOM.
The hosted scanner, signed Python bundle and Windows/Linux foreground 0.26.22
binaries include these fields. Existing 0.26.21 binaries omit these fields.
See [RFC 5280](https://www.rfc-editor.org/rfc/rfc5280.html#section-4.2.1.3)
for the distinction between key usage and extended key usage.
It does not send application data or credentials. It is not an exhaustive cipher,
protocol or signature capability scan. Private endpoints still require a local agent.
## Negotiated signature details in CBOM
For verified active handshakes, exports preserve recognized signature families
and protocol-defined parameters. RSA-PSS records its digest, MGF1 digest, salt
length and certificate public-key OID constraint without guessing RSA key size.
Ed25519/Ed448 record pure EdDSA. ECDSA records the digest and DER encoding;
TLS 1.3 also identifies its required curve, while TLS 1.2 does not constrain
the curve through the signature identifier. TLS 1.2 PKCS1 and legacy SHA1
identifiers are retained when observed, but are not accepted as TLS 1.3
handshake algorithms. Unknown or conflicting identifiers remain unspecified.
These are parameters defined by the observed scheme, not a new verification of
its signature bytes or a claim that every parameter is known. Passive captures
and offered-only algorithms do not receive these verified negotiation links.
Semantics follow [RFC 8446 section 4.2.3](https://www.rfc-editor.org/rfc/rfc8446.html#section-4.2.3).
For a verified TLS 1.3 hybrid group, the CBOM also links its combiner to the
classical and post-quantum constituent algorithms: X25519 + ML-KEM-768,
secp256r1 ECDH + ML-KEM-768, or secp384r1 ECDH + ML-KEM-1024. These relationships
follow [RFC 10024](https://datatracker.ietf.org/doc/html/rfc10024). They describe
the selected group's composition, not independently observed key material or
separate exchanges. Each relationship stays scoped to its endpoint observation.
Authentication retains its own posture; hybrid key establishment alone does not
make the whole connection quantum safe. Draft Kyber names, conflicting metadata
and passive/offered groups do not receive these constituent links.
### Tested PQ negotiation scope
The source scanner has passed real, certificate-verified loopback handshakes for
all three hybrid groups, ML-KEM-512/768/1024, and X25519 on Python 3.14 with
OpenSSL 3.5.7. All seven also rejected an untrusted certificate. The resulting
observations passed development-workspace ingestion and CBOM relationship checks.
The deployed hosted scanner now uses Python 3.12 and OpenSSL 3.5.7. Its exact
runtime image passed the same 14 trusted/untrusted cases. Live baseline and
`modern-v1` scans against our owned endpoint negotiated X25519MLKEM768, verified
certificate trust, and exported the X25519 and ML-KEM-768 constituent links.
Authentication remained classical ECDSA. A scan records the group actually
negotiated; the capability profile does not force or exhaustively probe PQ groups.
The Linux foreground binary (0.26.21, sequence 390) also passed these 14 cases
and live hybrid negotiation with CBOM export. The Windows foreground binary
(0.26.21, sequence 391) passed live X25519MLKEM768 negotiation using Windows trust
and hybrid CBOM export. That is not the complete Linux group matrix. macOS
compiled agents still require runtime delivery and qualification.
Protocol recognition and export support alone do not establish negotiation support.
### Certificate subject-key relationships
CBOM public-key metadata links Ed25519, Ed448, X25519 and X448 certificate key
identifiers to their defined EdDSA/ECDH curve families, following
[RFC 8410 section 3](https://www.rfc-editor.org/rfc/rfc8410.html#section-3).
These are certificate-observation relationships, not proof of key use, private-key
possession or trust. No key size is inferred. Conflicting identities remain
unlinked; generic EC and RSA identifiers do not imply an operation or padding
scheme. The certificate's issuer signature stays separate from its subject key.
## Console and MCP workflow
Open **Discovery scans > Hosted network scans**. Choose TLS or SSH, enter the
public hostname and optional port, review the scope, and select **Start scan**.
TLS defaults to port 443 and SSH to port 22. Private endpoints require an agent
inside your network. The setup also links from the TLS and SSH getting-started
source choices.
TLS offers a baseline handshake or the bounded capability profiles described below.
SSH performs no login or commands. An optional `SHA256:` host-key fingerprint
checks the server against a pin obtained independently from its administrator.
Without a pin, a valid handshake signature does not establish host identity.
A mismatch fails the scan; verify the server's identity before changing a pin.
History shows queued, scanning, cleanup, completed, partial, failed and cancelled states. The partial state is introduced with scanner 0.26.55.
It refreshes while visible work is active; **Refresh** returns to the latest page.
Findings are accepted only after authorization and cleanup checks. A completed
scan's inventory link opens the workspace inventory. Failed scans show a bounded
reason, with the scan reference available for troubleshooting.
If submission acknowledgement is lost, use **Recover submission**. This tab saves
the original scope and request ID under your workspace credential; reloading
restores it. Recovery retries that exact request. Do not clear browser storage to
force another submission before checking history. A different credential has its
own receipt. Viewers can read history; administrators and analysts can start scans.
OAuth MCP clients use `network_scan_start`, `network_scan_status`, `network_scans`
and `network_scan_cancel`. Retain a UUID request ID and poll status until terminal.
Revoking OAuth access prevents unfinished scans from publishing findings. Mutation
access is checked again during execution and immediately before publication.
## Start a scan
Use an administrator or analyst API credential for your workspace. Create a UUID
request ID and retain it until the request is acknowledged. Submit a hostname or IP
with an optional port; the default is 443. Bracket IPv6 addresses when adding a port.
Do not supply a URL, path, username or password.
```http
POST /api/v1/network-scans
Authorization: Bearer YOUR_WORKSPACE_TOKEN
Content-Type: application/json
{"requestId":"YOUR_UUID","target":"your-authorized-host.example.com:443","profile":"modern-v2"}
```
The response is HTTP 202 with an operation `id` and `status`. Poll
`GET /api/v1/network-scans/{id}` every few seconds. Closing your browser does not
cancel the scan. If submission is interrupted, reuse the same request ID, target
and credential to retrieve the existing operation rather than create a duplicate.
| Status | Meaning |
| --- | --- |
| `queued` | Waiting for execution; queue delivery is recovered automatically. |
| `running` | Admission, startup or scanning is in progress. |
| `cleanup-pending` | Execution must be destroyed before the operation can finish. |
| `completed` | Verified findings were accepted into inventory. |
| `partial` | Presented-certificate findings were accepted, but certificate verification failed (`analysisComplete: false`). Available with scanner 0.26.55. |
| `failed` | No findings were accepted; inspect `reason`. |
| `cancelled` | Cancellation or changed authorization prevented acceptance. |
Two unfinished scans are permitted per workspace. Shared execution capacity is
limited. Startup capacity and delayed cleanup can cause failures; a queued or
running operation is not evidence of a successful scan. After a terminal failure,
submit a new request ID to retry. Do not repeatedly resubmit while cleanup is pending.
## Findings and limits
Accepted findings appear in inventory with source `hosted-tls` and public exposure.
The TLS endpoint links to the observed peer certificate assets. Presented certificates
are not claimed to be the full verified certification path, and individual certificate
signatures are not independently verified by this inventory pass. Missing or incomplete
peer-chain inventory remains explicit in the evidence. Scan results are checked against
the requested target before acceptance, and cannot be accepted after cancellation,
authorization loss or an expired execution lease.
Private, local and special-purpose destinations are rejected, including mixed DNS
answers containing non-public addresses. DNS is resolved once and the selected address
is pinned while the original hostname remains in SNI and certificate verification.
The scanner requires normal certificate trust; there is no insecure bypass.
## Cancel and inspect history
Send an empty JSON object to `POST /api/v1/network-scans/{id}/cancel`. Administrators
can cancel any workspace scan; analysts can cancel their own. Cancellation may remain
`cleanup-pending` until destruction is confirmed. List history with
`GET /api/v1/network-scans?limit=25` and pass its `nextCursor` as `after` for the next page.
## Choose a capability profile
`baseline` (the default) performs one verified handshake. `modern-v2` adds TLS 1.2,
TLS 1.3, TLS 1.2 ECDHE-RSA/AES-128-GCM, TLS 1.2 ECDHE-ECDSA/AES-128-GCM,
TLS 1.2 DHE-RSA/AES-256-GCM, TLS 1.3 X25519 and TLS 1.3 P-256 probes,
plus RSA transport with AES-128-GCM and AES-256-GCM, for nine probes.
`pq-v2` adds X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024,
MLKEM512, MLKEM768 and MLKEM1024, for fifteen probes after the baseline.
Each additional PQ probe offers exactly one group. A successful hybrid key exchange
does not establish post-quantum certificate authentication.
All use the baseline's pinned peer IP with the original hostname for SNI and trust.
No legacy security downgrade or certificate-verification bypass is attempted.
Probe evidence distinguishes `negotiated`, `inconclusive` and `local-unavailable`.
An alert, timeout or certificate rejection does not prove a capability is unsupported.
`local-unavailable` means the scanner runtime could not configure that probe;
it says nothing about the server. The explicit PQ probes require the supported
group API in Python 3.15 and OpenSSL 3.5 or newer. Local agents select the profile
with `tlsCapabilityProfile: "pq-v2"` in their configuration, or
`tls --capability-profile pq-v2` on the command line, from source scanner 0.26.45.
Its `tlsCapabilities: true` setting selects `modern-v2`. Earlier native releases,
including 0.26.42, retain `modern-v1` (seven probes) and `pq-v1` (thirteen).
Both explicit v1 profiles remain accepted for compatibility and omit RSA transport probes.
The Linux x86_64 foreground binary **0.26.36 (release 432)** bundles Python 3.15.1
and OpenSSL 3.5.9, including the explicit PQ group controls. It runs without a
system Python installation. Add `"tlsCapabilityProfile": "pq-v1"` to the agent's
local configuration to use this profile for its permitted TLS jobs, or run:
```sh
./quantum-ready tls example.com:443 --capability-profile pq-v1
```
Scan only endpoints you are authorized to assess. This release's qualification
covers foreground execution; service and managed-update releases have separate
qualification. A configured profile does not expand the agent's allowed targets.
Ingestion and CBOM export check each probe against the profile's exact offer.
A successful constrained probe must negotiate its requested cipher or group;
failed probes cannot carry certificate-verification or successful-negotiation claims.
Source bundle 0.51.241 corrects curve configuration in the Windows/macOS native
trust wrapper. Earlier affected clients could report an X25519 or P-256 probe
while actually negotiating the default group. Such contradictory reports are now
rejected. Use source bundle 0.51.241 or the corrected Windows foreground binary
0.26.33, signed release sequence 426, for these probes. Sequence 423 predates the fix.
The profile is explicitly non-exhaustive. Alternate certificates observed during
successful probes are merged into inventory and linked to the endpoint; incomplete
certificate inventory remains flagged. The requested profile is part of request-ID
idempotency: changing it requires a new request ID.
## ML-DSA certificate identities
Scanner 0.26.35 identifies ML-DSA-44, ML-DSA-65 and ML-DSA-87 decoded certificate
keys and certificate signatures, including their exact parameter sets in CBOM.
When a TLS 1.3 handshake negotiates ML-DSA authentication, its signature is
reported separately from key establishment. An ML-DSA certificate with X25519
key exchange does not make the key exchange post-quantum.
Source bundle 0.51.243 includes this correction. The hosted scanner uses the
same detector. Linux foreground binary 0.26.35, sequence 430, includes this fix.
Windows foreground binary 0.26.36 includes it. Older Python environments without
ML-DSA decoding support retain an unknown key identity; an OID alone does not
establish a decoded key or verified runtime use.
The bounded PQ profiles test key-establishment groups. They do not enumerate
all server signature capabilities. Real local acceptance covers all three ML-DSA
parameter sets with each of the three TLS 1.3 ciphers and confirms rejection of
untrusted certificates. This finite matrix is not exhaustive chain or platform
coverage.
## PQ certificate keys and issuer signatures
Scanner 0.26.36 adds exact ML-KEM-512/768/1024 and the twelve pure SLH-DSA
certificate identities. Where the Python crypto library lacks a key decoder,
the scanner validates the public-key encoding and reports that decoder limitation
separately. It rejects invalid sizes, forbidden algorithm parameters and
noncanonical ML-KEM coefficients. Encoding validation does not claim signature
verification or runtime use.
An RSA endpoint can present certificates signed by an SLH-DSA issuer. The TLS
handshake still reports RSA authentication and its negotiated key exchange;
certificate signatures and issuer keys have separate inventory and CBOM entries.
The local source and hosted-runtime matrices each cover all twelve issuers with
trusted, untrusted and corrupted leaf-signature cases. Presented certificates
are not labeled as the verified certification path.
Source bundle 0.51.244 and Linux foreground binary 0.26.36 include these changes.
Windows foreground binary 0.26.36 includes it as well. Pure SLH-DSA coverage
does not establish support for its distinct prehash variants or every TLS
signature-negotiation combination.
## Certificate rejection findings
Hosted scanning and Python scanner 0.26.55 preserve an endpoint finding when TLS certificate verification fails. When available, they also retain metadata from the certificates presented during that same connection. The scan outcome is **Partial findings**. It sends no application data and stops before capability probes; it does not reconnect with verification disabled. Windows and Linux native scanner 0.26.55 also support this partial-result flow. Check the installed agent version before expecting these findings.
Asset details distinguish a complete presented chain, a partial chain, and no recovered certificate metadata. A complete presented chain does not mean a trusted certification path. Observed TLS versions are separate from verified negotiated protocol evidence. Certificate identities and declared algorithms can inform inventory, but do not establish host identity, a valid certificate signature, or successful algorithm use. CBOM exports preserve these limitations.
Check the requested hostname, certificate validity dates, and issuing chain, then rescan. For an internal CA, configure trust on an agent in your environment. Hosted scans use their managed trust configuration. Older scanner versions may report certificate rejection without retaining these partial findings.
Use the certificate evidence to decide what to repair:
| Finding | Next step |
| --- | --- |
| Presented chain is complete, but verification failed | Check the requested identity, validity dates and trust anchor. Complete inventory describes what the peer sent; it does not establish trust. |
| Presented chain is partial | Review the service's configured certificate chain. Repeated certificates or certificates the scanner cannot decode can make the inventory incomplete. Unique decoded certificates remain available. |
| No certificate metadata recovered | Review the agent's runtime diagnostics and the service's certificate configuration. Verification can fail without recoverable certificate metadata; the endpoint finding alone does not identify its certificate or algorithms. |
After correcting the service or agent trust configuration, start a new scan. A partial
result does not prove that the service supports the requested capability profile;
capability probes stop at the verification failure.
## SSH advertised algorithms
Hosted network scanning and Python scanner 0.26.69 capture the server's initial key-exchange advertisement
during the same SSH handshake. It records ordered lists of key exchanges,
host-key algorithms, ciphers and MACs, separately for each traffic direction
where applicable. Protocol signalling markers are excluded from the key-exchange
algorithm list. The scanner sends no login request or command and does not open
an additional connection to collect these lists.
An advertised algorithm is a server claim, not proof that a handshake using it
will succeed. The negotiated key exchange, host signature, ciphers and MACs
remain separate evidence. Advertised alternatives do not change quantum posture
or become verified cryptographic components in the CBOM. The advertised lists
are exported as labelled evidence properties instead.
Bounded capture reports either complete initial-advertisement capture or
unavailable inventory; it never silently truncates a list. A valid baseline
handshake can still be retained when this additional inventory is unavailable.
Neither status establishes exhaustive server configuration, multiple host keys,
host-certificate trust, or a verified negotiation of every advertised algorithm.
Server identity remains untrusted unless a configured host-key pin matches.
Native scanners retain the coverage bundled in their installed version. See [RFC 4253 section 7.1](https://www.rfc-editor.org/rfc/rfc4253.html#section-7.1)
for the SSH algorithm-advertisement message.
## Queue QUIC work on an enrolled agent
For agent-based discovery, open **Discovery scans > New discovery scan**, select
**QUIC endpoints**, enter the approved hostname and UDP port, and select a compatible
agent. **Discovery schedules > Create schedule** offers the same scanner for recurring
work. Both use the agent's `allowedQuicTargets` and configured `quicVersion` (`v1` or
`v2`); submitting a job does not change local permissions or choose a different QUIC
version. Configure and validate those settings on the scanner first. No HTTP/3 request
is sent, and a timeout remains inconclusive. This agent workflow is separate from a
hosted scan or a remote scanner-pool run.
---
# Integration setup directory
Source: https://qscan.dev/docs/integration-catalog
Open **Integrations** in your workspace to choose a source or automation interface. Each card opens its configuration flow or a setup panel in the product. A saved connection is not a successful scan: verify access, run a scan, and inspect its evidence and coverage.
## Where to configure each integration
| Integration | Product location | Access and setup guide |
| --- | --- | --- |
| GitHub repositories | Repository scanning > Add repository | A repository-scoped, read-only PAT or configured GitHub browser sign-in; [repository setup](../repository-connections/) |
| GitHub account sign-in | Repository scanning > Connect GitHub | Platform app registration first, then each workspace administrator authorizes their account; [GitHub App setup](../github-app-setup/) |
| GitLab.com repositories | Repository scanning > Add repository > GitLab.com | Personal or project access token with `read_api`; [repository setup](../repository-connections/) |
| AWS KMS | Cloud connections > AWS KMS | Federated IAM role, exact key ARNs and read-only metadata permissions; [cloud connections](../cloud-connections/) |
| Google Cloud KMS | Cloud connections > Google Cloud KMS | Workload identity federation and selected CryptoKeyVersions; [cloud connections](../cloud-connections/) |
| Azure Key Vault | Cloud connections > Azure Key Vault | Federated application identity and versioned key URLs; [cloud connections](../cloud-connections/) |
| Linux process libraries | Integrations > Linux process libraries | Pinned same-user process jobs, schedules, optional TCP/UDP socket metadata and scoped report ingestion; [runtime discovery](../linux-runtime-discovery/) |
| Customer agents | Getting started | Choose scanner, local scope, supported distribution and enrollment; [agent setup](../agent-setup/) |
| PCAP / PCAPNG | Network captures | Upload, follow analysis and disposal, then review findings; [capture analysis](../capture-analysis/) |
| MCP assistants | Integrations > MCP and AI assistants | OAuth browser sign-in to `https://qscan.dev/mcp`; [MCP setup](../ai-integrations/) |
| GitHub Actions / GitLab CI | Integrations > corresponding pipeline card | Checked-in workflow templates and retained JSON/SARIF/coverage artifacts; [CI scanning](../ci-scanning/) |
| Python / JavaScript | Integrations > corresponding SDK card | Scoped workspace credentials and SDK methods; [SDK setup](../sdk-setup/) |
| Jira workspace accounts | Integrations > Jira > Manage Jira | [Authorize and manage connections](../jira-connections/); saved field mappings are available; reviewed issue creation, recovery and opt-in scheduled status checks are available from migration tasks |
| Jira OAuth app registration | Tenant portal > Jira integration (platform operator) | [Register and rotate credentials](../register-jira-app/); workspace consent is available; saved field mappings are available; reviewed issue creation, recovery and opt-in scheduled status checks are available from migration tasks |
| Sectigo Certificate Manager | Integrations > Sectigo Certificate Manager | [SCM setup and inventory imports](../scm-connections/); encrypted OAuth credentials, connection checks, bounded inventory imports and recurring imports |
| ServiceNow | Integrations > ServiceNow > Manage ServiceNow | [Connection, reviewed incident creation and scheduled status checks](../servicenow-connections/) |
| Splunk HEC | Integrations > Splunk > Manage Splunk | [Native event delivery, token setup and acknowledgement handling](../splunk-connections/) |
| Signed webhooks | Integrations > Configure event delivery | Receiver URL, signing secret, subscribed events and verified test delivery; [webhooks](../webhook-integrations/) |
Cloud connections execute through the hosted control plane without installing an agent. Customer collectors remain an option when local execution is preferable. Choose exact keys or a bounded discovery scope: one AWS account/region, one Google Cloud key ring/location, or one Azure vault/key. Discovery does not establish unrestricted account-wide inventory. Provider IAM configuration remains necessary; no integration should ask for account administrator permission to read key metadata.
## GitHub says setup is required
There are two independent access methods:
1. **Scan now with a PAT:** select **Set up GitHub access > Configure access token**, or **Edit access > Your account token**. Use a fine-grained token limited to the intended repository with **Contents: read-only**. Save it, then select **Run scan**. An organization may require approval of the token.
2. **Enable browser sign-in:** a platform operator opens **Tenant portal > GitHub integration** and registers the platform app under `hassard0`. Once registered, workspace administrators can select repositories and authorize their own GitHub accounts. A workspace administrator cannot change the platform-wide app registration.
The setup panel links to the correct platform page and to PAT configuration. If you open platform setup while signed in with a workspace account, the account page explains how to switch to an operator account. It does not silently redirect you to unrelated security settings.
PAT credentials use the connected account's provider quota. An authenticated quota error does not mean the token is invalid; wait for the provider's reset rather than repeatedly replacing credentials.
## Follow one repository through its scans
Select **Scan history** on a repository card to filter history to that connection. This works for active, disconnected and archived connections. **All repositories** clears the filter. Paging through history does not change the live activity shown on connection cards.
The API and SDKs support the same filter: `GET /api/v1/repository-scans?connectionId=...`, JavaScript `repositoryScans({connectionId})`, Python `repository_scans(connection_id=...)`, and MCP `repository_scans` with `connectionId`. Reset the page cursor when changing repositories. An unrelated repository cursor is rejected instead of silently omitting scans.
## Enterprise connector availability
SCM, Jira and ServiceNow have native workspace setup flows in **Integrations**:
- **SCM:** OAuth credential storage, certificate visibility checks, bounded background inventory imports, import history, cancellation and recurring imports. Disconnect and archive retain history. Follow the [SCM guide](../scm-connections/).
- **Jira:** OAuth account authorization, saved field mappings, reviewed issue creation from migration tasks, uncertain-delivery recovery and manual or opt-in scheduled status checks. Follow the [Jira guide](../jira-connections/).
- **ServiceNow:** Instance and credential setup, saved incident fields, task previews, reviewed incident creation, uncertain-delivery recovery and manual or opt-in scheduled status checks. Follow the [ServiceNow guide](../servicenow-connections/).
- **Splunk:** Native HEC event delivery with encrypted tokens, tested activation, receipt history, optional indexer acknowledgement and reviewed recovery. Follow the [Splunk guide](../splunk-connections/).
- **Other SIEM/SOAR destinations:** Signed event delivery and scoped API/SDK retrieval through your receiver. Additional native vendor connectors remain unfinished.
Implemented flows are not a claim of completed provider acceptance. SCM connection testing and a 3,201-record inventory have real-provider acceptance; Jira and ServiceNow account acceptance remains outstanding; test the scoped connection and inspect the first result in your own account. Current setup requirements and limitations are documented in each connector guide.
Signed webhooks can send minimal, verified event notifications to a receiver you operate. The SDK can then retrieve authorized details and your receiver can perform downstream work. This is a custom integration path; it does not assert a native ticketing connector, automatic field mapping, lifecycle synchronization or a completed vendor acceptance test. Follow the [receiver verification and deduplication guide](../webhook-integrations/) before enabling delivery.
Agent distribution and operating-system acceptance also remain explicit in the [distribution guide](../agent-distributions/). A published Python scanner, a verified native foreground binary and an accepted managed system service are different deployment capabilities.
## Large agent fleets and compiled downloads
The **Agents** page uses a compact, bounded table instead of a card for every agent. Search runs against the workspace inventory before pagination; the browser loads only 50 agents at a time. Page controls stay above the scrollable list. Open **Manage** on a row for history, configuration, controls or revocation. One action menu opens at a time.
Select **Downloads & updates** on the Agents page for the current signed Windows x86_64, Linux x86_64 and macOS arm64 archives, manifests and signatures. The panel explains accepted platforms and the Linux supervisor update workflow. Linux staged updates are available under **Fleet tools > Staged updates**: preview a group, approve one canary, then review and approve each later batch. See the [rollout guide](../agent-rollouts/) for failure recovery and local supervisor requirements. One-time maintenance windows defer approved batches and stop new replacement authorization at closing time. Windows also supports individual cloud-requested replacement through its scheduled updater; follow the [qualified Windows service and update path](../windows-service/#current-qualified-release). Linux staged rollout acceptance does not establish Windows fleet-rollout acceptance. Native macOS packages and managed replacement are available; follow the [Mac package guide](../macos-native-package/) and its exact qualification limits. Recurring calendar windows remain unfinished. A 20,000-record inventory test establishes bounded search and paging; it is not a 20,000-agent heartbeat or deployment-throughput acceptance test.
## Find setup and actions
Integration entries show product logos and a direct setup button. Menus are used only when an item has multiple actions. Sectigo Certificate Manager, Jira, ServiceNow and SIEM each have a visible entry with their current native or custom-integration status. In Getting started, choose AWS, Google Cloud or Azure to open that provider's direct connection form. Choose the collector alternative only when you want discovery to run in your own environment.
---
# Start with evidence
Source: https://qscan.dev/docs/
Sectigo Quantum Ready helps you discover cryptography, understand exposure, and plan a migration backed by evidence.
[Watch the video tutorials](./tutorials.mdx) for narrated installation, scanning and configuration walkthroughs with captions and transcripts.
Use **Search** in the documentation header (Ctrl+K or Command+K) to find a task, integration, or API endpoint. Results open in the same tab. Search runs locally in your browser against these maintained guides and the generated API reference.
Use the language selector to choose English, German, French, Spanish (Spain), or Japanese. The documentation language menu keeps you on the same guide where available. The UI remembers its language selection in this browser when local storage is available; it does not change the workspace configuration. Product names, commands, API identifiers and your own data remain unchanged. Some guides still use English while translation is being completed.
## Your first working session
1. **Activate your account.** Open your invitation, choose a password, set up your authenticator, and save your recovery codes. [Account setup](./account-setup.md)
2. **Choose an authorized source.** Choose a [repository](./repository-connections/), a [direct cloud connection](./cloud-connections/), an [uploaded capture](./capture-analysis/), or a [unified host agent](./unified-agent.md).
3. **Run discovery.** Use Run scan for a saved repository or cloud connection. Use an agent when the target is local or requires host/network access. Follow progress through completion and cleanup.
4. **Review the evidence.** Open Cryptographic inventory. Unknown findings and incomplete scans need investigation; a scan is not a certification of quantum safety.
5. **Plan the work.** Review [Quantum risk](./risk-assessment/), create migration tasks, and export a Living CBOM when you need a portable inventory.
[Open your workspace](https://qscan.dev/workspace.html)
[Launch guided agent setup](https://qscan.dev/workspace.html#getting-started) to prepare a scoped configuration, check agent contact, and review your first scan.
## Available today
The platform includes signed unified native agents, Python source alternatives,
TLS/SSH/QUIC discovery, offline TLS capture analysis, source and dependency
analysis, database cryptography discovery, SDKs and independently verified
updates. Accounts support passwords, MFA, passkeys, verified email sign-in and
email recovery. Administrators can provision workspaces and email invitations.
:::note Choose a delivery path
Start with the [unified agent quickstart](./unified-agent.md) for Windows/Windows
Server x86_64, Linux x86_64 or macOS arm64. The platform guides distinguish
Ubuntu/Debian service qualification from RHEL/CentOS runtime checks, and list
exact versions and update/reboot evidence. Native packages include their runtime;
Python remains an advanced fallback. Select only authorized scanners and targets.
[Direct cloud connections](./cloud-connections/) support scoped AWS, Azure and
GCP key and database configuration discovery without a local agent. Real-account
acceptance was waived for this delivery; configure Test access and inspect your
scan's results rather than assuming your account permissions are correct.
Provider metadata is distinct from engine/session cryptography. Live packet
capture requires its separate scoped workflow. SSO remains planned for a later phase.
:::
For saved PCAP/PCAPNG files, follow [Analyze an existing network capture](./capture-analysis/). Use the [troubleshooting guide](./troubleshooting/) when setup fails. Keep credentials, activation links, MFA secrets and raw captured content out of support reports.
The [AWS KMS metadata discovery preview](./aws-kms-development/) supports managed exact-key jobs and a separately prepared AWS environment. The [GCP KMS preview](./gcp-kms-development/) supports managed exact-version jobs with a separate GCP environment. Each guide identifies its permissions and current validation limits.
## Connect an AI assistant
Use the [MCP server and agent skill](./ai-integrations/) to inspect workspace scope, start repository scans and review evidence.
## Automate your workspace
Open **Integrations** for GitHub Actions, GitLab CI, Python, JavaScript and MCP setup panels. Start with the [SDK identity check](./sdk-setup/) or [CI scanning guide](./ci-scanning/); local CI scanning needs no workspace token.
---
# Connect and manage Jira accounts
Source: https://qscan.dev/docs/jira-connections
Open **Integrations > Jira > Manage Jira**. The connection screen stays inside your workspace and preserves the navigation sidebar. Account authorization and connection management are available. Site, project and issue-type selection are available. Field mapping configuration is available. Reviewed ticket creation and uncertain-result reconciliation are available from migration tasks. Authorizing an account does not create a ticket or verify remediation.
## Add and authorize
1. Sign in with a workspace administrator account. Viewers and analysts can read connection metadata but cannot change access. An API credential can manage permitted metadata; browser sign-in is required for Atlassian consent.
2. Select **Add connection**, enter a descriptive name such as “Security engineering”, and save. The new row shows **Authorization required**.
3. Select **Authorize Jira**. You leave the workspace only for Atlassian's consent page. Complete consent using the intended Jira account.
4. The callback clears its authorization code from the address before saving. Select **Return to Jira connections** to return directly to Jira connections inside your workspace. A successful row shows **Authorization saved · project setup pending**.
If the platform app is missing, the page explains that a platform operator must configure it and links to the [registration guide](../register-jira-app/). Naming a connection does not require the app to be configured. Consent does.
## Choose the project and issue type
Select **Choose project** on an authorized connection. Setup opens inline:
1. Choose an authorized Jira site and select **Continue**.
2. Choose a project. Use **More choices** or **Previous choices** to browse pages; the first page is not necessarily the whole list.
3. Choose an issue type and select **Save choices**.
The row now shows the saved project and issue type, with **field mapping pending**. **Configure fields** opens the mapping editor; **Change project** reopens target setup. Saving does not create an issue or mark remediation complete. Subtask types retain their subtask flag; their required parent and other fields must be configured in the field-mapping editor.
Choices expire after ten minutes and are tied to the current administrator, workspace, connection and authorization. If choices expire or the connection changes, go **Back** and reload the project and issue type. Names and IDs are taken from verified provider responses, not accepted as free text. Reauthorizing an account clears the old target so a different Jira account cannot inherit an unverified project selection.
## Manage existing connections
Authorization and setup have visible buttons on each connection. Secondary controls such as **Rename**, **Change project** and **Disconnect** appear beside them when available.
- **Rename:** edit the name inline. A failed save keeps your entered name so you can correct it. Renaming advances the connection revision and invalidates any consent flow started before that change.
- **Disconnect:** review the inline confirmation before invalidating stored authorization. Existing Jira issues are unaffected. Revoke application access in Atlassian separately if needed.
- **Reconnect:** opens the disconnected connection for fresh consent. It never restores old tokens. If consent cannot start, the connection remains visibly awaiting authorization.
- **Archive:** available after disconnect. Confirm to remove the row from the active view while retaining metadata and audit history.
Use **Active** and **Archived** to switch lists. Each page contains at most 50 rows; **Next** and **Previous** traverse the selected list. **Refresh** loads the latest state. Workspace administrators can permanently delete archived connections; archiving does not remove their retained ticket receipts.
## Recover from setup problems
| What you see | Next step |
| --- | --- |
| Platform app setup is needed | Ask a platform operator to register the app; follow the linked guide. |
| Sign in with your account | Use a workspace administrator browser session for consent. |
| Authorization cancelled or denied | Return to Jira connections and start fresh consent. |
| Connection changed | Refresh the row before acting. Another change invalidated the earlier revision. |
| Authorization saved | Select **Choose project** to choose the site, project and issue type. |
| Loading failed | Retry loading connections. No sample connections are substituted for your data. |
Errors appear beside the affected form or connection. Uncertain OAuth exchanges are not retried automatically. Connection metadata and audit records never expose provider tokens.
## Metadata discovery API
Verified workspace administrators can read Jira setup metadata with `POST /api/auth/jira/discover`. The inline project selector uses this API. Discovery operations read provider metadata; `save-target` saves a verified site/project/type choice. Save field mappings through Configure fields, then create reviewed tickets from migration tasks using the delivery workflow below.
Every request includes `connectionId` and its current `expectedRevision`. Choose one operation:
| Operation | Additional fields | Result |
| --- | --- | --- |
| `sites` | None | Authorized Jira sites, including cloud ID, display name and site URL |
| `projects` | `cloudId`, optional `startAt` | Up to 50 projects and `nextStartAt` |
| `issue-types` | `cloudId`, `projectId`, optional `startAt` | Up to 50 issue types and `nextStartAt` |
| `fields` | `cloudId`, `projectId`, `typeId`, optional `startAt` | Up to 50 create-field definitions, required/default flags, schemas and allowed values |
Start at offset 0. Continue with the returned `nextStartAt` until it is `null`. Do not treat the first page as complete. Use cloud IDs from the current `sites` response; arbitrary provider hosts and unauthorized sites are rejected. Display provider names and field values as untrusted text.
Expired access tokens are refreshed using the encrypted rotating grant. The platform does not expose either token. A replaced platform app, revoked authorization owner or interrupted refresh requires fresh consent. These integration errors do not end an otherwise valid workspace session. For a 429 response, wait the returned `Retry-After` interval before retrying. Network errors and uncertain refreshes are not blindly replayed.
### Save a verified target through the API
Project and issue-type discovery items include an opaque `selectionProof`. Submit `operation: "save-target"`, the current `connectionId` and `expectedRevision`, plus `projectProof` and `typeProof` copied from the chosen items. Do not supply your own display names or target IDs. The response is the updated connection, including `target.site`, `target.project`, `target.issueType` and `target.selectedAt`, with an incremented revision and `mapping-required` state.
Proofs are not provider credentials, but they are bound to the current administrator's browser credential. Do not transfer them between accounts or retain them for later use. Expired, altered, mismatched and stale selections return a conflict. A saved target is a configuration choice; permissions and required fields must be checked again before any future issue creation.
### Load a complete field catalog
After saving a target, send `operation: "start-fields"` with the connection ID and its updated revision. This uses the saved site, project and issue type; do not send another target. The response includes `catalogId`, `nextStartAt`, `loaded`, `total`, `complete` and `expiresAt`.
Then send `operation: "load-fields"`, that `catalogId`, and the returned `nextStartAt` as `startAt`. Each response contains up to 50 field definitions and a `control` hint describing the value type. Continue until `complete` is true and `nextStartAt` is null. Required fields, writable operations, explicit default availability and current allowed values are retained. A null `total` means Jira did not supply a total; it does not mean zero fields.
Catalogs last 15 minutes and belong to the administrator who started them. Changes to the connection, authorization grant or platform app invalidate them. Restart with `start-fields` after a conflict or expiry; keep an unsaved form draft separately and revalidate its values against the new metadata. A second start replaces the first catalog and removes its pages. Reauthorization, target changes and disconnect also remove cached pages. Pages are stored server-side so a browser cannot redefine which fields are required.
The supported catalog size is 1,000 fields, 100 pages and 8 MiB of metadata. Exceeding a limit produces an error, never a silently truncated complete list. Unknown field types are explicitly marked unsupported. User and parent-issue references still need provider verification before issue creation. Catalog completion does **not** mean that a mapping has been saved or an issue can be created: creation still requires a reviewed task payload and current provider checks. Real-provider acceptance remains pending.
## Configure and save issue fields
After choosing a project, select **Configure fields** on its connection row. The editor loads all field pages before showing the form. Required fields appear first; expand **Optional fields** for additional values.
For each field, choose a fixed value, a migration task source where supported, or an explicitly advertised Jira default. Summary starts with **Migration task title** and description starts with **Migration task evidence**. Optional fields may be left unset. Use the listed options for choice fields, one value per line for string lists, an ISO timestamp with timezone for date-time fields, and an Atlassian account ID or issue key for user or parent references. Unsupported field types include an explanation; an unsupported required field without a Jira default prevents saving.
Cascading select fields have linked **Parent option** and **Child option** dropdowns. Choose a parent first; only its enabled children are offered. Changing the parent clears the child. An unavailable saved option stays visible until you replace it, so reloading metadata cannot silently change the meaning of a saved mapping. The server rejects disabled options and children from another parent. Jira workflow rules may require a child even when the metadata only marks the parent field required.
Select **Save field mapping**. The connection shows **Field mapping saved**. Reopen Configure fields to review or edit it. Save errors retain your form values. **Reload Jira fields** refreshes the catalog while retaining your draft in the current editor; changing pages or cancelling discards that unsaved draft. Previous fields that Jira no longer advertises are identified before saving the replacement mapping.
A saved mapping stores configuration, not a ticket or a validated task payload. User and parent references remain pending provider validation. Each real task must be compiled and validated before future issue creation. Changing the target, reauthorizing or disconnecting clears the saved mapping.
### Mapping API
Send `operation: "read-mapping"` with `connectionId` and `expectedRevision` to read the saved `mappings`, `savedAt` and `referenceValidationPending` flag. Only a current workspace administrator browser session can read mapping values; connection listings return only a summary.
Send `operation: "save-mapping"` with the same connection scope, a complete current `catalogId`, and `mappings` keyed by Jira field ID. Each entry is either `{ "source": "constant", "value": ... }` or a source-only object using `plan-summary`, `plan-description`, `provider-default` or `omit`. Values keep their JSON types: numbers are numbers, lists are arrays, and choice IDs are strings. Project and issue-type overrides are rejected. The response is the updated connection with a new revision and `mapping-saved` state. Use that revision for subsequent requests; an old catalog cannot be reused after saving.
For a cascading field, the constant value is `{ "parentId": "100", "childId": "101" }`; omit `childId` for a parent-only selection. The reviewed Jira payload uses `{ "id": "100", "child": { "id": "101" } }`. IDs must belong to the current metadata tree. Option changes between review and creation invalidate the preview. This follows [Atlassian's cascading-field JSON format](https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/).
### Check a user or parent reference
For a fixed user or parent value, use **Check account** or **Check parent issue** beside the field. Feedback identifies the current Jira account or issue and explains exactly what was checked. Changing the value clears that feedback. Names are displayed as text, and profile email addresses and avatar URLs are not returned.
- **Assignee:** must be active and currently assignable in the saved project.
- **Other user fields:** checks that the account is active; reporter permissions and custom field restrictions still need validation for a real issue.
- **Subtask parent:** must be a visible standard issue in the same project.
- **Parent of a standard issue:** checks visibility only; hierarchy compatibility still needs validation.
User checks require the `read:jira-user` OAuth permission. If it is missing, ask the platform operator to enable the permission, then choose **Authorize again**. Parent checks use issue-read access. Permission errors retain the entered value so you can repair access and check again.
The API operation is `check-reference` on `/api/auth/jira/discover`, with the current connection ID/revision, complete `catalogId`, `fieldId` and reference string `value`. It returns `kind`, `value`, `label`, `check` and an explanatory `message`. Results are informational at the time of the check: they are not saved as lasting authorization and do not make a mapping issue-ready. Creation must repeat current permission and payload checks.
Provider behavior follows [Atlassian user search](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/) and [user lookup](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/) contracts.
## Preview a migration task as a Jira ticket
Open **Migration roadmap**, choose a saved task, then select **Jira ticket**. This is available to workspace administrators signed in through the browser. Choose a Jira connection with saved field mappings and select **Review ticket**. The task remains open in the same workspace dialog.
The preview loads the selected target's field catalog and compares it with the metadata used when the mapping was saved. If fields changed, return to Jira connections, review and save the mapping, then prepare a new preview. The exact saved task revision supplies its title, owner, deadline, status and acceptance criteria. Current evidence supplies the selected asset's name, cryptographic algorithms, observation time, confidence and evidence ID. Raw scanner evidence, arbitrary record properties and location fields are excluded. Unsaved task edits are not included.
Review the visible summary and description, then expand **Review all Jira fields** to inspect every mapped value. This does not create an issue. References still require current validation, and a preview is not proof that Jira will accept a future request. Creating or closing a ticket does not verify remediation.
Only one preview per connection is retained. A new preview replaces the preceding one. Previews expire after at most five minutes, or when their field catalog expires. Task/evidence/configuration changes and authorization-context changes invalidate them; prepare again before any future creation operation.
### Task preview API
After saving a mapping, load a new complete field catalog using the connection's latest revision. Send `operation: "prepare-task"`, `catalogId`, `planId` and `expectedPlanVersion` to `/api/auth/jira/discover`, together with `connectionId` and `expectedRevision`. Task and evidence records are read from tenant storage; callers cannot supply replacement task text or evidence. The response includes `previewId`, exact `fields`, `payloadHash`, task revision, expiry and `unverifiedReferences`, with `issueCreated: false`.
Send `operation: "read-task-preview"` with `previewId` and the same connection scope to recheck the preview. It checks the current task, evidence, mapping, catalog and authorization context rather than returning a stale saved payload. A conflict requires a fresh preview. These operations perform no external Jira mutation. Use the delivery API below for explicit creation and recovery.
## Create a ticket and recover its outcome
Open a migration task, choose **Jira ticket**, select a connection, then **Review ticket**. The product checks for an existing attempt before preparing a new preview. Review the exact fields, then choose **Create Jira ticket**. Progress appears immediately while the service checks current Jira permissions, fields and references. The resulting issue is linked to the task; use **Open in Jira** to view it.
Reopening the task and choosing the same connection restores its saved result. Disconnected connections remain available for status checks; **Archived connections** shows archived entries. Creating or closing a Jira issue does not verify remediation: that still requires fresh evidence in the migration task.
- **Rejected:** repair the reported issue, choose **Review a new preview**, review it, then explicitly retry. Expired previews or refreshed authorization can require another review.
- **Result not confirmed:** choose **Check ticket status**. A network error does not mean no ticket was created.
- **May have created the ticket:** inspect Jira, enter the existing issue key, then choose **Confirm and link existing issue**. The service checks the original target and request/payload marker. A missing or mismatched issue does not permit another send. Reauthorize a disconnected connection before reconciliation.
- **Conflicting receipts:** review both recorded issues, select the primary issue, enter a reason, and acknowledge that the other issue needs separate review. **Save primary issue** checks the selected issue against the original target and correlation marker. Both receipts and the decision are retained. No Jira issue is created, closed, or deleted; remediation verification remains unchanged.
### Delivery API
POST to `/api/auth/jira/deliver` using a verified workspace administrator browser session. Agent credentials cannot create tickets.
For `operation: "create"`, send `connectionId`, `expectedRevision`, `planId`, `previewId`, `payloadHash`, a stable UUID `requestId`, and `confirm: true`. The server rebuilds content from the stored preview and current task records; do not send fields or replacement evidence. A rejected-attempt retry requires a fresh preview and `retryOf` naming that prior attempt.
For `operation: "status"`, send `connectionId` and `planId`. The response contains the latest `attempt`, or `null`. Status remains readable without an active Jira grant.
For `operation: "reconcile"`, send `connectionId`, `expectedRevision`, `operationId`, `expectedAttemptRevision`, `issueKey`, and `confirm: true`. Reconciliation uses current authorization for the original Jira site. Issue properties can be edited by Jira-authorized users; the matching request marker supports explicit administrator confirmation and is not a provider idempotency guarantee.
## Check the linked issue's Jira status
After creating or linking an issue, choose **Check Jira status**. The product reads the original Jira site using the connection's current authorization and displays the returned status with **Last checked**. This performs one read; automatic checks are configured separately below. **Reload saved result** reloads the saved attempt without contacting Jira.
A Jira status such as Done does not move or verify the migration task. A failed refresh preserves the previous observation and its timestamp. If the issue's identity, key, project or type has changed, the service reports that mismatch instead of silently replacing the link. Disconnected or archived connections can show saved observations; reconnect before checking Jira again.
The delivery API accepts `operation: "refresh-issue"` with `connectionId`, `expectedRevision`, `operationId` and `expectedAttemptRevision`. A successful response adds `issueStatus` containing its ID, name, optional category and server `checkedAt` timestamp. A stale attempt revision requires reloading the saved result first. No Jira mutation or remediation transition is performed.
## Find accounts by name
For a user field with **Fixed value**, enter at least two characters under **Find a Jira account by name**, then choose **Search accounts**. Select the matching name/account ID and choose **Use selected account**. The selected ID fills the mapping; **Check account** still verifies active identity and, for assignees, current project assignability. Reporter permissions and other field restrictions are checked again before creation.
Search requires `read:jira-user` and the Jira account's directory permissions. Results expose only account ID, display name and active state, not profile emails or avatars. Advertised field options further restrict the visible matches. A blank page can still have **More results** when field restrictions filter its accounts. Refine the name if the search limit is reached. You can also enter an exact account ID directly.
The service uses Jira's [active user search endpoint](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-user-search/), with pages of 50 and a maximum range of 1,000 matching users. Empty results do not prove an account is absent; directory permissions can also hide matches. Search is explicit rather than sent for every keystroke.
API clients with a verified administrator browser session can send `operation: "search-users"`, `catalogId`, `fieldId`, `query` and `startAt` to `/api/auth/jira/discover`, with the current connection ID/revision. Offsets are multiples of 50 from 0 through 950. Responses contain `items`, `nextStartAt`, `searchLimit` and `limitReached`. A current complete user-field catalog and grant are required; replaced catalogs or lost access discard in-flight results. Searches do not save field mappings or grant permission to create an issue.
## Find a parent issue
When mapping a parent field, choose **Fixed value**, enter an issue key or words from the title, and choose **Search issues**. Select a suggestion, choose **Use selected issue**, then **Check parent issue**. You can also enter an exact key directly. Selection alone does not validate the issue's hierarchy or permissions; creation checks those again against Jira.
Search returns up to 50 suggestions from recent issue history and the selected project's matches. History can include other projects. This is not a complete inventory: refine the query when an issue is missing. Only plain titles and issue keys are shown. Subtasks still require a non-subtask parent in the same project. Standard issues require a compatible parent hierarchy at creation.
The browser-admin API operation is `search-parents` on `/api/auth/jira/discover`, with `connectionId`, `expectedRevision`, `catalogId`, `fieldId` and `query` (2 to 100 characters). It requires a complete, current parent-field catalog and the existing authorized Jira grant. Changed access, catalog or connection state invalidates in-flight results. The response has `items: [{key, summaryText}]` and `suggestionLimit: 50`. Search and selection do not write to Jira or save a mapping.
Provider behavior follows [Atlassian's issue suggestion API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-issue-picker-get). Real-account acceptance remains pending; automated acceptance intercepts synthetic provider responses.
## Schedule linked issue status checks
In a migration task's linked Jira result, select **Automatic status checks**. Choose
15 minutes, one hour, 6 hours or one day, confirm scheduled read permission, then
select **Enable checks**. The panel shows the next due time, last successful check
and any saved error. **Pause checks** stops future reads and invalidates late results;
**Remove schedule** removes the consent record. A request already sent to Jira cannot
be recalled. **Reload saved result** shows the latest retained issue observation.
Schedules continue after sign-out under explicit standing administrator consent.
Each execution rechecks the workspace, scheduling administrator, Jira authorization
owner, connection revision and platform app identity. Normal OAuth token rotation
is supported; reauthorizing the connection, replacing the app, revoking access or
changing account/role versions stops the schedule. Review and explicitly enable it
again after correcting access. No browser session is extended for background work.
The original site must remain authorized. The issue ID, key, project and issue type
must still match the linked record. Identity mismatches pause checks for review;
other failed reads retain the previous observation and retry at the next interval.
A newer manual observation is not overwritten by an older in-flight scheduled read.
Scheduled checks never create/edit issues or verify migration tasks.
The first check runs after the chosen interval. Due times are targets: each workspace
processes at most two due Jira schedules per scheduler pass. Recovery after an outage
performs one check rather than replaying missed intervals. Up to 1,000 schedule records
are retained per workspace; remove unused schedules to free capacity.
`POST /api/auth/jira/sync` supports `read`, `save`, `pause` and `remove` in a verified
administrator browser session. Save includes `confirm: true`, `operationId`,
`connectionId`, `expectedRevision`, `expectedConnectionRevision` and `intervalSeconds`.
Provider acceptance against a real Jira account remains separate from automated
Worker/provider-fixture coverage.
Disconnected, archived and awaiting-authorization connections retain saved schedule
information. **Automatic status checks** explains how to restore authorization and
keeps **Pause checks** and **Remove schedule** available when applicable. It does
not offer enable or interval controls until the connection is authorized again.
A retained enabled flag is labeled as unable to run when its connection is inactive.
## Permanently delete a connection
In **Integrations > Jira > Manage Jira**, disconnect the connection, then select
**Delete permanently**. Archived connections also offer this action. Review the
inline confirmation; **Keep connection** cancels without changing anything.
Deletion removes saved credentials, field configuration and automatic status-check
schedules. It does not delete or modify Jira issues. If the response is lost, retry
using the same connection revision; a confirmed deletion is safe to repeat.
Ticket receipts and audit history remain available. Open the migration task's
**Jira ticket** panel and choose **Deleted connection history**, then select its
generic connection identifier and **Review ticket**. This view shows saved results
without contacting Jira. An uncertain result still means Jira may have created the
issue; inspect Jira before manually creating a replacement. A request sent before
disconnection/deletion can still return a receipt, which remains in this history.
Deleted connections cannot be restored or reauthorized; add a new connection if
needed. Historic task receipts do not transfer to the new connection.
Administrators can call `POST /api/v1/jira-connections/{id}/delete` with
`expectedRevision` and `confirm: true`. Active credentials must be disconnected
first. Normal connection reads return 404 after deletion. To page through generic
history identifiers, use `GET /api/v1/jira-connections?deleted=true`; do not combine
`deleted=true` with `archived=true`.
JavaScript: `client.deleteJiraConnection(id, revision, true)` and
`client.jiraConnections({deleted: true})`. Python:
`client.delete_jira_connection(id, revision, True)` and
`client.jira_connections(deleted=True)`. MCP exposes `jira_connections`,
`jira_connection` and the administrator-only `jira_connection_delete` tool.
Deletion requires explicit `confirm: true`; OAuth/workspace authorization still
applies. SDK and MCP history listing returns connection identifiers, while the
browser migration-task panel provides retained ticket receipts.
---
# Linux binary preview
Source: https://qscan.dev/docs/linux-binary-preview
import NativeDownloads from '@site/src/components/NativeDownloads';
## Current native release
Unified Linux package **0.51.575** contains native agent **0.27.8 / sequence 871**
and installer **0.51.571 / sequence 868**. No system Python is required. This agent
includes database discovery drivers for PostgreSQL, MySQL, SQL Server and
SQLite/SQLCipher alongside the existing scanners. Follow [database setup](../database-scanning/)
to configure explicitly allowed connections and restricted credentials.
Agent 0.27.4 also records fresh-session evidence for verified RSA key-transport
capability probes used by the [NIST RSA establishment risk profile](../risk-assessment/#review-rsa-key-transport).
Older observations without this evidence remain unassessed until rescanned.
[Download the current Linux package](https://qscan.dev/downloads/native/deployment/linux/0.51.575/Sectigo-Quantum-Ready-Linux.tar.gz).
Expected SHA-256: `6a60d405af217704f55a33c866edf8c0b54b7c23908cb6dd28dce532e5e28d8f`.
The current release passed native qualification, supported-distribution loader
and database checks, scanner/relay fixture lifecycle and production managed code
scanning. Fixture update/reboot checks do not imply a new production upgrade test.
### Retained 0.27.4 qualification
The earlier 0.27.4 package passed enrollment transfer, restricted service startup, status
and removal on Ubuntu 24.04 and Debian 12/13. The installed agent passed update
rollback, configuration preservation and reboot checks. Native database checks
passed verified network connections to PostgreSQL, MySQL and SQL Server and
read-only SQLite/SQLCipher formats 1 through 4. A foreground SQLite job was also verified
through the production control plane. The restricted installed service also completed
a SQLite job against a local test control plane, preserving the database bytes,
excluding application rows and local paths, and retaining unknown encryption status.
Its configuration survived signed updates, rollback and reboot. Earlier native
0.27.2 completed installed-systemd PostgreSQL, MySQL and SQL Server jobs through
the production control plane with verified TLS and explicit ordinary-role
permission gaps. That retained evidence is separate from the 0.27.4 foreground
engine checks and installed SQLite lifecycle checks described above.
The published 0.51.512 package also completed a fresh silent installation in an
isolated Ubuntu guest using a genuine per-device production deployment grant.
The restricted service reported native 0.27.4 and a production heartbeat; package
status and removal passed. This installation rehearsal did not submit a target
scan. Removal and cloud identity revocation remain separate actions.
Loader and database checks passed on Ubuntu 24.04, Debian 12/13, Red Hat UBI 8
and CentOS Stream 9, with a GLIBC 2.28 floor. RHEL/CentOS host-service, SELinux
and FIPS qualification remain separate from container checks. Existing qualified
relay-node releases remain selectable; this release does not change their update
eligibility.
## Previous native release 0.26.92
Native preview agent **0.26.92 / sequence 716** is available for foreground
scanning and explicitly approved relay-node updates. It includes the relay retry
fix: an interrupted or rejected request is not automatically replayed through
another relay or direct fallback. Only pre-request route unavailability may be
retried. Compiled loopback tests verified one accepted heartbeat in both cases.
The release passed native crypto, independent QUIC interoperability, capture
parity and the GLIBC 2.28 symbol audit. Loader checks passed on Ubuntu 24.04,
Debian 12/13, Red Hat UBI 8.10 and CentOS Stream 9. These container checks do not
establish RHEL/CentOS host-service, SELinux or FIPS qualification.
Unified Linux package **0.51.446** contains agent **0.26.92 / sequence 716** and
installer **0.51.445 / sequence 717**. Its exact archive passed user-enrollment
transfer, restricted service startup, repeat-install rejection, status and removal
on Ubuntu 24.04 and Debian 12/13. The relay launcher also passed real cloud
enrollment, restart, same-release identity preservation, reboot, a fresh cloud
heartbeat and removal on Ubuntu. The temporary relay identity was revoked and
the VM removed afterward. Generic scanner-service managed updates are qualified
separately from relay-node updates.
The earlier cloud-requested replacement from **0.26.72 / 627** to **0.26.77 / 660**
preserved relay identity across replacement and reboot. That result applies to
the named versions; Linux92's installation check did not replace an older version.
Agent92 adds verified SNTRUP761/X25519 SSH negotiation and expanded lockfile
coverage. Its native capture analysis passes 123 cases, including mixed TLS1.2/1.3
and QUIC. Installer445 fixes rollback when a failed update exhausts systemd's
start limit: it restores the previous configuration before clearing the managed
unit's failed state. The corrected native installer passed 89 lifecycle checks,
including rollback, reboot, interrupted-update recovery and removal.
## Previous native release 0.26.71
Agent **0.26.71 / sequence 624** includes the current native crypto scanners,
including TypeScript import-equals detection, composite-certificate identification,
and scoped remote SSH host-key inventory. The unified Linux package includes all
scanner modules and the compiled installer; no system Python is required.
The exact package passed offline installation and removal on **Debian 12 and 13**:
existing user enrollment transfers to a restricted system service, scope and
credentials are preserved, repeat installation is rejected, and the service
journal excludes credentials. Use the guided or silent installation below.
Debian-specific reboot and managed-update qualification remain separate checks.
This executable also passed loader and static-code scanning checks on Ubuntu 24.04,
Red Hat UBI 8, CentOS Stream 9, and Debian 12/13. Its audited GLIBC 2.28 baseline
avoids requiring GLIBC 2.38. Container checks do not establish full RHEL/CentOS
host service, SELinux or FIPS qualification. Independent QUIC interoperability
passed all twelve v1/v2 CLI cases across three hybrid and three classical groups.
## Previous release 0.26.58
Agent **0.26.58 / sequence 556** adds observed QUIC v1/v2 server-name
separation and retains TCP SNI separation across TLS 1.0 through 1.3, mixed-version
capture analysis and TLS certificate-rejection partial findings. Compiled capture
acceptance covers **123 cases**. Names observed in a capture do not authenticate
the server; ambiguous or incomplete name evidence stays separate.
The exact Linux executable passed independent QUIC v1/v2 interoperability with
three hybrid and three classical groups, managed QUIC against qscan.dev, live
collector reporting and partial TLS-result ingestion. Offline Ubuntu systemd
checks cover restricted execution, supervised replacement, interrupted-update
recovery, crash rollback, a real reboot and removal. Ubuntu 24.04, Red Hat UBI 8
and CentOS Stream 9 container runtime checks pass; these do not establish full
RHEL/CentOS host service, SELinux or FIPS qualification.
Debian **12 and 13 (x86_64)** also pass native runtime checks with this published
agent: startup and Python/JavaScript crypto detection run without system Python,
as a non-root user with a read-only runtime. The compiled installer's handoff of
existing enrollment also passes on both versions, and each distribution's actual
systemd validates the generated discovery and updater service definitions.
Use the same Linux x86_64 unified package; a separate Debian package is not required.
Debian 12 and 13 also pass offline QEMU tests of the published unified package:
handoff from an existing non-root enrollment, native service installation and
startup under a restricted identity, preservation of enrollment and local scope,
repeat-install rejection, and service removal. The service journal excludes the
enrollment credential. Debian-specific reboot and managed-update qualification
remain separate, outstanding checks; these installation tests do not establish them.
The preceding release baseline remains documented below.
Agent **0.26.54 / sequence 537** includes RSA transport probes and passive RSA
suite classification, hybrid Go CurveID discovery and the explicit TLS 1.2 floor.
Compiled acceptance covers 108 capture cases, fifteen TLS capability probes,
independent QUIC v1/v2 with three hybrid groups, and eighteen offline systemd
unified-installation checks. Production update qualification for this exact
release is recorded separately below; earlier rollout results retain their version.
This build also includes the symmetric cloud-key corrections from 0.26.47,
direct CommonJS resolution from 0.26.48, and language-specific pattern context
from 0.26.49. The standalone context matrix passes all 30 cases.
Version 0.26.50 introduced bounded Python crypto API and helper-import analysis,
including explicit JWT and TLS configuration observations. Standalone acceptance
covers 16 API cases and a five-finding multi-file package with source hashes and
SARIF import evidence. Static configuration does not establish runtime use; see
[Python code coverage](../repository-connections/#python-cryptographic-api-and-configuration-evidence).
Collector report uploads now retain isolated partial findings and support retry
without uploading raw captures. The compiled collector passed four report cases
and eight CLI executions without Python on PATH. The source53 package-root import
correction requires a later native release.
## Linux distribution coverage
The combined x86_64 package uses a **glibc 2.28** baseline for the native agent
and installer. This addresses the `GLIBC_2.38` loader error from earlier downloads.
Download the current package and extract it into a fresh directory; do not replace
the operating system's glibc.
**Ubuntu**, **Red Hat Enterprise Linux (RHEL)** and **CentOS** are the supported
distribution targets. The actual agent loads and scans code in Ubuntu 24.04,
RHEL 8 UBI and CentOS Stream 9 userspace. The installer passes 20 consecutive
enrollment-handoff suites on each, without Python on its executable search path.
Ubuntu has offline native systemd installation and removal qualification.
On systemd 239?246, installation creates a root-owned credential copy with an
exact read-only ACL for the dedicated service UID. No group or other user receives
access. Newer systemd uses its credential-staging facility. ACL support is required
for the older-systemd path; failure rolls installation back. The original enrollment
credential remains root-only. Removal deletes the derived credential copy.
Full RHEL/CentOS host lifecycle, SELinux-enforcing, FIPS-policy and reboot
qualification remains separate from these userspace checks. The older-systemd
credential path is also exercised in the existing Ubuntu systemd guest; that is
not a RHEL-host result. Systems with glibc older than 2.28, including CentOS 7,
are outside this binary baseline. Check with `getconf GNU_LIBC_VERSION`.
Qualification includes the native loader and bundled libraries, restricted systemd
service, trust stores, SELinux enforcing where applicable, interactive and silent
enrollment, scans, signed updates, failure recovery and removal. Installation and
capture-decoder instructions must match the distro's package manager. Distro crypto
policy and FIPS behavior require explicit tests; do not disable security controls
to work around an unsupported configuration.
## One package, guided or silent installation
Download the Linux x86_64 package (272 MB).
It contains native agent **0.27.4 / 790**, installer **0.51.445 / 717**, and the
installation launcher. Ubuntu and Debian host qualification is summarized above;
RHEL/CentOS runtime coverage is distinguished in the distribution table. Python is not
required. All scanner modules are included, but only explicitly approved resources
can be scanned. Capture analysis additionally requires TShark.
Verify the archive before extracting it. Confirm the hash through your trusted
release channel; independently trust the release key included in the package.
```sh
printf '%s\n' '4417459854d857a9eda764e01e039b7e772ead70ac7ff7cf489bcfd59bc85696 Sectigo-Quantum-Ready-Linux.tar.gz' | sha256sum --check - &&
sudo mkdir -m 755 /opt/qscan-setup-0.51.512 &&
sudo tar --extract --gzip --file Sectigo-Quantum-Ready-Linux.tar.gz --directory /opt/qscan-setup-0.51.512 --no-same-owner &&
cd /opt/qscan-setup-0.51.512 &&
sudo ./Deploy-QuantumReady.sh guided
```
Use a fresh extraction directory; stop if it already exists. The launcher requires
root-owned paths without group or public write access. Approve the displayed
sign-in link in your own browser. Selecting a direct cloud connection or declining
local scope cancels service installation. Keep the private setup state to resume.
The service runs under its restricted account; an optional wizard validation scan
runs as the installing account and does not establish service-account access.
For unattended management tools, deliver a private per-device grant and approved
configuration separately from this shared package:
```sh
sudo ./Deploy-QuantumReady.sh install --config /etc/qscan-enrollment/agent.json --grant-file /etc/qscan-enrollment/device-grant.json --state-directory /var/lib/qscan-enrollment
sudo ./Deploy-QuantumReady.sh status
```
If enrollment completed but installation was interrupted, keep the same configuration
and state directory. With package 0.51.304 or later, omit the grant file when resuming:
```sh
sudo ./Deploy-QuantumReady.sh install --config /etc/qscan-enrollment/agent.json --state-directory /var/lib/qscan-enrollment
```
The native client validates the saved identity and approved scope. Missing or changed
state stops installation; it does not create another agent. If service or recovery
state already exists, inspect `status` and use `recover` or `upgrade` instead.
The configuration must include `managedConfiguration: true`. A failed preflight
does not redeem the grant. Existing installation or recovery state stops enrollment;
use `status`, `upgrade`, `recover` or `remove` as appropriate. Removal handles a
registered updater first and retains credentials, configuration and logs. It does
not revoke the workspace identity. Cloud updates still require the separately
configured [update supervisor and local policy](../linux-update-supervisor/).
Confirm recent contact and a real scan in your workspace after installation.
Offline systemd lifecycle, native wizard cancellation and 93 capture parity cases
passed. Live enrollment and your provider permissions still need a deployment pilot.
## Individual releases and advanced setup
The x86_64 agent runs without system Python. Use foreground mode for an initial scan, then the restricted service where its lifecycle is qualified. Ubuntu 24.04 and Debian 12/13 have service qualification; RHEL/CentOS runtime checks and their host-service limits are listed under [Linux distribution coverage](#linux-distribution-coverage). Other architectures require separate qualification.
Stored PEM/DER certificates and PKCS#7 `.p7b`/`.p7c` bundles are inventoried by scoped code scans. PKCS#7 extraction inventories certificates only; container signatures, content and CRLs remain unverified. Native/source parity, independent OpenSSL extraction and live MCP inventory/CBOM checks passed. Actual
Linux binary acceptance verified file provenance, key/signature metadata, usage
restrictions and CBOM public-key links through live managed jobs. Eight RSA, EC,
Ed25519 and Ed448 observations matched independent offline OpenSSL decoding.
Stored certificates do not prove trust, deployment or runtime use. See
[stored certificate discovery](../repository-connections/#stored-certificate-discovery).
Earlier scanner **0.26.58** supports foreground and systemd service execution. It includes exact classical/PQC identities, negotiated TLS
group and signature evidence, exact RFC 7919 finite-field group recognition,
optional bounded TLS capability probes, and linked peer-certificate inventory. It passed
offline TLS 1.3/DHE tests and managed TLS/code discovery as a restricted non-root
process without system Python. Service and managed-update releases have separate
lifecycle acceptance; the service links below select that channel explicitly.
Active QUIC discovery supports v1/v2 and the X25519MLKEM768,
SecP256r1MLKEM768 and SecP384r1MLKEM1024 hybrid groups. Certificate authentication
remains separately reported. The production-connected service upgrade from
0.26.40 to 0.26.42 completed a verified QUIC v1 handshake to qscan.dev using
X25519MLKEM768 and published evidence tied to the new process and scan job.
This does not claim every server supports those groups or QUIC v2.
The binary also includes the Go parser without requiring Go or Python on the host.
Scoped code scans resolve imported crypto calls, exclude shadowed names and text
mentions, and retain incomplete coverage for unresolved function-value flows.
Live managed jobs verified Go identity, partial-scan recovery, immutable evidence
and CBOM. See [Go discovery scope](../repository-connections/#go-crypto-call-discovery).
This binary identifies ML-KEM-512/768/1024 and all twelve pure SLH-DSA
certificate public-key parameter sets. Sixty actual-binary cases cover PEM,
DER and PKCS#7 encodings. Public-key encoding validation does not establish
signature verification, trust or runtime use. Prehash SLH-DSA variants remain
outside this coverage.
Active TLS 1.2 AES-CBC scans now distinguish encrypt-then-MAC from
MAC-then-encrypt using both handshake hellos. The actual compiled Linux binary
passed four local negotiations: AES-128/SHA-256 and AES-256/SHA-384, each with
server ETM enabled and disabled. Their reports retained exact evidence and
certificate links through live inventory and CBOM export. This does not prove
overall TLS security. Missing or inconsistent evidence remains unknown. Passive
TLS 1.0-1.2 CBC captures report record order only when complete, unambiguous
client/server hellos correlate; this does not verify peer identity or Finished messages.
JavaScript/TypeScript calls use parsed Node crypto imports, aliases and lexical scopes; shadowed calls and string mentions are excluded. WebCrypto discovery preserves supported declared algorithm parameters without claiming runtime use. Dynamic identities remain unknown and syntax errors mark incomplete analysis. Cross-file dataflow remains a gap. Python crypto calls also use lexical import/scope resolution. Eight compiled scope
fixtures and SARIF checks passed. This binary also includes the capture-quality
pass for missing segments, truncation and malformed dissection. Four live managed
mixed TLS/QUIC capture jobs, two malformed-handshake rejections and two scope
rejections passed with TShark 4.6.9. Contradictory TLS versions and invalid
HelloRetryRequest messages cannot publish partial findings; see the
[capture guide](../capture-analysis/#incomplete-captures) for coverage and timing limits.
This release identifies ML-DSA-44/65/87 certificate keys and signatures. Its executable
passed 18 real ML-DSA TLS cases, 48 classical signature/cipher cases, and 12 ML-DSA
PEM/DER/PKCS#7 file cases, with trust rejection and exact CBOM parameter checks.
Sequence **430** uses Python 3.15.1/OpenSSL 3.5.9 and includes certificate key-usage
restrictions, exact extended-usage OIDs, criticality and CA path limits. Live managed
jobs verified those fields through ingestion and CBOM export. Missing restrictions
are not interpreted as observed cryptographic use.
The actual binary passed trusted and untrusted handshakes for X25519MLKEM768,
SecP256r1MLKEM768, SecP384r1MLKEM1024, ML-KEM-512/768/1024 and classical X25519.
Live scans from a runtime with no system Python negotiated X25519MLKEM768 and
exported its classical/PQ constituents. Certificate authentication remained
classical; hybrid key establishment does not make the whole connection quantum safe.
The optional `pq-v1` profile performs thirteen probes after a verified baseline,
including six explicit PQ/hybrid group offers. Enable it with
`"tlsCapabilityProfile": "pq-v1"` in local configuration; `tlsCapabilities: true`
alone keeps the seven-probe `modern-v1` profile. These profiles remain bounded
and non-exhaustive. Server failures are inconclusive, not proof of unsupported
algorithms. See [TLS capability profiles](../hosted-tls-scanning/).
The current agent is **0.27.26**, sequence **963**.
Agent 0.26.54 passed remote TLS, SSH and QUIC v1/v2 control-plane checks and
offline systemd enrollment. Its Ubuntu, RHEL UBI8 and CentOS Stream9 container
runtime checks and GLIBC2.28 audit pass.
Earlier agent 0.26.52 passed offline systemd enrollment, restricted service identity,
repeat-install rejection and removal, plus 108 capture and 12 QUIC cases.
A live cloud replacement and reboot were not repeated for this version.
An October 26 live development-workspace canary passed the staged update from
0.26.40 / 445 to **0.26.46 / 505**, fresh-process discovery, failed-follow-up
feedback, a verified QUIC v1 hybrid handshake, pause, credential revocation and
service removal. It used the existing 0.51.251 updater; this does not qualify
fleet throughput or the current installer. Earlier failed attempts remain in
the acceptance records. The QUIC detector keeps its independent version 0.26.40.
A live staged cloud rollout from 0.26.40 / sequence 445 to 0.26.42 / sequence 462 passed on an isolated Ubuntu systemd VM: the canary paused new scan claims, the new process reported its identity, scan admission resumed, and a fresh discovery job completed. A failed follow-up scan correctly cleared the success indication. An earlier, separate active-scan test held the compiled service for 45 seconds after it opened a repository file. The rollout waited with a real scan lease, a direct update request was rejected, and the original process completed its scan before update intent was created. That controlled repository test does not establish drain behavior for every scanner or failure condition, and was not repeated as part of the 0.26.42 canary. Managed updates require the locally configured supervisor; a published release alone does not replace an installed agent.
The 0.26.42 canary also completed a verified QUIC v1 handshake to qscan.dev with X25519MLKEM768, server-purpose verification and job-bound evidence, followed by pause, revocation, queued-job cancellation and service removal. This was one isolated development-workspace agent using the existing 0.51.251 updater, not fleet-throughput or current-installer qualification. The QUIC detector identifies its independent implementation version as 0.26.40; the job claim and heartbeat identify agent 0.26.42.
The 0.26.40 service workflow also passed installation, interrupted-download recovery, rollback after both a failed start and a running-process crash, reboot, interrupted supervisor removal recovery, and removal in an isolated systemd VM. Review the preview limits before wider rollout.
You need Bash, GNU coreutils, OpenSSL 3, jq and Info-ZIP (`unzip` and `zipinfo`) for verification, and administrator access only when installing or managing the service. Run verification as your regular user. The discovery service uses its own restricted account.
## Check setup before entering your token
In Getting started, use **Download commands** to save `download-agent.sh` in a new
setup folder. Review it, then run `sh download-agent.sh`. Downloads are saved beside
the script, and any failed download stops the script. Follow **Next** to verify,
configure and connect. The file contains no enrollment credential and does not
install or execute the downloaded agent. **Copy** remains available for each command.
Agent **0.25.4 and newer** run local configuration and dependency checks before displaying
the enrollment-token prompt. A missing configuration, invalid scope or missing
dependency stops with a diagnostic; fix it and run the same command again. Once
local checks pass, enter the token at the hidden prompt. These local checks do not
verify cloud permissions or authenticate the token with the platform.
## Recommended setup path
Open **Getting started**, choose the discovery source and the agent's operating
system, then select **Binary**. Download `agent.local.json` from the wizard. Follow
its numbered expandable steps in order; each command block has a copy button.
Commands use the current signed release details automatically, so you do not need
to substitute version and sequence placeholders from this reference guide.
Long command panels start collapsed. Select **Copy** to copy the complete command, or **Show commands** to review it first. Long lines scroll horizontally so paths and shell syntax stay intact; copying preserves the exact text.
Individual files and advanced verification details remain available inside each step.
## Run in your terminal without administrator access
In Getting started, choose **Linux binary**, then **In this terminal**. This is the
default for a first scan. The wizard downloads only the agent and its verification
tools. It does not install a service, modify the system trust store, or need Python.
For discovery after logout or reboot, choose **Background service** instead.
For manual setup, save the agent archive, manifest and signature in `agent-release`:
Save the verification script and PEM public key beside that folder:
Review the script and independently confirm the key identity described below. Use
the new script from these links: older copies only support installer verification.
The final `agent` argument selects the separate agent signature and release format.
```sh
bash verify_linux_installer.sh ./agent-release ./release-key.pem \
0.27.26 963 "$HOME/verified-agent" agent
```
Run this as an ordinary user. The output directory must not already exist. Verification
checks every file before staging it and never runs the executable. The terminal shows the verification phase and a file count every 100 files, so you can see that preparation is progressing. Keep its companion
files together. Save the wizard's `agent.local.json` in your working directory, then run:
```sh
QR_ENDPOINT=https://qscan.dev "$HOME/verified-agent/quantum-ready" connect --config ./agent.local.json
```
Paste the enrollment token at the hidden prompt. Local diagnostics must pass before
the agent connects. Keep the terminal open; Ctrl+C stops it. Confirm recent contact
in the workspace, create a scan, and inspect its findings. Saved captures additionally
need the supported TShark executable and read access to your approved files.
The following steps install the background service when you need continuous discovery.
## 1. Download and verify the installer
Create separate `installer-release` and `agent-release` directories. Save each component's archive, manifest and signature together in its matching directory. Keep the filenames unchanged.
Review the bootstrap script before running it. Obtain the trusted key from your administrator or compare its identity through a separately trusted channel. Downloading a key alongside an archive does not establish trust. The current development release key ID is:
```text
057ea0f9faf27f6710f042be3286d595951b5beb1f959e1a9ca5ba0daed9b832
```
For a PEM key, calculate that ID with standard tools:
```sh
openssl pkey -pubin -in release-key.pem -outform DER | tail -c 32 | sha256sum
```
Once you have reviewed the script and independently trusted the key, stage the installer in a new directory owned by you:
```sh
bash verify_linux_installer.sh ./installer-release ./release-key.pem \
0.51.595 960 "$HOME/verified-installer"
```
Verification checks the signature, purpose, host architecture, selected version and sequence, expiry, archive hash and every included file. It does not run the installer or replace an existing output directory. The whole staged directory is required; keep its companion libraries together.
## 2. Download the matching agent release
Save these three files in `agent-release`. The installer independently verifies this archive before installation; do not extract it manually or substitute the installer archive for the agent archive.
## 3. Enroll and configure your agent
Open Getting started, choose the discovery source and enroll a scoped agent. Save its downloaded `agent.local.json` configuration and the one-time token as a private `agent.token` file. Use only the targets and repository paths this machine needs. Cloud resources are configured independently of the host operating system; native cloud-provider access still requires its own acceptance and is not established by the TLS checks above.
```sh
chmod 600 agent.token
```
For a non-cloud discovery source, choose **Linux** as the host and **Linux binary (Ubuntu 24.04 x86_64 preview)** as the distribution. The wizard checks the current release catalogue, provides download links and copyable commands, and keeps verification separate from installation. If the current preview is unavailable or expired, it offers retry and the Python option without generating installation commands. Saved capture analysis also requires the supported TShark version; the binary does not bundle it.
## 4. Install the restricted service
Supply absolute paths to the files you reviewed. The following example assumes the downloads and configuration are in your current directory:
```sh
sudo "$HOME/verified-installer/quantum-ready-service" install \
--manifest "$PWD/agent-release/manifest.json" \
--signature "$PWD/agent-release/manifest.sig" \
--archive "$PWD/agent-release/sectigo-quantum-ready-linux-x86_64.zip" \
--trusted-key "$PWD/release-key.json" \
--expected-version 0.27.26 --minimum-sequence 963 \
--config "$PWD/agent.local.json" --token-file "$PWD/agent.token"
```
Installation and upgrade observe the service for 15 seconds before committing. A crash, automatic restart or failed startup check triggers rollback; a service that merely starts is not yet confirmed healthy. The JSON key must match the independently trusted PEM key. The service installs root-owned code, runs discovery under the non-login `sectigoqr` account and receives its credential through systemd. It does not need an inbound port or a remote shell.
## 5. Confirm activation
```sh
sudo "$HOME/verified-installer/quantum-ready-service" status
sudo journalctl -u sectigo-quantum-ready --since "10 minutes ago"
```
In Agents & sensors, confirm recent contact, then run a scan against an allowed target and inspect its findings. Service startup alone does not prove cloud access or successful discovery. Use the first failed check and its local diagnostic output to correct scope, access or missing tools.
To stop or remove the service, use the same installer with `stop` or `remove`. Removal preserves configuration, credentials, releases and evidence. Upgrades require a reviewed signed release and preserve local configuration. Use a manual upgrade below or configure the local supervisor for [cloud-requested updates](../agent-update-operations/) and [staged fleet rollouts](../agent-rollouts/).
If a preview has expired, downloads return an expired-release error. Do not disable expiry checks or lower the trusted sequence. Select a current reviewed release or use the [Python distribution](../agent-setup/).
For explicit version, sequence and expiry limits on administrator-initiated upgrades, see [local software update permissions](../linux-update-policy/). A policy alone does not start update polling. Installer 0.50.5 supports [persistent supervisor setup and recovery](../linux-update-supervisor/); registration does not change that policy.
## Upgrade an existing compiled agent
Keep the existing enrollment, configuration and credential. Download the current signed agent files from step 2 and verify the standalone installer as in step 1. In **Agents & sensors**, open this agent's **Scan admission**, pause new claims and wait for active leases to finish. An older 0.21.0 agent cannot provide an idle acknowledgement; the local installer independently checks that the managed service stops before replacement.
```sh
sudo "$HOME/verified-installer/quantum-ready-service" upgrade \
--manifest "$PWD/agent-release/manifest.json" \
--signature "$PWD/agent-release/manifest.sig" \
--archive "$PWD/agent-release/sectigo-quantum-ready-linux-x86_64.zip" \
--trusted-key "$PWD/release-key.json" \
--expected-version 0.27.26 --minimum-sequence 963
```
Check service status and recent logs with the commands above. In the console, confirm the exact version selected in your upgrade command, **Linux / x86_64 / Compiled** runtime metadata and a fresh idle observation while paused. Resume claims and run a scoped discovery job to verify its outcome. If the upgrade fails, inspect its error and status before resuming; startup failure triggers rollback. A pending recovery journal requires `recover`. This command performs a manual upgrade. For cloud-requested replacement, use the supervisor and staged rollout workflow instead.
### Confirm the old service stopped
Installer 0.49.1 verifies local stop completion before replacing service definitions. It requires an inactive/dead or failed/failed unit, no main or control process, whole-control-group termination, and no populated service control group. The accepted preview uses Ubuntu 24.04 with cgroup v2 and the managed unit in `system.slice`.
If stop confirmation fails during an upgrade, existing definitions remain in place and the recovery journal is retained. Inspect the local unit and any administrator overrides, then use `recover` after correcting the cause. Do not delete recovery state to force an update. A missing or unreadable control-group report is not treated as proof of completion.
```sh
sudo systemctl show sectigo-quantum-ready.service \
--property=ActiveState,SubState,MainPID,ControlPID,ControlGroup,KillMode
sudo "$HOME/verified-installer/quantum-ready-service" recover
```
This check covers the managed service and processes inside its control group. It does not prove that unrelated agents started manually elsewhere have stopped, verify discovery health, or enable cloud-pushed updates.
## Check update status in the console
Open **Agents & sensors > Agent controls > Software update status** to see the latest managed update request. The same dialog contains scan pause/resume and refresh controls. Workspace administrators can select **Review software update** when a newer compatible release is available. The review checks scan admission and requires confirmation that the local supervisor and policy are configured; opening the dialog does not install them.
An installation report confirms only what the supervisor reported. Check recent agent contact and run an allowed discovery scan before treating the agent as ready. An unknown outcome means replacement was authorized but its result was not reported before the deadline: inspect the local service and supervisor before resuming scans. A reported rollback also requires a service check. Cancelling or expiring an update request does not automatically resume scan claims.
### Process and scan evidence
The update status API and console distinguish waiting for a new process, stale contact, waiting for a scan, and a completed scan. A qualifying heartbeat must identify a different process from the one at replacement authorization, match the target compiled platform/version, arrive after installation was reported, and be less than three minutes old. A qualifying successful scan must start after that report and claim its lease with the same process identity. A subsequent failed scan clears the success indication. Revocation, archive, or stale contact prevents a ready-looking result.
Python scanner 0.23.3 adds process identity to claims. Older agents remain compatible but their scans do not establish this evidence. Current published Windows and Linux binaries include process-bound claims; use the release catalog above for their exact version and sequence. Existing operations without a recorded pre-update process also cannot establish it. This is reported runtime and accepted scan evidence, not remote binary attestation; `operationalHealthVerified` remains false. Managed update requests are available to all workspaces; local permission remains required.
### Cancel a queued update
Workspace administrators can open **Agent controls > Software update status > Cancel update request** while the request is still waiting for the supervisor. Review the inline confirmation, then confirm cancellation. Cancelling does not change scan pause/resume settings. Once replacement has started, cancellation is unavailable and cannot undo installation.
The server checks the displayed operation revision. If another process has changed it, or the browser cannot confirm the response, use **Refresh status** before taking another action. The console never automatically retries a cancellation. Viewing and cancelling an existing request remain available when new managed-update execution is disabled.
## Saved capture discovery
The earlier **0.26.42** binary passed 15 live assigned capture-job cases with
TShark 4.6.9: eight successful analyses, five malformed-input rejections, and both
outside-directory and escaping-symlink denial. Cases cover mixed TLS 1.2/1.3 in
both orders, legacy TLS certificate flights, passive key exchange, CBC protection
and QUIC v1/v2. The exact qualified files ran without system Python as UID/GID
10001, with all capabilities dropped and a read-only root. MCP submission,
process-bound claims, immutable evidence and CBOM certificate/algorithm links
passed. Raw captures stayed local. These are foreground managed-job checks.
Earlier service qualification used signed release 0.23.8 / sequence 154 for capture acceptance as a systemd-managed service in an isolated Ubuntu 24.04 guest using native installer 0.50.5/81. The service ran as `sectigoqr` with zero capabilities and no-new-privileges. Managed configuration, pause, revocation, removal, both mixed TLS packet orders and QUIC v1/v2 passed. Outside-directory and escaping-symlink jobs were rejected.
TShark remains a separate trusted dependency; a customer decoder installer remains unfinished. Follow [capture setup and validation limits](../capture-analysis/#native-linux-capture-jobs). Raw files stay local on this path; the hosted upload workflow has separate consent and cleanup behavior.
## Release validation
Version **0.25.2** adds bounded polling and retry spread to reduce synchronized fleet traffic. A real-process loopback test checks server retry delays, recovery, idle polling, process identity and revocation without Python on PATH. First contact stays immediate; shutdown remains interruptible. See [polling behavior](../agent-distributions/#polling-and-reconnect-behavior) for interval details.
Version **0.25.1** adds cryptographic dependency discovery in `requirements.txt`, including explicit incomplete coverage for unresolved includes. Compiled output matches the source scanner, including redaction of private requirement values. Runtime process/socket scope checks and hidden enrollment input remain part of binary acceptance. See [requirements coverage](../repository-connections/#python-requirements-discovery) for interpretation and limits.
Version **0.23.8** adds resolved `Cargo.lock` dependency coverage. The compiled release passed live MCP code and TLS jobs with local scope rejection, managed configuration, pause, revocation and evidence/CBOM checks. Acceptance ran as UID 10001 with no system Python, a read-only root and dropped capabilities. See [Rust dependency coverage](../repository-connections/#rust-dependency-coverage) for interpretation and limits.
Version **0.24.1** adds native [Linux process library discovery](../linux-runtime-discovery/), including `runtime --pid 1234 --pin`. It passed hosted runtime jobs, local-scope rejection, changed-process rejection and revocation in a Python-free container. Existing TLS, source and mixed TLS/QUIC capture workflows also passed against the hosted platform. Runtime process inspection remains foreground-only under the process owner.
Version **0.23.9** adds the foreground `connect` command with a hidden enrollment
prompt and local diagnostics before starting discovery. Its compiled runtime passed
local process and hidden-prompt checks, live development-workspace TLS/code scans,
and real mixed TLS/QUIC capture analysis in a restricted container. Those checks
are separate from service lifecycle and managed-update acceptance.
## Go module coverage in 0.25.3
The 0.25.3 compiled agent adds catalog-based `go.mod` dependency discovery. It passed source parity, redaction, unresolved replacement reporting, and a live workspace scan through inventory and CBOM. No Go installation is required. See [Go module coverage and limits](../repository-connections/#go-module-discovery). The existing operating-system and service acceptance limits still apply.
## Install a service from your regular-user enrollment
The combined Linux package **0.51.400** includes compiled installer **0.51.399 /
sequence 628**. It can reuse completed regular-user setup without creating a
second agent or exporting its credential. No system Python is required.
Finish browser enrollment as the regular user, exit setup, and stop any foreground
agent. Keep the private state directory unchanged. Record that user's numeric UID
with `id -u` before using sudo. From the verified, root-owned extracted package:
```sh
sudo ./Deploy-QuantumReady.sh install-enrolled \
--state-directory /home/operator/qscan-setup \
--owner-uid 1000
sudo ./Deploy-QuantumReady.sh status
```
Replace the example path and UID with the actual enrollment directory and its
owner. The state directory must remain private (700; state files 600). Do not copy
credentials or loosen permissions. The installer reads enrollment after dropping
to that user, then rechecks the completed identity and approved scope before
installing the restricted service. Missing, locked, unsafe or incomplete state
fails before installation and remains available for retry.
The compiled package passed an offline Ubuntu 24.04 systemd lifecycle test:
user-owned enrollment transfer, unchanged scope and ownership, restricted service
startup, duplicate-install rejection, status and removal. Process arguments,
environment and service logs contained no enrollment credential. This acceptance
uses a synthetic identity; live browser-to-service enrollment and provider access
are separate checks.
## Reuse guided setup enrollment
Compiled installer **0.51.258 / sequence 457** accepts `--terminal-state` during
installation. It loads the identity and exact local scope saved by completed
browser setup, so you do not need to export a token or create another agent.
Exit guided setup and stop its foreground agent first. In the generated install
command, replace `--token-file` and `--config` with:
```sh
--terminal-state /root/qscan-setup
```
Keep the manifest, signature, archive, trusted-key, exact-version and minimum-sequence
arguments. The private state must belong to the installing account with directory
mode 700 and state-file mode 600. An explicit `--config` must match the saved
configuration exactly. For regular-user enrollment, use the explicit `install-enrolled` command above;
do not weaken permissions or copy tokens to bypass ownership.
Use per-device bulk enrollment for unattended service deployment.
The compiled transfer passed offline Ubuntu systemd tests for unsafe permissions,
changed scope, credential/configuration preservation, non-root service startup,
credential-free process arguments/environment/logs, stop and removal. Removal
retains protected identity for recovery. This is not a completed single-command
installer or proof of provider access and successful cloud scanning.
---
# Linux process library discovery
Source: https://qscan.dev/docs/linux-runtime-discovery
Inspect explicitly selected Linux processes for recognized mapped cryptographic libraries.
Open **Integrations > Linux process libraries** to find this guide. Download and verify
the Linux binary or [source bundle](https://qscan.dev/downloads.html). The binary includes its runtime; the source collector needs Python 3.12 or newer.
## Run managed discovery jobs
Use Linux binary or source scanner **0.24.2 or newer**. This release fixes setup diagnostics rejecting the valid `allowedRuntimeProcesses` field. If an older build reports an unknown configuration field, keep your scoped configuration and install the current verified release; do not remove the process allowlist to bypass diagnostics. In the wizard, choose Linux and the binary distribution for setup without Python. Follow its download and verification steps before approving a process.
1. On the Linux host, approve a process instance as its non-root owner. Replace 1234
with the approved PID:
```sh
"$HOME/verified-agent/quantum-ready" runtime --pid 1234 --pin
```
2. Open **Getting started > Linux process libraries**, enroll an agent with the
runtime capability, and paste the returned target value into the scope field.
Choose Linux and download `agent.local.json`. The target binds the PID, process
start ticks and a hash of the boot identity. It is an identifier, not a credential.
3. Follow the hidden-token connect command for your selected distribution. Run under the same
non-root account as the selected process.
4. Create the first scan from the wizard, then inspect its job status and evidence.
Scans and schedules also offer **Linux process libraries** and use the same pinned
target. A process restart or host reboot requires fresh local approval and an updated
local configuration; the service does not automatically follow a reused PID.
For the source distribution, pin with `python3.12 scanner/runtime_linux.py --pid 1234 --pin`. Runtime scanning currently runs in the foreground as the process owner. The standard service uses its own restricted account and cannot inspect processes belonging to another account.
For cloud-managed scope, explicitly add `"managedConfiguration": true` to your local
configuration. **Agents > Configure** can publish a subset of `allowedRuntimeProcesses`.
An empty list disables runtime discovery; the control plane cannot widen the local list.
New claims wait for configuration acknowledgement. Cancel a running job or revoke the
agent to stop its upload/completion path. A bounded procfs read already in progress can
finish before the next cancellation checkpoint.
Incomplete process reports are not uploaded. Jobs that find no recognized libraries can
complete with zero observations; this does not establish that the process has no crypto.
## Optional process socket metadata
Scanner **0.25.0+** can also report TCP and UDP endpoints associated with the selected process. In guided setup, enable **Include TCP/UDP socket metadata** before downloading the local configuration. This adds `"runtimeSocketMetadata": true`; it is off by default. Cloud configuration can narrow process scope but cannot enable this local permission.
For a local report with the compiled agent:
```sh
"$HOME/verified-agent/quantum-ready" runtime --pid 1234 --source app-host-01 --include-sockets --output runtime-sockets.json
```
Use `python3.12 scanner/runtime_linux.py` in place of the executable for the source distribution. Socket observations include transport, IPv4/IPv6 family, local/remote IP addresses and ports, and the kernel state code. These are operational network metadata: review the report before explicit upload, or approve their upload by enabling the local setting for managed jobs. No payload, packet capture, process memory, command line or environment is read.
The collector matches socket inodes from the pinned process's file descriptors to its network namespace's TCP/UDP tables. It exports only matching sockets whose descriptor and inode still match on a second check. It does not export inodes or other processes' endpoints. Shared/inherited sockets can belong to more than one process; co-presence does not prove which process sent traffic or which library used a socket. Rapid descriptor reuse, short-lived connections and changes during collection can be missed. This is not an atomic snapshot.
Each socket becomes a runtime observation with unknown cryptographic posture. `librarySocketUseVerified` and `encryptedTrafficVerified` remain false. A mapped TLS library and a socket in the same process do **not** prove a TLS connection or an algorithm choice. Use endpoint scans or saved network captures for handshake evidence.
Collection is bounded to 8,192 descriptors, 128 matched socket rows and 4 MiB per socket table per selected process. Exceeding a limit or failing a required read makes the report incomplete; managed jobs do not upload partial reports. Socket reads respect existing procfs permissions and need no root or tracing capability. Kernel state codes are preserved rather than interpreted as application protocol state.
## Collect a local report
Run as the same non-root operating-system user who owns the selected processes. Identify
the approved process IDs using your application's service tooling. Substitute those IDs
below; the example IDs are placeholders. Choose a stable source label unique to this host.
```sh
python3.12 scanner/runtime_linux.py --pid 1234 --pid 5678 --source app-host-01 --output runtime-report.json
```
The command only reads selected procfs entries. It never enumerates all processes, reads
process memory, arguments or environment variables, attaches a debugger, or starts packet
capture. It refuses root execution and processes owned by another user. Do not add tracing
capabilities or relax procfs protections to make it succeed. Existing output files are
preserved; choose a new report filename when running again.
Exit code 0 means every requested process was inspected. Exit code 2 means setup or at
least one process failed. Review `analysisComplete`, `processesInspected`, `observations`
and `diagnostics`. An empty observation list does **not** mean the process uses no
cryptography. Diagnostics refer to the zero-based order of the requested PIDs and omit
raw exception text and local paths. Reports are created with owner-only file permissions.
## Send the findings to your workspace
After reviewing a complete report, configure the workspace endpoint and a scoped ingestion
credential through the protected environment described in [SDK setup](../sdk-setup/).
Then use the existing upload command:
```sh
python3.12 scanner/qr.py upload runtime-report.json
```
Incomplete reports are rejected before uploading. An empty complete report uploads zero
observations. Successful observations appear as **runtime** inventory assets and can be
included in workspace evidence and CBOM exports. The uploader batches results and uses
idempotency keys for transport retries. Collection itself makes no network requests.
## Interpret coverage accurately
Recognized mappings include OpenSSL, libsodium, GnuTLS, Nettle, Mbed TLS, wolfSSL, NSS,
Libgcrypt and liboqs library filenames. The report retains the recognized library family,
PID and process start ticks. It does not retain library paths, memory addresses, process
names, binary contents or kernel boot identifiers. Asset identifiers bind the source label,
boot instance, process instance and library family to avoid combining unrelated processes.
A mapped filename is not an authenticated binary identity or a verified version. A program
can rename a file. Loaded libraries do not establish algorithm execution, key strength or
quantum safety; algorithm, authentication and key-establishment posture remain unknown.
Static linking, language-specific crypto, unloaded libraries and short-lived mappings can
be missed. Mapping reads are bounded to 4 MiB per process, and the process identity is checked
before and after reading. This is a point-in-time observation, not an atomic snapshot of
all selected processes.
This release provides local collection, explicit ingestion and managed Python and compiled Linux agent jobs and schedules. Optional process socket metadata provides co-presence evidence only. Verified library-to-connection attribution, eBPF, Windows and macOS runtime observation remain unfinished. Existing native TLS/SSH/code/capture workflows are separate.
The [Linux procfs documentation](https://docs.kernel.org/filesystems/proc.html) describes
mapping access permissions and process-lifetime behavior.
Socket matching follows the [Linux file-descriptor interface](https://man7.org/linux/man-pages/man5/proc_pid_fd.5.html) and [kernel TCP table format](https://docs.kernel.org/networking/proc_net_tcp.html).
---
# Install the Linux Python service (preview)
Source: https://qscan.dev/docs/linux-service
This guide installs the **Python distribution** as a dedicated, unprivileged system service. For an installation without Python and with cloud-requested software updates, use the [Linux binary setup](../linux-binary-preview/). This Python-service preview is validated on **Ubuntu 24.04, x86_64, Python 3.12 and systemd 255**. For the other native installation paths, see [Windows service setup](../windows-service/) and the [macOS native package](../macos-native-package/). Their installation and qualification details are documented separately; the Ubuntu validation here does not establish those platforms' behavior.
The administrator installs the service. Discovery runs as `sectigoqr`, with no login shell, supplementary groups or Linux capabilities. The service starts at boot. Root retains the credential source; systemd provides a private read-only copy to the service. Installation does not grant access to repositories or captures automatically.
## 1. Prepare and verify the release
Use the **0.51.599** discovery bundle from [Downloads](https://qscan.dev/downloads.html). Keep the matching archive, manifest and signature together.
Download its ZIP, manifest and signature, then follow the [verification instructions](https://qscan.dev/downloads/VERIFY.txt) with a reviewed verifier and independently trusted release key. Do not execute code from an unverified ZIP. Keep the verified ZIP, manifest, signature and trusted key for installation.
The preview uses the published development signing key. Enterprise key custody, other distributions and physical power-loss recovery validation remain unfinished. This Python-service workflow uses administrator-initiated upgrades; [cloud-requested updates](../linux-update-supervisor/) are available for the separate Linux binary distribution. Test the preview on a dedicated host before wider rollout.
On a connected machine with Python and pip, from the verified extracted bundle:
```text
python scanner/download_dependencies.py --directory wheels-linux-x86_64-py312
```
This prepares seven exact, hash-locked Linux dependencies. It can run on Windows; the downloaded wheels are for Linux. Copy the completed wheel directory and verified release files to the Ubuntu host. The download command does not need root or an agent credential. Existing matching directories are verified and reused; incomplete or changed directories are preserved and rejected.
On Ubuntu, provision the distribution's Python 3.12 and `python3-venv` packages through your normal package-management process. From the extracted bundle, create the protected environment:
```sh
sudo /usr/bin/python3 scanner/create_environment.py --python /usr/bin/python3 --directory /opt/sectigo-python --wheelhouse /path/to/wheels-linux-x86_64-py312
```
Replace the wheel directory with its real absolute path. Environment creation runs offline. Its parent must already exist and be root-owned. A failed environment is retained with a pending marker; correct the cause and use a new environment directory. Do not remove the marker to bypass checks.
## 2. Enroll and set local access
In [Getting started](https://qscan.dev/workspace.html#getting-started), enroll an agent with only the discovery capabilities you need. Select Linux, prepare one authorized target or directory, and download `agent.local.json`. Save the one-time credential through your approved secret-management tooling into a regular file, readable only by root, such as `/root/sectigo-agent.token` with mode `0600`. Do not place the credential value in command history.
The installer creates `sectigoqr` if absent. An existing account must have a dedicated group of the same name, a non-login shell, and no supplementary groups. For private repository or capture directories, provision this account and grant narrowly scoped read/traverse ACLs before installation. Avoid granting access to entire home directories. TLS and SSH discovery need network access to the configured endpoints, not filesystem access to private repositories.
The local configuration is the maximum allowed scope. To manage narrower scope from the portal, add `"managedConfiguration": true` before installation. An opted-in agent waits for its first published configuration before claiming scans. See [managed configuration](../agent-setup/#7-manage-configuration-from-your-workspace).
Offline capture also needs a separately installed trusted TShark 4.6.9+ in the 4.6 series, with its absolute path in `tsharkExecutable`. The native 0.23.4 agent passed systemd service acceptance on Ubuntu 24.04 with TShark 4.6.9: mixed TLS 1.2/1.3, QUIC v1/v2, local directory restrictions, cloud configuration, pause and revocation. The service ran as `sectigoqr` with no capabilities and no-new-privileges. A customer decoder installer remains unfinished; provision and verify the decoder separately. This workflow analyzes saved files and does not collect live traffic. See [native capture setup](../capture-analysis/#native-linux-capture-jobs) and the [compiled installer instructions](../linux-binary-preview/).
## 3. Install and check contact
Replace the example paths below with absolute paths to your verified files. Use the protected environment created above to run the installer:
```sh
sudo /opt/sectigo-python/bin/python scanner/linux_service.py install \
--manifest /path/to/manifest.json \
--signature /path/to/manifest.sig \
--archive /path/to/sectigo-quantum-ready-bundle.zip \
--trusted-key /path/to/trusted-release-key.json \
--expected-version 0.51.599 \
--python /opt/sectigo-python/bin/python \
--config /path/to/agent.local.json \
--token-file /root/sectigo-agent.token \
--endpoint https://qscan.dev
```
Installation verifies the signed release again, writes protected configuration, stages immutable code, and starts the service. Before committing installation or upgrade, the installer observes the running service for 15 seconds. An early crash, automatic restart, changed process, or unavailable service-manager response fails this check and enters rollback. Boot enablement happens only after local preflight and startup stability checks succeed. If startup fails, the installer restores the previous service definitions where possible and retains recovery state when intervention is needed.
```sh
sudo /opt/sectigo-python/bin/python scanner/linux_service.py status
```
Review `active`, `enabledAtBoot` and any failed checks. Local startup does not prove cloud authentication. In Getting started, choose **Check connection again**, then create one authorized scan and inspect its result. If managed configuration is enabled, publish it from **Agents & sensors** first.
## Operate, upgrade and remove
Run these commands from the verified extracted bundle:
```sh
sudo /opt/sectigo-python/bin/python scanner/linux_service.py stop
sudo /opt/sectigo-python/bin/python scanner/linux_service.py start
sudo /opt/sectigo-python/bin/python scanner/linux_service.py status
```
To upgrade, independently verify the new release, then use `upgrade` with its manifest, signature, archive, trusted key and expected version. The installer preserves local scope, credential, logs, interpreter and boot preference. It rejects an older sequence, a changed signing key, or different bytes at the same sequence. Retain the previous environment and releases until your upgrade is verified. This Python service does not install the binary update supervisor. Use the binary service workflow for managed software replacement.
Removal stops and disables the service but preserves configuration, credential, logs, account and releases:
```sh
sudo /opt/sectigo-python/bin/python scanner/linux_service.py remove
```
Revoke the agent in the workspace if access is no longer required. Removal alone does not revoke its cloud credential.
## Diagnose startup or interrupted installation
Start with `status`. Failed checks provide fixed recovery hints. If it reports pending recovery, run:
```sh
sudo /opt/sectigo-python/bin/python scanner/linux_service.py recover
```
Recovery refuses to overwrite administrator changes. For service failures, inspect `systemctl status sectigo-quantum-ready` and the bounded service logs in `/var/lib/sectigo-quantum-ready/logs/`. Check Python/dependency readiness, directory permissions, target scope, clock accuracy and outbound HTTPS access. The root-only `/etc/sectigo-quantum-ready/recovery.json` may contain credential material: never attach it or the credential file to support requests.
Real VM acceptance covers startup, least-privilege execution, TLS/SSH jobs, allowlist refusal, upgrade rollback, reboot, stop/start and removal against a local test API. It does not establish every distribution's behavior or end-to-end native deployment against your tenant. Confirm contact and scan evidence in your own workspace.
---
# Limit Linux software updates
Source: https://qscan.dev/docs/linux-update-policy
The Linux installer uses a local permission policy to limit cloud-requested replacement to reviewed versions and release sequences. Configure this policy and the [update supervisor](../linux-update-supervisor/), then request an update or approve a [staged rollout](../agent-rollouts/) from your workspace. Saving the policy alone does not start polling or replace software. Discovery scope and software replacement permission are separate.
Use installer **0.47.0 or newer** from the [Linux binary preview](../linux-binary-preview/). Verify and stage the complete installer directory before running it. The policy is stored outside the release directory, owned by root with mode `0600`; the discovery account cannot change it.
## Check local permission
On an installed binary-agent host:
```sh
sudo "$HOME/verified-installer/quantum-ready-service" update-policy
```
No policy means permission is denied. `permitted` means only that the local policy is enabled and unexpired; each requested release is still checked against its exact limits. Installer 0.50.5 also returns the legacy field `cloudUpdatesAvailable: false` from this local command. That field does not query the platform or supervisor and must not be used to decide whether workspace updates are available. Check `supervisor-status` locally and **Review software update** in Agent controls.
## Prepare a policy in the workspace
In **Agents > Agent controls > Software update status**, select **Review software
update**, choose the release, and open **Prepare the local update policy**.
1. Choose **1 hour**, **24 hours** or **7 days**. The displayed expiration is capped
at the signed release's expiration and shown in both local time and UTC.
2. Select **Download update-policy.json**. The file enables only that exact version
and sequence; it contains no enrollment credential. Downloading makes no change
to the host or its scan state. You can prepare it before pausing scans.
3. Transfer it to your working folder on the agent host, inspect the JSON, then use
**Copy apply command** with the verified installer. Applying the file replaces
the existing policy, including other permitted versions; review that change first.
4. Configure or check the [supervisor](../linux-update-supervisor/). Back in the
workspace, pause new scans, wait for idle acknowledgement, and confirm local
setup before requesting the update.
Changing the selected release or permission duration clears the confirmation.
The checkbox is your confirmation of host setup; downloading a file does not prove
that it was applied. If permission expires before replacement, prepare and apply a
new reviewed policy. For a maintenance window beyond the offered durations, use the
manual policy below with an explicit reviewed expiration.
## Approve a specific release manually
Obtain the intended agent release's signed version and sequence through your approved release process. Choose an expiry for the permission. Save an `update-policy.json` file with those exact values. The example below is deliberately disabled and uses illustrative release values:
```json
{
"schema": "sectigo.local-update-policy.v1",
"enabled": false,
"channel": "preview",
"versions": ["1.2.3"],
"minimumSequence": 100,
"maximumSequence": 100,
"expiresAt": "2027-01-01T00:00:00Z"
}
```
Replace the version, sequence bounds and expiry with your reviewed selection. Set `enabled` to `true` only when you intend to permit that release, then apply the file:
```sh
sudo "$HOME/verified-installer/quantum-ready-service" update-policy \
--policy-file "$PWD/update-policy.json"
```
This only saves permission. It does not download, stop, restart or replace the agent. Wildcard versions, arbitrary URLs, commands and unrecognized policy fields are rejected. A policy cannot override signature verification, the installed signing key, release expiry, architecture checks or downgrade protection.
## Require the policy during an upgrade
For an administrator-initiated upgrade, use the verified agent archive, manifest, detached signature, trusted key, expected version and minimum sequence as usual. Add `--require-local-policy` to the `upgrade` command to enforce local permission. Only `upgrade` accepts this flag.
The installer checks permission before staging and again before stopping the service. Missing, disabled or expired permission, an unapproved version or sequence, a previously installed sequence, or a lower version is rejected. Credentials and discovery scope stay in place. Startup failure restores the previous release where recovery succeeds.
Ordinary manual `upgrade` is still a root administrator operation and does not require this optional policy. The policy is not a restriction on root. Cloud-driven replacement through the supervisor always requires the policy-gated path.
## Disable permission
Set `enabled` to `false` in the policy file and apply it again with `update-policy --policy-file`. Check the saved status. Disabling permission persists across reboot and does not stop discovery. It cannot reverse an upgrade already committed.
If a policy is malformed or its ownership or permissions changed, the installer refuses to use it. Review the root-owned file at `/etc/sectigo-quantum-ready/update-policy.json`; do not make it writable by the discovery account. If an interrupted installation requires recovery, finish that recovery before changing policy.
## Stage a reviewed update before replacement
Installer **0.49.3 or newer** can separate preparing an update from applying it. These commands are for an administrator on the agent host; they do not turn on automatic cloud rollout. Use a signed agent release with a sequence newer than the installed release, and approve its exact version and sequence in the local policy first.
Download the reviewed release into `agent-release` as described in the [binary guide](../linux-binary-preview/). Create a request from its manifest with a unique operation ID, the exact manifest digest and a one-hour deadline:
```sh
jq --arg operation "$(cat /proc/sys/kernel/random/uuid)" \
--arg digest "$(sha256sum agent-release/manifest.json | cut -d ' ' -f1)" \
--arg expiry "$(date -u -d '+1 hour' +%Y-%m-%dT%H:%M:%SZ)" \
'{schema:"sectigo.local-update-request.v1", operationId:$operation,
version:.agentVersion, sequence:.sequence,
manifestSha256:$digest, expiresAt:$expiry}' \
agent-release/manifest.json > update-request.json
sudo "$HOME/verified-installer/quantum-ready-service" stage-update \
--request-file "$PWD/update-request.json" \
--manifest "$PWD/agent-release/manifest.json" \
--signature "$PWD/agent-release/manifest.sig" \
--archive "$PWD/agent-release/sectigo-quantum-ready-linux-x86_64.zip" \
--trusted-key "$PWD/release-key.json"
```
Creating the request does not authenticate the manifest. The installer verifies the signed release, installed signing key, architecture, sequence and local permission before accepting it. It saves one protected staging envelope without stopping discovery. Request deadlines must be within 24 hours; commands, URLs and additional fields are rejected.
When ready, pause new claims in **Scan admission** and wait for active leases to finish. Apply the operation you staged:
```sh
operation_id="$(jq -er .operationId update-request.json)"
sudo "$HOME/verified-installer/quantum-ready-service" apply-update \
--operation-id "$operation_id"
```
The installer rechecks policy, expiry, signed content and the installed release before replacement. Disabling permission after staging prevents application. A changed installation requires a new request. Follow the [upgrade verification steps](../linux-binary-preview/#upgrade-an-existing-compiled-agent) before resuming claims; an installed process is not proof of successful discovery.
To discard a staged request, including after a successful application:
```sh
sudo "$HOME/verified-installer/quantum-ready-service" discard-update \
--operation-id "$operation_id"
```
Discard frees the single staging slot; it does not uninstall or roll back a release. It prevents an application that has not acquired the installation lock. If replacement already holds that lock, inspect its result before trying another action. After interruption, inspect service status and recover a pending installation journal first. Retrying application after it committed reports a changed installation instead of silently reinstalling. An unreadable staging envelope needs administrator inspection.
---
# Linux update supervisor
Source: https://qscan.dev/docs/linux-update-supervisor
:::caution Linux development preview
The current Linux unified package supplies installer **0.51.445 / sequence 717**.
This installer passed automatic staging, registration, rollback, reboot
and removal recovery in an offline systemd VM. Those results do not qualify every
new scanner release for managed replacement. The workspace must offer the exact
release for your installed agent, and both the supervisor and its explicit local
release policy must be configured before replacement can occur.
:::
The supervisor manages signed software replacements separately from discovery. It uses the installed agent's endpoint and enrollment, so you do not enroll another agent or create another token. Installing it does not grant permission to update.
The discovery service runs as the restricted `sectigoqr` account. The supervisor needs administrator authority to stop, replace and restart that service. It uses a restricted capability set and systemd protections, but still has administrative access to the service manager. Neither component needs an inbound port or remote shell.
## Before you start
Complete [Linux binary installation](../linux-binary-preview/), confirm recent contact, and run an allowed scan. Resolve any installer recovery requirement first. Keep the reviewed installer archive, manifest and signature together in `installer-release`, alongside the independently trusted `release-key.json`. Its key must match the installed agent's release key.
Use the verified bootstrap at `$HOME/verified-installer/quantum-ready-service`. Keep its companion libraries together. The following commands assume your current directory contains the release folder and trusted key.
## Register the supervisor
```sh
sudo "$HOME/verified-installer/quantum-ready-service" register-supervisor \
--manifest "$PWD/installer-release/manifest.json" \
--signature "$PWD/installer-release/manifest.sig" \
--archive "$PWD/installer-release/sectigo-quantum-ready-installer-linux-x86_64.zip" \
--trusted-key "$PWD/release-key.json" \
--expected-version 0.51.445 --minimum-sequence 717 \
--poll-seconds 60
```
Use the exact reviewed version and sequence for your release. The installer verifies the signed archive, stages root-owned files automatically and registers `sectigo-quantum-ready-updates.service` to start at boot. You do not need to extract files into system directories yourself. Registration preserves discovery configuration, enrollment and local update permission.
The polling interval accepts 30–3600 seconds. Polling uses jitter and bounded backoff after failures. A successful registration means the service process started; it does not prove that an update is authorized or that discovery is healthy.
## Check readiness
```sh
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-status
sudo cat /etc/sectigo-quantum-ready/update-supervisor-status.json
sudo journalctl -u sectigo-quantum-ready-updates.service --since "10 minutes ago"
```
The first command checks registration and service state. The private JSON file records the most recent polling outcome; read its observation time as well as its status. The file may not exist until the first polling result. A stopped service's last result is historical, not evidence that it is currently checking for updates.
Use [local update permission](../linux-update-policy/) to review explicit agent versions, release sequence bounds and expiry. Keep permission disabled until the intended release and maintenance window are approved. Cloud authorization and local permission are both required; registering a supervisor cannot enable a disabled cloud API.
## Pause or resume polling
```sh
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-stop
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-start
```
Stop prevents further polling and lets an already-started replacement finish recording its outcome. Allow up to ten minutes for shutdown. Do not kill the updater or delete its receipts to interrupt a replacement. Stop does not disable boot startup; use removal below if it must remain unregistered after reboot.
Start rechecks the protected runtime files and trusted key before activation. It does not change your local update policy or resume discovery claims paused for maintenance.
## Recover interrupted setup or removal
Installer 0.51.251 and later identify the failed registration step, such as
`verify-runtime`, `start-service` or `verify-startup`, with a safe failure category.
For example, `verify-startup (timeout)` means the startup check exceeded its
deadline; it does not establish that the agent itself crashed. Review the
supervisor journal and host load before retrying. `permission-denied` means a
local operation lacked access; check the reported step and protected paths rather
than granting the discovery agent more privileges.
If the message says **was rolled back**, registration was removed; fix the cause
before registering again. If it says **rollback incomplete**, use the recovery
commands below. Raw command arguments, output and exception text are omitted from
these messages to avoid exposing local secrets. Older installers may show only
the generic rollback message.
If status reports that recovery is required:
```sh
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-recover
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-status
```
Recovery removes the matching incomplete supervisor registration. It preserves the discovery service, enrollment, reviewed release files and trusted key. It does not finish a partially completed registration; register again after recovery succeeds.
If an administrator changed the unit or protected runtime files, the command refuses to overwrite them. Review the change and logs before retrying. Do not delete receipt files to bypass ownership or recovery checks. A discovery installer recovery requirement is separate: use the [agent recovery procedure](../linux-binary-preview/#upgrade-an-existing-compiled-agent).
## Remove the supervisor
```sh
sudo "$HOME/verified-installer/quantum-ready-service" supervisor-remove
```
Removal stops polling, disables boot startup and removes the managed supervisor unit. It leaves discovery running and preserves enrollment, configuration, reviewed releases and the trusted key. It does not erase local update policy or reverse an installed update.
## After a replacement
Confirm the selected installed version, recent agent contact and a successful allowed scan before resuming discovery claims. The update operation's recorded outcome does not certify operational health. See [managed update states](../agent-update-operations/) for authorization, cancellation and reconciliation behavior.
---
# macOS native package
Source: https://qscan.dev/docs/macos-native-package
The combined Apple Silicon package contains the native scanner suite and relay
service installer. It does not require system Python. Select **Getting started >
Install unified agent > macOS** for the current verified download and checksum.
If the catalog has no current package, use the [Python quickstart](../agent-setup/#macos-quick-start).
The package is tested on macOS 26.5.2 arm64. Scanner setup and silent enrollment
run as your regular user in the foreground. Combined package 0.51.575 includes the managed scanner service entry point alongside
foreground scanners and the separate restricted relay service. Check catalog
availability and expiry before downloading. Relay permissions do not grant
remote-scanner permissions.
The native SSH scanner negotiates both OpenSSH SNTRUP761/X25519 hybrid methods and
checks the server host signature. SNTRUP is distinct from NIST-standardized
ML-KEM. A hybrid key exchange does not make a classical host key quantum safe.
## Download, verify and extract
Current unified package **0.51.575** includes native agent **0.27.8 / 870**
and installer **0.51.571 / 867**. Download the
macOS arm64 package (166 MB)
only while the product catalog reports its signed components available.
Expected archive SHA-256:
```text
e3c234651ebe54461926907bb65fa6b9d4030f9d4d8779023d1f7af113684012
```
Compare the archive's SHA-256 with the value shown in the product:
```sh
shasum -a 256 "$HOME/Downloads/Sectigo-Quantum-Ready-macOS.tar.gz"
```
Use a new directory owned by your account. Do not add credentials to the package
or reuse a directory containing files from another release.
```sh
mkdir -m 700 "$HOME/qscan-0.51.575"
tar -xzf "$HOME/Downloads/Sectigo-Quantum-Ready-macOS.tar.gz" -C "$HOME/qscan-0.51.575"
cd "$HOME/qscan-0.51.575"
./Deploy-QuantumReady.sh guided
```
Choose scanners and their exact scope, approve sign-in in your browser, and check
the first scan's results in your workspace. Keep the saved enrollment state for
retries. Do not run guided setup with `sudo`.
The launcher checks every file for ownership, modes and ACLs before native execution, verifies checksums and
uses independently signed release inputs. Incomplete directory inspection fails
closed; fix the reported permissions instead of skipping validation.
It rejects linked or writable package paths and unsupported extended ACLs. The
standard macOS home-directory deny-delete ACL is allowed. The independently
trusted release key must retain its packaged private file mode; do not loosen it.
## Silent enrollment and local scans
Export an approved configuration and issue a per-device deployment grant from
your workspace. Store grant files privately, separately from the shared package.
Run enrollment as the account that will own the scanner state:
```sh
./Deploy-QuantumReady.sh enroll \
--config "$HOME/qscan-private/config.json" \
--state-directory "$HOME/qscan-private/state" \
--grant-file "$HOME/qscan-private/grant.json" \
--run
```
Omit `--grant-file` when resuming the same completed saved enrollment. Do not
reuse one device's grant or state on another device. Use `run --help` to list
native scanner commands, and `run doctor --config /absolute/config.json` to check
local configuration. Saved capture analysis requires separately installed TShark;
installing the scanner does not grant packet-capture permissions.
## Connect an agent from a private relay handoff
Use package 0.51.417 or newer (agent 0.26.78+) for this path. Open the enrollment
link sent by your administrator, verify the email code and download the private
setup ZIP. This already identifies one agent: **do not run guided enrollment again**.
Keep the handoff files outside the extracted installation package. The example
below assumes they are in `$HOME/qscan-private`, a directory owned by your user
with mode `0700`. Set `agent.json`, `agent.token` and `bootstrap.token` to mode
`0600`, without extended ACLs. Add only approved scan targets or directories to
`agent.json`; preserve its relay identity, routing and fallback policy.
From the extracted native package directory, run as your regular user:
```sh
./Deploy-QuantumReady.sh run relay connect-agent \
--config "$HOME/qscan-private/agent.json" \
--token-file "$HOME/qscan-private/agent.token" \
--bootstrap-token-file "$HOME/qscan-private/bootstrap.token" \
--state-directory "$HOME/qscan-private/relay-identity"
```
Local diagnostics run before connection. Resolve failed checks, then repeat the
same command. The initial relay bootstrap must still be valid. After connection,
confirm contact in Agents and run an approved scan; contact alone does not prove
scan success. Keep the terminal open for foreground operation; Ctrl+C stops it.
Preserve the identity directory and agent credential for restart. After successful
first contact, remove the downloaded bootstrap secret according to your policy.
The same command then reuses the saved identity without needing that file; retain
its original path in the command. If bootstrap expired before identity issuance,
request recovery from the administrator instead of deleting pending identity state.
## Managed scanner service (package 0.51.575)
Current package **0.51.575** contains scanner **0.27.8 / sequence 870** and
installer **0.51.571 / sequence 867**. Managed installation uses its own protected
service identity and configuration; it does not convert foreground enrollment in place.
Use the configuration and agent credential for the intended device. For relay
routing, use its matching private bootstrap grant and approved transit membership.
Do not share one device identity across a fleet or run two instances of it.
Extract the verified package into a new root-owned directory under `/private/opt`,
as shown for relay installation below. Keep enrollment files outside the package,
root-owned with protected parents and mode `0600`, without extended ACLs or links.
Then run:
```sh
sudo /private/opt/qscan-scanner-0.51.575/Deploy-QuantumReady.sh scanner-service install \
--config /private/scanner.json --token-file /private/scanner.token
sudo /private/opt/qscan-scanner-0.51.575/Deploy-QuantumReady.sh scanner-service status
```
For a relay route, add `--bootstrap-token-file /private/bootstrap.token` to install.
The installer fixes separate runtime and updater identity locations. A direct
installation must not include relay bootstrap credentials. The restricted scanner
account performs scans; the root updater only handles explicitly approved software
and service changes. Relay forwarding and remote-scanner pool permissions remain
separate from installation.
Check the agent's recent contact, acknowledged configuration and an approved scan
in the workspace. A registered launchd service alone does not prove connectivity
or successful scanning. Preserve identity and recovery files when diagnosing.
A successful `status` command means inspection succeeded. Check `registered` and
`installation` before treating the service as installed or running. The `version`
field can describe retained installation state while `registered` is false.
`runtimeHealthVerified: false` and `cloudHealthVerified: false` do not establish
health. Confirm actual contact and a completed or explicitly partial job in the
workspace; preserve the reported gaps in a partial result.
Use `scanner-service stop` and `start` for maintenance. `remove` stops and removes
the service registration while retaining protected recovery state; `restore`
requires the exact original signed release package. Interrupted operations expose
`recover-stop`, `recover-remove`, `recover-restore` and `recover-upgrade`.
Do not substitute a newer package for exact-release start or restore.
For signed upgrades, run the **new** package's `scanner-service upgrade` with
`--previous-manifest`, `--previous-signature` and `--previous-archive` pointing to
the retained old signed package. New release and trust-key inputs are pinned to
the selected combined package and cannot be overridden by launcher arguments.
Local update approval is separate from cloud authorization. Supply a protected,
time-limited policy to `scanner-service update-policy --policy-file /private/policy.json`.
Install a disabled schedule with `scanner-service schedule-updates --interval 900
--schedule-state disabled`; enable it only after reviewing approval and routing.
`scanner-service update-once` checks for an authorized cloud request; it does not
create approval or ignore independent signature verification. Bootstrap renewal
uses `scanner-service refresh-bootstrap --bootstrap-token-file /private/bootstrap.token`
and preserves existing enrollment identity.
Qualification scope and earlier release history
Current scanner 0.27.4 passed signed replacement from 0.27.3 with identity and
configuration preserved while the service remained stopped. A subsequent managed
SQLite metadata job through the native relay reported one observation and a
partial result with direct fallback disabled. The initial managed attempt was
denied by relay admission; a bounded retry passed. The first-attempt cause remains
unconfirmed. These checks do not establish a new reboot, failover or fresh service-account
creation test. The current unified launcher's read-only status check also passed
without changing protected configuration or identity.
Unified package 0.51.429 passed a signed scanner84-to85 upgrade, restricted-account
start/stop and remove/restore on macOS 26.5.2 arm64. It uses the native scanner installer; it does not convert a foreground enrollment in place.
Fresh device enrollment through an approved relay was also verified with the
existing dedicated scanner account: the native service completed a TLS scan and
delivered all four findings to the workspace with direct fallback disabled.
This test does not establish fresh service-account creation or reboot recovery.
Earlier package 0.51.445 contained agent92 and installer433. It passed signed scanner88-to92 replacement with retained identity and a scoped TLS scan through a relay with direct fallback disabled. Scanner startup failures identify the failed stage without exposing credentials; check that stage before changing permissions or retrying. This does not establish a new reboot or relay-node update test.
Package 0.51.433 adds installation errors that identify the failed stage and give
specific recovery guidance without exposing credentials. Native permission checks
and relay stop/start/remove/restore were verified for this installer.
## Install a relay node
Create and approve the node in **Relays**, then follow its setup instructions to
obtain the node configuration and private credential. This is separate from
scanner enrollment. See [relay routing and policy](../agent-relays/) for primary
and secondary relays, explicit direct fallback and revocation.
Extract a separate package copy directly into a new root-owned directory:
```sh
sudo install -d -m 755 /private/opt
sudo mkdir -m 700 /private/opt/qscan-relay-0.51.575
sudo tar -xzf "$HOME/Downloads/Sectigo-Quantum-Ready-macOS.tar.gz" \
-C /private/opt/qscan-relay-0.51.575
```
Because the directory is private to root, run commands by their absolute path
from your normal terminal instead of entering that directory:
```sh
sudo /private/opt/qscan-relay-0.51.575/Deploy-QuantumReady.sh relay-node install \
--config /private/relay.json --token-file /private/relay.token
sudo /private/opt/qscan-relay-0.51.575/Deploy-QuantumReady.sh relay-node status
```
Configuration and credentials must satisfy the protected-file checks in the relay
setup instructions. Local registration is not proof of cloud health: check recent
contact, admission status and a downstream agent scan in the workspace.
## Updates, removal and recovery
Use `relay-node provision-updater --updater-file /private/updater.json` to provision
the separate updater identity, then explicitly configure local update policy.
`relay-node schedule-updates --interval 900 --schedule-state disabled` installs
the timer definition without enabling it. Enable scheduling only when intended;
both local policy and cloud authorization still govern replacement. Update
signatures are verified independently by the node.
`stop` stops the relay and updater. `start` starts only the relay. `remove` removes
service definitions while retaining identity and runtime. Local removal does not
revoke cloud access. `restore` restores the same signed relay release without
resuming updater scheduling. Keep the original installed release package for
exact-release start/restore and recovery. Use `--help` for operation-specific
`recover-*` commands; preserve state and inspect status before retrying an
interrupted operation.
---
# macOS relay installation and updates
Source: https://qscan.dev/docs/macos-relay-updates
This guide describes the Mac relay installer and updater implementation. For
network topology, individual agent identities, relay membership and direct
fallback, start with [Agent relays and controlled egress](agent-relays.md).
:::info Release status
Use [the current package table](agent-relays.md) to select the signed Mac agent,
installer and combined package. Verify catalog availability before downloading.
These remain published previews. The qualification details below identify the
releases actually exercised. Native relay replacement and protected resource-limit
changes passed on macOS 26.5.2 arm64. Installer426 also completed a cloud-requested
scanner82-to83 update through relay84, followed by a successful managed TLS scan.
Earlier releases have separate reboot and failover evidence; those results do
not establish those properties for every newer release. See the verified scope
at the end of this guide and [the combined package guide](../macos-native-package/).
:::
## What runs on the Mac
The forwarding service uses a dedicated hidden non-login account, `_qscanrelay`.
Its configuration, credential and persistent identity are separate from the
administrator-owned updater. Forwarding permission does not grant remote-scanner
pool membership or authority to update software.
The updater uses a separate node-scoped credential and an independently trusted
release-verification key. It runs as root only to perform locally approved
installation and service changes. It connects to the fixed control origin; it
does not take its update authority from an agent's relay route or scanner pool.
| Component | Purpose | Protected location |
| --- | --- | --- |
| Relay configuration and journals | Enrollment, trust and recovery | `/private/etc/sectigo-quantum-ready-relay` |
| Relay identity | Persistent forwarding identity | `/private/var/db/sectigo-quantum-ready-relay/node` |
| Agent distributions | Verified forwarding runtime | `/opt/sectigo-quantum-ready-relay/releases` |
| Installer distributions | Verified scheduled updater runtime | `/opt/sectigo-quantum-ready-relay/installers` |
| Forwarding job | Relay connections | `com.sectigo.quantumready.relay` |
| Updater job | Automatic update checks | `com.sectigo.quantumready.relay.updates` |
Credential files contain secrets in plaintext on disk, protected by ownership,
permissions and ACL checks. They are not encrypted merely because they are in a
ZIP archive or private directory. Do not put tokens in command arguments or
diagnostic output. Deliver them through an approved confidential channel and
remove delivery copies after protected provisioning.
## Command sequence
All commands use the standalone `quantum-ready-service` executable. Mutating
commands require administrator authority. File arguments must be absolute paths;
private input files require root:wheel ownership, mode 0400 or 0600, no extended
ACLs, and protected parent directories.
Run `quantum-ready-service check-worker` first to verify that the complete native
installer can launch its isolated worker. This read-only check needs no administrator
rights, enrollment files or credentials. It does not install a service or prove
cloud connectivity. A missing-runtime or launch error must be resolved before
installation; keep the installer executable and its packaged runtime files together.
1. Independently provision the trusted release key. Use `verify` to inspect an
agent package without installing it. Verification does not persist trust or
approve a later installation; installation verifies the inputs again.
2. Use `install` with the signed agent package, `--config` and `--token-file`.
This establishes forwarding service state and its dedicated account.
3. Issue updater access in **Agent relays > Relay updates > Configure updater
access**. Use `provision-updater --updater-file --trusted-key
` to provision the separate credential with the installed key.
4. Use `update-policy --policy-file ` to approve explicit versions,
sequence bounds and an expiration. `update-policy` without a file inspects
approval. Provisioning alone does not enable updates.
5. Use `update-once` for one bounded cloud-update check. It accepts no package,
credential or channel overrides; selection comes from the cloud operation and
protected local approval.
6. Use `schedule-updates` with an independently signed **installer** package to
configure automatic checks. Agent packages cannot substitute for installers.
Package commands require `--manifest`, `--signature`, `--archive`, `--trusted-key`,
`--version` and `--minimum-sequence`. `--channel` defaults to `preview`.
For scheduling, the installer version must be at least 0.51.403; that reserved
minimum does not mean such a production package has been published.
## Control automatic checks
`schedule-updates` defaults to an interval of 900 seconds. `--interval` accepts
300-86400 seconds. Changing the interval preserves package and node identity,
confirms that the existing timer stopped, and publishes the new definition.
Use `--schedule-state disabled` to remove automatic launch triggers, or
`--schedule-state enabled` to restore them. The disabled job remains registered
for inspection. This does not revoke local approval: an administrator can still
run `update-once` under that approval. The current implementation requires the
original signed installer-package arguments, with a currently valid signature,
for both disable and re-enable.
To replace the scheduled installer, provide a newer signed installer package.
Both version and sequence must advance. The new distribution is staged before
the timer stops; the node identity and installed trust remain unchanged. Old
distributions are retained until reviewed cleanup.
## Inspect and recover
Run `status` first after an uncertain result. Without administrator authority it
does not read private installation state. With authority it shows forwarding and
updater registration separately, along with definition matches and pending phases.
| Result | Meaning and next step |
| --- | --- |
| `registered` | launchd has the job; verify runtime and cloud health separately. |
| Schedule `disabled` | The matching definition has no automatic launch triggers. |
| `review-required` | A protected definition differs; preserve it for administrator review. |
| `recovery-required`, operation `schedule` | Run `recover-schedule` with the exact package, interval and enable state from the interrupted request. |
| `recovery-required`, operation `upgrade` | Run `recover-upgrade` with the exact agent package from the interrupted replacement. |
| `local-policy-disabled` | No currently enabled, unexpired local update approval permits polling. |
| `installed-reported` | Installation was reported to the cloud; this is not independent runtime-health evidence. |
Never delete journals to bypass recovery. An unknown stop result does not permit
code or definition replacement. Changed administrator files are preserved rather
than overwritten. A completed retry inspects existing code without restoring
missing files or restarting a stopped job. Cloud claims and reports are retained
so a lost response does not automatically repeat a replacement.
After initial installation or replacement reaches definition publication, the
service may already have started even if its acknowledgement was lost. Recovery
verifies the existing signed runtime inventory at that point. Missing or altered
runtime files stop recovery for administrator review; recovery does not recreate
them beneath a potentially running service.
The worker has a 180-second bound and cleans up its process group on timeout or
orderly interruption. This does not prove recovery after power loss or SIGKILL;
inspect the durable state before taking the next action. For an interrupted agent
replacement, `recover-upgrade` can reverify an expired package only when its exact
manifest, signature, archive and trust key match the protected admission journal.
The original version, sequence, target and channel checks still apply. This does
not admit an expired package for a fresh upgrade or grant a new cloud operation.
A completed replacement retry can likewise inspect its exact recorded package
after expiry without restarting the service or restoring runtime files.
`recover-schedule` also permits an expired package only for the exact pending
schedule journal, including its original interval and enable state. It rechecks
installer-purpose signatures, native target, sequence and all four evidence
hashes. This does not allow a new schedule or changed settings with an expired
package. Retrying initial `install` with its original package and enrollment
inputs can also recover after expiry if an existing protected initial journal or
installation receipt binds that exact evidence. A failed current admission opens
only existing protected directories and the existing lifecycle lock; it cannot
create a fresh installation from expired inputs.
New replacement journals record the kernel boot-session identity before stopping
the relay. If a stop result is lost and the service is absent, recovery requires
either confirmed stop completion or a different kernel boot identity. Absence
during the same boot is insufficient. The installer never reboots the machine.
Older journals without this evidence remain blocked for administrator review.
Schedule-change journals also record this boot identity before stopping the
updater. `recover-schedule` uses the same rule. If launchd registered the previous
updater again after a confirmed stop, recovery stops it synchronously before
publishing the selected definition. Both paths still require native privileged
reboot testing. An unconfirmed stop during the same boot remains blocked.
## Changing relay resource limits
Installer 0.51.426 and relay 0.26.84 add protected resource-limit changes.
These packages are published previews; use the download catalog to check
current availability and expiry. Existing installed releases do not gain this command automatically.
Disable local update approval and the updater schedule, then stop the relay.
Prepare a root-owned JSON file with mode `0400` or `0600`, protected parent
directories, and no extended ACLs or links. For example:
```json
{"connections":4,"per_agent":2,"seconds":180,"bytes":536870912}
```
From a protected combined package, run:
```sh
sudo ./Deploy-QuantumReady.sh relay-node configure-limits --limits-file /private/limits.json
sudo ./Deploy-QuantumReady.sh relay-node status
sudo ./Deploy-QuantumReady.sh relay-node start
```
Choose limits for the expected number of downstream agents and transfer sizes.
The byte limit applies to each tunnel; a limit smaller than an update archive
interrupts the download. Signature verification still rejects incomplete content.
The example permits a 512 MiB tunnel; it is not a fleet sizing recommendation.
Configuration preserves the relay identity, credentials and release trust. It
never starts the service or enables updates. Running services, pending updates
and overlapping lifecycle operations block the change. After an interrupted
change, use `recover-limits --limits-file /private/limits.json` with the same
reviewed file, then explicitly start the service. Do not edit journal or identity
files to bypass recovery. Restart requires the exact installed signed package.
## Verified scope and remaining acceptance
On macOS 26.5.2 arm64, native installer 0.51.426 passed privileged relay
stop/start/remove/restore, signed relay78-to84 replacement and protected limit
configuration. The relay retained its identity and restricted service account.
A cloud-requested scanner82-to83 replacement completed through relay84 with
direct fallback disabled and bootstrap revoked; the new scanner then completed
a managed TLS scan with four findings accepted into workspace evidence.
This does not establish scanner84 replacement, reboot acceptance for these
exact updated releases, Intel Mac support or support for older macOS releases.
The combined package launcher checks are separate from privileged service and
cloud update evidence. Keep local update approval explicit and time-limited.
---
# Create a migration task
Source: https://qscan.dev/docs/migration-task-setup
Open **Migration roadmap > Create migration task**. Workspace administrators and analysts can create tasks; viewers can review the roadmap.
## Select the right asset
1. Enter a descriptive task title, such as **Validate replacement cryptography for the payments endpoint**.
2. Search the workspace inventory by asset name, algorithm or owner. Search runs across the workspace, independent of which inventory page you visited earlier.
3. Use **More assets** and **Previous assets** to browse results. Each request loads at most 50 matching assets.
4. Choose an asset. Review its full name and ID beneath the dropdown. Your selection remains pinned while you search or browse other results; choose another asset explicitly to replace it.
5. Set an owner and due date, then choose **Create task**. Open the roadmap to review the new task.
Inventory pages are live results, not a frozen snapshot. If a search or page request fails, the previous results and selection remain visible. The backend checks that the selected asset still exists when creating the task.
## Return to unfinished work
Task fields, the selected asset and the inventory search/page remain available while navigating in the same tab, workspace and signed-in identity. **Discard draft** clears the task fields and selected asset. Reloading clears this tab-memory state.
Creation is disabled while a submission is in progress. If the response is lost, the form keeps the original fields locked and offers **Check roadmap**. Check whether the task was created before choosing **Start a separate task**. The interface does not automatically repeat an uncertain creation request. A successful response received after leaving the form is available when returning to setup.
## Creation is not migration verification
A new task starts in the planned state. Creating it does not change an asset, replace cryptography or prove quantum readiness. Review and configure acceptance criteria on the task, carry out the planned work, then use fresh evidence to verify the relevant criteria.
For automation, see [Create migration plan](./api/operations/createPlan.md) and the API reference. Use the role required by the operation and do not automatically retry writes unless the API explicitly supports idempotent recovery.
## Review a task and its revisions
Select a task from the roadmap to open its own page. Review its owner, due date, current state and acceptance criteria. Administrators and analysts can edit eligible tasks and change their state; viewers can read tasks and revision history. Verified tasks must be reopened before editing.
Task details and state changes have separate forms. While saving, both forms are disabled to prevent overlapping submissions. Changes use the version you reviewed; if another editor has changed the task or the response is uncertain, use **Refresh task** to inspect the current state before retrying. A response received after navigating away does not replace the page you are viewing.
**View revision history** opens a full page with up to 100 revisions. Use **Older revisions** to continue through the history, **Latest revisions** to return to the newest page, and **Back to task** to return to review.
---
# Use one account across workspaces
Source: https://qscan.dev/docs/multiple-workspaces
Your sign-in, verified email, password, MFA and passkeys belong to your account. Membership, role and delegated SIEM permissions belong to each workspace. Joining another workspace does not require another password or change access to your other workspaces.
## Invite an existing account
A workspace administrator opens **Workspace members** and invites the person's verified email with the intended role. For an existing verified account, QScan offers a membership invitation rather than creating another account. The recipient can follow the email link or open **Workspaces & invitations** while signed in and choose **Accept invitation**. Use the account that owns the invited email. Expired, revoked, already-used and wrong-recipient invitations cannot grant access.
An invitation grants only the displayed workspace role. Acceptance checks that the inviter still has permission. Revoking a member affects that workspace; account credentials and memberships elsewhere remain intact. Ambiguous historical accounts sharing an email are not silently merged.
## Switch workspaces
Open the workspace selector at the top left, search if necessary, and choose an authorized workspace. QScan reloads the workspace view and discards its previous workspace data. Your role may differ between workspaces. New sign-ins restore the last accessible workspace; if it is no longer available, sign-in selects an accessible alternative.
If another browser tab switches the shared session, a stale tab may report that its workspace changed. Reload it before continuing. QScan rejects requests constrained to the stale workspace rather than silently performing their action in the newly selected workspace.
Switching the browser does not retarget existing API keys, agent enrollments, scheduled integration jobs or OAuth grants. Those retain their recorded workspace and remain subject to current access checks. Account-wide security changes can invalidate sessions across workspaces; they are not a way to modify another workspace's role.
See [SIEM log export](./siem-log-export.md) for delegating log management independently of team administration. Platform-owner invitations to create a new workspace remain a separate [provisioning workflow](./workspace-invitations.md).
## Username-only accounts
In **Manage your team → Invite a teammate**, choose **Existing username**. Enter
the existing username and the role to grant. QScan sends an in-product invitation;
it does not create another account or send an email. The recipient signs in with
that username, opens **Workspaces & invitations**, and accepts within 24 hours.
Their dashboard also displays an invitation indicator. Passwords, MFA and access
to other workspaces remain unchanged.
The username must identify exactly one account across QScan. Missing or ambiguous
usernames are rejected; use a verified email invitation instead. Email invitations
continue to belong to the account that owns that verified email. A username-only
account and a separate account with your email are not automatically merged.
---
# Network telemetry
Source: https://qscan.dev/docs/network-telemetry
Import TLS metadata from your Cloudflare Gateway **Zero Trust Network Session
Logs** into your workspace. Each session can produce separate client-to-gateway
and gateway-to-destination observations. These are provider reports, not handshakes
independently verified by Sectigo Quantum Ready. TLS 1.3 alone does not establish
post-quantum key exchange or authentication.
## Before you start
- Sign in as a workspace administrator.
- Confirm your provider account offers the `zero_trust_network_sessions` dataset.
Availability depends on your account and plan.
- Find the provider's 32-character account ID. This is not your qscan workspace ID.
- Use a provider API token scoped to that account with **Logs Write** permission
to configure Logpush. Qscan never asks you to save that provider API token.
This integration does not enable HTTPS decryption, change gateway policy or install
an agent. Existing agent capture and hosted TLS/QUIC scans remain separate sources.
## 1. Create the receiver
Open **Integrations → Network telemetry → Connect network logs → Add connection**.
Enter a descriptive name and the provider account ID. Choose whether destination
names and addresses may appear in findings, then confirm your authorization.
By default, destination names and addresses are omitted from stored evidence.
Connection-scoped hashes correlate observations for the same destination; this is
pseudonymization, not anonymization. User email, source IP, device names, URL paths,
query strings, certificate issuer text and payload content are not retained.
Account binding and privacy choice stay fixed. Create a new receiver to change them.
## 2. Issue and save a credential
Choose a credential lifetime and select **Issue credential**. Save the one-time
credential in your secret manager. The page also provides a complete Logpush job
configuration; it contains the credential, so handle it as a secret.
The receiver credential can only submit logs to this one connection. It cannot read
inventory or manage the workspace. Qscan stores a hash, not the credential itself.
Replacing it immediately invalidates the old credential, including pending uploads.
If issuance is interrupted, refresh connection details before issuing again.
## 3. Configure the provider job
Save the copied configuration as a protected local `logpush-job.json` file. It sets:
| Setting | Value |
| --- | --- |
| Dataset | `zero_trust_network_sessions` |
| Destination | Your connection's HTTPS receiver address |
| Authentication | Authorization header containing the receiver Bearer credential |
| Maximum batch bytes | `5000000` |
| Maximum batch records | `1000` |
| Timestamp format | `rfc3339` |
The generated `header_Authorization` destination parameter tells the provider to
send an HTTP header. Do not append credentials as ordinary receiver query parameters.
Create the job with the provider's account-level API. Supply your account ID and
provider token through your shell's secure environment or secret manager:
```bash
curl --fail-with-body \
"https://api.cloudflare.com/client/v4/accounts/${ACCOUNT_ID}/logpush/jobs" \
--header "Authorization: Bearer ${PROVIDER_API_TOKEN}" \
--header "Content-Type: application/json" \
--data-binary @logpush-job.json
```
Do not enable verbose HTTP logging. Retain the returned job ID for updates and
troubleshooting, then remove the local secret-bearing file when no longer needed.
The provider validates the destination with a gzip-compressed test object. This
check verifies receiver access, not delivery of real network session records.
The required fields are `AccountID`, `SessionID`, `SessionStartTime`, and
`SessionEndTime`. The generated configuration also includes the separate client
and origin TLS version/cipher fields, origin certificate validation result, and
destination identifiers used for correlation. Do not replace this with the
different `gateway_network` or `gateway_http` datasets.
## 4. Verify delivery
Select **I saved it — check delivery**, then open **Delivery status**. Refresh after
generating traffic through the gateway. Check these separately:
1. **Destination check:** the provider reached your authenticated receiver.
2. **Latest delivery:** real records were accepted, with observation and duplicate
counts. Sessions without TLS fields are counted explicitly, not presented as
successful cryptographic discovery.
3. **Cryptographic inventory:** inspect the two connection legs and provider-reported
evidence. A reported valid certificate does not imply independent chain validation.
The receiver accepts plain or gzip JSONL, up to 6 MiB compressed and expanded and
2,000 records per request. This leaves headroom above the configured provider batch.
Nanosecond timestamps are preserved exactly. Records must end within the past
30 days and no more than five minutes ahead. Replays are deduplicated during that
window. A batch commits completely or fails without partially adding evidence.
Raw uploads are not saved; normalized evidence follows workspace archive handling.
## Troubleshooting
Delivery status shows the latest authenticated upload rejection with its time,
error code and a specific recovery action. Raw logs, secret headers and arbitrary
error messages are never stored in this diagnostic. A successful data delivery
clears the warning; a destination probe alone does not. Replacing a credential
starts a fresh diagnostic state. The connection also reports expired credentials
or lost administrator authorization even before another upload is attempted.
| Symptom | What to check |
| --- | --- |
| Destination validation fails | Receiver URL, Authorization header, credential expiry and current connection state. Use the generated configuration. |
| Destination check succeeds, no delivery | Dataset availability, enabled provider job, selected fields and actual gateway traffic. |
| `401 receiver-unauthorized` | Replace an expired/revoked credential and update the provider job. The administrator who issued it must retain authorization. |
| Account mismatch | `AccountID` must match the configured provider account. A payload can never choose a different workspace. |
| Timestamp error | Use RFC3339 UTC or exact Unix nanoseconds; Unix seconds and rounded numeric values are not equivalent. |
| Upload too large | Configure the 5 MB/1,000-record maxima above. Do not send a day's logs as one upload. |
| `429` | Respect `Retry-After`. Receiver budgets allow 20 requests/minute per connection and 60/minute per workspace, independently of workspace controls. |
| No new observations on retry | Check duplicate counts; this is expected for an already accepted batch. |
| No TLS metadata | The session record contained no client/origin TLS fields. Check selected fields and traffic protocol. |
## Rotate, disconnect and archive
Use the row's **More → Replace receiver credential** action before expiry. Update
the provider job immediately with the new credential; there is no overlap period.
**Disconnect** rejects further uploads. Disable the provider job to stop retries.
Then **Archive** removes the connection from the working list while preserving
findings. Restoring an archived connection leaves it disconnected until you issue
a new credential.
## SDK and OAuth MCP
The JavaScript SDK provides `telemetryConnections()`, `telemetryConnection(id)` and
`telemetryStatus(id)`. Python equivalents are `telemetry_connections()`,
`telemetry_connection(id)` and `telemetry_status(id)`. OAuth-authorized MCP clients
can use `telemetry_connections`, `telemetry_connection` and `telemetry_status`.
These expose metadata and receipts, never receiver credentials. Credential issuance
and connection management use the workspace administrator browser flow.
Provider references: [session dataset](https://developers.cloudflare.com/logs/logpush/logpush-job/datasets/account/zero_trust_network_sessions/)
and [HTTP destination setup](https://developers.cloudflare.com/logs/logpush/logpush-job/enable-destinations/http/).
## Permanently delete a receiver
Disconnect the receiver, then choose **Delete permanently** from its More menu.
Archived receivers also offer **Delete permanently**. Review the inline
confirmation or select **Keep connection**. Deletion removes the account/privacy
settings, receiver credential record and delivery diagnostics. Existing findings,
immutable evidence and pending evidence-archive work remain in the workspace.
Deduplication markers continue their normal thirty-day expiry; deletion does not
perform an unbounded inventory sweep.
Disable or delete the provider's Logpush job separately. QScan does not hold your
provider management credential and cannot stop that job. Deleted receiver URLs
reject future uploads and destination probes, including uploads that began before
deletion. Removing the connection never restores its old receiver credential.
If the deletion response is lost, retry using the same connection revision.
Same-revision retries are idempotent. The verified administrator browser endpoint
`POST /api/auth/telemetry/manage` accepts `operation: "delete"`, `connectionId`,
`expectedRevision` and `confirm: true`. Disconnect first. Normal reads, delivery
status, ingestion and restore requests return 404 after deletion. Inventory and
evidence remain available through their normal workspace/API/MCP views.
---
# Public status page
Source: https://qscan.dev/docs/public-status
## Open the status page {#open-the-status-page}
The [QScan public status page](https://status.qscan.dev) reports availability checks for public endpoints. You do not need a QScan account to read it. It is a monitoring view, not a guarantee that every product workflow is working.
## What is monitored {#what-is-monitored}
| Component | What the check establishes |
| --- | --- |
| Website | Availability of the public website and workspace pages. |
| API | A valid response from the public API health endpoint. |
| Identity | Availability of the unauthenticated sign-in boundary. No account sign-in is performed. |
| Download catalogs | Availability, expected structure and expiry of the source and native download catalogs. Package bytes and release signatures are not verified by these probes. |
| Documentation | Availability of the public documentation landing page. |
| OAuth discovery | Availability of public authorization-server metadata. No authorization or token exchange is performed. |
These checks do not perform real logins, discovery scans, cloud-provider operations or agent execution. They do not qualify private networks, customer agents, authenticated workflows, installation packages or every dependency. An operational endpoint is not evidence that an individual scan, provider connection or agent deployment has succeeded.
## Freshness and history {#freshness-and-history}
Probes are scheduled every **60 seconds**. Data older than **180 seconds** is treated as **unknown**, rather than continuing to display a previous healthy result as current. A missing check or a failure to retrieve status is not proof that the product is healthy.
The page shows **90 days** of history in **UTC**, with one bar per day, oldest first. Only actual recorded observations contribute to history. Days before monitoring began, or days without observations, remain unknown; the page does not backfill successful checks.
The **successful-check percentage** is the share of recorded checks that passed. **Monitoring coverage** is the share of expected checks that were actually recorded during the monitored period. These are separate measurements: a high success percentage with low coverage leaves gaps. Missing checks are not counted as successes. Neither measure is a time-based uptime guarantee or an SLA measurement.
## Incidents and maintenance {#incidents-and-maintenance}
Automatic incidents describe observed probe failures and subsequent recovery. Operator incidents and maintenance notices are authored in Git and published with the status service. Their updates show the state and timestamp supplied by the operator; planned maintenance can be dated in the future. The page distinguishes operator notices from automatic observations.
Read the affected components, latest update and any stated limitations before drawing conclusions. An empty incident or maintenance list means no notices are published in that list; it does not certify that every customer workflow is functioning. There is no invented incident history.
Automatic incident history is capped at **100 incidents**, retaining active incidents and the most recent resolved incidents within the history window. This limit is separate from the daily observation history.
## Machine-readable status and feeds {#machine-readable-status-and-feeds}
- [Current status JSON](https://status.qscan.dev/status.json) provides the status snapshot.
- [RSS updates](https://status.qscan.dev/feed.xml) can be followed in an RSS reader.
- [JSON Feed updates](https://status.qscan.dev/feed.json) provide incident and maintenance updates for compatible readers.
Feeds list published updates with stable identifiers and timestamps, newest first. They do not create an email subscription or register a notification recipient. An empty feed contains no published updates.
## Deployment boundaries {#deployment-boundaries}
The status page is deployed independently from QScan, but shares infrastructure with the product. A provider-wide incident can affect both. If the status page is unavailable or its data is stale, treat current availability as unknown and use your established support and incident-response procedures.
---
# Register the Jira OAuth app
Source: https://qscan.dev/docs/register-jira-app
Platform operators configure one shared OAuth application. Workspaces will grant access separately using their own Atlassian accounts. **App registration and workspace OAuth APIs are available. The [workspace connection screen](../jira-connections/) supports consent and access management. Site/project/type selection is available; required-field mapping, reviewed ticket creation and reconciliation are available.** Saving credentials does not verify them with Atlassian or connect a workspace.
## Register and save
1. Sign in as a platform operator and complete MFA. Open **Tenant portal > Jira integration**.
2. In the [Atlassian developer console](https://developer.atlassian.com/console/myapps/), create an OAuth 2.0 integration for Sectigo Quantum Ready.
3. Add Jira API permissions `read:jira-work`, `write:jira-work` and `read:jira-user`. Authorization also requests `offline_access` to refresh access without repeated sign-in.
4. Set the callback to exactly `https://qscan.dev/account.html?jira_authorize=1`. The product displays the callback for the configured deployment.
5. Enable distribution if other Atlassian accounts will authorize the application. Copy the client ID and client secret from the app settings.
6. Enter both values in the operator form and select **Save registration**. The saved status shows the client ID and save time. The secret is encrypted before storage and cannot be displayed again.
Do not enter an Atlassian password or personal API token. Platform registration is unavailable to workspace administrators. Do not send secrets through email, issue comments or documentation examples.
## Replace credentials
Open the same form, enter the new secret, select the replacement confirmation and save. Replacing credentials advances the app revision and requires existing authorizations to reconnect. The old stored secret is removed. Coordinate rotation with workspace administrators before changing a connected app.
If another operator changed the registration, the form rejects your stale save. Select **Refresh status**, review the current registration, and enter the replacement again. A failed save keeps the values you entered so you can correct the problem; a successful save clears the secret field.
## Remove registration
Expand **Remove platform registration**, select the confirmation and submit. This deletes the platform's stored client credentials. It does not delete Jira issues, delete the application in Atlassian, or revoke grants in Atlassian. Manage provider-side application access separately in Atlassian.
## API and troubleshooting
The browser-session API exposes `GET /api/auth/integrations/jira-app`, `POST /api/auth/integrations/jira-app` and `POST /api/auth/integrations/jira-app/remove`. All require a verified platform operator. Mutations require the canonical Origin and the current `expectedRevision`; replacement and removal require explicit confirmation. Save and removal share a rate limit.
- **Operator required:** use your platform operator account, rather than a workspace administrator account, and complete MFA.
- **Configuration changed:** refresh and review the latest registration before trying again.
- **Encryption unavailable:** the deployment's integration credential encryption key must be configured by its operator; do not work around this by storing credentials elsewhere.
- **Saved, but not connected:** registration only stores the app configuration. Workspace consent is a separate step. Configure the workspace project and field mapping before creating a ticket from a migration task.
Provider behavior follows Atlassian's [OAuth 2.0 authorization code grant documentation](https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/).
## Workspace authorization API
For the product setup flow, see [Connect and manage Jira accounts](../jira-connections/). Developers can also use the [API reference](./api/index.md) to exercise the available lifecycle through a verified administrator browser session:
1. `POST /api/v1/jira-connections` with `{"name":"Production Jira"}` creates metadata in `authorization-required` state. It does not contact Atlassian.
2. `POST /api/auth/jira/start` with the returned `connectionId` and `expectedRevision` returns a fixed Atlassian authorization URL and expiry. Open that URL in the same browser session. Only a verified workspace administrator can start consent; API keys and agents cannot substitute for that session.
3. Atlassian redirects to the account callback. The page removes the code/state from the address before posting them to `POST /api/auth/jira/finish`. Successful consent stores encrypted tokens and advances the connection to `project-required`. No ticket is created. Do not replay the callback or copy its code into logs.
4. Read metadata with `GET /api/v1/jira-connections/{id}`. The response omits provider tokens and encrypted credential envelopes.
5. `POST /api/v1/jira-connections/{id}/disconnect` with `expectedRevision` invalidates stored authorization. `reopen` advances the revision and requires fresh consent; it never restores old credentials. `archive` requires disconnect and removes the connection from the active list. Use `GET /api/v1/jira-connections?archived=true` to review archived metadata.
Listing supports `limit` from 1 to 100 (default 50) and the returned `nextCursor` as `after`. Workspace viewers and analysts can read metadata; only administrators can mutate connections. Renaming uses `PATCH /api/v1/jira-connections/{id}` with `name` and `expectedRevision`. Changes invalidate consent started against an earlier revision. Replacing the platform app also invalidates outstanding consent.
A successful consent response is not a completed Jira integration. Site/project/type selection and authorized token refresh are available. Required-field mapping and reviewed creation/reconciliation are available. Acceptance against a real authorized Jira account remains pending.
User-reference checks need `read:jira-user`. If an existing connection predates this permission, enable it in the Atlassian app and have its workspace administrator choose **Actions > Authorize again**. Existing project discovery continues to work, but user checks return a specific reauthorization message until the scope is granted. Reauthorization clears the target and saved mapping, so choose the project and configure its fields again.
---
# Remote network scanning
Source: https://qscan.dev/docs/remote-network-scanning
Remote scanning lets selected agents pull approved TLS, SSH and QUIC work for
devices they can reach. A scanner pool defines the network boundary and eligible
agents. Enrollment alone does not enable this capability.
:::info Agent requirement
Use agent **0.26.54** or newer. Windows and Linux unified packages include this
version. Existing agents require an approved update and local remote-scanning
configuration; enrollment alone does not enable remote scans. Native TLS, SSH,
QUIC v1/v2 and revocation checks are covered by the release acceptance records.
:::
## Prepare the network approval
Choose a scanner host with access to the intended subnet. It needs outbound
access to QScan and to the explicitly approved destination ports. Remote scanning
uses ordinary TCP and UDP connections; it does not require administrative login
to target devices or packet-capture privileges.
Agree these details with the security team before enabling a pool:
- The scanner's local interface addresses and any NAT addresses seen by firewalls.
- Allowed devices or CIDRs, exclusions, and protocol/port pairs.
- The network zone, traffic rate, concurrent connection limit and scan window.
- The approval owner, change reference and review expiry.
Use narrowly scoped firewall and detection-system exceptions for those sources,
destinations, ports and times. The network review download helps communicate the
scope; it does not configure firewalls or guarantee that monitoring will not alert.
NAT addresses are review metadata, not addresses the agent binds locally.
Use the same network zone for pools sharing one reachable network. Use different
zones for isolated networks that reuse private IP addresses: remote inventory is
separated by zone, and traffic budgets are shared within a zone. Creating another
pool in the same zone does not create an independent traffic allowance.
## Create a pool and approve a scanner
1. Open **Remote scanning** and select **Create scanner pool**. Setup opens on a
dedicated page with three steps: network boundary, services and traffic limits,
then approval and review. **Back to pools** preserves your draft and step in
this tab; returning to setup restores them. **Discard draft** starts over.
Reloading the browser clears the draft. Creating a pool does not start a scan.
2. In the pool, expand **Approve a scanner**. Select an active enrolled agent
with the required TLS, SSH or QUIC capability.
3. Enter source addresses actually assigned to that host. Add NAT/egress addresses
separately if needed, then approve the scanner.
4. Download **Network review** for the security team and **Download configuration**
for the administrator of the scanner host.
5. Have that administrator review and merge the downloaded `remoteScan` section
into the agent's existing JSON configuration. Preserve other settings and
credentials. The download is a configuration patch, not a replacement file.
6. Run the agent's `doctor --config` command against the merged configuration.
Restart the service after changing settings. Confirm a fresh heartbeat and
scanner readiness in the pool, then enable the pool.
Cloud approval and local approval are both required. A local administrator can
restrict the downloaded scope further. Widening cloud policy cannot bypass the
local ceiling. Removing or disabling local approval stops new remote work.
## Configure identity verification
Remote targets are literal IP addresses. DNS names and automatic name discovery
are not supported by this workflow. Certificate validation uses the target IP;
a service requiring DNS-based SNI needs a different scan workflow.
For SSH, obtain the host-key fingerprint through a trusted administrative channel.
Add it to the existing configuration's `sshHostKeyPins`, keyed by the exact IP and
port, for example:
```json
{
"sshHostKeyPins": {
"10.20.30.8:2222": "SHA256:REPLACE_WITH_THE_VERIFIED_HOST_KEY_FINGERPRINT"
}
}
```
The fingerprint must be a valid SHA256 fingerprint. Its address and SSH port must
be approved by the local remote policy, including exclusions. You do not need to
add remote-only devices to `allowedSshTargets`. The scan does not log in or open
an SSH session channel. A missing pin is not verified host identity.
For QUIC, the runtime must report QUIC readiness. `quicVersion` selects `v1`
(default) or `v2`; the agent does not silently fall back. If private trust roots
are needed, set `quicCaBundle` to an absolute path readable by the service account.
Keep trust settings on the scanner host. Do not disable certificate verification
to make a target pass.
## Preview and run
In the enabled pool, enter devices or subnets, select approved services and set
a scan window of at most 24 hours within the policy expiry. Review the expanded
preview before submitting. Exclusions always win. IPv6 targets must be explicit
devices; IPv6 subnet enumeration is not supported. A run is bounded to 4,096
service targets and may be smaller under the pool's limits.
Only explicitly approved, locally enabled, recently connected scanners can pull
work from the pool. Each target attempt performs one bounded handshake. Remote
TLS does not inherit the multiple-probe local capability profile. QUIC sends no
application data. This baseline is not an exhaustive enumeration of every cipher
or algorithm a service could negotiate.
Before opening a target connection, the agent must renew its short execution
lease. For runs approved by a signed-in user, renewal checks current Identity
authorization and the original membership version, then rechecks the pool and
agent grants. A stale tenant membership cache cannot authorize execution. If
Identity is unavailable, no new connection starts. API-key approvals remain
subject to their current role, expiry and revocation state.
## Read progress and recover
Run history shows target outcomes separately from unattempted work. An **unknown**
attempt means contact may have happened but completion was not confirmed. It is
not proof that the device is unreachable or that coverage is complete. Unknown
attempts are not retried automatically; review and authorize a new run if needed.
If submission loses its response, use the recovery action for the unchanged
request. Do not submit a different scope with the same request ID. Pool policy,
membership or approval changes invalidate older run approvals; preview a new run
after reviewing the change. Pause and cancel stop further authorized work but
cannot undo a handshake that already occurred.
To renew approval or change scope, open the pool and expand **Edit scope or renew
approval**. Review the allowed and excluded addresses, services, limits, security
contact, approval reference and expiry, then choose **Save reviewed policy**.
Saving returns the pool to draft and invalidates previous run approvals. Review
the agents' local configurations before enabling the pool again; a cloud policy
change does not widen local permissions. If a save loses its response or conflicts
with another administrator's change, reload the current pool before editing again.
To retire a pool, open its details and expand **Retire this pool**, then choose
**Archive pool**. Archiving permanently prevents new work and invalidates
outstanding run approvals while preserving scan history. Create a new pool if
you need to scan that network again. Use **Pause pool** for a temporary stop.
| Symptom | Check |
| --- | --- |
| No eligible scanner | Current heartbeat, agent capability, local opt-in, matching pool and zone, and approved local source address. |
| Work stays unattempted | Pool state, scan window, approval expiry, rate limits and eligible scanner availability. |
| `doctor` rejects SSH pins | Literal address, exact SSH port, exclusions, current policy and fingerprint format. |
| Certificate verification fails | IP identity, chain, expiry and the service account's trust configuration. |
| Run reports policy changed | Refresh the pool and preview a newly approved run. |
| Target outcome is unknown | Inspect agent connectivity and logs before authorizing another network attempt. |
Keep credentials out of shared logs and support bundles. Configuration and network
review downloads contain infrastructure scope and should go only to the relevant
administrators.
## Review TLS certificate failures
Python, Windows and Linux native agent 0.26.55 can retain partial endpoint and presented-certificate
findings when TLS verification fails. Open the endpoint's certificate evidence
to distinguish a complete presented inventory, a partial inventory, and no
recovered certificate metadata. Repeated certificate entries are deduplicated
and the inventory remains marked incomplete. These findings do not establish
host identity or a verified TLS negotiation.
Check the installed agent version before expecting this behavior from a compiled agent.
Windows cloud replacement and reboot recovery retain their separate qualification limits.
Remote targets use the approved IP address and port. Check that the certificate
identifies that address and that its issuing chain is trusted by the account
running the agent. An interactive user's trust settings may differ from those
of the service account. Correct the service certificate or the agent's intended
trust configuration, then authorize a new run under the existing scope and
scan-window controls.
Certificate rejection stops capability probes and sends no application data.
The agent does not retry with certificate verification disabled. See
[certificate rejection findings](../hosted-tls-scanning/#certificate-rejection-findings)
for the inventory meanings and repair steps.
## SSH host-key inventory
This profile requires source scanner **0.26.70** and platform **0.51.353**.
Earlier agents continue to use their existing profiles.
Do not assume a compiled package supports it until its release notes say so.
An administrator can approve **Allow SSH host-key inventory** when creating a pool
or editing its policy. Keep an SSH service and port in the approved services.
Saving a policy returns the pool to draft and invalidates earlier run approvals;
review the local configuration and enable the pool again.
Download the scanner configuration handoff and review it with the host administrator.
The inventory handoff proposes a local ceiling of five connections and
`sshHostKeyProfile: "host-keys-v1"`. That local profile also opts ordinary SSH jobs
into inventory. Preserve the source name, credential references and existing
`sshHostKeyPins`. Only apply the patch after reviewing its scope.
When planning a run, select an SSH service and choose **Raw host keys** under
**SSH probing**. Baseline remains the default. The preview describes the connection
limit and scan window. Editing the form invalidates that preview. If submission
cannot be confirmed, use **Recover submitted scan** to retry the same reviewed
request instead of starting another run.
Inventory observes up to one raw key per supported family: Ed25519, ECDSA P-256,
P-384, P-521 and RSA using SHA-2 signatures. It makes at most five connections to
the same approved address and port. Other selected services retain their baseline
handshake. It does not enumerate every key or configuration, authenticate a user,
or run commands. A matching configured fingerprint establishes trust only in the
baseline key; additional observed keys do not inherit that trust.
### Host keys and certificates
Source scanner **0.26.90** adds `host-keys-v2`. Enable **Allow SSH host keys +
certificates** in the pool policy, review the ten-connection local handoff, and
select **Host keys + certificates** for the run. This is separate from the existing
raw-key approval. The agent must advertise the exact selected profile; a v1-only
agent will not claim a v2 run. A v2-configured agent does not silently substitute
v2 for a v1 run. Configure matching agents or select the intended profile.
The local handoff sets `sshHostKeyProfile: "host-keys-v2"` and
`remoteScan.limits.maximumConnections: 10`. Preserve existing credential references,
source addresses, exclusions and pins. Review these settings before applying them.
Failed connections consume the allowance; local pacing and expiry still apply.
Source and compiled releases are separate: inspect the installed scanner version
before selecting this profile.
V2 checks the five raw-key families plus their OpenSSH host-certificate families.
Findings include bounded certificate, subject-key and signing-key fingerprints,
validity timestamps, signature algorithm and signature-verification result.
A verified certificate signature does **not** establish CA trust or hostname
validation. Raw-key pins still apply only to the baseline key. Certificate IDs,
principal names, option contents and raw certificates are not exported. Unavailable
certificate parsing produces partial coverage rather than an invented result.
Neither profile proves exhaustive server configuration or all available keys.
An inventory target waits for its shared network zone to become idle. It reserves
the zone through its short execution grant and a cooldown of at least 30 seconds
after grant expiry (or the longer configured interval). Per-connection spacing,
local scope, source binding and cancellation checks still apply. Adding another
pool in the same zone does not bypass this reservation.
Review partial results as incomplete coverage. A family that was not advertised
was not tested successfully; a timeout or failed handshake is inconclusive.
Unknown or failed attempts are not automatically retried. Authorize a new run
only after reviewing the target outcome and the scan window.
## Opening and returning from a scanner pool
Select a pool from Remote scanning to open its configuration on a dedicated workspace page. The page contains its network boundary, scanner approvals, policy editor and scan runs. **Back to pools** returns to the same list page and selected pool in this tab. Reloading clears the saved list position. If a pool cannot be loaded, use **Retry pool** on the page or return to the list. Newly created pools open directly for scanner approval and configuration.
Pool-list and scanner-membership pagination keep the previous records and page number if a request fails. Paging buttons are disabled while loading to prevent overlapping requests. Failed membership refreshes preserve the current controls and form values; retry the page request when the connection recovers. Successful membership paging updates only the scanner list and its per-scanner actions. Unfinished policy edits, scanner-approval fields, scan plans and expanded sections stay in place. Paging does not publish edits or refresh the reviewed pool revision; write actions remain bound to that revision and may require a refresh if another administrator changed the pool.
Run-history and target-result pages also retain their last successful rows and page number after a failed read. Loading and error feedback appear beside the affected list. Use its refresh control or retry the page action; if the first target read fails, **Retry targets** is available. Opening another run ignores a late response from the previous selection.
Pause, resume, and cancel share a per-run action lock while a change is pending. If the response is lost or the subsequent status read fails, use **Refresh runs** to confirm that run?s current state before choosing another action. A read started before the uncertain outcome does not clear the lock. Other runs remain available.
Target outcomes identify the selected run by name. Its run button remains marked while it is visible in history; paging the history keeps the named results open until you select another run. Empty target pages show an explicit message.
## SDK and assistant access
The JavaScript SDK exposes `remoteScannerPools`, `remoteScannerPool`, `createRemoteScannerPool`, `updateRemoteScannerPool`, `setRemoteScannerPoolState`, `remoteScannerPoolMembers`, `updateRemoteScannerPoolMember`, and `remoteScannerConfiguration`. Run methods are `previewRemoteScanRun`, `startRemoteScanRun`, `remoteScanRuns`, `remoteScanRun`, `remoteScanTargets`, and `setRemoteScanRunState`. The Python SDK provides the corresponding snake_case methods. Methods preserve the caller?s request ID, reviewed revisions, and paging filters; mutations are not automatically retried.
MCP provides the same workflow using the existing workspace OAuth connection. See [assistant remote scanning](../ai-integrations/#remote-scanning-through-approved-agents) for tool names, roles, preview requirements, and retry semantics. Neither SDK nor MCP bypasses local scanner opt-in or pool/network approval.
---
# Repository connections
Source: https://qscan.dev/docs/repository-connections
GitHub.com and GitLab.com hosted scanning is available to workspaces on qscan.dev. Add a repository, connect a GitHub account or configure a read-only token, then select **Run scan**. Access is checked before processing starts. GitHub account authorization requires the platform GitHub App registration; GitLab browser authorization is not yet implemented.
If access is denied, setup opens with token authentication selected. Supply a valid token and use **Save access**, then run the scan again. A not-found response can also mean the path or branch is incorrect: review those fields. **Edit access** repairs an existing connection without creating duplicates.
If GitHub authorization cannot start after saving, the repository remains saved. Choose **Configure access** on its connection to retry authorization; do not add the repository again.
A scan submission interrupted by a network failure reuses its original request when retried in the same view. If that scan has already finished, the page shows its actual outcome and coverage instead of presenting a new queued scan.
After disconnecting a repository, choose **Archive** to remove it from the main list. **Show archived** opens the archive. Scan history, findings and audit records are retained; credentials are removed at disconnection.
Use **Next connections** and **Previous connections** above the connection list to browse larger workspaces, including archived entries. Connection pages and scan-history pages are independent. Refresh keeps the current connection page; switching between active and archived lists starts at page one. If loading fails, the displayed page stays available and you can retry the same navigation.
If a scan reports **source tree unavailable**, the provider resolved the repository reference but could not return a referenced tree. **Source file unavailable** means listing succeeded but a listed file could not be read. Check provider availability and access before starting another scan. These errors do not by themselves prove that the repository was deleted or the token expired. Failed attempts publish no partial findings; cleanup must still be confirmed. Keep the scan ID when reporting intermittent failures.
## Check access without starting a scan
Choose **Check access** on a configured connection to test the saved credential, selected reference and source directory. Administrators and analysts can run this check; viewers can read its result. The check reads provider metadata without downloading source files or creating a scan.
The connection shows the last result and check time, including quota, missing-directory and authentication failures. It remains visible after leaving the page. A successful check is an observation at that time, not a guarantee of future access or complete scan coverage. **Run scan** still performs a fresh check before submitting a new scan.
Changing scope, rotating a token, reconnecting GitHub or disconnecting invalidates the displayed result. Checks that finish after a revision or permission change cannot save a result for the new configuration. Quota exhaustion does not mean the token is invalid: wait for the provider quota to reset, then check again.
API and SDK clients receive `accessCheck` from `testRepositoryAccess(id, revision)` and from subsequent connection reads/lists. It contains `revision`, `checkedAt`, `accessible` and either the resolved `commit` or a bounded `reason`. The MCP `repository_test_access` tool uses the same endpoint. No provider response body or credential is retained in the result.
## Connection scope
Each connection selects github.com or gitlab.com, a repository path, a branch/tag/commit reference, and an optional directory. Provider and repository identity cannot be changed after creation; create a new connection for another repository. Directory selection limits supported source files. JavaScript and TypeScript modules include `.js`, `.mjs`, `.cjs`, `.jsx`, `.ts`, `.mts`, `.cts` and `.tsx`. Module source is parsed without being imported or executed. Hosted scanner 0.26.48 also resolves chained CommonJS calls such as `require('crypto').createHash('sha256')` and direct WebCrypto chains. It resolves Node crypto ESM/CommonJS imports and aliases, accounts for scope shadowing and mutation, and keeps comments/string mentions out of call findings. Unresolved call-name candidates remain explicitly labelled and lower confidence; dynamic algorithm arguments remain unknown. Syntax errors, missing parser dependencies and dynamic scope appear in coverage diagnostics and SARIF invocation status. Imported Node WebCrypto calls are also parsed, including string or plain object algorithm names, key generation/import, encryption/signing, KDF and KEM operations. Derivation, unwrapping and KEM key operations preserve both explicit algorithm arguments as separate static findings. Algorithm names are declarations, not proof of valid parameters or successful execution. Dynamic names and ambiguous objects stay unknown. Shared crypto namespace member writes mark coverage incomplete. Browser globals, wrapper/re-export resolution, cross-file dataflow and other library semantics remain coverage gaps. Installed agents retain their bundled detector until updated; Windows and Linux foreground scanner 0.26.16 include this parser. Older agent releases retain their previous detector; each native release requires platform acceptance. Arbitrary provider API hosts are not accepted yet.
Selecting a directory also limits provider tree traversal. GitHub resolves its path at the pinned commit and reads that subtree; GitLab requests the selected path on each tree page. Unrelated monorepo contents therefore do not consume the selected subtree's tree limit. File, byte, request and time limits still apply within the selection. Access checks validate the directory without downloading source; a missing directory opens scope repair and does not ask you to replace valid account authorization. Returned evidence retains repository-relative paths.
Hosted scans require authenticated provider access even for public repositories. `authentication: "public"` is retained only for an unconfigured draft, including the first step of GitHub browser authorization; access checks and scans cannot execute anonymously. Provider tokens use `authentication: "token"` and are write-only: read/list responses never return their value. Use a dedicated, read-only credential scoped to the intended repository. Do not grant write or administration permissions. Use **Check access** to verify setup without scanning, or **Run scan** to verify access and start processing.
Administrators create, replace, rotate and disconnect connections. Analysts and viewers can read metadata; agents cannot access connection management. Each mutation requires the current revision. Reload after a conflict; do not blindly retry a mutation whose response was lost.
## Rust dependency coverage
Hosted scanning and the Python/CI scanner 0.23.8 read `Cargo.lock` versions 2, 3 and 4 alongside `Cargo.toml`. Catalog-matched cryptographic crates produce library findings with the recorded resolved version and file/commit provenance. Multiple versions or source instances remain distinct. Private registry URLs, Git credentials, unrelated package names and dependency source contents are not exported.
A lockfile records resolution; it does not establish installation, active features, target selection, runtime use or package authenticity. Direct versus transitive scope is not inferred from the lockfile. Cargo, build scripts and package downloads are never run. Malformed or unsupported versions produce incomplete analysis with a manifest diagnostic, rather than an empty successful assessment. Lockfiles are limited to 5 MB and 50,000 package records, within the existing overall scan limits.
Published Windows x86_64 and Ubuntu 24.04 x86_64 binaries now include this coverage in version 0.23.8. Older binaries need updating; changing the workspace alone does not change installed scanner code. The Python/CI bundle and hosted repository workflow also support it. See the [Cargo lockfile explanation](https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html) for the distinction between declared constraints and recorded resolution.
## JavaScript SDK workflow
Scanner **0.26.71** adds TypeScript CommonJS import-equals detection, such as
`import crypto = require('node:crypto')`, for `.ts`, `.cts`, `.mts` and `.tsx`.
Literal Node crypto and WebCrypto calls preserve static import provenance in
inventory and SARIF. Type-only imports, shadowed names and mutated bindings do
not establish resolved crypto use. These findings do not verify execution or the
project's TypeScript compiler configuration. Installed agents need a release
containing this detector; an updated hosted scanner does not update agent binaries.
```js
const availability = await client.repositoryCapabilities();
// Check current service availability before starting work.
const connection = await client.createRepositoryConnection({
config: {
name: 'Application source',
provider: 'github',
repository: 'your-organization/your-repository',
ref: 'main',
directory: 'src'
},
authentication: 'token',
token: providerToken // Load a read-only provider token from your secret store.
});
const current = await client.repositoryConnection(connection.id);
await client.disconnectRepository(current.id, current.revision);
```
Python provides `repository_capabilities`, `repository_connections`, `repository_connection`, `create_repository_connection`, `update_repository_connection`, `rotate_repository_credential`, and `disconnect_repository` with equivalent inputs. See the generated API reference for request schemas.
## Recurring repository scans
Open a connection's actions menu and choose **Schedule scans**. Select an interval, optionally select **Queue the first scan now**, and explicitly authorize recurring access. Saving checks the current provider credential and source scope before enabling the schedule. The API requires a successful access check for the same connection revision within the previous 15 minutes.
The schedule displays the next run, authorizing administrator, skipped occurrences and last queued scan. **View last scan** opens its progress and results. Connection rows also show the next scheduled run. Scan history marks recurring runs as **Scheduled**. Each run resolves the configured reference to an exact commit; a branch can therefore produce a different snapshot on a later run. Pin a commit if you intentionally want the same snapshot.
Intervals range from one hour to 30 days. The console offers hourly, six-hourly, daily, weekly and 30-day choices; the API accepts any whole number of seconds in this range. If the workspace was unavailable across several intervals, only the latest missed occurrence is eligible. An existing queued, running or cleanup-pending scan for the same connection causes that occurrence to be skipped. Workspace scan capacity defers dispatch; provider or shared-processor failures are recorded in scan history and are not silently replayed.
Browser administrators delegate their current workspace membership, so signing out or normal session expiry does not stop the schedule. Removing membership, changing its authorization version, suspending the workspace, changing repository scope or credentials, or reaching provider-token expiry invalidates execution. API-key schedules additionally stop when that key expires or is revoked. GitHub account authorization remains subject to its provider grant's current validity. After changing access, check it again and explicitly reauthorize the schedule.
**Pause schedule**, **Remove schedule**, and replacing a schedule prevent future runs and stop unfinished scheduled work from publishing findings at its next authorization check. Processing already in flight may continue until cancellation/cleanup is confirmed; raw source cleanup is still required. Completed findings and scan history remain. A paused schedule can be enabled again through the same form. A disconnected or archived connection's **View schedule** action lets an administrator inspect and remove its invalidated schedule.
```js
const current = await client.repositoryConnection(connectionId);
const access = await client.testRepositoryAccess(current.id, current.revision);
if (!access.accessible) throw new Error('Resolve repository access before scheduling');
const {schedule} = await client.repositorySchedule(current.id);
const saved = await client.manageRepositorySchedule(current.id, {
operation: 'save',
expectedRevision: schedule?.revision || 0,
expectedConnectionRevision: current.revision,
intervalSeconds: 86400,
startNow: false,
confirmDelegation: true
});
// To pause, use the revision returned by the last read/save.
await client.manageRepositorySchedule(current.id, {
operation: 'pause', expectedRevision: saved.schedule.revision
});
```
Python exposes `repository_schedule(connection_id)` and `manage_repository_schedule(connection_id, configuration)` with the same payload. MCP provides `repository_schedule` and `repository_schedule_manage`. Administrator access and explicit recurring authorization are required for changes; analysts and viewers can inspect schedules. No credential or internal execution grant is returned. After an uncertain save/pause/remove response, **Refresh schedule** (or read it through the API) before retrying. Do not guess a new revision or resubmit with `startNow` without reviewing the saved state.
## Credential lifecycle
Token connections require configured credential encryption. `credentialStorageReady` reports availability; saving a token fails when encryption is unavailable. At rest, each credential is authenticated and encrypted for its tenant, connection, configuration and revision using a dedicated keyring. Tokens and encrypted credential envelopes are omitted from public metadata, audit events and revision history.
To rotate, submit the current revision and a replacement credential. Old revisions immediately become invalid for future credential acquisition. Rotation replaces the stored ciphertext and resets the connection to `untested`. Replacing a token-authenticated configuration also requires its credential again. Disconnect removes stored ciphertext, marks the connection revoked, and prevents future credential acquisition. **It does not revoke the credential at GitHub/GitLab**; revoke unused provider tokens there separately. An optional `expiresAt` supplies an additional platform expiry check; the provider may revoke or expire access earlier.
Hosted scan operations will recheck authority and connection revision before use and before accepting findings. Scan operations are available to all workspaces with administrator or analyst access.
## Hosted scan API preview
Check `repositoryCapabilities().executionEnabled` first. A false value means this workspace cannot start hosted scans yet. Use `testRepositoryAccess(id, revision)` to check provider access without downloading source files.
```js
const operation = await client.startRepositoryScan({
connectionId: connection.id,
expectedRevision: connection.revision,
requestId: crypto.randomUUID()
});
const status = await client.repositoryScan(operation.id);
const history = await client.repositoryScans({ limit: 25 });
// Administrators can cancel any scan; analysts can cancel their own.
await client.cancelRepositoryScan(operation.id);
```
Queueing returns immediately. Reuse the same request ID only when retrying the identical request after a lost response. A cancelled/failed operation is not restarted by that identifier; use a new request ID for a deliberate new scan. There are two active slots per workspace and two shared processors in this preview. A shared-capacity failure requires a deliberate retry; it does not silently rescan source.
States are `queued`, `running`, `cleaning`, `completed`, `failed`, or `cancelled`. `cleaning` can persist while destruction is retried; capacity is retained until cleanup is confirmed. A completed operation can have `result.analysisComplete: false`: inspect coverage and evidence before interpreting the result. Completion does not establish quantum readiness or complete language/runtime coverage. Provider quota, lost access, and missing repositories have distinct error codes. Raw source is transient; verified normalized findings can be staged durably while atomic publication is retried.
Scan failures distinguish `repository-scope-too-large`, `repository-file-too-large`, `provider-timeout` and `directory-not-found`. Narrow the selected directory for scope limits, exclude large generated files for file-size limits, and check the directory at the selected reference when it is missing. A provider timeout calls for a deliberate retry; it does not establish invalid credentials. Hosted bounds are 20,000 tree entries, 1,000 selected files and 64 MiB of source per scan; individual source files are limited to 1,000,000 bytes, with 5,000,000 bytes allowed for `package-lock.json` and `npm-shrinkwrap.json`. Request and time limits also apply. A failed snapshot publishes no findings from that attempt.
If an authenticated connection reaches provider quota, the UI keeps its existing access and explains the reset requirement. It does not automatically open token replacement or browser reauthorization. Public connections can still switch to a read-only token to use their account's quota.
GitHub secondary throttling can return `403` with a numeric `Retry-After` header
even when the primary quota has requests remaining. Access checks and hosted
source reads recognize that response as a provider limit, rather than denied
permission. Wait for the provider's delay before retrying; changing tokens on the
same account may not help. Ordinary `403` responses remain access failures.
See [GitHub's rate-limit guidance](https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api).
If GitHub explicitly throttles the token-renewal request, Quantum Ready preserves
your authorization and waits until the provider's retry time before attempting
renewal again. The cooldown survives reloads and scope edits. An access check
reports the provider limit; a background scan stops with `provider-rate-limited`
and can be retried after the cooldown. No scan is automatically retried.
If the renewal outcome is unknown, or identity verification fails after GitHub
has issued a replacement token, reconnect GitHub. The old refresh token may
already have been consumed, so Quantum Ready does not reuse it.
Python equivalents are `start_repository_scan`, `repository_scan`, `repository_scans`, and `cancel_repository_scan`. History is cursor paginated with the newest operations first. Disconnect or rotation invalidates outstanding work before findings can be accepted; disconnect still does not revoke provider-side credentials.
## Set up a repository in the workspace
Open **Discovery > Repository scanning**, then select **Add repository**. Enter a connection name, choose GitHub.com or GitLab.com, and supply the repository path without its website address. Choose a branch, tag or commit, and optionally limit discovery to a relative source directory. Choose a read-only account token, or GitHub browser sign-in when the platform app is registered. Authentication is required even for public source. Saving scope does not verify provider access or start processing.
Select **Run scan**. The history shows queued, scanning and cleanup states without resetting an open setup form. **Details** shows the pinned commit, source counts, findings and coverage gaps. Zero findings with coverage gaps is not proof that the repository contains no cryptography. Scan history is newest first; use Previous and Next for older operations.
Administrators can disconnect connections and cancel active scans; analysts can start scans and cancel their own. Viewers can inspect history. Disconnecting requires confirmation and invalidates unfinished work before publication. The setup guide opens in the same tab.
Cancellation can race with completion. If the scan already finished, the console
shows its completed result rather than claiming it was cancelled. A confirmed
cancellation stays visible even if the subsequent history refresh fails; use
**Refresh** to retrieve the latest state. Failed and cancelled scans do not promise
future findings. Review failure guidance before deliberately starting a new scan.
## Private repositories in the workspace
Choose **Repository scanning > Add repository > Your account token**. Enter a read-only token and optionally its expiry. GitHub fine-grained PATs should select only the target repository and grant **Contents: read-only**. GitLab project or personal tokens need **read_api** and access to the project. Organization approval may be needed.
The token is encrypted by the existing tenant-scoped connection store, is never returned by read APIs, and is cleared from the form after submission or closing setup. Disconnecting removes its stored copy; revoke it with the provider separately when no longer needed. Saving a connection does not establish successful access. Run a scan when execution is enabled to validate source access and review coverage.
GitHub/GitLab account passwords are not accepted by this connector. GitHub browser authorization is described below; GitLab currently uses a personal or project token. Hosted scans are available to all workspaces.
## Archive and access-check APIs
JavaScript exposes `archiveRepository(id, revision)` and `testRepositoryAccess(id, revision)`. Python exposes `archive_repository(id, revision)` and `test_repository_access(id, revision)`. Archive requires a disconnected connection and its current revision. Read archived connections with `repositoryConnections({archived:true})` or `repository_connections(archived=True)`.
GitHub fine-grained tokens need repository **Contents: read-only** ([GitHub permissions](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens)). GitLab personal or project tokens need **read_api** ([GitLab token scopes](https://docs.gitlab.com/security/tokens/access_token_scopes/)). Limit the token to the repository being assessed.
## Use your own provider quota
Choose **Your account token** even when the repository is public. Requests then authenticate with that connection's credential instead of using the shared unauthenticated quota. Unconfigured draft connections cannot make provider requests or start scans. The platform no longer falls back to shared anonymous quota.
For an existing repository, select **Edit access**, choose your account token, save it, and select **Run scan**. The connection keeps its history. Credentials with the same provider account may still share limits; adding a token does not guarantee unlimited scanning. If an authenticated request is rate limited, wait for its quota to reset. A 404 can also mean the token cannot see the repository or the branch is wrong.
## Connect a GitHub account
1. Save the repository scope. You can choose Public access initially; saving does not start a scan or claim private access works.
2. Select **Connect GitHub** on that repository. If setup is needed, ask a platform operator to [register the read-only GitHub App](../github-app-setup/), or use a PAT.
3. On first use, select **Choose repositories**. Installation opens in a clearly labelled new tab so your pending authorization stays available. Select only the repositories you want assessed. Organization approval or an active organization SSO session may be required.
4. Return to Quantum Ready and choose **Authorize GitHub account**. GitHub authorization uses the current tab and returns you to Repository scanning. The callback expires after 10 minutes and must finish in the same workspace sign-in session.
5. Select **Run scan**. Review progress, pinned commit, findings, coverage gaps and source cleanup.
This is repository access authorization, not SSO for signing in to Quantum Ready. It uses expiring GitHub user tokens: access is limited by both the GitHub account and the app's repository permissions. Scans use that account's provider quota. Account authorization cannot bypass organization policy or provider rate limits.
### Renewal and recovery
Access tokens are renewed server-side before expiry; access and refresh tokens stay encrypted in the workspace connection store. Concurrent requests share one renewal. If the provider's renewal response is lost, reconnect instead of repeatedly submitting a possibly rotated refresh token. There is no background installation-token fallback that silently grants broader access.
The authorizing workspace administrator must remain active with the same account version and role. Password/security changes, removal, suspension or a role change can require reconnection by an active administrator. Revoking GitHub authorization or removing the app's repository access prevents further provider reads. Choose **Reconnect GitHub** to repair access. A missing repository response may also indicate the wrong branch or path.
**Edit access > Keep GitHub authorization** changes the branch or directory while retaining the grant. It cannot change repository/provider identity. Scope edits advance the connection revision, invalidating stale callbacks and queued work. Disconnect removes stored access and refresh tokens; revoke the app in GitHub separately if you want to remove provider-side consent too.
SDK scope edits can use `authentication: 'github'` only on an already connected GitHub repository. Initial API creation accepts `public` or `token`; use the browser authorization flow to attach a GitHub grant. Neither SDK nor MCP asks for a GitHub password or app secret.
### Validation status
PAT scanning has passed a real private GitHub scan. GitHub app registration, workspace authorization, automatic renewal, access checks, owner revocation and disconnect pass through the actual Worker using an isolated provider fixture. Real-account OAuth scan acceptance is still pending platform app registration and consent; this is not yet equivalent to the live PAT evidence.
## Export a scan for CI and code review
Open a completed scan's **Details**, then choose **Download SARIF**. The download stays in your workspace. It contains the exact findings retained for that operation and commit, even if the connection was subsequently edited, disconnected or archived. Newer inventory observations do not overwrite an older scan's report. Administrators, analysts and viewers can export; agent credentials cannot.
SARIF 2.1.0 is a standard interchange format for static analysis. Each result includes a repository-relative, URI-encoded file location, line, rule identifier, evidence ID, file hash and a repeatable identity fingerprint. The report records the scan ID, connection revision, commit and coverage totals. It contains no source snippets or provider credentials. Paths are relative to the repository root, including when you scan a subdirectory; `%SRCROOT%` uses a synthetic `file:///src/` base rather than an administrator's local path.
These are discovery candidates, so results use SARIF `note` level. A reference to a cryptographic API or dependency is not proof of runtime use, an exploitable vulnerability or failed quantum readiness. Fingerprints remain stable for the same detector identity and path across commits; moving or changing the detector's source location can create a new identity.
### Export with the SDK
Use the SDK from the signed developer bundle. Store a workspace credential in your CI secret store and inject it as `QSCAN_TOKEN`. A viewer credential is sufficient to export an existing scan; starting scans requires analyst or administrator access. A provider access token is a different credential and does not belong in this SDK's constructor.
```js
import {writeFile} from 'node:fs/promises';
import {QuantumReady} from './sdk/javascript/index.mjs';
const client = new QuantumReady({
endpoint: 'https://qscan.dev', token: process.env.QSCAN_TOKEN
});
const report = await client.repositoryScanSarif(process.env.QSCAN_SCAN_ID);
await writeFile('quantum-ready.sarif', JSON.stringify(report, null, 2));
const run = report.runs[0];
if (!run.properties.analysisComplete) {
throw new Error('Coverage gaps: retain the report and review scan details');
}
if (run.properties.repositoryCommit !== process.env.EXPECTED_COMMIT) {
throw new Error('Report commit differs from the commit being reviewed');
}
```
Python offers the equivalent method:
```python
import json, os
from pathlib import Path
from sdk.python.quantum_ready import QuantumReady
client = QuantumReady('https://qscan.dev', os.environ['QSCAN_TOKEN'])
report = client.repository_scan_sarif(os.environ['QSCAN_SCAN_ID'])
Path('quantum-ready.sarif').write_text(json.dumps(report, indent=2), encoding='utf-8')
```
The API is `GET /api/v1/repository-scans/{id}/sarif`. MCP users can call `repository_scan_sarif` with the operation ID. All three return the SARIF object; they do not send it to GitHub, GitLab or another destination.
### Import into your existing pipeline
For GitHub, use the [official upload action or code scanning API](https://docs.github.com/en/code-security/how-tos/find-and-fix-code-vulnerabilities/integrate-with-existing-tools/upload-sarif-file). Match the upload commit/ref to `runs[0].properties.repositoryCommit`. The connection ID supplies a stable analysis category; keep separate source scopes in separate connections. Upload permissions and repository code-security availability are separate from the read-only credential used to scan source. Actual GitHub ingestion has not yet been accepted for this integration.
For GitLab, configure a pipeline's `artifacts:reports:sarif` output following the [GitLab SARIF guide](https://docs.gitlab.com/user/application_security/detect/sarif/). Availability depends on the GitLab version and subscription. The pipeline must run against the same commit as the report. Actual GitLab ingestion has not yet been accepted for this integration.
Keep reports as restricted CI artifacts when import is unavailable. Reports contain repository paths and cryptographic metadata, even though source and credentials are excluded.
### Coverage and troubleshooting
| Situation | What to do |
| --- | --- |
| Scan is queued, running or cleaning | Poll the existing operation until terminal. Export returns 409 until completed; do not start another scan to retrieve a report. |
| Scan failed or was cancelled | Inspect its error and cleanup status. It does not provide a successful analysis report. |
| Completed with coverage gaps | Export is available, but `analysisComplete` and `invocations[0].executionSuccessful` are false, with a warning notification. Review scan diagnostics. Do not treat zero findings as a clean assessment. |
| Missing retained evidence | Export returns 409 instead of silently omitting results. Preserve the scan ID for investigation. |
| Evidence exceeds 16 MiB | Synchronous export returns 413 without a truncated report. Choose a narrower source directory for a new scan; asynchronous large-report export remains a follow-up. |
| Import succeeds but alerts differ | Check the destination's severity filtering, supported SARIF subset and result limits. Discovery candidates use `note`, and a provider may omit or truncate results. |
The output is validated against the [official OASIS SARIF 2.1.0 schema](https://docs.oasis-open.org/sarif/sarif/v2.1.0/errata01/os/schemas/sarif-schema-2.1.0.json). Schema validity establishes format compatibility; it does not establish acceptance by every destination.
## Scan in your own pipeline
Use the [CI scanning guide](../ci-scanning/) for GitHub Actions and GitLab templates, one-pass JSON/SARIF output, coverage diagnostics and optional least-privilege evidence upload.
## Find access configuration and repository history
Choose **Set up GitHub access** on a GitHub repository to configure a read-only PAT or find the platform app registration instructions. The setup control remains actionable before the GitHub App exists. Workspace administrators configure PAT access; a platform operator registers the GitHub App once. See the [integration setup directory](../integration-catalog/).
Each connection has **Scan history**, including disconnected and archived connections. This filters before pagination. **All repositories** returns to the workspace history. Connection activity comes from current scan reservations, independently of the history page. Cleanup-pending scans remain active until destruction is confirmed.
## Python requirements discovery
The hosted scanner and Python source scanner 0.25.1 read files named `requirements.txt`. Named cryptographic packages produce library observations with declared version constraints; markers are recorded only as conditional, without evaluating them. Continued lines and per-package hash options are recognized. Hashes are not treated as installation verification.
Direct named URL requirements retain the package name but suppress the URL. Index credentials, marker text, extras and environment variables are never exported or expanded. Includes (`-r`, `-c`), editable projects and unnamed paths/URLs produce `requirements-scope-unresolved` coverage diagnostics; the scanner does not follow them. Directly observed dependencies remain evidence, but the scan is marked incomplete. Package installation and runtime use remain unverified. Other requirements filenames and arbitrary pip options are not fully resolved.
This follows [pip's requirements-file format](https://pip.pypa.io/en/stable/reference/requirements-file-format/) for supported declarations. Windows and Linux compiled agents 0.25.1 also include this detector. Earlier binaries do not; update the agent or use hosted scanning or the current source bundle for this coverage.
## Go module discovery
Hosted scanning and scanner **0.25.3** read `go.mod` declarations for `golang.org/x/crypto`, `github.com/cloudflare/circl`, and `github.com/open-quantum-safe/liboqs-go`. These are catalog matches, not an exhaustive list of Go cryptography. Evidence records the declared version, direct or indirect scope, file hash, and repository commit for hosted scans. A library finding does not identify the algorithm used by an application or prove installation or execution.
Single-line and grouped `require`, `replace`, and `exclude` directives are recognized. Replaced and excluded requirements remain labeled declarations with conditional scope. A catalog-matched replacement is reported only when its original module is required. A replacement by itself does not establish dependency use, consistent with the [Go module reference](https://go.dev/ref/mod#go-mod-file-replace).
The scanner never runs Go, fetches modules, resolves the module graph, follows replacement directories, or evaluates build tags. Local replacements, noncanonical versions and unknown directives produce incomplete coverage diagnostics. `go.work` also reports unresolved workspace scope; modules already inside the approved repository directory are scanned individually, but external workspace directories are not followed. Malformed files and unsupported string/block syntax produce parse diagnostics. Use ordinary unquoted tokens or double-quoted strings with JSON-compatible escapes. Private module names, local paths and arbitrary branch names are not exported in findings.
`go.sum` is not treated as a lockfile or installation proof. Standard-library cryptography is not declared in `go.mod`; existing `.go` source rules remain lexical candidates rather than resolved Go API analysis. CI retains JSON/SARIF results and exits 2 when module/workspace coverage is incomplete. Review the diagnostic before treating a scan as complete.
## .NET and NuGet discovery
Scanner **0.26.0** reads C#, F# and Visual Basic project files (`.csproj`, `.fsproj`,
`.vbproj`), `packages.config`, `Directory.Packages.props`, `Directory.Build.props`
and NuGet `packages.lock.json` versions 1 and 2. The same parser is used by hosted
repository scans, Python agents and the compiled agents. No .NET SDK is required
for this static inspection.
Project findings identify declared cryptographic packages, including Bouncy Castle,
NSec, Sodium and the supported .NET cryptography package names. They record the
version constraint, declaration kind and whether applicability is conditional.
Central `PackageVersion` entries are labeled as version declarations; they do not
prove that a project uses the package. See Microsoft's descriptions of
[PackageReference](https://learn.microsoft.com/en-us/nuget/consume-packages/package-references-in-project-files)
and [central package management](https://learn.microsoft.com/en-us/nuget/consume-packages/central-package-management).
Lockfile findings retain recorded resolved versions, direct/transitive classification
and recognized target-framework names. Identical packages in different framework
graphs remain separate findings. Content hashes, registry credentials and arbitrary
framework strings are not exported. A lockfile is a recorded dependency graph, not
proof of installed package bytes or runtime cryptographic use. Framework and feature
selection are not evaluated.
Include the project and its checked-in `packages.lock.json` within the selected
repository directory. The scanner does not run restore, MSBuild, project targets,
package hooks or source code. It does not follow imports, project references or
package feeds. XML DTDs and entities are rejected. Credential-bearing URLs and
property expressions in version declarations are not exported.
A `nuget-scope-unresolved` coverage gap means conditions, imports, project references,
central declarations or unresolved versions were encountered. Recognized declarations
remain visible, but the scan is marked incomplete. Review the project locally with
its owner and include the resolved lockfile for additional evidence. The scanner
never expands permissions or executes a restore to resolve that gap. Zero matching
packages does not establish that a .NET application has no cryptography; framework
implementations, unrecognized libraries and runtime behavior require other evidence.
## Permanent connection deletion
Disconnect a repository before deleting it. An administrator can then call
`POST /api/v1/repository-connections/{id}/delete` with the current
`expectedRevision` and `confirm: true`. Archived connections can also be deleted.
Deletion removes the connection's credentials, settings, configuration revisions,
access-check result and recurring schedule. Previously collected findings,
immutable evidence, scan history and audit records remain available.
Active scans are cancelled first. HTTP `202` with `deletionPending: true` means
raw-source cleanup is still pending; it does **not** mean the connection is deleted.
Retry the same request and revision until the response contains `deleted: true`.
Successful retries return the original deletion receipt.
JavaScript: `deleteRepository(id, revision, true)`.
Python: `delete_repository(id, revision, confirm=True)`.
MCP: `repository_connection_delete` with `id`, `expectedRevision`, and
`confirm: true`. Administrator authorization and revision checks apply to all
three interfaces. Connection-filtered scan history remains readable after deletion.
## Python cryptographic API and configuration evidence
Scanner **0.26.97** adds `cryptography`'s `PBKDF2HMAC`, including resolved
import aliases. Findings retain a supported literal digest and iteration count;
passwords, salts and derived key bytes are not collected. Dynamic parameters
remain unknown, and shadowed or reassigned constructors are excluded. These
are source declarations, not evidence that derivation executed or succeeded.
This coverage requires source/hosted scanner 0.26.97; native 0.26.96 packages
do not yet include it.
Scanner 0.26.50 adds static recognition of literal hashing and HMAC algorithms,
PBKDF2 iterations, RSA key sizes, EC curves, composed AES modes, AESGCM and
ChaCha20Poly1305 calls. It resolves supported imports and aliases without running
repository code. Literal parameters describe the source declaration; they do not
prove that a key was generated or that the call executed successfully.
Source/hosted scanner **0.26.93** also recognizes the `cryptography` HMAC
constructor with a resolved hash instance, including supported import aliases.
Scanner **0.26.94** adds `AESCCM`, `AESSIV`, `AESGCMSIV` and `AESOCB3` alongside
`AESGCM` and `ChaCha20Poly1305`. Shadowed or rebound names are not treated as
these library APIs. These findings identify static constructor calls; they do not
establish backend support, valid key material, execution or effective key strength.
Key bytes are not included in findings or exports.
Scanner **0.26.95** recognizes resolved `cryptography` DSA
`generate_private_key` and `generate_parameters` calls, including import aliases.
Findings retain the exact API and a literal declared modulus size when available.
Parameter generation does not prove that a private key was created or used;
dynamic or ambiguous sizes remain unknown. Shadowed names are excluded. The
scanner does not execute source code or include key material in reports. See the
[cryptography DSA API reference](https://cryptography.io/en/stable/hazmat/primitives/asymmetric/dsa/).
CBOM preserves HMAC's MAC identity and hash parameter, and each AEAD algorithm's
distinct identity. CycloneDX 1.7 has no SIV or OCB mode values, so those algorithms
use mode `other`; AES-GCM-SIV is never reduced to AES-GCM. See the
[cryptography AEAD API reference](https://cryptography.io/en/stable/hazmat/primitives/aead/).
Installed native agents need a separately published update to gain these additions;
the [agent distribution guide](../agent-distributions/) lists available packages.
PyJWT encode calls preserve explicit supported signing algorithms. Decode calls
record the declared algorithm allowlist and explicit signature-verification option
as configuration evidence, not as proof of a verified token. Omitted settings stay
unspecified; runtime instance defaults are not inferred.
SSL context creation, minimum/maximum protocol versions, verification mode,
hostname checking and supported literal cipher selectors are separate configuration
observations. Assignments are not collapsed into a claimed final runtime state.
Cipher selector strings are not expanded into effective OpenSSL cipher lists.
Supported relative imports and static helper re-exports resolve only within the
selected source snapshot. Dependency paths and SHA-256 hashes accompany those
findings and are checked against the hosted snapshot. Source scanner **0.26.53**
also retains package-relative imports when you select the package directory itself
(with its `__init__.py` included). Selecting its parent also works. Local evidence
paths are relative to the selected directory; hosted scans preserve repository-relative
paths even when a connection selects a subdirectory. The local package-root correction
is not included in native agent 0.26.52 or earlier. A connection restricted to
a subdirectory cannot resolve helpers outside that directory: select the required
parent directory and rescan. Dynamic or conditional exports, ambiguous modules,
cycles and unsupported bindings remain unresolved and can produce
`python-import-unresolved` coverage diagnostics. A partial scan is not a clean bill
of health; review its coverage before acting on a lack of findings.
These fields are preserved in evidence, SARIF and CBOM exports. Hosted and source
scanner releases are separate from installed native agents. Windows and Linux native 0.26.50 packages include this coverage. Older installed agents need
the native update; changing workspace configuration alone
does not update installed scanner code.
## Python scope analysis
Scanner 0.26.14 resolves import aliases within module, function, lambda, class and
comprehension scopes. Local imports and closures can produce resolved static API
candidates. A parameter or assignment in one function no longer hides unrelated
calls elsewhere. Defaults and decorators use their enclosing scope; methods do
not inherit class-local imports. Pattern captures, exception names, global and
nonlocal rebinding, and imported-object attribute writes prevent unsafe resolution.
These findings are static candidates, not proof that code executed or keys were
used. Conditional imports and branches are not evaluated. Ambiguous rebinding
within a scope is conservative; annotations/type-parameter expressions, dynamic
imports, namespace mutation through exec/eval and arbitrary object aliases are
not resolved. Unresolved crypto-like call names remain lower-confidence candidates
with unknown authentication and key-establishment roles.
The source/hosted scanner version is separate from compiled distributions. Windows
and Linux foreground binaries 0.26.14 include this scope improvement.
The Node WebCrypto mapping follows the [official API signatures](https://nodejs.org/api/webcrypto.html).
Key material, passwords, payloads and source arguments are not included in findings.
Object spreads, computed property names, getters and duplicate properties remain
unresolved rather than being executed. Literal key sizes, named curves, digest choices and PBKDF2 iteration counts are
recorded as **declared** parameters where the API argument defines them. They are
preserved in evidence and SARIF; this does not verify runtime keys or parameter
validity. AES-CTR counter length is never reported as key size. Dynamic parameters
are not inferred. Comments do not affect argument positions; spread arguments make
subsequent positions unresolved.
## Go crypto call discovery
Scanner **0.26.44** also recognizes import-resolved `crypto/tls.CurveID`
references, including `X25519MLKEM768`, `SecP256r1MLKEM768`,
`SecP384r1MLKEM1024`, `MLKEM1024` and classical curve constants.
These are static references, including entries in `CurvePreferences`; they do
not prove that a configuration was used or a handshake negotiated that group.
Authentication and key-establishment usage fields remain unknown. Alias,
shadowing, comment/string and ambiguous dot-import checks still apply.
Identities follow the [Go CurveID definitions](https://pkg.go.dev/crypto/tls#CurveID).
Pattern-based source detection also recognizes exact TLS/SSH ML-KEM hybrid
names, without splitting a hybrid into classical and PQ findings. Pattern
findings remain candidates; they do not provide parsed configuration or runtime
evidence. Python/CI and hosted releases are qualified separately from installed
native agents, which retain their bundled version until updated.
Scanner 0.26.37 parses Go syntax and resolves direct calls through imported
standard `crypto/*` packages and selected `golang.org/x/crypto` packages. Import
aliases and lexical shadowing are accounted for; comments, strings, unused
imports and lookalike packages do not become crypto-call findings. Multiple
calls on one line retain separate locations. AES key length and HMAC digest are
not inferred from an API name alone.
Function-value flow, cross-file resolution, receiver-method flow, build-tag
selection and type checking are not complete. Encountered crypto function-value
references, unknown crypto APIs and unresolved dot imports produce coverage
diagnostics. Missing parsers and syntax errors also produce incomplete analysis;
the scanner does not fall back to text matching for Go. A known direct call can
still appear alongside an explicit coverage gap.
The scanner never builds the project, downloads its modules or executes its
source. The Python bundle includes the pinned parser dependency; CI setup must
install both `javascript-parsers.txt` and `go-parser.txt` with hash checking.
Windows x86_64 and Ubuntu 24.04 x86_64 foreground binaries 0.26.37 passed native
Go discovery and live managed-job evidence/CBOM checks, including partial-scan
recovery. Service/update channels and native macOS have separate qualification.
Scope rules follow the [Go specification](https://go.dev/ref/spec#Declarations_and_scope);
API identities follow the [Go crypto packages](https://pkg.go.dev/crypto) and
[extended crypto module](https://pkg.go.dev/golang.org/x/crypto).
## Stored certificate discovery
Hosted repository scanner 0.26.37 identifies ML-KEM-512/768/1024 and all twelve
pure SLH-DSA public-key parameter sets in PEM, DER and PKCS#7 certificates.
The certificate signing algorithm is reported separately from the public key.
All sixty algorithm/format combinations passed the restricted processor, and a
private GitHub scan verified the fifteen DER identities through evidence, SARIF
and CBOM. Source bundle 0.51.247 and Linux/Windows foreground binaries 0.26.37
include this coverage.
Encoding validation does not verify the key cryptographically, a certificate
signature, a trusted chain or runtime use. Distinct prehash SLH-DSA variants
remain outside this extension. Source cleanup and analysis completeness are
reported separately in scan history.
Repository and agent code scans also inspect `.pem`, `.crt`, `.cer` and `.der` files inside the selected directory. Use the current scanner bundle (0.26.23 or later). A separate certificate scan configuration is unnecessary.
Findings include the certificate fingerprint, subject/issuer, validity dates, public-key algorithm and size where available, issuer signature algorithm, Basic Constraints, Key Usage and Extended Key Usage. Hosted findings retain the exact repository commit, Git blob and file hash. CBOM links certificate records to public-key metadata and recognized signature algorithms; SARIF uses rule `QRCERT001`.
A stored certificate does **not** prove deployment, trust, possession of a private key or runtime use. EC public keys remain `EC`, since a certificate alone does not establish ECDSA versus ECDH use. Files in a bundle are not assumed to form a verified chain. Unknown algorithms remain unknown.
Each file is limited to 1 MB and each PEM file to 64 certificate blocks. Identical certificates within one file are deduplicated; copies in different files retain separate provenance. Malformed or incomplete bundles produce coverage gaps, retaining any valid certificates already parsed. Trailing bytes in DER are rejected. Missing parser dependencies are reported explicitly. Usage metadata that exceeds its own bounds is marked incomplete in the evidence.
PEM files may contain mixed content. Only `CERTIFICATE` blocks are parsed; private-key blocks are never loaded or included in findings. Selected files still pass through the existing transient hosted processor and are discarded before findings are published. Select a narrow directory if certificates are stored alongside sensitive material. A selected PEM with no certificate is reported as a coverage gap. Key-only `.key`, PKCS#12, JKS, operating-system certificate stores and HSM inventories are outside this detector's coverage.
For local discovery:
```sh
python scanner/qr.py code /approved/repository --source repository-certificates
```
Local JSON/SARIF and hosted repository reports retain valid findings from partial analysis. In current managed agent jobs, incomplete source analysis fails the job before findings upload; inspect the local report for individual coverage gaps. Partial managed-job reporting is still being implemented.
The compiled agent uses the same `code` command. Check its reported scanner version before relying on certificate-file coverage. Review **Coverage gaps** in the completed repository scan; incomplete CLI/CI analysis exits with code 2.
### Static declarations in CBOM
JavaScript/TypeScript AST findings retain `sectigo:code:runtimeUseVerified=false`, import resolution and algorithm identity resolution in CBOM exports. Supported literal WebCrypto key sizes, named curves, hashes and iteration counts appear as `sectigo:code:declaredKeySizeBits`, `declaredCurve`, `declaredHash` and `declaredIterations`, with `parameterSource=static-api-declaration`. These describe the source declaration, not a generated key or an observed operation. Unresolved or invalid parameter values are omitted; arbitrary source expressions and secret values are not exported.
## Code scan coverage and partial results
Managed code scanners starting with 0.26.24 report coverage before uploading findings. If a file cannot be read or parsed, a certificate is malformed, or an analysis limit is reached, valid findings are retained and the job finishes as `partial`. Agent scan history labels this **Coverage gaps**, with file counts and bounded, relative-path diagnostics. A scan with no findings can still be partial; zero findings does not establish that a repository is free of cryptography.
Inspect the job's `coverage.analysisComplete`, `analysisErrorCount`, file and parser counts, and `diagnostics`. At most 100 diagnostics are retained; `diagnosticsTruncated` indicates additional gaps. Correct the reported issue and run a new scan. Partial jobs are terminal and do not automatically retry. Findings and CBOM properties retain the coverage state and attempt that produced them.
The agent reports coverage through `POST /api/v1/jobs/{id}/coverage` with its current lease token, before its first findings batch. Coverage is immutable for that attempt; identical retries are accepted. A new leased attempt clears the old coverage. Completion must declare the actual accepted observation count. The JavaScript SDK provides `reportCodeCoverage`; Python provides `report_code_coverage`.
Older agents can finish without this coverage protocol; absence of coverage means unknown coverage. Standalone uploads and other scanner surfaces continue to reject incomplete reports. Webhook receivers can subscribe to `job.partial` and retrieve the job using their own scoped credential.
### Coverage provenance in hosted findings
New hosted repository findings carry the validated scan coverage into immutable evidence and CBOM properties, bound to the repository connection, scan operation and exact commit. This applies to code, library and certificate findings. A completed hosted operation can have `analysisComplete: false`: processing and source cleanup finished, but analysis has gaps. Inspect coverage diagnostics before treating the inventory as complete. Earlier findings without these properties have unknown per-finding coverage; run another scan to collect it.
### PKCS#7 certificate bundles
Source scanner 0.26.27 and hosted repository scans also inspect `.p7b` and `.p7c`
certificate bundles in PEM or DER form, plus PEM `PKCS7` blocks in selected
certificate files. Findings retain the container file hash and each certificate's
fingerprint. Duplicates within a file are removed; ordering does not imply a chain.
This is certificate extraction only. Container signatures, embedded content and
CRLs are not verified or inventoried. Evidence and CBOM explicitly record the
`PKCS7` container, `certificates-only` scope and unverified container signature.
The 1 MB file and 64-certificate bounds apply. Extra mixed PEM data, malformed
containers and trailing DER produce coverage gaps instead of a complete result.
Valid certificates from other supported blocks remain available. Windows and Linux native
agents 0.26.27 also support this format, with independent certificate extraction
and live managed-job acceptance.
Source scanner 0.26.48 includes this direct-CommonJS correction. Published Windows and Linux native 0.26.49 packages include this correction. Static findings do not prove runtime use.
## Pattern-language context in scanner 0.26.49
Java, Rust, C#, C/C++ (including headers), Ruby, PHP, Swift and Kotlin use
language-specific lexical context for pattern candidates. Comments and
non-code PHP markup are excluded. Matches in strings remain candidates with
lower confidence than code tokens; directive matches are separate candidates.
Algorithm arguments are retained, but a token alone does not establish an API,
authentication role, key-exchange role or runtime use. JSON evidence and SARIF
preserve `lexicalContext` and the lexer version.
Missing lexer dependencies, lexical errors and analysis limits produce explicit
coverage diagnostics. An affected file is not reported as a clean zero-findings
scan. This is lexical analysis, not full semantic parsing; for example, Java
Unicode-escaped comment syntax currently produces a lexical error.
These changes are available in source, hosted scanner, and published Windows
and Linux native 0.26.49 packages.
## Composite certificate inventory
The hosted repository scanner and Python/CI scanner 0.26.59 identify the18
ML-DSA composite certificate algorithms in draft-ietf-lamps-pq-composite-sigs-19.
DER, PEM and certificate-only PKCS7 files (P7B/P7C) are supported. The scanner
checks the public-key encoding and records the composite algorithm, OID and
post-quantum/traditional component identities. These algorithms retain **draft**
status in findings and CBOM exports.
The subject public key and issuer's certificate signature are separate identities;
they may use different algorithms. A signature identifier records what the
certificate declares. File scanning does not verify that signature, build a
trusted certificate path, establish deployment or prove runtime use. Exports
preserve these limits and never include private-key material. Composite keys do
not receive an invented combined key size or a pure ML-DSA classification.
Installed native agents retain their published version's coverage. Updating the
website does not replace an installed binary; use the verified Python/CI bundle
for this certificate-format coverage until a qualified native update is available.
## PHP Composer dependencies
Hosted repository scanning and the Python/CI scanner0.26.60 read `composer.json`
(`require` and `require-dev`) and `composer.lock` (`packages` and `packages-dev`).
Recognized packages include phpseclib, sodium_compat, Halite, Defuse encryption,
Lcobucci JWT, Firebase PHP-JWT and the Web-Token JWT framework. Findings preserve
whether a record is a declared constraint or a locked version, including its
development scope. Package declarations do not prove installed or executed
cryptography, and lockfile records do not infer direct-versus-transitive use.
No Composer command, plugin, script or package installation runs during a scan.
Repository URLs, credentials and private branch names are excluded from findings.
Duplicate records and malformed files report incomplete analysis instead of a
successful empty result. Lockfiles have a5MB/50,000-record limit within the overall
repository limits. This package catalog is not exhaustive. Native agents need a
separately qualified update before they gain this coverage.
See [Composer's schema](https://getcomposer.org/doc/04-schema.md) and
[lockfile behavior](https://getcomposer.org/doc/01-basic-usage.md).
## Pipfile and Poetry declarations
Hosted repository scanning and Python/CI scanner0.26.61 read Pipfile package,
development and custom categories, plus Poetry dependencies and dependency groups
in `pyproject.toml`. PEP621 and literal PEP735 dependency-group declarations are
also read. Recognized cryptographic libraries retain declared constraints and
conditional scope; private group/category names are hashed into stable identifiers.
Source URLs, credentials, extras and marker contents are not exported.
Dynamic dependency fields, group inclusion and unsupported dependency options
produce **incomplete analysis** with the direct findings retained. The scanner
does not run a build backend, resolve included groups, evaluate markers or execute
Pipenv/Poetry scripts. Scanner 0.26.89 adds separate lockfile evidence as described below.
Declared dependencies do not prove installation or runtime cryptography.
Review incomplete-analysis diagnostics before treating a scan as comprehensive.
Native agents retain their installed version's coverage until separately updated.
## Maven POM dependencies
Hosted repository scanning and Python/CI scanner0.26.62 read Maven4.0.0 `pom.xml`
declarations. The catalog recognizes Bouncy Castle provider/PKIX/TLS/util artifacts,
Tink and selected JWT libraries. Findings distinguish direct, managed, profile and
plugin dependencies. Managed entries are declarations, not proof the application
uses that library. No Maven command or build plugin runs during scanning.
Parents, modules, property references, profile activation and dependency management
are not resolved into an effective POM. These cases retain directly identifiable
packages with **incomplete analysis** and guidance to review the project scope.
Unknown coordinates are not guessed. Parent paths, repository URLs and private
property/profile names are excluded. XML entities and DTDs are rejected; structure
size and depth are bounded. Finding a dependency does not prove installation or
runtime cryptography. Installed agents need a separately qualified update.
See the [Maven POM reference](https://maven.apache.org/pom.html) for declaration,
inheritance and dependency-management semantics.
## C/C++ dependency manifests
Hosted repository scanning and Python/CI scanner0.26.63 read `vcpkg.json` and
`conanfile.txt`. Recognized packages include OpenSSL, LibreSSL, BoringSSL, mbed TLS,
wolfSSL, Botan, Crypto++, libsodium and liboqs. Findings retain direct, build-tool,
test, feature and override scope. A declaration does not prove installation or
runtime cryptography; a version override is not proof the dependency is used.
vcpkg features, overrides and registry configuration can require resolution, so
these manifests retain direct findings with **incomplete analysis**. Unsupported
Conan scope is also reported explicitly. Feature names are hashed; private Conan
user/channel/revision details and repository URLs are excluded from findings.
No package manager, port, recipe or generator is executed. Python Conan recipes,
lockfiles and transitive resolution are not covered by these parsers.
See the [vcpkg manifest reference](https://learn.microsoft.com/en-us/vcpkg/reference/vcpkg-json)
and [Conan text-file reference](https://docs.conan.io/2/reference/conanfile_txt.html).
Installed native agents retain their version's coverage until separately updated.
## Python setup declarations
Hosted repository scanning and Python/CI scanner 0.26.64 read literal dependencies
in `setup.py`: `install_requires`, legacy `setup_requires` and `tests_require`,
and `extras_require`. Imported setuptools setup aliases and direct
`distutils.core.setup` imports are recognized. Build, test and optional scopes
are distinguished from runtime dependencies; private extra names are hashed.
The scanner parses the file without executing it. Computed values, mutated
bindings, conditional setup calls and unknown keyword dictionaries produce an
incomplete-coverage warning. Literal findings are retained alongside that warning.
The same file is also checked for cryptographic API calls. Private dependency URLs
are not exported, and declarations do not prove installed versions or runtime use.
Scanner 0.26.65 also resolves module-level literal variables, aliases, nested
lists/tuples/dictionaries and literal `**metadata`. Mutations and unknown calls
invalidate saved bindings. Literal dictionary duplicate keys retain the last value,
matching Python semantics. Expansion is bounded to prevent excessive processing.
Effective metadata from `setup.cfg` is not resolved by this parser.
See [Setuptools dependency management](https://setuptools.pypa.io/en/latest/userguide/dependency_management.html)
for declaration syntax and optional dependency groups.
## Gradle dependency declarations
Hosted repository scanning and Python/CI scanner 0.26.66 read literal declarations
from `build.gradle` and `build.gradle.kts`. Supported forms include standard
configuration calls, string coordinates, map/named arguments and
`add("configuration", "group:artifact:version")`. Buildscript, project and
constraint scopes remain distinct. Custom configuration names are hashed.
Classifier/extension selections retain the version but remain unresolved; private
selectors are not exported.
The scanner never runs Gradle, Groovy, Kotlin, plugins or registry resolution.
Computed dependencies, version catalogs, plugins and effective build configuration
produce incomplete-coverage guidance. Literal findings are retained when they can
be read independently. Complex interpolation and unsupported slashy literals are
reported as unresolved instead of interpreting their contents as source code.
This is a bounded declaration grammar, not a complete Groovy/Kotlin parser.
Declarations do not establish installed versions, runtime cryptography, selected
features or transitive dependency coverage. Installed native agents retain their
bundled coverage until separately updated.
See [Gradle dependency declarations](https://docs.gradle.org/current/userguide/declaring_dependencies.html)
for configuration and notation details.
## Ruby Gemfile declarations
Hosted repository scanning and Python/CI scanner 0.26.67 read literal `Gemfile`
declarations for known cryptographic gems. Supported forms include version
constraints, parenthesized/multiline calls, require options, groups, platforms,
and source/git/path blocks. Group and platform names are hashed. Source URLs,
paths, branches and credentials are not exported or used to fingerprint source
scopes; credential rotation does not change the exported declaration identity.
The scanner never invokes Ruby or Bundler, imports gemspecs, follows included
files or queries a registry. Unknown Ruby, computed options and external source
selection produce incomplete-coverage guidance. Unsupported interpolation,
heredocs, percent/backtick/slashy literals and block comments are left unresolved
rather than interpreting their contents as declarations. This bounded DSL reader
is not a full Ruby parser. Installed versions, transitive resolution and actual
runtime use are not established by these declaration findings. Scanner 0.26.89
adds separate `Gemfile.lock` evidence as described below.
Installed native agents retain their bundled coverage until separately updated.
See the [Gemfile reference](https://guides.rubygems.org/gemfile/) for Bundler
syntax, groups, platforms and source selection.
## Gradle, Bundler, Poetry and Pipenv lockfiles
Scanner 0.26.89 reads known cryptographic libraries recorded in `gradle.lockfile`,
`Gemfile.lock`, `poetry.lock` and `Pipfile.lock`, including nested projects. These
findings show a **recorded resolution**, separately from manifest declarations.
They do not prove installation, package authenticity, enabled features, selected
dependency groups or runtime cryptographic use. Check the scanner version on the
scan; installed agents retain their bundled version until updated.
Supported formats are Gradle's combined lockfile, Bundler GEM/GIT/PATH/plugin-source
specification sections, Poetry lock versions 1.0/1.1/2.0/2.1, and Pipfile specification
6 with standard and custom categories. Source-only Pipenv entries retain the known
package identity without inventing a resolved version. Private URLs, credentials,
branches, source paths and custom configuration names are not exported. Versions
outside the conservative numeric version format are shown as `[not exported]`.
No package manager, plugin, build script or source repository is executed or fetched.
Malformed or unsupported records produce incomplete analysis and a manifest
diagnostic. Each lockfile is bounded to 5 MB and 50,000 package records, alongside
the normal scan limits. Legacy Gradle per-configuration lockfiles and full effective
build or transitive dependency analysis remain unsupported. A supported lockfile
does not remove diagnostics from other incomplete manifests in the same scan.
### Troubleshooting hosted processing failures
Open the failed scan's details. When the runtime returned a diagnostic, the page
shows its last confirmed stage and lifecycle state, alongside the scan ID and
cleanup status. This helps distinguish processor startup/readiness from source
analysis or result-transfer failures. It identifies the stage, not the root cause;
it does not mean your repository is invalid. Older failures and failures that
did not return runtime diagnostics retain the general message.
The API exposes these fixed labels as optional `processingDiagnostic.stage` and
`processingDiagnostic.lifecycle`. Raw runtime errors, source text and credentials
are excluded. No partial findings are published from a failed processing attempt.
Keep the scan ID when investigating repeated failures, and wait for confirmed
cleanup before starting a new attempt.
## Swift package dependencies
Hosted repository scanning and Python/CI scanner 0.26.68 read literal `Package.swift` declarations and recorded
dependencies in `Package.resolved` schemas 1, 2 and 3, including lockfiles nested
inside Xcode projects and workspaces. Known cryptographic libraries are matched
by their exact repository identity, not a repository name alone.
Literal `from`, `exact`, next-major/next-minor requirements and inclusive or
exclusive numeric version ranges retain their declared constraints. Lockfile
findings identify recorded resolution versions separately from declarations.
Neither kind of finding proves installation, target inclusion or runtime use.
Credentials, branch names, revision hashes and private paths are not exported.
The scanner does not compile or execute the manifest, fetch package locations,
or run dependency resolution. Computed declarations, target configuration,
local/registry dependencies and unsupported syntax produce incomplete-coverage
guidance. Known literal declarations can remain available alongside that warning.
This is a bounded reader, not a full Swift parser or transitive dependency solver.
Native agents retain their bundled coverage until separately updated.
See the [Swift PackageDescription reference](https://docs.swift.org/package-manager/PackageDescription/PackageDescription.html)
for declaration syntax and the role of `Package.resolved`.
## Yarn and pnpm resolved dependencies
Scanner 0.26.91 adds cryptographic dependency findings from `yarn.lock` and
`pnpm-lock.yaml`. Supported inputs are Yarn Classic v1, modern Yarn metadata
versions 8 and 10 with npm resolutions, and pnpm lockfile version 9.0 package
records. Grouped Yarn Classic selectors and npm aliases resolve to the underlying
package name. Only packages in QScan's cryptographic library catalog produce
findings; this is not a general software vulnerability assessment.
Each finding records the package name, resolved version when available, file
provenance and a hash of its lockfile identity. Registry URLs, credentials,
checksums, workspace paths and raw selectors are not exported. A recorded version
does not prove installation, runtime use, authenticity, or direct-versus-transitive
scope. pnpm importer selection and peer-context snapshots are not evaluated as an
effective application dependency graph.
Unsupported package-source records produce `javascript-lockfile-scope-unresolved`
and retain valid findings from the same file. Unsupported format versions,
malformed YAML, duplicate fields, aliases, anchors and explicit tags produce
`manifest-parse-error`. A missing packaged parser produces
`lockfile-parser-unavailable`; reinstall the current agent package. These cases
mark analysis incomplete instead of showing an empty successful result.
The parser runs locally within the scanner: no package manager, lifecycle script,
package download or source execution is needed. Limits include 5 MB per lockfile,
50,000 package records, 64 nesting levels and the overall scan time limit. It is
included in the Python/CI bundle and hosted repository runtime. Existing native
agents retain their installed scanner version until an updated binary is released
and installed; check the agent heartbeat before assuming coverage.
Format references: [Yarn Classic lockfiles](https://classic.yarnpkg.com/en/docs/yarn-lock),
[modern Yarn's own lockfile](https://github.com/yarnpkg/berry/blob/master/yarn.lock),
and [pnpm version 9 format](https://github.com/pnpm/spec/blob/master/lockfile/9.0.md).
### Python Diffie-Hellman parameter declarations
Source scanner0.26.96 and its hosted repository runtime recognize import-resolved
`cryptography.hazmat.primitives.asymmetric.dh.generate_parameters` calls, including
aliases. A literal second argument or `key_size` keyword is retained as a declared
modulus size; the first argument is the generator. Dynamic or ambiguous sizes are
omitted. Findings preserve unknown runtime use and exchange/authentication state.
CBOM identifies finite-field key agreement; SARIF retains the declared size and
resolved API. No source is executed and no key material is collected.
This detects a parameter-generation declaration, not a verified key exchange or
valid generated parameters. Parameter-object dataflow and dynamically loaded APIs
remain outside this specific coverage. See the [cryptography DH API](https://cryptography.io/en/latest/hazmat/primitives/asymmetric/dh/).
Published native packages retain their separately listed scanner versions.
### Python key-derivation declarations
Scanner 0.26.98 identifies import-resolved constructors for HKDF/HKDFExpand,
Scrypt, Argon2id, ConcatKDFHash/HMAC, X963KDF and KBKDFHMAC/CMAC. Exact API
provenance distinguishes operations within the same family. Aliased imports are
supported; shadowed names, rebound symbols, comments and example strings do not
establish a KDF call.
Only bounded, literal nonsecret declarations are exported: output length in bytes,
hash identity, iterations, Scrypt n/r/p, and Argon2 lanes and memory in KiB.
Output length is not a claim of key entropy or cryptographic strength. Dynamic
values and unpacked/ambiguous arguments remain unresolved. Passwords, salts,
input/derived keys, secrets, labels and context contents are not exported.
These are static API candidates, not proof that a KDF ran, accepted its arguments,
or securely handled a password. See the [cryptography API reference](https://cryptography.io/en/46.0.3/hazmat/primitives/key-derivation-functions/).
Hosted scans and the signed Python bundle receive this update. Installed compiled
agents require their corresponding native release; an application update does
not change an installed binary. Check the distribution guide for published versions.
---
# Understand and refresh quantum risk
Source: https://qscan.dev/docs/risk-assessment
Quantum risk is a prioritization score, not a certification that an asset is safe
or an estimate of when a cryptographically relevant quantum computer will exist.
Open **Quantum risk** to review the inventory and the policy applied to its stored assessments.
## Review RSA key transport
The **NIST SP 800-131A Rev. 2 RSA key establishment** profile maps section 6,
Table 5 of the final March 2019 publication. Select the profile and explicitly
review its applicability to your workspace. Its standards findings remain
separate from your configured numerical risk score.
For TLS discovery, enable the **modern-v2** or **pq-v2** capability profile to
check the two supported RSA AES-GCM transport suites, even when the endpoint
prefers a newer handshake. Agent 0.27.4 records the freshness evidence used by
this assessment. Each successful probe verifies the certificate and connects to
the same peer as the initial scan without sending application data. This is a
bounded capability check, not an exhaustive search of all server configurations.
Fresh, verified TLS 1.2 RSA transport uses PKCS#1 v1.5. The profile marks that
scheme deprecated through December 31, 2023 and disallowed from January 1, 2024.
An RSA certificate used to authenticate ECDHE is a different use and does not
create this transport finding. A passive capture, a resumed session, a failed
probe or older evidence without freshness metadata cannot establish fresh use.
Rescan with the current agent to collect missing evidence; a missing finding
does not establish that RSA transport is absent.
The profile also models the publication's separate transition for other
nonconforming schemes and its RSA modulus requirements. Adequate key size or an
OAEP label alone does not prove SP 800-56B conformance. These rules do not certify
the whole system or establish approval under later publications.
Preview the profile against inventory before applying it. If you clone it,
the derivative is tenant-defined; publish the reviewed draft, preview score and
severity differences, then explicitly request recalculation. Historical results
retain the profile version and assessment date.
Sources: [NIST SP 800-131A Rev. 2, section 6 / Table 5](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf)
and [RFC 5246, section 7.4.7.1](https://www.rfc-editor.org/rfc/rfc5246.html#section-7.4.7.1).
## Review business context
Open an asset in **Inventory** or **Quantum risk**, then choose **Business context**.
Administrators and analysts can review its owner, business criticality, exposure,
confidentiality horizon, migration effort and deadline. Viewers can inspect these
values. Add a reason and choose **Save context** to update the current assessment.
Reviewed values survive subsequent scans. The latest scanner values remain visible
in the editor, and the evidence archive is unchanged. Scanners can report defaults;
those defaults do not prove your business requirements. The editor shows the current
revision and risk score. **Use scanner values**, with a reason, removes the overrides
and restores the latest observation's values.
A concurrent edit or newly arrived scan stops the save. Your edits remain visible;
choose **Reload latest values**, review the changes and save again. **Risk history**
records the previous and new assessments, reason and context revision. Updated
inventory, risk summaries and CBOM exports use the reviewed context. Changing
business context does not improve evidence confidence or verify quantum safety.
For automation, read `GET /api/v1/assets/{id}/context`, then send a full replacement
of reviewed `values` to `PUT` on the same path with `expectedRevision`,
`expectedEvidenceId` and `reason`. Omitted fields inherit the latest scan; `{}`
restores all scanner values. A `null` deadline removes an observed deadline.
JavaScript exposes `assetContext` and `updateAssetContext`; Python exposes
`asset_context` and `update_asset_context`. Mutations require an administrator or
analyst and must not be blindly retried after a conflict.
## Separate algorithm, key establishment and authentication
A key's algorithm does not prove how an application uses it. AWS, Azure and GCP
collectors can identify an elliptic-curve key as `EC` while leaving key establishment
and authentication unknown. The algorithm is classically vulnerable to quantum
attacks; the platform still needs usage evidence to establish its role in a protocol.
Similarly, a TLS handshake using `X25519MLKEM768` can have hybrid key establishment
and a classical RSA certificate signature. The hybrid exchange does not upgrade the
authentication posture. Read both fields and the underlying evidence.
This distinction follows the migration rationale in [NIST's PQC FAQ](https://pages.nist.gov/nccoe-migration-post-quantum-cryptography/):
identify vulnerable public-key cryptography and its uses before planning replacement.
## Current policy: qr-risk-0.18
Assessment confidence now accounts for evidence completeness. The original
scanner-reported confidence stays with the observation and is not rewritten.
This changes verification priority, not the quantum-risk score or its weights.
Active SSH assessments require known key-establishment and authentication
identities, a verified handshake signature, and verified peer identity. A
successful key exchange verifies the signature but does not by itself establish
trust in that peer. Without a matching configured host-key pin, an otherwise
complete SSH record confirms three of four checks, so assessment confidence is
capped at 75%. If both signature and peer verification are missing, the cap is
50%. False, absent and non-boolean verification values never count as confirmed.
These fractions measure completeness, not the probability that a finding is
correct. Passive observations retain their separate, narrower evidence scope.
Existing stored assessments retain their policy version until an administrator
runs risk recalculation. Recalculation preserves original observations and prior
assessment history; it does not silently change migration verification criteria.
Exact SM4-128 key identities require review, consistent with the existing
128-bit symmetric-key posture. Azure AES keys without a known size remain
unknown; a family name alone does not establish quantum resistance.
A verified RSA key-transport probe in `modern-v2` or `pq-v2` raises susceptibility
to 100 and adds `TLS-RSA-KEY-TRANSPORT-SUPPORTED`. This records an accepted
capability even when the baseline chose forward-secret or hybrid key establishment;
it does not rewrite that baseline. An RSA certificate alone is insufficient evidence.
Failed or locally unavailable probes remain inconclusive. See
[RFC 9325 section 4.1](https://www.rfc-editor.org/rfc/rfc9325.html#section-4.1).
Exact FN-DSA-512/1024 and Falcon-512/1024 names are classified as post-quantum;
Falcon names are not rewritten as finalized FN-DSA implementations. NIST's
[September 2026 plan](https://groups.google.com/a/list.nist.gov/g/pqc-forum/c/7z-y5qp-W2Y/m/a11CmUsuBQAJ)
still describes draft FIPS 206. Exact composite ML-DSA names and the 18 OIDs in
[LAMPS composite signatures revision 19](https://datatracker.ietf.org/doc/html/draft-ietf-lamps-pq-composite-sigs-19)
are hybrid, with draft specification status. Arbitrary composite labels remain unknown.
Kyber draft hybrids retain hybrid posture and pre-standard identity. The TLS
key-establishment identities `X25519Kyber768Draft00` and
`SecP256r1Kyber768Draft00` are also marked obsolete according to the
[IANA TLS registry](https://www.iana.org/assignments/tls-parameters/), with advice
to migrate to standardized ML-KEM hybrids. The same name outside a TLS role is
only classified pre-standard, since protocol registry status is contextual.
The API exposes these distinctions in `risk.algorithmStatuses`; CBOM exports
retain them in `sectigo:algorithm-status`. Asset action text highlights draft,
pre-standard and obsolete identities. These classifications do not assert
certificate decoding, signature verification or implementation compliance.
Composite certificate parsing remains a separate scanner capability.
TLS and SSH assessments require both key-establishment and authentication
evidence. If either role is unknown, susceptibility is at least **50**, even
when the other role is hybrid or post-quantum. A known classical vulnerability
still scores 100; a review-required algorithm still scores 70. Complete recognized
PQC/hybrid roles score 15; this is a prioritization value, not proof of safety.
The action text names the missing evidence, also exposed as
`risk.missingEvidenceFields` in the API. A redundant unknown algorithm label
does not penalize a protocol whose two roles are identified.
Standalone key, certificate and code identities are assessed using their algorithm.
Unknown protocol roles on these assets do not imply an incomplete handshake.
Their usage remains unverified. Existing stored scores retain their policy version
until **Recalculate outdated assets** recalculates them; the previous assessment
and original scanner evidence are preserved in history.
Scanner 0.26.30 adds validated passive TLS 1.2 AES-CBC hello correlation. Both
complete hellos, matching stream endpoints and suite identity, valid extension
lengths and capture quality are required. Passive reports retain unverified
handshake and peer identity flags even when ETM selection is observable. Older,
one-sided or inconsistent capture evidence remains unknown.
Scanner 0.26.29 adds active TLS 1.2 CBC record-protection evidence from both
ClientHello and ServerHello. Policy 0.9 recognizes consistent, verified evidence
of encrypt-then-MAC negotiation and distinguishes it from a completed handshake
using MAC-then-encrypt. The latter receives `TLS-CBC-WITHOUT-ETM`; a missing,
malformed, duplicated, one-sided, or older collector report retains
`TLS-CBC-ETM-UNVERIFIED`. A passive ServerHello alone cannot establish negotiation.
The API/CBOM `recordProtection` value is `encrypt-then-mac`, `mac-then-encrypt`, or
`unknown`. These fields do not measure record decryption or prove exploitability.
Source-agent qualification is tracked separately from hosted and compiled runtime
releases; earlier binaries retain the unverified result until updated.
Policy 0.8 adds a separate `transportSecurity` assessment for supported TLS
protocol/cipher observations. It flags deprecated TLS 1.0/1.1 according to
[RFC 8996](https://www.rfc-editor.org/rfc/rfc8996.html), and asks for review of CBC
when encrypt-then-MAC negotiation is not established by the collector's evidence
contract ([RFC 9325 section 4.2](https://www.rfc-editor.org/rfc/rfc9325.html#section-4.2)).
Missing extension evidence is not a finding that the extension was absent.
The action text in asset details includes these findings; the API and CBOM also
retain their codes, references, and passive/verified-handshake provenance.
The quantum-risk score and its dimensions are unchanged. Transport checks cover
only deprecated versions and CBC extension evidence for the supported suite
catalog. `no-listed-issues` means neither of those checks raised a finding; it is
not an overall secure, compliant, or quantum-safe verdict. Unknown, unsupported,
offered-only or conflicting evidence remains `unknown`. Recalculate outdated
assets to apply the new policy; original evidence and previous risk revisions are
retained.
Policy 0.7 explicitly classifies the recognized classical SSH key exchanges,
including Curve448, as quantum-vulnerable. The SHA-512 exchange hash does not make
a Curve448 exchange symmetric or quantum-safe. It retains recognition of all three
ML-KEM hybrid SSH methods defined in
[RFC 10042](https://www.rfc-editor.org/rfc/rfc10042.html):
`mlkem768nistp256-sha256`, `mlkem1024nistp384-sha384`, and
`mlkem768x25519-sha256`. Classical host authentication remains quantum-vulnerable.
Use the existing risk recalculation workflow to refresh older inventory; original
evidence remains unchanged and score revisions retain their policy version.
The policy uses algorithm-family labels from observations. `EC`, `ECC` and their
HSM labels are classified as quantum-vulnerable, consistent with RSA, ECDH, ECDSA
and other recognized classical public-key families. Metadata-only discovery does
not assert a completed handshake or runtime use.
A review-required cipher takes precedence over a stronger hash in the same label.
For example, `TLS_AES_128_GCM_SHA256` receives **review** under this product policy;
the SHA-256 suffix does not make it equivalent to an AES-256 suite. **Review** is
an investigation category, not a claim that the primitive is broken or prohibited.
A recognized classical key-establishment or authentication algorithm still takes
precedence as quantum-vulnerable.
Unknown labels remain unknown. Standardized PQC-family recognition is not proof of
correct implementation, approved parameters or interoperability.
PQC labels must match a recognized family or valid parameter set exactly. For
example, `ML-KEM-768` is recognized; `ML-KEM-999` and `ML-KEM-768-custom` remain
unknown. Recognized TLS and OpenSSH hybrid names have a hybrid key-establishment
posture; a classical server signature still contributes its own quantum risk.
Draft or arbitrary composite labels are not promoted merely because they contain
the name of a PQC algorithm. Original observation labels are preserved.
## Score calculation
Each dimension is on a 0-100 scale. The score is the rounded weighted sum.
| Dimension | Weight | Input and calculation |
| --- | --- | --- |
| Susceptibility | 30% | 100 if any algorithm, key establishment or authentication field is quantum-vulnerable; otherwise 70 for a review classification, 50 if all are unknown, or 15 for the remaining recognized cases |
| Confidentiality horizon | 20% | Retention years multiplied by 10, capped at 100 |
| Business impact | 20% | Criticality from 1 to 5, multiplied by 20 |
| Exposure | 10% | Unknown 100 (conservative); public 100; partner 70; internal 40; isolated 10 |
| Dependencies | 8% | Reported dependency count multiplied by 10, capped at 100 |
| Deadline urgency | 7% | With a deadline: 100 minus days between observation and deadline divided by 7.3, bounded to 0-100; without a deadline: 25 |
| Migration friction | 5% | Friction from 1 to 5, multiplied by 20 |
Severity is **critical** at 80 or above, **high** at 60-79, **medium** at 35-59 and
**low** below 35. Defaults for omitted context are unknown exposure, criticality 3,
retention 0, no dependencies and friction 3. Missing context can therefore affect
prioritization; a low score is not a completeness guarantee.
Deadline urgency is anchored to the observation timestamp so a result is reproducible.
It does not increase each day merely because the dashboard is opened. A new observation
or a policy recalculation produces a new derived assessment from the available inputs.
Confidence is displayed separately and never discounts the risk score. Verification
priority is `round(score * (1 - assessment confidence))`. Assessment confidence is
the lesser of scanner-reported confidence and the fraction of required evidence
checks confirmed. This is a transparent prioritization policy, **not a calibrated
probability of correctness**.
For TLS and SSH, the basic checks are recognized key-establishment and authentication
identities. Other inventory records require a recognized algorithm identity; a key
inventory does not establish protocol usage. Active `qr-tls` observations additionally
require valid handshake metadata, verified handshake completion and a verified
certificate chain. Only an explicit Boolean `true` confirms a verification check.
Missing or false values remain unconfirmed. For example, a verified TLS connection
with an unknown exchange and unavailable handshake metadata confirms three of five
checks: reported confidence 0.95 becomes assessment confidence 0.60.
Open an asset's **Evidence completeness and verification** details to see its checks.
The API exposes these under `risk.evidenceQuality`, and CBOM exports include the
`sectigo:evidence-quality` property. An unreported verification fact is
`not-reported`, never implicitly verified. Passive capture and code/key inventory
completeness does not prove peer identity, signature validity or runtime use.
Confidence remains bounded by the scanner value even when all identity checks pass.
Additional detector-specific completeness checks remain future work; this policy
does not establish calibrated confidence for every detector.
Dependency count is reported context, not proof of a fully resolved dependency graph.
### Verify a migration task
**Minimum assessment confidence** uses the current policy's completeness-adjusted
confidence, recomputed from the task's current immutable evidence. A high
scanner-reported value cannot bypass missing checks. The task still requires a
fresh observation collected after work started and exact matches for its selected
algorithm criteria. Business context changes and stale cached risk scores cannot
substitute for new evidence.
New verification proofs record the policy version, derived confidence and evidence
checks alongside the evidence ID, criteria, actor and reason. Older proofs retain
their historical meaning; they are not silently reverified under the new policy.
Verification confirms the selected criteria, not overall quantum safety.
## Refresh existing assessments
New observations use the deployed policy. Existing stored scores retain their recorded
policy until an administrator recalculates them.
1. Open **Quantum risk** and inspect **Risk policy updates**.
2. If assets are outdated, select **Recalculate outdated assets**.
3. Use **Refresh status** to follow progress. The server processes bounded batches;
closing the browser does not stop the run.
4. Review changed scores and their assessment history before revising migration priorities.
Recalculation preserves original observations, timestamps and archived evidence.
It records the previous and replacement assessment in per-asset risk history.
Analysts and viewers can inspect status and history; only administrators can request
recalculation. A suspended workspace pauses processing and requires a new authorized
request after it resumes.
JavaScript SDK methods are `riskRecalculation()`, `recalculateRisk()` and
`riskHistory(assetId)`. The API equivalents are `GET`/`POST /risk/recalculation`
and `GET /assets/{id}/risk-history`, under `/api/v1`.
## CBOM exports
CBOM export calculates scores with the currently deployed policy and includes
`sectigo:risk-policy`, `sectigo:risk-score` and `sectigo:algorithm-posture` properties.
Raw algorithm, key-establishment and authentication labels remain in separate properties.
Recognized algorithm identities also populate native CycloneDX primitive, family,
parameter-set, curve and mode fields. This includes all 18 standardized ML-KEM,
ML-DSA and SLH-DSA parameter sets. Missing parameters are not inferred. RSA key size
alone does not establish a signature or encryption scheme; ambiguous and unsupported
identities retain an unknown primitive and their original label. Static code
findings retain the detector and explicit runtime-use verification flag. These fields
describe the detected candidate, not proof that its cryptographic operations execute.
Certificate observations use native certificate properties and retain their
endpoint dependency links. Peer-presented chains are not labeled as the operating
system's verified certification path.
Network endpoints use native **protocol** assets: TLS, SSH, or QUIC where capture
evidence establishes that transport. Known versions and observed TLS cipher names
or numeric suite identifiers are included. QUIC version 1 or 2 is kept distinct
from its embedded TLS 1.3 negotiation. SSH retains directional ciphers and MACs,
host-signature evidence and the separate host-identity verification flag. A passive
ServerHello observation does not establish authentication or handshake completion.
Capability probe alternatives remain in the probe evidence rather than being merged
into the baseline connection's cipher suite.
An export can therefore differ from an older stored dashboard assessment until
recalculation finishes. Use the policy identifier when comparing exports or sharing
findings with downstream systems. Evidence-confidence and discovery limitations still
apply to exported findings.
## Policy history
- **qr-risk-0.4:** requires exact PQC family/parameter and recognized hybrid
identities, preventing malformed names from receiving favorable PQC posture.
Recognizes both documented OpenSSH hybrid families. Weights remain unchanged.
- **qr-risk-0.3:** recognizes normalized elliptic-curve key families and corrects
review-cipher precedence over stronger hash names. Adds policy and algorithm-posture
provenance to CBOM properties. Weights and severity boundaries are unchanged.
- Earlier recorded assessments remain available through risk history when recalculated.
### Cloud algorithms in policy 0.5
The exact normalized **SM2** label is quantum-vulnerable, consistent with its
elliptic-curve basis. **X-Wing** is classified as hybrid, not a pure post-quantum
algorithm. Unsupported suffixes and composite labels remain unknown. Key usage
and runtime execution remain unknown unless separately observed; a hybrid KEM
does not make classical authentication quantum-resistant.
References: [AWS key-spec definitions](https://docs.aws.amazon.com/kms/latest/developerguide/symm-asymm-choose-key-spec.html)
and [Google Cloud KEM definitions](https://docs.cloud.google.com/kms/docs/key-encapsulation-mechanisms).
Existing stored assessments update through the risk-recalculation workflow;
new assessment and CBOM policy provenance use version 0.5.
### Certificate public keys in CBOM
Certificates with captured public-key algorithm metadata now link to native
CycloneDX public-key material through `relatedCryptographicAssets`. The linked
component retains the observed key size when available and identifies its parent
certificate. Dependency references resolve within the exported BOM.
These are certificate-scoped metadata records. Matching algorithm names, key sizes
or certificate subjects do not merge keys across observations. No key bytes,
private material, key lifecycle state or hardware custody is inferred. A missing
key size stays absent, and the link does not assert certificate signature or path
verification. Signature-algorithm links and cross-source key identity remain
separate coverage gaps.
### Certificate signing algorithms in CBOM
Scanner-observed certificate signature OIDs now produce native algorithm components,
linked from the certificate through `relatedCryptographicAssets` and the dependency
graph. The signing algorithm remains distinct from the certificate's subject public
key: the subject key's size or curve does not identify the issuer's signing key.
These components retain observed signature/hash labels and signature-verification
status. RSA-PSS salt length, MGF parameters, issuer key details and implementation
properties are not inferred. Parameter completeness is explicitly false. Unknown
signature OIDs remain present without an invented algorithm family. References remain
scoped to each certificate observation; matching OIDs do not establish identical keys
or complete algorithm parameters.
### Negotiated TLS algorithms in CBOM
Verified active TLS observations now link to native algorithm components for the
selected key-establishment group and negotiated handshake signature. The links
require completed, certificate-verified handshakes with valid parsed metadata.
Passive captures, offered-only probes and invalid or unverified handshakes do not
acquire these verified-negotiation links.
Classical elliptic-curve, standardized finite-field and ML-KEM groups receive native
properties only when the observed registry ID, name and normalized algorithm agree.
TLS 1.2 finite-field identification additionally requires the scanner's exact RFC 7919
parameter-match evidence. A modulus size alone does not establish a named group.
Standardized hybrid groups are represented as combiners; this does not imply
quantum-safe authentication. Unknown, obsolete or conflicting group metadata retains
its registry identity without invented native parameters.
TLS handshake signatures remain separate from certificate-signing algorithms.
In particular, TLS 1.2 ECDSA hash/signature pairs do not identify the signer's curve.
Signature parameter completeness remains explicitly false. These relationships are
scoped to their observed endpoint and do not assert shared keys across endpoints.
### Negotiated SSH algorithms in CBOM
Verified classical methods now link to their ECDH or finite-field DH algorithm
definitions: Curve25519 (including its libssh alias), Curve448, NIST P-256/P-384/P-521,
fixed DH groups 1 and 14–18, and DH group exchange. Exact method names select the
curve, exchange hash and, for fixed groups, defined modulus size. Group exchange
does not acquire an inferred modulus size. These definitions do not claim measured
group parameters or independently observed keys. Legacy SHA-1 methods are represented
for inventory completeness, not recommended for use. References:
[RFC 8731](https://www.rfc-editor.org/rfc/rfc8731.html),
[RFC 5656](https://www.rfc-editor.org/rfc/rfc5656.html),
[RFC 8268](https://www.rfc-editor.org/rfc/rfc8268.html), and
[RFC 4419](https://www.rfc-editor.org/rfc/rfc4419.html).
An observed RFC 10042 exchange links to a combiner and its ECDH and ML-KEM
constituents, including the named curve, ML-KEM parameter set and exchange hash.
Links require the scanner's verified handshake signature and matching negotiated
method. Offered-only, unsupported or conflicting evidence does not receive them.
Host identity is still trusted only when the configured fingerprint matched.
Unpinned exchanges retain that limitation in the exported combiner. Constituent
links describe the negotiated method's definition; they do not claim separately
observed keys, complete parameters or a quantum-safe host signature. Export support
for these methods does not establish that every deployed scanner can negotiate all
three; actual scanner interoperability remains separately qualified.
### SSH host keys in the cryptographic inventory
For supported, consistent SSH handshake evidence, the CBOM links the endpoint to an observed public host-key component. It retains the key type, bit size and OpenSSH SHA256 fingerprint, together with whether the configured host-key pin matched. RSA, Ed25519, DSA and the supported NIST ECDSA host-key types are represented separately from negotiated key exchange.
The fingerprint hashes SSH wire-format public-key bytes; it is not a certificate or SPKI fingerprint. Key components remain scoped to each observation even when fingerprints match. They export metadata only and do not establish ownership, private-key possession beyond the observed handshake, certificate trust or cross-system identity. Unknown or contradictory key metadata does not produce a key component. Unpinned observations remain explicitly untrusted.
## TLS cipher algorithms in CBOM exports
For the five TLS 1.3 cipher suites defined in RFC 8446, CBOM exports link the
protocol's selected cipher suite to typed record-encryption and SHA-256/SHA-384
components. These identify the AEAD algorithm, key size, authentication-tag size,
and hash used by HKDF and the handshake transcript. ChaCha20-Poly1305 retains its
full algorithm name with the CycloneDX ChaCha20 family.
TLS 1.2 exports also cover the 27 AES-GCM and ChaCha20-Poly1305 suites defined in
[RFC 5288](https://www.rfc-editor.org/rfc/rfc5288.html),
[RFC 5289 section 3.2](https://www.rfc-editor.org/rfc/rfc5289.html#section-3.2), and
[RFC 7905](https://www.rfc-editor.org/rfc/rfc7905.html). Their hash link is labelled
`prf-and-transcript-hash`; TLS 1.2 does not use the TLS 1.3 HKDF key schedule.
Forty-two AES-CBC suites have separate encryption, record-HMAC and PRF hash
links: all 24 AES-CBC suites from [RFC 5246 Appendix A.5](https://www.rfc-editor.org/rfc/rfc5246.html#appendix-A.5),
10 ECC AES-CBC suites from [RFC 4492 section 6](https://www.rfc-editor.org/rfc/rfc4492.html#section-6),
and eight ECC CBC suites from [RFC 5289 section 3.1](https://www.rfc-editor.org/rfc/rfc5289.html#section-3.1).
This includes fixed/ephemeral DH and anonymous selections without asserting
successful peer authentication or enabling these suites in active scan defaults.
For the older SHA-1 MAC suites, record HMAC-SHA-1 and the TLS 1.2 SHA-256 PRF are
reported separately. CBC components do not claim an AEAD tag, observed MAC key,
record verification, or a particular negotiated MAC truncation/ordering extension.
All 20 AES-CCM and CCM8 suites in [RFC 6655](https://www.rfc-editor.org/rfc/rfc6655.html)
and [RFC 7251](https://www.rfc-editor.org/rfc/rfc7251.txt) are also mapped. Both
128-bit and 256-bit AES variants use the SHA-256 PRF. CCM8 has a 64-bit tag;
ordinary CCM has a 128-bit tag. Neither has a separate record HMAC component.
These exports describe observed selections; they do not enable weak suites in
active scanning defaults. Local CCM8 acceptance fixtures explicitly lower only
their temporary OpenSSL policy to permit the short tags.
Exact IANA IDs and standard/OpenSSL names are matched across 100 TLS 1.2 suites.
CBC suites outside the three RFC groups above, including PSK-CBC, remain
unmapped.
For TLS 1.0 and TLS 1.1, the 22 AES-CBC/HMAC-SHA-1 suites in
[RFC 3268](https://www.rfc-editor.org/rfc/rfc3268.html) and
[RFC 4492](https://www.rfc-editor.org/rfc/rfc4492.html) have version-specific links.
The export includes AES-CBC, record HMAC-SHA-1, and the legacy PRF combiner with
MD5 and SHA-1 dependencies. The PRF combines P_MD5 and P_SHA-1 by XOR as defined
in [RFC 2246 section 5](https://www.rfc-editor.org/rfc/rfc2246.html#section-5) and
[RFC 4346 section 5](https://www.rfc-editor.org/rfc/rfc4346.html#section-5).
This is protocol-derived evidence; it does not assert observed key material or
successful passive handshake verification. TLS 1.2-only suites labelled with an
older protocol do not receive derived components. SSLv3 and other legacy suite
families remain outside this mapping. Active scanner protocol defaults are unchanged.
DTLS protocol scanning is not established by support for these suite definitions.
Each link records whether its source was a passive ServerHello observation
(including QUIC) or a verified active TLS handshake. Suite definitions do not
establish the key exchange, peer authentication, possession of an encryption key,
or completion of a passively observed handshake. Unknown suites, contradictory
metadata and offered-only suites do not receive these derived links. QUIC observations
use TLS 1.3; a conflicting TLS 1.2/QUIC label does not produce suite components.
Policy 0.10 adds a separate legacy-cipher finding for 3DES selections. Eleven
3DES-EDE-CBC suites from RFC 5246 and RFC 4492 export their 168-bit nominal key
size, 112-bit effective strength, 64-bit block and 24-byte parity-inclusive key
material size. Record HMAC-SHA-1 is separate from the version-specific PRF.
TLS 1.0/1.1 exports use the MD5/SHA-1 combiner; TLS 1.2 uses SHA-256.
These are suite-definition properties, not captured keys or proof of exploitability.
Passive selections retain unknown ETM. Active scan defaults are unchanged; this
mapping does not establish active 3DES endpoint support. PSK and Kerberos 3DES
suites remain outside this increment. See [RFC 9325 section 4.1](https://www.rfc-editor.org/rfc/rfc9325.html#section-4.1).
### Unknown exposure
Source scanner 0.26.57 uses unknown exposure for observations without reachability
or access-policy evidence, including AWS, Azure and GCP key metadata. A key's
algorithm, region, HSM protection or resource name does not establish who can
access it. Network telemetry likewise leaves exposure unknown on both session
legs. An owner can supply reviewed context; hosted public endpoint scans retain
their explicitly established public scan context. Check the installed scanner
version when comparing new and historical observations.
Policy `qr-risk-0.16` uses conservative exposure weighting when reachability or access policy has not been established. This does not label the asset public. The API reports `risk.missingContextFields: ["exposure"]` and prompts an owner review. Explicit public, partner, internal and isolated context retain their existing weights. CBOM exports preserve the distinction in `sectigo:exposure`. Older scanner versions may still report internal as a default; those explicit historical values are not silently rewritten. Reviewed owner values continue to survive rescans.
## Inspect an asset and its assessment history
**Dependency impact** shows declared inventory dependencies and a separate
**Cryptographic components** section. Components reuse the CBOM's evidence
validation for observed public keys, certificate signatures and supported
algorithm relationships. Each relationship identifies its parent and the source
observation's evidence. They are scoped components of that observation, not new
inventory assets; matching names or fingerprints do not create application-use
links. Dependent counts and risk scores continue to use declared asset relationships.
Select an asset from the inventory or Quantum risk page to open its full detail page. Connected workspaces load the asset directly by ID, so a saved link does not depend on a previously loaded inventory page. The page includes cryptographic dimensions, confidence, ownership and the observation metadata. Use the return link to go back to the inventory or Quantum risk page.
**Risk history** opens a separate full page showing policy recalculations and reviewed business-context changes. **Older revisions** continues through the API cursor; **Latest revisions** returns to the newest results. **Back to asset** returns to the current observation and preserves the original inventory or Quantum risk destination. Dependency impact and business-context return links preserve that destination too. On narrow screens, assessment revisions appear as labeled cards; paging links are available above and below the results. Assessment revisions do not replace the original scan evidence.
**Business context** opens the focused review form. Administrators and analysts can save reviewed values; viewers can inspect them. Conflicts retain entered values and offer a reload. Updates use both the reviewed context revision and evidence ID.
When you open an asset from the inventory or Quantum risk list and return in the same tab and signed-in workspace, the list restores its search/filter state, page, document scroll and horizontal table position. Keyboard focus returns to the selected asset row. This also applies to browser Back. The saved position is consumed on return and discarded when changing the list filters or session; it is not persisted across reloads. If an asset disappears from the returned page, there is no matching row to focus.
## Versioned workspace profiles
Platform 0.51.474 adds **Organization / Workspace risk profile**. Administrators can save an exact profile version, UTC assessment date, applicability and reason. Viewers and analysts can inspect the saved selection. Draft guidance requires explicit consent. Profile scope is shown before saving; a profile does not imply coverage of an entire standard.
The date is fixed for reproducibility; it does not advance automatically. Saving a selection changes read-time profile assessments, not the existing numerical risk scores. Preview individual evidence from **Asset details / Preview risk profile**. For persisted custom-profile results, use the explicit activation and recalculation workflow below; its retained history is separate from this built-in selection.
If another administrator changes the selection, your save is rejected and your inputs are preserved. Reload the saved selection, review the new version and make your decision again. After a lost response, reload before retrying. Removing the selection retains its recorded revisions and audit events.
These controls are available in platform 0.51.474. Profile mappings remain limited to their stated scope.
## Custom profiles
Platform 0.51.475 adds **Organization / Custom risk profiles**. Administrators can create a blank profile or clone a built-in/custom published version; edit rules, percentage weights and severity boundaries; save drafts with reasons; and publish immutable versions. Read roles can inspect profiles, history and previews. Every customized derivative is tenant-defined, even if its source is an official standard. Source ancestry is retained.
Publishing does not activate a profile. Compare published versions, restore an earlier definition to a draft, or clone it into a new profile from the editor. Publishing a restored draft creates a new version; it never erases intervening history. Archiving retains versions and rejects future editing/publication. Select another active profile or explicitly remove the selection before archiving the current one.
Weights total 10000 basis points (100%) and severity boundaries increase strictly. Rules support exact built-in mappings, dimension thresholds and migration deadlines. Draft guidance requires explicit opt-in. Disabled rules remain in their versions and comparisons. Missing positive-weight dimensions produce a possible score range, a null point score and unknown severity. Standards findings and configurable numerical scores are separate; neither is a compliance certificate.
### Preview and activate
Save draft edits before previewing them. Preview uses up to 25 explicit assets or a bounded sample across asset kind/current-severity groups. This is not an exhaustive assessment. With an immutable baseline version, both definitions are evaluated against the same current evidence; this does not reproduce a historical scan. Otherwise the before-value is labeled as the existing inventory score.
From a published profile, select **Review activation and recalculation**. Choose the exact published version and UTC assessment date, run its preview, enter a reason and confirm review. Changing version or date clears that preview and confirmation. The activation preview evaluates the immutable selected version, not any newer editable draft. Choose explicitly whether to recalculate after activation.
The assessment date is fixed for reproducibility. Activation is revision-guarded; conflicts preserve inputs. Refresh state after a conflict or lost response before retrying. Custom numerical selection is currently separate from the built-in standards selection.
### Progress and history
The activation page shows background progress and refreshes while a run is pending/running. Administrators can request a later recalculation with a reason. Each run pins the published profile, assessment date and evaluator versions, and processes bounded batches. Evidence and reviewed context are read as each asset is processed, so a run is not a point-in-time inventory snapshot. Failed outputs and changed starting counts are explicit. Suspension pauses a run; request a fresh run after the workspace resumes. Changing activation supersedes pending work.
The API supports activation at `/api/v1/risk/custom-activation`, progress and explicit reruns at `/api/v1/risk/custom-recalculation`, and retained runs/results at `/api/v1/risk/custom-runs/{id}` and its `/results` endpoint. Follow `nextCursor` for result pages. Rerun requests use a caller UUID: reuse the same ID and identical input after a lost response. SDK methods mirror these operations.
`GET /api/v1/assets/{id}/custom-risk` returns the latest result and its staleness relative to evidence, reviewed context, activation and evaluator changes. Results retain their evidence/context references and original versions. An incomplete score remains incomplete even when the batch finishes.
### Current scope limits
Business dimensions use audited context edits, because ingestion defaults do not establish review. Supported cryptographic-role normalization and a complete referenced dependency review can supply all seven dimensions; scanners do not automatically establish dependency completeness. Review missing dimensions instead of interpreting a null difference as no change. Custom results remain separate from legacy inventory risk scores and appear in inventory, dashboards, historical reports and CBOM. Missing positive-weight evidence retains an unknown score and possible range; it does not become a pass.
### Asset results and CBOM export
Platform 0.51.477 adds a retained custom-assessment section to each inventory asset. It shows the exact profile version and assessment date, numerical score or unknown state, possible score range, missing dimensions and separate rule findings. Stale results are clearly historical. Expanding a rule shows its recorded findings without changing evidence or triggering a new scan. The existing inventory score is a separate legacy assessment.
CycloneDX exports carry `sectigo:custom-risk:activation` in metadata and `sectigo:custom-risk:assessment` on original inventory components. Each compact assessment preserves null scores, staleness, profile/run/evaluator versions and evidence/context references. Generated algorithm child components do not inherit an asset's numerical score. The export does not embed potentially large normalized facts or standards findings: follow the authenticated historical run-results path and pagination to find the referenced asset result. Selection changes do not rewrite earlier results. No custom score or rule result constitutes a compliance determination.
Hosted OAuth MCP profile lifecycle support is available from 0.51.476; see [AI integrations](../ai-integrations/).
### Final block-cipher guidance
Platform 0.51.479 adds `nist-131a-r2-block-ciphers`, version `2019-03-21.1`, mapping Section 2/Table 1 of [NIST SP 800-131A Rev. 2](https://csrc.nist.gov/pubs/sp/800/131/a/r2/final). This final publication superseded Revision 1; the Revision 3 draft remains a separate opt-in profile. Applicability must be reviewed rather than inferred for every tenant.
Verified sessions supply key lengths and modes. The mapping distinguishes TDEA encryption after 2023 from decryption of older data, which requires legacy-use review. Historical TDEA use needs more context; exceptions under other guidance are not inferred. AES requires a supported key length and mode identity, but a result without a mapped finding does not establish correct mode parameters or validated implementation. A retained encrypted database alone does not prove new TDEA encryption.
The normalization version advances to `qr-profile-facts/3`. Retained custom results from earlier normalization become stale; request explicit recalculation. Historical outputs remain unchanged. Other sections of Revision 2 remain outside this profile.
### Dashboard totals
From 0.51.478, the dashboard shows full-inventory custom-profile totals, separately from the existing inventory risk distribution. Current numerical scores, incomplete scores, stale results, failed assessments and assets without a result are separate categories. The average includes only current numerical scores; it is not an average across missing or outdated evidence. Removing an active selection makes its old results stale, without deleting them.
`GET /api/v1/overview` returns this summary as `customRisk`. Both SDKs expose `overview()`, and hosted OAuth MCP exposes `workspace_overview`. The response includes the selected immutable version/date, profile name, category counts and numerical severity distribution. Incomplete and failed assessments never contribute zero to the average. Use the inventory custom-assessment filters and printable historical reports described below to inspect individual results or a retained recalculation.
## RC4 session guidance
The `ietf-rfc7465-rc4` built-in version `2015-02.1` maps [RFC 7465 Section 2](https://www.rfc-editor.org/rfc/rfc7465.html#section-2), a final Standards Track publication effective in February 2015. It flags completed verified TLS sessions selecting the exact RSA RC4-MD5 or RC4-SHA identities. Other RC4 families are currently unmapped. Client offers, enabled-suite inventory and refusal of RC4-only handshakes are not assessed. A non-RC4 session does not prove service-wide compliance.
Clone this version to include it in a tenant-defined profile without changing the built-in. Source findings remain separate from numerical scoring. Normalization version `qr-profile-facts/4` marks prior custom results stale; administrators preview and explicitly recalculate to obtain new results, while historical outputs remain unchanged.
## Find assets by custom assessment
Inventory and Quantum risk pages show a separate **Custom profile** column. Filter by current score, missing evidence, stale result, assessment error or not calculated. Custom severity filters only current numerical results; choosing a nonnumerical state disables that severity filter. Existing Quantum risk remains a separate score. Open an asset for its retained assessment and standards findings, or manage profiles to preview and explicitly recalculate.
`GET /api/v1/assets?includeCustom=true` includes compact version/run-linked summaries. `customState` and `customSeverity` filters imply those summaries and run before pagination/counting. Unknown, stale and failed scores are null, never zero. The JavaScript SDK accepts `includeCustom`, `customState`, `customSeverity`; Python uses `include_custom`, `custom_state`, `custom_severity`, including paginated iterators. The OAuth MCP `assets` tool exposes the same filters. Live inventory can change between pages; reset the cursor when changing filters.
## Legacy protocol guidance
### Federal TLS 1.3 support
The `nist-80052r2-tls13-support` built-in, version `2019-08-29.1`, maps the TLS 1.3 server-support requirement in [NIST SP 800-52 Rev. 2, section 3.1](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf). The final publication date is August 29, 2019; the mandatory support date is January 1, 2024. Its [May 2026 review notice](https://csrc.nist.gov/pubs/sp/800/52/r2/final) does not supersede the final publication. Select applicability explicitly for the federal application being assessed.
A verified active TLS 1.3 session establishes support for that observed session. A TLS 1.2 or older session leaves TLS 1.3 support **unknown**: it cannot prove that the server lacks it. Passive offers, configured labels and incomplete handshakes are not admitted as successful session evidence. Before the mandatory support date, this particular requirement is not assessed. No result certifies compliance with the whole standard: cipher suites, FIPS modules, certificates, extensions and audience-specific interoperability exceptions need separate evidence. This mapping can be cloned into a tenant-defined profile; its standards finding remains separate from numerical scoring.
### Legacy protocol negotiation
The `ietf-rfc8996-protocols` built-in version `2021-03.1` implements the selected-session prohibitions in [RFC 8996 sections 1.1, 4 and 5](https://www.rfc-editor.org/rfc/rfc8996.html). This is final IETF Best Current Practice published in March 2021, not a draft or a legal compliance certification. It prohibits TLS 1.0/1.1 and DTLS 1.0 negotiation. Dates retain month precision. A TLS 1.2/1.3 session produces no finding under this narrow rule; it does not establish disabled legacy support or safe fallback. Missing observation or applicability remains unknown. The current stored-asset adapter admits verified active TLS evidence, not DTLS evidence. Custom clones retain tenant-defined provenance and cannot change the official built-in version. Numerical custom scores remain separate from these standards findings.
## Browsing activation history
### Printable historical reports
Open a retained recalculation, then **Create historical report**. The full-page report reads all retained results in pages of 50, displays progress, and verifies the run identity, profile/evaluator versions, ordering and totals before enabling **Print / save PDF** or **Download report JSON**. The JSON includes the immutable published definition, ancestry, scoring configuration, source citations, run references and aggregate results. It contains no current-asset reevaluation. Viewer, analyst and administrator roles use the existing tenant-scoped read APIs; archiving a profile does not remove historical reports.
Running jobs cannot produce a report yet. Stopped, failed or scope-changed runs are explicitly labeled incomplete or qualified. Every retained output is included, but that does not prove all starting assets were assessed. Averages include only measured scores; unknowns and failures have separate counts. Standards statuses count distinct assets per rule/status, so one asset can appear under several statuses for different cryptographic roles. These counts are not official numerical compliance scores.
The browser processes at most 256 MiB of serialized result text, one bounded page at a time. If the limit, a missing page or a version/count mismatch is encountered, no printable partial report is produced. For larger exports, use `GET /risk/custom-runs/{runId}` and paginate `GET /risk/custom-runs/{runId}/results?limit=50&after=...`; the JavaScript/Python SDK run/results methods and OAuth MCP run/results tools expose the same retained data. A report summarizes historical outputs; individual evidence IDs and context revisions remain in the detailed results API/history. Downloaded reports contain workspace-sensitive configuration and findings.
Open **Activation history** from Custom risk profiles or the activation review page. The full-page view shows newest changes first, with the actor, timestamp, reason and previous/applied immutable profile versions. Profile names come from those published versions. Removing the active selection or archiving a profile does not delete history.
### Verified classical key establishment
Normalization `qr-profile-facts/5` maps verified active TLS 1.2 ECDHE and TLS 1.3 named-group observations for P-256, P-384, P-521, X25519 and X448. The group ID, group name, algorithm label, completed handshake and metadata provenance must agree. Passive captures, incomplete sessions, unsupported groups and contradictory evidence do not establish these facts. Supported QUIC observations must also pass the active QUIC evidence validator.
Classical strength estimates come from [NIST SP 800-57 Part 1 Rev. 5, May 2020, Table 2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf) and [RFC 7748, January 2016, sections 4 and 7](https://www.rfc-editor.org/rfc/rfc7748.html). These are parameter estimates, not a FIPS approval claim or the strength of the entire connection. They supply key-establishment facts to applicable migration rules, including the existing NIST IR 8547 profile. Applicability remains explicit.
Custom facts version `qr-custom-profile-facts/4` assigns the product-defined susceptibility value 100 when admitted evidence establishes a classical key-establishment or signature role, or a recognized classical TLS 1.0-1.2 suite. A hybrid ML-KEM exchange can therefore retain a susceptibility concern when authentication uses a verified classical signature. This is a migration-priority value, not a probability or a claim that hybrid confidentiality is broken. Certificate declarations and unverified labels are not signature-use evidence. PQ and symmetric components alone do not establish complete coverage or an automatic zero-risk score. Other missing dimensions remain unknown, so a partial observation does not produce a complete score. Stored custom results retain the contributing role reasons; results from earlier custom-facts versions are stale until explicitly recalculated, and historical records remain unchanged.
These adapter changes leave immutable built-in definitions and historical results unchanged. Earlier custom results become stale. Preview the effect, then explicitly recalculate to apply the new evidence mapping; no background mass activation occurs merely because the platform changed.
**View recalculations** lists every retained run for that activation in run-ID order. A changed selection does not mean a recalculation ran. Open a run to page through its retained results, including missing scores, failures, original evidence/context references and standards findings. Asset links open current inventory; the displayed historical results are not reevaluated against it. The record's original `lastRunId` is not a complete run index.
API: `GET /risk/custom-activation-history?before=12&limit=20` and `GET /risk/custom-runs?activationRevision=11&limit=20`. Follow `nextBefore` or `nextCursor` respectively. Read roles can inspect history; mutation permissions are unchanged. JavaScript exposes `customRiskActivationHistory` and `customRiskRuns`; Python exposes `custom_risk_activation_history` and `custom_risk_runs`. OAuth MCP provides `custom_risk_activation_history` and `custom_risk_runs` tools with the same tenant-scoped read access.
## RFC 9852 protocol-design review
The `ietf-rfc9852-new-protocols` built-in, immutable mapping version `2026-07.1`, implements the support/default requirements in [RFC 9852 sections 4 and 5](https://www.rfc-editor.org/rfc/rfc9852.html). This is final IETF BCP 195 guidance published in July 2026; the catalog retains month precision. It updates RFC 9325 for new protocols using TLS. It does not impose a universal TLS 1.2 ban, cover DTLS, or establish that TLS 1.3 uses post-quantum algorithms. Platform 0.51.495 adds this mapping and the review workflow.
From **Asset details / Preview risk profile / Review protocol design for RFC 9852**, an administrator or analyst can record whether the design is a new protocol within scope, its transport, whether TLS 1.3 support is required, and the specified default version. Each review needs a UTC date, evidence reference and change reason. Use the specification/version and relevant sections or an approved review record; never paste secrets or confidential document contents. A viewer can read the page but cannot save or remove a review.
The profile evaluates TLS 1.3 support and default separately. A new TLS protocol explicitly lacking TLS 1.3 support or specifying an older default produces the corresponding finding. Optional non-default TLS 1.2 does not by itself fail either rule. Existing protocols and DTLS are outside this mapping. Missing design evidence, unknown applicability or a review dated after the assessment remains unknown. A negotiated TLS session alone cannot prove design requirements or default settings.
Saving uses the current context revision and evidence ID. Concurrent edits or a new scan require reloading and reviewing again; failed saves preserve input. Other business context remains unchanged. Removing a protocol review requires explicit selection and a reason; it makes this evidence unknown while preserving audit history. The general **Use scanner values** context reset also removes reviewed protocol context.
After saving, return to profile preview and explicitly select applicability and assessment date. Saving this context does not activate a profile or rewrite historical assessments. For custom scoring, clone or add the versioned source rule, publish the reviewed profile, preview representative assets, and explicitly recalculate through the existing activation workflow. Customized derivatives and numerical scores remain tenant-defined; source findings remain separate. Normalization `qr-profile-facts/6` invalidates older current-result caches without rewriting retained run outputs.
API and SDK consumers use the existing asset-context read/update operations. Preserve other `values` fields when updating `values.protocolDesign`; writes replace the reviewed context object. Supply `expectedRevision`, `expectedEvidenceId` and `reason`. The shared OAuth MCP `asset_context_update` schema exposes the same strict fields: `newProtocol` and `tls13Supported` are boolean or null; `transport` is TLS, DTLS or unknown; `defaultVersion` is TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3 or unknown; `reviewedAt` is a valid UTC calendar date; `reference` is required. Scanner-supplied asset labels cannot supply this reviewed evidence.
## Organizational PQC programme review
### Government of Canada policy review
In **Organization > PQC programme review**, choose **Government of Canada policy**.
The versioned `gc-pqc-spin / 2025-10-09.1` assessment maps the
[GC SPIN effective 9 October 2025](https://www.canada.ca/en/government/system/digital-government/policies-standards/spin/migrating-government-canada-post-quantum-cryptography.html).
It applies only where the policy's organization scope is established. The separate
Cyber Centre roadmap is guidance, not the authority of this policy profile.
Select applicability, departmental/agency or SSC role, and information classification.
The migration-plan assessment covers up to Protected B. Unknown, mixed,
Protected C or classified scope cannot produce a completed policy finding; separate
Cyber Centre direction is required. Cite approved review records without copying
secrets or confidential documents into the form.
Review eleven milestones: planning phases, annual reporting, inventory, priority
identification, SSC coordination, procurement, transition start and migration
completion. Inventory evidence must cover the fields in section 6.2.3; procurement
evidence must address section 6.3.1. A completed entry is a reviewed statement, not
scanner verification. Reporting and procurement remain ongoing duties. Late
completion remains visible; no recurring April reporting deadline is inferred.
Preview changes before saving. Any edit invalidates the preview. Saved revisions
retain their original assessment and evidence; withdrawal preserves history.
Open a retained report to print/save PDF or download JSON. Dashboard summaries and
CBOM metadata (`sectigo:gc-spin-programme-review`) remain separate from asset risk
scores and the NCSC review. No result certifies organization-wide compliance.
The API uses `/risk/programme-review/gc-spin`, `/preview`, `/history` and
`/history/{revision}`. JavaScript offers `gcSpinReview`, `previewGcSpinReview`,
`saveGcSpinReview`, `gcSpinReviewHistory` and `gcSpinReviewVersion`; Python uses
the corresponding snake-case names. MCP uses `gc_spin_review*` tools, with explicit
confirmation for saving. Reads permit admin/analyst/viewer; preview and save require
admin. There is no cross-workspace selection parameter.
### UK NCSC guidance review
Open **Organization > PQC programme review** to record reviewed organizational
milestones against UK NCSC's published version 1.0 guidance (20 March 2025).
This workflow evaluates referenced programme evidence. Inventory counts, successful
scans and encrypted database settings cannot establish estate-wide discovery or
migration completion. Applicability starts as **Not established**.
Administrators enter the organizational scope, review date, overall reference and
six milestone states. Leave a milestone **Not established** when evidence is missing.
For reviewed incomplete or complete milestones, provide a record reference; complete
milestones also require a completion date no later than the review date. Do not paste
secrets or confidential document contents into references.
Choose **Preview changes**, review the proposed findings, then **Save reviewed
changes**. Editing any value invalidates the preview. Saving retains the assessment,
source version, date, actor and reason as a new immutable revision. It does not
activate an asset scoring profile or recalculate inventory scores. If a save conflicts
or its response is lost, edits remain visible: reload the saved state before retrying.
NCSC targets retain year precision. Reviewed incomplete work is flagged for review;
the beyond-target indication starts after the target year. Completed-late milestones
retain that fact. These are guidance findings, not statutory violations, numerical
scores or compliance certification. [Read the primary NCSC guidance](https://www.ncsc.gov.uk/guidance/pqc-migration-timelines).
Use **Review history** to load saved revisions, then **Open retained report** for a
full-page printable report and retained JSON. Past results keep their original
assessment date and are not reevaluated when opened. **Withdraw the current review**
requires a reason and preview; it restores unknown evidence without deleting history.
Analysts and viewers can read reviews and reports but cannot save or preview changes.
The API exposes `/risk/programme-review`, `/preview`, `/history` and
`/history/{revision}` under `/api/v1`. JavaScript/Python SDKs and OAuth MCP provide
matching operations. MCP saves require explicit confirmation. History uses an integer
revision cursor with pages of up to 100 records.
### Programme context in the dashboard and CBOM
The programme summary shows the last saved organizational assessment and its review
revision. An absent or withdrawn review stays explicit; the dashboard does not infer
migration completion from discovered assets. Open the retained assessment to inspect
the evidence and citations as they were saved. The CBOM records this context once in
`metadata.properties` as `sectigo:programme-review`, with organizational scope and
no numerical score. It does not attach programme completion claims to individual
cryptographic assets. SDK overview/CBOM calls expose the same retained context.
### Signature parameters and legacy verification
For the separate Canadian advisory programme workflow, see the Cyber Centre roadmap section below.
Select **NIST SP 800-131A Rev. 2 signature parameters**, version `2019-03-21.1`,
for the Section 3/Table 2 mapping. Explicit applicability is required. This is a
versioned interpretation of the [2019 final source](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf),
not current FIPS certification. Later [FIPS 186-5](https://csrc.nist.gov/pubs/fips/186-5/final)
requirements remain separate; an allowed historical parameter pair is not current
DSA signing approval.
Generation and verification are assessed separately. Legacy verification produces
a review finding, not permission to generate new signatures. Missing RSA modulus
or ECDSA subgroup-order evidence remains unknown; a key label cannot fill it in.
EdDSA is not assigned approval using the 2019 text.
Verified TLS 1.3 handshake signatures supply signing-algorithm facts. The three
curve-specific ECDSA schemes supply their order lengths; TLS 1.2 pairs, key-exchange
groups and certificate inventories do not. RSA schemes identify the algorithm but
not modulus size. This uses existing agent evidence and requires no agent update.
Unmapped roles remain visible as unknown; hash suitability, curve approval and
implementation validation remain outside this parameter finding.
Clone the built-in to incorporate its source rule in a tenant scoring profile.
Use preview before publishing or activating, then explicitly recalculate to apply
normalization `qr-profile-facts/7`. Previous assessment runs retain their earlier
normalization version and evidence. Numerical scores remain tenant-defined.
### Cyber Centre advisory roadmap
Open **Programme review → Cyber Centre roadmap** for ITSM.40.001, effective
23 June 2025 (`gc-pqc-roadmap`, version `2025-06-23.1`). This advisory review is
separate from GC SPIN policy. Establish applicability and classification first.
The editor covers planning, reporting, migration and supporting controls. Targets
retain month/year precision; undated controls receive no invented deadline.
Reporting completion records its start; references should address ongoing reporting.
Migration evidence must cover mitigation, not merely PQC availability.
Preview/save/history retain organizational evidence. Reports support print/PDF and
JSON. Dashboard and CBOM property `sectigo:gc-roadmap-programme-review` retain
organizational findings, without asset compliance claims or numerical scoring.
API `/risk/programme-review/gc-roadmap`, JavaScript `gcRoadmapReview*`, Python
`gc_roadmap_review*` and OAuth MCP `gc_roadmap_review*` expose the same workflow.
Source: [ITSM.40.001](https://www.cyber.gc.ca/en/guidance/roadmap-migration-post-quantum-cryptography-government-canada-itsm40001),
sections 3–5.2 and footnote 1. Protected C/classified and mixed scope remain
unknown pending separate Cyber Centre advice.
### EU coordinated migration roadmap
Choose **Programme review → EU roadmap** for Part 1, version 1.1, dated
11 June 2025 and published 23 June 2025. QScan version `2025-06-11.1.1` keeps
the document date separate from publication. This is advisory guidance, not an
EU-wide statutory prohibition or proof of NIS2 compliance.
Select Member State programme or organizational adoption. National First Steps,
national roadmap and Next Steps milestones are not assigned to an organization
adopting the guidance. Use-case milestones require a referenced section 5 risk
classification; a QScan numerical severity does not establish that classification.
Low-risk completion retains the source's feasibility qualification.
Preview, save and retained reports follow the same revision-controlled workflow.
The API prefix is `/risk/programme-review/eu-roadmap`; JavaScript uses
`euRoadmapReview*`, Python and OAuth MCP use `eu_roadmap_review*`.
Dashboard and CBOM property `sectigo:eu-roadmap-programme-review` retain
organizational evidence without attributing completion to individual scanned assets.
Source: [Official EU roadmap PDF](https://ec.europa.eu/newsroom/dae/redirection/document/117507),
sections 3.1, 4, 5 and 6. The nine headline milestones group the detailed First
Steps and Next Steps; reviewers must reference evidence covering those grouped
activities. This workflow does not automatically calculate the handbook's risk score.
### DORA encryption and key management review
Open **Programme review → DORA controls** for the versioned Articles 6/7 mapping
of Delegated Regulation 2024/1774. Establish applicability with a reference and
select the full or simplified ICT framework. This mapping covers Title II; the
simplified Title III framework remains separately unassessed.
Record each control as unknown, reviewed gap or reviewed implementation, with
evidence references. For data in use, record whether encryption is necessary.
Alternative protected processing requires an infeasibility reference and control
evidence. These selections do not certify the protective measures.
Preview changes before saving. History and printable/JSON reports retain the
review date, regime and references. Requirements remain ongoing; an implemented
entry does not discharge future obligations. Scan counts do not prove the
completeness of the certificate/device register or operational key management.
The API is `/risk/programme-review/dora`; JavaScript uses `doraReview*`, Python
and OAuth MCP use `dora_review*`. Dashboard and CBOM property
`sectigo:dora-control-review` preserve organizational findings separately from
asset scores. No PQC algorithm list or migration deadline is inferred.
Sources: [Official Journal text](https://publications.europa.eu/resource/celex/32024R1774)
and [corrected consolidated documentation](https://publications.europa.eu/resource/celex/02024R1774-20240625).
Articles 6/7 are unchanged in the reviewed correction. Publication was 25 June
2024, entry into force 15 July 2024; DORA applies from 17 January 2025.
## NIS2 cryptography control review
Open **Organization → Programme review → NIS2 controls**, or the NIS2 dashboard
card. This full-page workflow maps Annex 9 of Implementing Regulation (EU)
2024/2690. Record the Article 1 service type, a referenced applicability decision,
scope and review date. Service type alone does not establish legal applicability.
Review eighteen policy, technique-selection, agility, key-management and scheduled
review controls. Unknown evidence stays unknown. Mark a gap or implementation only
with an evidence reference. The agility and individual key-method requirements
allow a **not appropriate** decision with documented reasoning under Article 2(2);
unconditional controls do not offer that choice. QScan retains the decision but does
not independently certify its appropriateness.
Preview changes before saving. Save retains an immutable assessment and audit
revision. History supports full-page reports, print/PDF and retained JSON. Withdrawal
removes the current review evidence while preserving prior revisions. Administrators
can preview/save; analysts and viewers can read. These organizational findings do
not activate asset profiles, recalculate scores or certify general NIS2 compliance.
Profile `nis2-cryptography / 2024-10-18.1` cites the final regulation, published
18 October 2024 and applicable from 7 November 2024. Other sectors are not assessed
by this Article 1 mapping. Annex 9 does not supply an approved algorithm list or a
PQC migration deadline. [Primary regulation, Articles 1, 2 and 16; Annex 9](https://publications.europa.eu/resource/celex/32024R2690).
API: `/api/v1/risk/programme-review/nis2` with preview, paginated history and retained
revision routes. JavaScript uses `nis2Review`, `previewNis2Review`, `saveNis2Review`,
`nis2ReviewHistory` and `nis2ReviewVersion`; Python exposes their snake-case
equivalents. OAuth MCP exposes `nis2_review`, `nis2_review_preview`,
`nis2_review_save`, `nis2_review_history` and `nis2_review_version`; saving requires
explicit confirmation and administrator authorization. CBOM retains the review
under `sectigo:nis2-control-review`, at organization level with no numerical score.
## Prioritized federal-system migration
From an asset's **Risk profile preview**, open **Review federal priority and
migration scope**. Record federal-system and national-security-system status,
the priority designation, review date and an evidence reference. Administrators
and analysts can edit; viewers can read. Save preserves other context. Removal
requires confirmation and keeps audit history. Resolve concurrent scan or context
changes by reloading before saving again.
Use an agency designation for an HVA, a FIPS 199 assessment for high impact, or
the agency's reviewed basis for another prioritized sensitive system. QScan severity
and scanner labels cannot establish these facts. National security systems are
outside this profile, and missing scope remains unknown.
The separate `nist-ir-8547-federal-priority / 2026-10-27.1` profile maps observed
classical key establishment to a 31 December 2030 migration deadline and signature
generation to 31 December 2031. After those dates, continued covered classical use
requires review. This is a migration-deadline finding, not a universal change to
algorithm approval. The existing general IR 8547 version remains unchanged.
Preview the profile with explicit applicability and assessment date. Saving scope
does not activate a profile or recalculate historical results. Unqualified hybrid
or PQC evidence and historical signature verification are not declared compliant.
The context API uses `values.federalPriority` with nullable `federalSystem` and
`nationalSecuritySystem`, explicit `designation`, `reviewedAt` and `reference`.
Sources: [NIST IR 8547, final October 2026, section 4](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf),
[EO 14412, 22 June 2026, sections 2 and 4(b)](https://www.whitehouse.gov/presidential-actions/2026/06/securing-the-nation-against-advanced-cryptographic-attacks/),
and [OMB M-26-15, 24 June 2026, sections 1, 3.C.2 and 3.D](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf).
## DH and MQV key agreement
The **NIST SP 800-131A Rev. 2 DH/MQV key agreement** profile, version
`2019-03-21.1`, interprets [section 5 / Table 4 of the March 2019 final
publication](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
It separates finite-field DH/MQV from elliptic-curve ECDH/ECMQV and keeps
key agreement separate from signatures or RSA transport.
Review applicability before selecting this profile. A finite-field modulus below
2048 bits or subgroup order below 224 bits is disallowed. Elliptic-curve
assessment uses the subgroup order, not the field-size label. Known nonconforming
schemes are disallowed from January 1, 2021. Before that cutoff, unresolved
parameters still require review; no automatic approval is inferred.
Verified active TLS observations for the exact P-256, P-384 and P-521 groups
supply subgroup-order size. This does **not** establish full SP 800-56A scheme
conformance, key derivation, key generation, validation or approved module use.
Consequently these observations retain **unknown** conformance. An ingested
`keyAgreementConformance` label is ignored; this profile does not currently offer
a workspace review field to override that unknown. X25519/X448 order sizes and
finite-field parameters are not supplied by this adapter. Missing evidence stays
unknown, and a historical source finding does not establish PQC readiness.
The profile is available through the shared profile catalog, asset preview and
custom-profile source rules. Clone it for tenant-defined rules; a clone does not
change the immutable built-in or become official NIST guidance. Normalization
`qr-profile-facts/10` makes earlier current results stale; explicitly recalculate
after reviewing a preview. Historical results retain their original versions.
## Hash functions and their uses
Select **NIST SP 800-131A Rev. 2 hash functions**, version `2019-03-21.1`,
for the historical [section 9/Table 8 interpretation](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
The profile distinguishes signing, legacy signature verification and non-signature
applications. SHA-1 signing requires a specifically applicable NIST protocol
exception; unknown exception status stays unknown, and a claim requires review.
SHA-1 non-signature use needs evidence about collision-resistance requirements.
This is the 2019 source interpretation, not a substitute for later SHA-1 guidance.
Exact SHA-2 and SHA-3 algorithms receive an algorithm-suitability result, without
approving the containing signature, MAC, KDF or module. SHAKE XOFs are outside this
source mapping. TupleHash/ParallelHash require review of their SP 800-185 purpose
and output parameters. Missing context is never inferred from a name.
For verified active TLS 1.3 handshakes, exact ECDSA or RSA-PSS signature schemes
supply the signing hash. The cipher suite's hash does not prove which hash signed
the handshake. Passive, resumed, unverified and contradictory records are excluded;
EdDSA is not treated as a separate prehash. Certificate issuance, TLS 1.2 and
non-signature uses are not normalized by this adapter. User-ingested exception
labels cannot override the result; there is no workspace exception override here.
Clone the profile to use it in tenant-defined rules, preview the exact saved
version, then explicitly activate and recalculate. Normalization `qr-profile-facts/11`
makes older current results stale while preserving their historical outputs.
Numerical custom scores remain distinct from source-standard findings.
## Message authentication codes
**NIST SP 800-131A Rev. 2 message authentication codes**, version `2019-03-21.1`,
interprets [section 10/Table 9](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
Generation and verification are distinct. HMAC generation needs at least 112-bit
keys and an approved hash; shorter keys for verification require legacy-use review.
KMAC128/256 retain the table's 112-bit minimum for both purposes. CMAC/GMAC with
AES require an exact AES key size. Two-key TDEA CMAC generation is disallowed;
three-key generation is deprecated for existing applications through 2023 and
disallowed under the general guidance from 2024. TDEA verification requires
legacy-use review. Exceptions, tag lengths, nonce safety and module validation
remain separate from this historical algorithm/key-length mapping.
For a verified active TLS 1.2 CBC session, the exact selected suite supplies its
record HMAC and protocol-defined key length. These are not the AES encryption-key
length or the PRF hash. No secret MAC key is collected and key entropy is not
measured. Generation and verification are reported separately. Passive records,
TLS 1.3, AEAD tags, and unverified or inconsistent suite metadata cannot populate
this standalone-MAC mapping. CMAC/GMAC/KMAC usage is not inferred from labels.
Clone the built-in for tenant-defined rules, preview the saved version and explicitly
activate/recalculate. Normalization `qr-profile-facts/12` preserves historical
outputs while marking previous current results stale. A suitable HMAC alone does
not make a TLS 1.2 CBC deployment recommended or certify its entire channel.
## Random bit generation
Choose **NIST SP 800-131A Rev. 2 random bit generation**, version
`2019-03-21.1`, for the historical Section 4 / Table 3 transition mapping.
From an asset's profile preview, open **Review random generator implementation**.
An administrator or analyst can record the generator, relevant hash or AES key
size, review date and a reference identifying the exact implementation component
and version. Viewers can read the review. Save records an audited context revision
and preserves other asset context. Preview before explicitly recalculating a custom
profile; saving a review does not activate a profile or rewrite retained results.
The mapping distinguishes Hash_DRBG/HMAC_DRBG, AES and three-key TDEA CTR_DRBG,
and the withdrawn Dual_EC, FIPS 186-2, ANS X9.31 and ANS X9.62-1998 generators.
Missing parameters remain unknown; unlisted algorithms remain unassessed. A review
later than the assessment date cannot establish a historical result. Removing a
review restores unknown evidence while preserving history.
This is referenced human review, not automatically detected generator evidence.
A TLS handshake, cipher name or ingested approval label cannot establish a random
generator. The reference must identify the component being assessed; this single
review does not enumerate every generator on a host. Seed material, secret state,
entropy quality, reseeding, implementation conformance and FIPS module validation
are outside this algorithm-transition mapping. Never enter seeds or secrets.
The same `values.randomGeneration` context is available through the asset context
API, JavaScript/Python SDKs and OAuth MCP context tools. Normalization
`qr-profile-facts/13` includes referenced generator reviews; existing stored custom
results remain historical until explicit recalculation.
Source: [NIST SP 800-131A Rev. 2, Section 4 / Table 3, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
## Key wrapping and legacy unwrapping
Choose **NIST SP 800-131A Rev. 2 key wrapping**, version `2019-03-21.1`,
for Section 7 / Table 6. From an asset's profile preview, open **Review key wrapping
implementation**. Record the component/version and evidence reference, operation
(wrap or unwrap), cipher, method, AES key size or TDEA keying option, and review
date. Missing values remain unknown. Administrators and analysts can save an audited
review; viewers can read it. Save preserves other context. Removal preserves history.
Wrapping new keys differs from unwrapping legacy keys. The mapping distinguishes
two-key and three-key TDEA, the end-of-2023 transition, and AES KW/KWP/GCM/CCM.
Other compositions require review against SP 800-38F rather than a blanket failure.
A claimed post-2023 TDEA exception requires a specific NIST reference and remains
review-required; entering a reference does not grant approval. Unknown exception
status retains the general transition rule.
This review covers the component identified in the reference, not every key or
wrapping operation on a host. An encryption-at-rest flag, KMS inventory label or
strong AES size alone cannot prove a wrapping method. This mapping does not
validate authentication tags, nonce handling, key handling, usage limits, modules
or full implementation conformance. Never enter key material or secrets.
Use preview before explicit custom-profile activation and recalculation. Retained
results are historical; saving context does not overwrite them. API, both SDKs and
OAuth MCP use `values.keyWrapping` in the existing asset-context workflow.
Normalization `qr-profile-facts/14` includes the referenced review. Reviews later
than the assessment date cannot establish historical findings.
Source: [NIST SP 800-131A Rev. 2, Section 7 / Table 6, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
## Deriving keys from a cryptographic key
Choose **NIST SP 800-131A Rev. 2 key derivation**, version `2019-03-21.1`,
for the historical Section 8 / Table 7 mapping. Open **Review key derivation
implementation** from an asset's profile preview. Identify the reviewed component,
KDF construction, PRF, hash or block cipher, input key length, review date and
supporting reference. Input key length means the key-derivation key, not the output
length or an entropy estimate. Never enter key material, passwords or secrets.
The mapping evaluates historical SP 800-108 HMAC/CMAC use, the 112-bit input-key
minimum, AES sizes, two-key TDEA and the three-key TDEA end-of-2023 transition.
Password-based KDFs, HKDF, unknown constructions and later algorithms are not
silently approved by this mapping. Unknown inputs remain unknown; out-of-scope
constructions remain unassessed. A claimed NIST exception requires a specific
reference and remains review-required, rather than granting automatic approval.
Administrators and analysts can save and remove referenced reviews; viewers can
read them. Context changes retain audit history and preserve other context.
Preview before explicitly activating or recalculating custom scores. Saving a
review does not replace historical results. A review later than the assessment
date cannot establish an earlier result.
This is human-reviewed evidence for the identified component, not automatic KDF
identification or coverage of every derivation on a host. TLS cipher names do not
establish this construction. Context/domain separation, entropy, key handling,
TDEA volume limits, implementation conformance and modules require separate
assessment. Algorithm suitability is not whole-standard compliance.
The existing asset-context API, both SDKs and OAuth MCP accept
`values.keyDerivation`; normalization `qr-profile-facts/15` includes this review.
Source: [NIST SP 800-131A Rev. 2, Section 8 / Table 7, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf).
## Draft hash-transition preview
The **NIST SP 800-131A Rev. 3 draft hash transitions** profile (`2024-10-21.1`)
is separate from the final Rev. 2 hash profile and the original ECB draft preview.
Select the exact profile version and explicitly opt into draft guidance before
previewing or cloning it. Findings remain draft proposals, not enacted requirements.
The issuing document is the October 21, 2024 initial public draft; no effective
date is asserted for this proposal.
Section 11 distinguishes applying new protection from processing previously
protected information. SHA-1 signature generation and legacy verification are
separate. The proposed SHA-1 non-signature and 224-bit hash transitions change at
2031-01-01, with legacy processing distinct from new protection. Missing usage
direction stays unknown. SHAKE is outside this hash mapping; TupleHash and
ParallelHash require application and output-parameter review.
Existing verified TLS signature-hash evidence can be previewed directly. A
negotiated cipher's transcript hash is not treated as a signature hash. No new
non-signature evidence adapter is claimed: other unmapped usage remains unknown.
Custom derivatives retain draft source provenance, numerical scores stay separate
from source findings, and activation/recalculation remains explicit. Existing
final versions and retained results are unchanged. API, SDKs and OAuth MCP require
`allowDraft: true` in the exact source selection.
Source: [NIST SP 800-131A Rev. 3 initial public draft, Section 11, printed pages 28-29](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
The hash table is captioned Table 12 but referenced as Table 13 in the text and
contents; section and page citations resolve that inconsistency.
### Draft random-generator transitions
The opt-in `nist-131a-r3-random-generation-preview / 2024-10-21.1` profile
uses the existing **Random generation review** for a referenced implementation.
It maps [the October 2024 initial draft, Section 5.1 / Table 4](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
This is proposed guidance, with no enacted effective date. Hash_DRBG/HMAC_DRBG
using SHA-1 or a 224-bit hash is proposed deprecated through 2030 and disallowed
from 2031-01-01; CTR_DRBG using TDEA is proposed disallowed. Supported stronger
hashes and AES parameters produce an algorithm-only result, not validation.
Choose the draft explicitly before previewing or cloning it. Missing generator,
primitive or AES key size stays unknown. A review dated after the assessment
cannot establish earlier implementation facts. Entropy sources, seeds, reseeding,
RBG constructions and module validation require separate evidence. Unmapped
historical generators are not assessed by this draft table; use the separate
final Rev. 2 profile for its withdrawn-generator mapping.
### Draft signature transitions
`nist-131a-r3-signatures-preview / 2024-10-21.1` is an opt-in interpretation of
[Section 3/Table 3 of the October 2024 initial draft](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
It separates signature generation from legacy verification. Proposed changes are
not enacted deadlines and do not alter the immutable final Rev. 2 profile.
The profile evaluates RSA/ECDSA parameter boundaries, the proposed 2031 signing
transition, and DSA/ASC X9.31 generation retirement. RSA needs its signature scheme;
a key size alone cannot identify it. Legacy verification requires eligibility
review. EdDSA and PQC algorithm names require approved-curve/parameter and
implementation review. A no-finding parameter result does not establish hash,
curve, key-generation or module approval. Missing evidence stays unknown.
Stored verified ECDSA handshake evidence can supply the signature's subgroup
order; this does not establish certificate-signing or key-exchange behavior.
RSA-PSS scheme and modulus size can be mapped when the verified TLS handshake
and matching leaf arrive in the same ingestion batch. The binding pins both
evidence records; names and labels cannot supply a missing size. Older unbound
observations need a fresh scan. EdDSA/PQC parameter approval remains a separate
coverage gap, not an assurance that those assets are compliant.
### RSA signing-key evidence
Normalization `qr-profile-facts/17` recognizes the six TLS 1.3 RSA-PSS schemes.
For modulus size, ingestion requires a unique matching leaf from the same batch,
with matching endpoint, source, fingerprint, leaf position and public-key OID.
The binding stores both immutable evidence IDs. Later certificate inventory
changes do not rewrite previous scoring facts. A new unbound endpoint observation
removes the current binding while historical results retain their original facts.
Missing, ambiguous or mismatched evidence leaves size unknown. This does not
verify certificate issuance signatures, parameter policy beyond the selected
profile, implementation conformance or module approval.
For QUIC, binding requires its validated certificate path, matching scanner
version, leaf position zero and observed endpoint. TCP presented-chain metadata
cannot substitute for QUIC path validation. The same pinned evidence and
historical-result rules apply; resumed or incomplete handshakes remain unassessed.
### Final EdDSA named parameters
`nist-fips1865-eddsa-parameters / 2023-02-03.1` maps the exact Ed25519 and Ed448
parameter identities in [FIPS 186-5 Section 7.1](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf).
It is a separate final-source interpretation; it does not change the existing
SP800-131A draft profile or introduce a migration deadline. A verified TLS/QUIC
CertificateVerify scheme can establish the named algorithm; an asset label alone
cannot. Generic EdDSA remains unknown, and prehash variants are outside this
mapping. A conflicting strength value requires review.
A no-finding result concerns named parameters only. It does not validate actual
hash operations, key generation, encoding checks, side-channel resistance or a
FIPS module. Numerical risk scores and whole-standard compliance remain separate.
### Final ML-KEM named parameters
Select **FIPS 203 ML-KEM named parameters** to assess exact ML-KEM-512,
ML-KEM-768 and ML-KEM-1024 identities from completed, verified TLS 1.3 or
supported QUIC hybrid handshakes. The final source was published and became
effective on August 13, 2024. Applicability must be explicitly selected.
For hybrid groups, the finding concerns the ML-KEM component only. It does not
approve the classical component, combiner, protocol, random generator, input
validation or cryptographic module. Security categories are not converted to
classical bit-strength scores. Certificate declarations, passive offers, resumed
sessions, generic names and mismatched evidence do not establish this usage.
Pre-standard Kyber names are not treated as final ML-KEM parameters.
Clone this profile to create a labeled tenant-defined derivative, preview stored
assets, then explicitly activate and recalculate. Results retain their exact
profile and normalization versions in inventory, dashboards, reports and CBOM.
The same version is available through the API, SDKs and OAuth MCP. Existing
historical assessments remain unchanged until a new recalculation is requested.
Sources: [FIPS 203 Section 8, Tables 2 and 3](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf),
[IANA Supported Groups](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml),
and [NIST potential updates](https://csrc.nist.gov/files/pubs/fips/203/final/docs/fips-203-potential-updates.xlsx).
The reviewed potential corrections concern algorithm comments and do not change
the named parameter table; they are not an enacted replacement publication.
### Final ML-DSA named parameters
Select **FIPS 204 ML-DSA named parameters** for exact ML-DSA-44, ML-DSA-65
and ML-DSA-87 identities from completed, verified TLS 1.3 signatures. This final
source was published and became effective on August 13, 2024; applicability must
be explicitly selected. The finding concerns the named pure signature parameter
set. Pre-standard Dilithium, prehash constructions, certificate declarations,
passive observations and resumed sessions do not establish this signature use.
A named-parameter finding does not validate context handling, randomness, key
generation, input checks, implementation or cryptographic module certification.
PQC security categories are not converted into classical bit-strength scores.
Clone the built-in to create a tenant-defined derivative, preview stored assets,
and explicitly activate/recalculate. Historical results retain their original
profile and normalization versions; API, SDK and OAuth MCP use the same version.
Sources: [FIPS 204 Section 4, Table 1](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf),
[IANA SignatureScheme registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml),
and [NIST potential updates](https://csrc.nist.gov/files/pubs/fips/204/final/docs/fips-204-potential-updates.xlsx).
The reviewed corrections include implementation text and signing-loop estimates;
they do not replace the named parameter identities or constitute an official revision.
### Final SLH-DSA named parameters
Select **FIPS 205 SLH-DSA named parameters** to recognize the twelve named
parameter sets in Section 11 / Table 2. The final standard was published and became
effective on August 13, 2024; select applicability explicitly. QScan maps existing
validated certificate public-key encodings to **declared SLH-DSA certificate key
parameters**. This is a declaration assessment, not a completed signature scan.
The finding does not prove runtime use, signature validity, certificate trust,
private-key possession, message limits, context handling, randomness or module
certification. Other use-based profiles leave this declaration unassessed.
Generic SLH-DSA names stay unknown; prehash identifiers, pre-standard SPHINCS+
and unrecognized parameter variants remain outside this mapping. Security
categories are not converted into classical bit-strength scores.
Clone the built-in for a tenant-defined derivative, preview stored assets, then
explicitly activate and recalculate. Reports, inventory, dashboard, CBOM, APIs,
SDKs and OAuth MCP retain the declaration scope and exact profile/normalization
versions. Previous historical results are retained when recalculating.
Sources: [FIPS 205 Section 11, Table 2](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.205.pdf)
and [RFC 9909 Sections 3 and 5, December 2025](https://www.rfc-editor.org/rfc/rfc9909.html).
## NIST TLS 1.3 cipher selection
Choose **NIST SP 800-52 Rev. 2 TLS 1.3 cipher selection** in the risk-profile
selector, or clone it to create a tenant-defined derivative. Set applicability
explicitly for your federal TLS environment; location or tenant name does not
establish applicability. Preview against workspace assets before activation and
request recalculation to retain the selected version and evidence in results.
The immutable `nist-80052r2-tls13-ciphers / 2019-08-29.1` mapping checks the
selected suite from admitted active TLS, QUIC TLS 1.3 and supported database-session
evidence. AES-128/256-GCM and AES-128-CCM/CCM-8 match the published list.
ChaCha20-Poly1305 is flagged as outside that list when the profile applies.
An unknown cipher, passive offer or failed handshake does not become a pass.
Earlier TLS versions are outside this mapping, not automatically prohibited.
This is the [final August 2019 guidance, sections 3.3.1 and 3.3.1.2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf).
The May 2026 review notice does not replace it. The separate TLS 1.3 support
profile retains its January 2024 deadline; that deadline is not applied to this
cipher-list check. A listed suite does not prove FIPS module validation, suitable
certificates or key exchange, disabled alternative suites, or whole-standard
compliance. Standards findings remain separate from custom numerical scores.
## Draft message-authentication transitions
The **NIST SP 800-131A Rev. 3 draft MAC transitions** profile is an opt-in
preview of Section 13 in the October 21, 2024 initial public draft. It is separate
from the immutable final Rev. 2 profile. Clone it for a tenant-defined policy,
preview an explicit assessment date, then publish and request recalculation.
A proposed deadline is not an enacted effective date.
The profile distinguishes HMAC, CMAC, GMAC and KMAC generation from verification.
After 2030 the draft disallows generating HMAC with SHA-1, SHA-224, SHA-512/224 or
SHA3-224, while verification is limited to legacy use. It also distinguishes the
112-to-127-bit key-strength transition from keys providing at least 128 bits,
and TDEA CMAC generation from legacy verification. KMAC verification with less
than 112-bit strength is disallowed in the draft; it is not given HMAC's legacy
exception.
**Key length is not key strength.** A TLS record suite identifies its HMAC key
length, but does not measure that key's entropy. QScan preserves this as unknown
where the draft requires strength evidence. It can still identify the post-2030
weak-hash cutoff because that proposal applies regardless of key strength.
A numerical custom score does not convert missing evidence into compliance.
Current collectors do not extract MAC keys or infer their entropy.
The mapping is `nist-131a-r3-macs-preview / 2024-10-21.1`, with the proposed
boundary `2031-01-01`. [Section 13, printed pages 31-34](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf)
contains the table captioned **Table 14** (referred to as Table 15 in the prose).
Tag lengths, nonce safety, approved key generation, legacy eligibility and module
validation remain outside this parameter/transition assessment.
## Bound RSA signature estimates and resumed sessions
Normalization `qr-profile-facts/21` uses a validated, same-ingestion-batch RSA
peer leaf to provide a conservative parameter-strength reference for an observed
TLS 1.3 signature. A certificate label alone cannot supply this fact. The stored
binding pins the endpoint evidence, certificate evidence and fingerprint; replacing
that evidence invalidates the old binding.
QScan uses the lower reference bucket from
[NIST SP 800-57 Part 1 Rev. 5, Table 2](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-57pt1r5.pdf):
2048 -> 112, 3072 -> 128, 7680 -> 192 and 15360 -> 256 bits. Intermediate modulus
sizes use the lower reference (for example, 4096 uses 128), not an interpolated
or measured strength. The reference and derivation method remain in historical
custom-profile facts. This is a QScan parameter estimate, not key-generation,
implementation, signature-hash, whole-channel or quantum-resistance validation.
Keys below 2048 bits remain outside this strength adapter and require separate
weak-parameter review.
The existing general and prioritized-federal IR 8547 profiles can assess those
bound RSA facts without changing their immutable versions. Ed25519/Ed448 remain
classical signature algorithms. ML-DSA/ML-KEM observations remain outside those
classical-only timelines; an SLH-DSA key declaration does not establish use.
Resumed or reused session metadata no longer supplies a fresh classical
key-agreement fact. Other admitted session facts remain available. Existing
results become stale under normalization21; preview and explicitly recalculate
to apply it. Historical results retain their original normalization version.
## Draft classical key-establishment transitions
Select **NIST SP 800-131A Rev. 3 draft classical key establishment** and explicitly
allow draft guidance. The immutable `nist-131a-r3-establishment-preview /
2024-10-21.1` mapping covers Sections 6 and 7 of the October 2024 initial draft,
separately from final Rev. 2 and IR 8547 profiles.
New DH/MQV or RSA establishment with nonconforming schemes is proposed as
disallowed. Legacy processing receives a review requirement; it is not silently
approved. Reviewed conforming 112-bit parameter use follows the proposed
January 1, 2031 deprecation boundary. RSA signatures are not RSA key transport,
and hybrid/PQC constructions remain outside this classical-only mapping.
Normalization `qr-profile-facts/22` distinguishes initiation from processing.
A verified RSA transport probe with explicit non-reuse establishes initiation.
Existing classical group observations only receive that operation when explicit
freshness evidence is available. Resumed/reused observations and absent operation
or conformance evidence do not establish approved new key establishment. No
certificate label supplies the missing modulus or scheme-conformance facts.
Clone the built-in to customize scoring, preview against stored evidence, then
publish and explicitly recalculate. Historical results retain their original
normalization and evidence; the operation is retained in new result snapshots.
The [draft Sections 6-7, printed pages 16-20](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf)
use table captions 5 and 6, while prose references 6 and 7. The legacy RSA
paragraph includes DH parameter text; QScan requires legacy eligibility review
rather than interpreting that inconsistency as automatic approval. This profile
does not validate key generation, domain parameters, KDFs or modules.
## Draft key-derivation transitions
Select **NIST SP 800-131A Rev. 3 draft key derivation**, version `2024-10-21.1`,
and explicitly allow drafts. The October 21, 2024 initial public draft is not
final guidance and has no enacted effective date. This mapping covers Section 9
primitive transitions, separately from immutable final Rev. 2.
From an asset's profile preview, open **Review key derivation**. Select the exact
construction: SP 800-56C one-step or two-step, SP 800-108, or SP 800-132. The form
shows the relevant primitive, hash, KMAC variant, AES input-key length, or
password-derivation parameters. Record a dated component-specific reference;
never enter passwords or keys. Generic HKDF and password-based labels do not
establish a specific construction and remain unassessed.
SHA-1, SHA-224, SHA-512/224 and SHA3-224 derivation is proposed as deprecated
through December 31, 2030. From January 1, 2031, new protection is proposed as
disallowed; processing previously protected information requires a separate
eligibility review. Missing operation evidence stays unknown. SP 800-108 TDEA
CMAC similarly distinguishes new derivation from legacy processing.
SP 800-132 reviews additionally record salt length, whether generation was
random, and iteration count. The draft's historical minima are 128 salt bits
and 1,000 iterations. **These are assessment thresholds, not recommended modern
password settings.** Missing parameters remain unknown; password length is not
a cryptographic input-key length. Named hash, AES or KMAC parameter matches are
only `no-mapped-finding`, not construction, entropy or module approval.
Save the review, preview the built-in or customized derivative, and explicitly
recalculate after activation. Saving alone does not recalculate. Context
revisions and reviewed parameters are preserved in historical results and are
available through the API, SDKs and OAuth MCP under workspace roles.
Source: [NIST SP 800-131A Rev. 3 initial public draft, Section 9.1-9.3,
printed pages 22-25](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
Captions are Tables 7-10; the draft prose references Tables 8-11. The profile
does not validate construction conformance, entropy, approved key establishment,
purpose separation, salt-generation quality or approved module operation.
## Draft key-wrapping transitions
Select **NIST SP 800-131A Rev. 3 draft key wrapping**, version `2024-10-21.1`,
and explicitly allow draft guidance. This maps Section 10 of the October 2024
initial public draft; it does not replace final Rev. 2 or establish an enacted
effective date.
Open **Review key wrapping** from an asset's profile preview. Select wrapping
or unwrapping, the cipher and exact method. Named AES KW, KWP, CCM and GCM
methods require an exact AES key size. Draft TDEA/TKW wrapping is proposed as
disallowed; unwrapping is labeled legacy use, never general approval. An exception
claimed for the older final profile does not override the draft rule.
For **Separate encryption and authentication**, record the AES encryption mode,
authentication family and whether applicable component specifications/parameters
were reviewed as approved for this use. Reference that review and its date.
Missing evidence remains unknown. Generic other methods remain unassessed;
component approval requirements not met receive a review requirement. Reviewed
combinations follow the proposed wrapping deprecation; unwrapping has no mapped
finding for the named, reviewed components. This does not certify composition
security, nonce/tag handling, key management, implementation or module conformance.
Saving creates an audited context revision without changing an active profile
or historical results. Preview the built-in or a tenant-defined clone, publish
and explicitly recalculate when ready. Historical results retain the component
review. API, JavaScript/Python SDKs and OAuth MCP use the same workspace roles
and context validation.
Source: [NIST SP 800-131A Rev. 3 initial public draft, Section 10, printed
pages 26-27](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
The caption is Table 11; the surrounding prose references Table 12. This is a
referenced implementation review, not automatic detection from encryption-at-rest
flags or a certificate label. Never enter keys or secrets in review fields.
## Draft SHAKE/XOF application review
Select **NIST SP 800-131A Rev. 3 draft XOF use**, version `2024-10-21.1`, and
explicitly allow drafts. Section 12 of the October 2024 initial public draft
conditions SHAKE128/SHAKE256 acceptability on use as specified in approved
cryptographic applications. The draft has no enacted effective date.
From an asset's profile preview, open **Review XOF application and parameters**.
Identify the function, exact application/specification and reviewed parameters.
For fixed output, record its length in bits; for application-defined output,
reference the specification's length handling. Missing length evidence is distinct
from application-defined output. **Output length is not security strength.** QScan
does not invent a universal permitted length or treat a SHAKE name as approval.
Record whether the application is approved for this use and whether the component
parameters conform to its specification. These are reviewer assertions with dated
references, not scanner-certified facts. Missing application/parameter evidence
stays unknown. A reported unmet approval or parameter condition requires review.
A complete reviewed match returns `no-mapped-finding`, not whole-application,
implementation or module certification. Other XOF functions remain unassessed.
Saving preserves other business context and creates an audit revision. Preview
before activating a profile or explicitly recalculating a customized derivative.
Normalization `qr-profile-facts/23` adds this separate reviewed XOF fact; previous
results become stale and retain their original evidence/version until explicit
recalculation. New historical results retain application, parameter and output
review evidence. API, JavaScript/Python SDKs and OAuth MCP enforce the same roles
and context validation. Never enter XOF inputs, keys or secrets.
Source: [NIST SP 800-131A Rev. 3 initial public draft, Section 12, printed
page 30](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf).
The caption is Table 13; the prose references Table 14. Fixed-length hash mappings
remain separate and immutable. Ingested labels and embedded SHAKE use inside a
larger algorithm do not automatically create this reviewed application fact.
## Federal server protocol configuration
Choose **NIST SP 800-52 Rev. 2 server protocol configuration**, version
`2019-08-29.1`, with explicit applicability. This final-source mapping assesses
Section 3.1 and Appendix F through a dated server configuration review, separately
from the immutable observed-session TLS 1.3 support and cipher-selection profiles.
The May 2026 review notice does not supersede the August 2019 final publication.
Open **Review federal server protocol configuration** from the asset preview.
Record the audience and each protocol state; unknown is distinct from disabled.
Government-only includes government employees and contractors working on behalf
of government, including personal devices and telework. Internet accessibility
alone does not make an application citizen/business-facing.
The profile produces seven independent findings:
- TLS 1.3 support is mandatory from January 1, 2024. Before then this mandatory
support finding is unassessed; it does not assess the earlier configuration
recommendation.
- TLS 1.2 configuration is assessed separately. Its disablement requires TLS 1.3
support and a determination that TLS 1.2 is unnecessary for interoperability.
- Government-only TLS 1.0 is prohibited; TLS 1.1 is discouraged and requires review.
- Public-facing legacy TLS requires a case-specific necessity assessment and
accepted risks/business implications. A complete referenced review supports only
this conditional NIST mapping; it does not override stricter RFC 8996 findings.
- SSL 2.0 and SSL 3.0 are independently prohibited for both audiences.
- Incorrect protocol-version negotiation is prohibited.
The interoperability sections appear only when relevant. Reference the exact
configuration, compatibility assessment and accepted risk. Save, preview, then
explicitly activate/recalculate a customized derivative when ready. Saving alone
neither activates a profile nor rewrites historical results. Normalization
`qr-profile-facts/24` adds a separate reviewed server fact; existing results remain
historical and become stale until explicit recalculation. New snapshots preserve
the audience and configuration review. API, SDKs and OAuth MCP use the same
validated context and workspace roles.
A negotiated TLS 1.3 session does not establish that older versions are disabled,
that negotiation is implemented correctly, or that a legacy exception is valid.
This review does not certify cipher configuration, certificates, extensions,
cryptographic modules, client behavior or whole-standard compliance.
Sources: [NIST SP 800-52 Rev. 2, Section 3.1 (printed pages 8-9) and
Appendix F (page 55)](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf),
[final publication and review notice](https://csrc.nist.gov/pubs/sp/800/52/r2/final).
## TLS 1.2 and earlier selected cipher suites
Select **NIST SP 800-52 Rev. 2 TLS 1.2 and earlier cipher selection**, version
`2019-08-29.1`, with explicit federal applicability. This separate immutable
mapping covers the 56 general-use suites in Section 3.3.1.1, 24 conditional PSK
suites in Appendix C and 10 RSA-transport suites in Appendix D.
A recognized general-use selection returns `no-mapped-finding` for suite membership
only. Known excluded suites, including 3DES, RC4, anonymous authentication and
ChaCha20 suites, are distinguished from unrecognized identities. An unrecognized
label is unassessed. TLS 1.2-only suites paired with an earlier protocol remain
unassessed as inconsistent evidence. Earlier protocol permission is a separate
assessment; a listed CBC suite does not make TLS 1.0 acceptable under every profile.
PSK entries do not establish adequate key strength, secure distribution, same-
organization scope or appropriate closed-environment use. Those conditions remain
unknown. PSK use with TLS 1.0/1.1 is prohibited by this source. RSA key transport is
marked deprecated, with its transition conditions unassessed. This mapping does
not invent a retirement date or override the separate key-establishment profiles.
Existing verified session evidence is used; passive offers and incomplete handshakes
are not promoted into proven use. Stored evidence coverage follows the existing
collector and exact suite catalog. The complete source lists are implemented in
the evaluator, but PSK handshakes are not claimed as live-qualified collector paths.
No enabled-suite inventory, certificate validity, issuer-signature strength,
module validation or whole-standard compliance is inferred from membership.
Clone the profile to customize numerical scoring, preview retained evidence, then
publish and explicitly recalculate. SDKs, OAuth MCP, historical reports, inventory,
dashboards and CBOM retain the source mapping independently of tenant-defined scores.
Source: [NIST SP 800-52 Rev. 2, Section 3.3.1.1 (printed pages 15-19),
Appendix C (49-50) and Appendix D (51-52)](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf).
The existing TLS 1.3 cipher and server-configuration profiles remain unchanged.
## Server certificate declarations and NIST SP 800-52
Two immutable final profiles use version `2019-08-29.1`:
- **Server certificate requirements** (`nist-80052r2-server-certificate`)
maps Section 3.2.1's mandatory version and minimum public-key/signature
strength requirements. Existing RSA modulus and recognized NIST curve
declarations support parameter checks. Missing version and issuer-strength
evidence remain unknown, even when the TLS connection succeeded.
- **Recommended server certificate profile**
(`nist-80052r2-server-certificate-table`) maps the available Table 3-1
declarations. Mark this profile applicable only when adopting the table in
the absence of agency-specific certificate-profile requirements. Validity,
key usage, EKU, preferred curves and listed signature-algorithm declarations
produce separate findings. Recommendation deviations require review; they
are not universal prohibitions. Validity uses three calendar years, including
leap-day handling.
The [final publication, Section 3.2.1 and Table 3-1](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf)
provides the authority. A parameter check is not a key-generation, cryptographic
module or whole-standard certification. The separate issuer-strength finding
stays unknown: a declared leaf signature hash does not establish issuer key
strength or verify its signature. PSS parameters are not inferred from its OID.
Open an asset's risk-profile preview, select the appropriate profile and set
applicability explicitly. Clone either profile to customize scoring; derivatives
remain tenant-defined. Preview, publish and explicitly recalculate to update
workspace results. Historical results retain the certificate declaration and
its endpoint/certificate evidence IDs. APIs, SDKs and OAuth MCP use the same
profile IDs and findings.
Normalization `qr-profile-facts/25` admits certificate declarations only when a
fresh active TCP or QUIC session has a unique matching server leaf in the same
submitted batch. Source, endpoint, fingerprint, detector version and chain role
must agree. A one-second timestamp tolerance accommodates collector ordering;
both timestamps are retained. Passive or resumed sessions, ambiguous leaves and
stale links are excluded. A later scan without the matching leaf clears the
current link while preserving the historical evidence. Existing assets need a
new complete scan or an explicit reingestion of retained evidence to gain this
link; reingestion does not claim a fresh scan.
The current mapping does not collect certificate version, SAN/AIA content,
serial uniqueness, DN encodings, AKI/SKI relationships or every optional
extension. It does not prove client-certificate revocation checking, certificate
path validity, all enabled server settings, TLS-extension behavior, client
requirements or FIPS module validation. Unsupported requirements remain outside
coverage; missing mapped evidence remains unknown. Do not interpret a listed
signature declaration, successful TLS session or numerical score as compliance.
### Recalculate after susceptibility normalization changes
In the active custom profile, preview representative assets before requesting
recalculation. A hybrid connection may now show observed susceptibility because
of its classical authentication, while the standards findings for its ML-KEM
component remain unchanged. Review the contributing cryptographic roles in the
retained result facts. Missing positive-weight dimensions still yield an
incomplete result and a score range, not an invented total. This change does
not infer business criticality, confidentiality horizon, migration effort,
exposure, deadlines or dependency completeness from scanner defaults.
## Review dependency completeness for custom scoring
Open an asset and choose **Review migration dependency evidence** in its Custom
profile assessment area. The full-page review records inventory completeness,
a direct migration dependency count, scope, evidence reference and review date.
Administrators and analysts can save it; viewers can read it. Saving preserves
other context and records an audit revision. A conflict requires reloading and
reviewing the latest evidence before saving again.
Count unique direct dependencies requiring coordinated migration within the
recorded boundary. Scanner certificate-chain relationships or a default zero
do not establish this count. A **complete** review requires an explicit count,
including zero when none exist within that scope. **Partial** inventories may
record an observed count but leave the scoring dimension unknown. **Not
established** records no count. Removing a review restores unknown evidence
and preserves history. Reviews dated after the assessment remain unknown.
Custom facts `qr-custom-profile-facts/4` maps a complete referenced count to
`min(100, count * 10)`. This is product-defined prioritization, not a standard's
compliance score or proof of whole-enterprise completeness. Reviewed zero maps
to zero; missing evidence does not. The result retains review scope, reference,
date and context revision. Together with supported cryptographic evidence and
reviewed confidentiality, criticality, exposure, deadline and migration effort,
all seven dimensions can now produce a complete custom score. Any missing
positive-weight dimension still produces an incomplete score and range.
Preview before explicitly recalculating the active profile. Older custom-facts
versions and changed context mark current results stale; historical results are
not rewritten. Reports, inventory, dashboards and CBOM retain the selected
profile/run and the reviewed evidence used for that calculation.
The existing asset-context API accepts `values.dependencyReview` with
`completeness` (`unknown`, `partial`, `complete`), nullable integer `count`
(0-1,000,000), nonempty `scope` and `reference`, and a UTC `reviewedAt` date.
Use the current context revision and evidence ID when saving. JavaScript/Python
SDK asset-context methods and OAuth MCP `asset_context` / `asset_context_update`
use this same tenant-scoped contract and role enforcement.
## NSA CNSA 2.0 reviewed applications and transition
The three immutable `2026-10.1` profiles use the final [NSA CNSA 2.0 FAQ,
October 2026 version 2.2](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0__FAQ_v2.2.PDF).
Publication precision is a month; no exact publication day is invented. These
mappings principally concern explicitly applicable National Security Systems
(NSS). They do not impose NSS requirements on unrelated workspaces, determine
legal compliance, or replace validation by the relevant authority.
- **Algorithm selection** maps admitted algorithm/use evidence to the FAQ's
selected general-purpose parameters. A matching ML-KEM component, AES key or
signature does not establish approved protocol composition, product validation
or whole-system quantum resistance. Approval remains a separate unknown.
- **Reviewed NSS transition** separates new acquisition from January 1, 2027,
service capability by December 31, 2030 and actual use by December 31, 2031.
End-of-year deadlines become overdue on the following UTC day. Before a
deadline, its finding is not assessed, rather than a readiness pass.
- **Software and integrity application review** distinguishes LMS/XMSS from
HSS/XMSSMT, pure ML-DSA-87 from other variants, NSS signers from external
commercial signers, and signature verification from private-state management.
The SHA-3 allowance for internal hardware integrity does not apply to virtual
roots of trust, general-purpose hashing or arbitrary KDF/DRBG substitutions.
From an asset's **Risk profile preview**, open **Review CNSA NSS acquisition and
transition** or **Review CNSA signing and integrity application**. Each opens a
full page. Administrators and analysts can save; viewers can inspect. Record a
specific inventory/application boundary, evidence references and UTC review date.
Do not paste credentials or confidential document contents. One application
review describes one explicit boundary; represent distinct applications with
separate inventory assets.
Transition findings require a complete reviewed inventory for the relevant
scope. A documented exception records its exact milestones, authority reference
and validity; it remains review-required and never automatically becomes an NSA
waiver. Unknown or expired exception evidence does not silently waive a deadline.
A reference to validation records is a reviewed assertion, not verification of
an authority's certificate by QScan.
For stateful signing, review the exact SP 800-208 parameters, signing-process NSS
boundary, applicable hardware validation and state/backup reuse prevention.
Verification does not manage private signing state. Conditional sections clear
inapplicable fields when saving a different application. Prescribed internal hash
components require the exact approving algorithm standard and section; merely
being self-contained does not establish approval.
Saving uses both the current context revision and evidence ID, preserves other
business context and records audit history. Removing a review restores unknown
current context. Preview before explicitly recalculating a selected published
custom profile. Clones are tenant-defined derivatives, not official NSA standards.
Numerical scores stay separate from these source findings.
The existing asset-context API accepts `values.cnsaTransition` and `values.cnsaUse`;
use the generated OpenAPI schemas for enums and nullable evidence fields. The
JavaScript/Python SDK context methods and OAuth MCP `asset_context` and
`asset_context_update` use the same tenant-scoped contract. Normalization
`qr-profile-facts/26` admits these referenced reviews separately from scanner
observations. Older results become stale until explicitly recalculated; historical
results and evidence are not rewritten.
## Selectable profile reference
This reference is generated from the same immutable profile catalog used by the
workspace API. It contains **39 selectable mappings**. A final source does
not make the product mapping a certification. Review applicability explicitly;
missing evidence remains unknown. Draft mappings require explicit opt-in.
Customized derivatives remain tenant-defined, regardless of their names.
Publication and effective dates retain the recorded source precision. A missing
effective date does not mean a publication has no deadlines. The individual
workflow sections above explain evidence collection and supported decisions.
QScan cryptographic transition baseline
- **Identifier:** qscan-baseline
- **Mapping version:** 2026-11-01.1
- **Publication status:** Product-defined guidance
- **Published:** 2026-11-01
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-01
**Applicability and limits:** Observed algorithm inventory and quantum-transition review; not certification.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** QR-ALGORITHM-TRANSITION
**Versioned citations**
Product-defined guidance; no external issuing authority is claimed.
NIST IR 8547 transition guidance
- **Identifier:** nist-ir-8547
- **Mapping version:** 2026-10-27.1
- **Publication status:** Final source
- **Published:** 2026-10-27
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-01
**Applicability and limits:** General transition timetable for the algorithm families and strengths in Tables 2 and 4. Earlier federal high-sensitivity deadlines require a separate assessment.
**Required facts:** observed, purpose, algorithm, classicalSecurityBits
**Rule identifiers:** NIST8547-GENERAL-TRANSITION
**Versioned citations**
- [NIST IR 8547 (October 2026)](https://csrc.nist.gov/pubs/ir/8547/final) — 4.1.1 / Table 2, 4.1.2 / Table 4
NIST SP 800-131A Rev. 3 draft preview
- **Identifier:** nist-131a-r3-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-01
**Applicability and limits:** Preview of the ECB confidentiality proposal only; not the full draft and not an enacted requirement.
**Required facts:** observed, purpose, algorithm, mode
**Rule identifiers:** NIST131AR3-DRAFT-ECB-CONFIDENTIALITY
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft](https://csrc.nist.gov/pubs/sp/800/131/a/r3/ipd) — 2.2 / Table 2
NSA CNSA 2.0 software and integrity application review (FAQ v2.2)
- **Identifier:** nsa-cnsa2-application-review
- **Mapping version:** 2026-10.1
- **Publication status:** Final source
- **Published:** 2026-10
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Referenced software/firmware signing and verification, internal hardware integrity and restricted hash use. Distinguishes NSS signing processes from external commercial signers. Reviewed assertions are not scanner observations or NSA/NIST certification. Whole-system completeness, hybrid approval and transition deadlines remain separate.
**Required facts:** observed, purpose, cnsaUse
**Rule identifiers:** CNSA2-APPLICATION-ALGORITHM, CNSA2-APPLICATION-VALIDATION, CNSA2-STATE-CUSTODY
**Versioned citations**
- [NSA CNSA 2.0 FAQ, October 2026 version 2.2; U/OO/6072712-26, PP-26-3194](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0__FAQ_v2.2.PDF) — 7-8: algorithms and application restrictions, 11-12: LMS/XMSS, validation, signer boundaries and state, 13-15: hardware integrity, hash restrictions and pure ML-DSA
NSA CNSA 2.0 reviewed NSS transition (FAQ v2.2)
- **Identifier:** nsa-cnsa2-transition-review
- **Mapping version:** 2026-10.1
- **Publication status:** Final source
- **Published:** 2026-10
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Referenced NSS review of acquisition from January 1 2027, capability by December 31 2030, and actual use by December 31 2031. End-of-year deadlines become overdue the following UTC day. Missing whole-scope inventory remains unknown. Claimed/documented exceptions require case-specific review; they never imply an NSA waiver or automatic compliance. Separate from observed component algorithm selection and numerical scores.
**Required facts:** observed, purpose, cnsaTransition
**Rule identifiers:** CNSA2-NEW-ACQUISITION, CNSA2-SERVICE-CAPABILITY, CNSA2-ACTUAL-USE, CNSA2-VALIDATION
**Versioned citations**
- [NSA CNSA 2.0 FAQ, October 2026 version 2.2; U/OO/6072712-26, PP-26-3194](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0__FAQ_v2.2.PDF) — 6: NSS applicability, 17-20, 22: acquisition, capability and actual use milestones, 25: product/solution validation, 28-30: approved composition and protocol
NSA CNSA 2.0 algorithm selection (FAQ v2.2)
- **Identifier:** nsa-cnsa2-algorithm-selection
- **Mapping version:** 2026-10.1
- **Publication status:** Final source
- **Published:** 2026-10
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** October 2026 FAQ v2.2 general-purpose algorithm/parameter selection for explicitly applicable NSS use. Month-precision publication. Component observations do not establish approved hybrid composition, NIAP/CSfC/FIPS validation, full-system quantum resistance, acquisition eligibility or transition completion. Software/firmware-specific LMS/XMSS and internal hardware SHA-3 require separate use-case evidence. No numerical compliance score or automatic migration deadline.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** CNSA2-ALGORITHM-SELECTION, CNSA2-APPROVED-USE
**Versioned citations**
- [NSA CNSA 2.0 FAQ, October 2026 version 2.2; U/OO/6072712-26, PP-26-3194](https://media.defense.gov/2022/Sep/07/2003071836/-1/-1/0/CSI_CNSA_2.0__FAQ_v2.2.PDF) — 6-8: applicability and algorithm table, 10-16: standardized identities and application restrictions, 25, 27-30: validation and hybrid approval
NIST SP 800-52 Rev. 2 server certificate requirements
- **Identifier:** nist-80052r2-server-certificate
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 3.2.1 mandatory X.509 version and 112-bit public-key/signature requirements. Bound server-leaf declarations only. Missing version and issuer-key/signature verification remain unknown. Parameter sizes do not certify key generation, trust, revocation, FIPS modules or whole-standard compliance.
**Required facts:** observed, purpose, certificateDeclaration
**Rule identifiers:** NIST52R2-CERT-X509V3, NIST52R2-CERT-KEY-STRENGTH, NIST52R2-CERT-ISSUER-STRENGTH
**Versioned citations**
- [NIST SP 800-52 Rev. 2, August 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.2.1 and Table 3-1, printed pages 10-12
NIST SP 800-52 Rev. 2 recommended server certificate profile
- **Identifier:** nist-80052r2-server-certificate-table
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Conditional Table 3-1 recommendations. Select applicable only when adopting this table in the absence of agency-specific certificate-profile requirements. Deviations require review, not a universal prohibition. Declaration checks do not prove issuer strength, certificate signature validity, trust or complete extension conformance. SAN/AIA details are not collected by the current adapter.
**Required facts:** observed, purpose, certificateDeclaration
**Rule identifiers:** NIST52R2-CERT-VALIDITY, NIST52R2-CERT-KEY-USAGE, NIST52R2-CERT-EKU, NIST52R2-CERT-CURVE, NIST52R2-CERT-SIGNATURE-DECLARATION, NIST52R2-CERT-SAN, NIST52R2-CERT-AIA
**Versioned citations**
- [NIST SP 800-52 Rev. 2, August 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.2.1 and Table 3-1, printed pages 10-12
NIST SP 800-52 Rev. 2 TLS 1.2 and earlier cipher selection
- **Identifier:** nist-80052r2-tls12-ciphers
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section3.3.1.1 and AppendicesC/D exact selected-suite mapping. General suites, conditional PSK use and deprecated RSA transport are distinct. Does not establish enabled-suite completeness, protocol permission, certificate/signature validity, key strength, PSK distribution/environment, transition necessity, implementation or module conformance. No universal 2024 cipher-rule deadline.
**Required facts:** observed, purpose, protocol, cipherSuite
**Rule identifiers:** NIST52R2-TLS12-CIPHER-SELECTION
**Versioned citations**
- [NIST SP 800-52 Rev.2 final, August2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.3.1 and 3.3.1.1, printed pages15-19, AppendixC, pages49-50, AppendixD, pages51-52
NIST SP 800-52 Rev. 2 server protocol configuration
- **Identifier:** nist-80052r2-server-protocol-configuration
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section3.1 and AppendixF reviewed federal server protocol configuration and audience-specific interoperability conditions. Separate from observed-session support and cipher profiles. Does not establish certificates, cipher configuration, FIPS modules, extensions, client requirements or whole-standard compliance. The 2026 review notice does not replace this final revision.
**Required facts:** observed, purpose, nist52Server
**Rule identifiers:** NIST52R2-SERVER-TLS13, NIST52R2-SERVER-TLS12, NIST52R2-SERVER-TLS10, NIST52R2-SERVER-TLS11, NIST52R2-SERVER-SSL2, NIST52R2-SERVER-SSL3, NIST52R2-SERVER-NEGOTIATION
**Versioned citations**
- [NIST SP 800-52 Rev.2 final, August2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.1, printed pages8-9, AppendixF, printed page55
NIST SP 800-131A Rev. 3 draft XOF use
- **Identifier:** nist-131a-r3-xof-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial draft Section12 SHAKE128/SHAKE256 in approved cryptographic applications. Referenced application and parameter review; a function name or output length alone does not establish approval, security strength, implementation or module conformance.
**Required facts:** observed, purpose, xof
**Rule identifiers:** NIST131AR3-DRAFT-XOF-USE
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 12, printed page30, Caption Table13 (prose references Table14)
NIST SP 800-131A Rev. 3 draft key wrapping
- **Identifier:** nist-131a-r3-wrapping-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial draft Section 10 wrapping/unwrapping and separate AES encryption/authentication transitions. Referenced component review, not inferred from encryption-at-rest flags. Named parameters and reviewed component approvals do not certify composition security, key handling, nonce/tag requirements, implementation conformance or modules.
**Required facts:** observed, purpose, keyWrapping
**Rule identifiers:** NIST131AR3-DRAFT-KEY-WRAPPING
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 10, printed pages 26-27, Caption Table 11 (prose references Table 12)
NIST SP 800-131A Rev. 3 draft key derivation
- **Identifier:** nist-131a-r3-derivation-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial public draft Section 9 one-step/two-step SP 800-56C, SP 800-108 and SP 800-132 primitive transitions. Referenced component review, not inferred from a TLS hash or password length. Does not establish construction conformance, key entropy, approved key establishment, purpose separation, salt-generation quality or module validation. Generic HKDF/password labels remain unassessed.
**Required facts:** observed, purpose, keyDerivation
**Rule identifiers:** NIST131AR3-DRAFT-KEY-DERIVATION
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 9.1-9.3, printed pages 22-25, Captions Tables 7-10 (prose references 8-11)
NIST SP 800-131A Rev. 3 draft classical key establishment
- **Identifier:** nist-131a-r3-establishment-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial public draft Sections 6/7 DH/MQV and RSA transitions. Explicit initiation versus processing; legacy processing requires separate eligibility review. Parameter sizes do not establish SP 800-56A/56B conformance, approved domain parameters, key derivation, key generation or module validation. Proposed dates are not enacted requirements; signatures and hybrid/PQC construction approval are outside this mapping.
**Required facts:** observed, purpose, algorithm, keyEstablishmentOperation, keyBits, subgroupOrderBits, classicalSecurityBits, keyAgreementConformance, rsaEstablishmentScheme
**Rule identifiers:** NIST131AR3-DRAFT-CLASSICAL-ESTABLISHMENT
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 6, printed pages 16-18 / caption Table 5, 7, printed pages 19-20 / caption Table 6, Prose table references are one higher than captions; legacy RSA paragraph contains DH parameter text
NIST SP 800-131A Rev. 3 draft MAC transitions
- **Identifier:** nist-131a-r3-macs-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial public draft Section 13 generation/verification transitions. Not enacted requirements. Key strength is distinct from key length; negotiated lengths do not establish entropy. Algorithm suitability does not establish key generation, tag lengths, nonce safety, usage limits, legacy eligibility or module validation.
**Required facts:** observed, purpose, algorithm, hashAlgorithm, macPrimitive, keyBits, macKeySecurityBits
**Rule identifiers:** NIST131AR3-DRAFT-MAC-TRANSITION
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 13, printed pages 31-34, Caption Table 14 (called Table 15 in prose), Footnotes 9-11
NIST SP 800-52 Rev. 2 TLS 1.3 cipher selection
- **Identifier:** nist-80052r2-tls13-ciphers
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Sections 3.3.1 and 3.3.1.2 selected TLS 1.3 cipher suite only. Explicit federal applicability is required. Does not establish disabled suites, certificate suitability, key establishment approval, FIPS module validation, client/server configuration completeness or whole-standard compliance. The 2024 TLS 1.3 support deadline is not a cipher-rule effective date. The 2026 review notice does not supersede this revision.
**Required facts:** observed, purpose, protocol, cipherSuite
**Rule identifiers:** NIST52R2-TLS13-CIPHER-SELECTION
**Versioned citations**
- [NIST SP 800-52 Rev. 2, August 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.3.1 / printed page 15, 3.3.1.2 / printed page 19
- [Final publication and review notice, checked November 3, 2026](https://csrc.nist.gov/pubs/sp/800/52/r2/final) — Document history: August 29, 2019, May 7, 2026 review notice
FIPS 205 SLH-DSA named parameters
- **Identifier:** nist-fips205-slhdsa-parameters
- **Mapping version:** 2024-08-13.1
- **Publication status:** Final source
- **Published:** 2024-08-13
- **Effective from:** 2024-08-13
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 11 / Table 2 named pure SLH-DSA parameter recognition. Certificate public-key declarations are explicitly separate from observed signature use. Does not establish signature validity, key possession, trust, message limits, context handling, randomness, implementation or module certification. Prehash constructions and pre-standard SPHINCS+ are outside this mapping. No migration deadline is introduced.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** FIPS205-SLHDSA-NAMED-PARAMETERS
**Versioned citations**
- [FIPS 205, August 13, 2024](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.205.pdf) — Announcement: applicability and effective date, 11 / Table 2, printed page 43
- [Final publication status, reviewed November 3, 2026](https://csrc.nist.gov/pubs/fips/205/final) — Final publication, August 13, 2024
FIPS 204 ML-DSA named parameters
- **Identifier:** nist-fips204-mldsa-parameters
- **Mapping version:** 2024-08-13.1
- **Publication status:** Final source
- **Published:** 2024-08-13
- **Effective from:** 2024-08-13
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 4 named pure ML-DSA-44/65/87 parameter recognition only. Does not validate implementation, context handling, randomness, key generation, input validation, module certification or whole-standard compliance. Prehash constructions and pre-standard Dilithium are outside this mapping. No migration deadline is introduced.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** FIPS204-MLDSA-NAMED-PARAMETERS
**Versioned citations**
- [FIPS 204, August 13, 2024](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.204.pdf) — Announcement: applicability and effective date, 4 / Table 1, printed page 15
- [Potential updates reviewed November 3, 2026](https://csrc.nist.gov/files/pubs/fips/204/final/docs/fips-204-potential-updates.xlsx) — Rows 16-27; implementation and editorial corrections do not change named parameter identities; not an official revision
FIPS 203 ML-KEM named parameters
- **Identifier:** nist-fips203-mlkem-parameters
- **Mapping version:** 2024-08-13.1
- **Publication status:** Final source
- **Published:** 2024-08-13
- **Effective from:** 2024-08-13
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 8 named ML-KEM parameter recognition only. Hybrid observations assess only the ML-KEM component, not the combiner, classical component or protocol approval. Does not validate implementation, key generation, randomness, input checks, module certification or whole-standard compliance. No migration deadline is introduced.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** FIPS203-MLKEM-NAMED-PARAMETERS
**Versioned citations**
- [FIPS 203, August 13, 2024](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf) — Announcement: applicability and effective date, 8 / Tables 2 and 3, printed pages 39-40
- [Potential updates reviewed November 3, 2026](https://csrc.nist.gov/files/pubs/fips/203/final/docs/fips-203-potential-updates.xlsx) — Rows 16-17: Appendix A and Section 5.3 comments; not an official revision
FIPS 186-5 EdDSA named parameters
- **Identifier:** nist-fips1865-eddsa-parameters
- **Mapping version:** 2023-02-03.1
- **Publication status:** Final source
- **Published:** 2023-02-03
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 7.1 named pure Ed25519/Ed448 parameter recognition only. Not implementation, hash-operation, key-generation, side-channel, module or whole-standard validation. Final-source interpretation is separate from the immutable SP800-131A draft. No PQC migration deadline is introduced.
**Required facts:** observed, purpose, algorithm
**Rule identifiers:** FIPS1865-EDDSA-NAMED-PARAMETERS
**Versioned citations**
- [FIPS 186-5, February 3, 2023](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.186-5.pdf) — 7.1, printed page 26
- [Publication status and May 12, 2025 potential-updates notice](https://csrc.nist.gov/pubs/fips/186-5/final) — Potential updates are not an enacted revision
- [Potential updates, reviewed November 3, 2026](https://csrc.nist.gov/files/pubs/fips/186-5/final/docs/fips186-5-potential-updates.xlsx) — Rows 16-19 concern A.3.3/B.2.3/B.2.4/B.10; no change to Section 7.1 named parameters
NIST SP 800-131A Rev. 3 draft signature transitions
- **Identifier:** nist-131a-r3-signatures-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial draft Section 3 / Table 3 parameter transitions, not enacted requirements. Algorithm parameters do not establish hash suitability, approved curves, legacy eligibility, key generation, module validation or whole-standard compliance. Post-quantum parameter-set approval requires separate review.
**Required facts:** observed, purpose, algorithm, keyBits, subgroupOrderBits, signatureScheme
**Rule identifiers:** NIST131AR3-DRAFT-SIGNATURE-TRANSITION
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 3 / Table 3, printed pages 8-12
NIST SP 800-131A Rev. 3 draft random generation
- **Identifier:** nist-131a-r3-random-generation-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial public draft Section 5.1 / Table 4 algorithm transitions using referenced implementation review. Not an enacted requirement or validation of entropy sources, seeds, reseeding, RBG constructions or modules. Final versions remain unchanged.
**Required facts:** observed, purpose, randomGeneration
**Rule identifiers:** NIST131AR3-DRAFT-RANDOM-GENERATION
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 5.1 / Table 4, printed page 14
NIST SP 800-131A Rev. 3 draft hash transitions
- **Identifier:** nist-131a-r3-hashes-preview
- **Mapping version:** 2024-10-21.1
- **Publication status:** Draft source — explicit opt-in required
- **Published:** 2024-10-21
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Initial public draft Section 11 hash transition preview, not an enacted requirement. Distinguishes applying protection from processing already-protected information. Does not establish whole application approval or SP 800-185 parameters. Existing final and ECB-only draft versions remain unchanged.
**Required facts:** observed, purpose, algorithm, hashUse, hashProtectionUse
**Rule identifiers:** NIST131AR3-DRAFT-HASH-TRANSITION
**Versioned citations**
- [NIST SP 800-131A Rev. 3 initial public draft, October 2024](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar3.ipd.pdf) — 11, printed pages 28-29, Hash approval table: caption Table 12; referenced as Table 13 in text and contents
NIST SP 800-131A Rev. 2 key derivation
- **Identifier:** nist-131a-r2-key-derivation
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Historical Section 8 / Table 7 SP 800-108 HMAC/CMAC key-derivation transition mapping. Input key length is distinct from output length and entropy. Password KDFs, HKDF and later constructions are not approved by this mapping. Referenced review does not validate context separation, key handling, usage limits, implementation conformance or modules.
**Required facts:** observed, purpose, keyDerivation
**Rule identifiers:** NIST131AR2-KEY-DERIVATION
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 8 / Table 7, printed pages 16-17
NIST SP 800-131A Rev. 2 key wrapping
- **Identifier:** nist-131a-r2-key-wrapping
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Historical Section 7 / Table 6 wrapping and legacy unwrapping transitions. Referenced implementation review, not inferred from an encryption-at-rest flag. Algorithm/method suitability does not certify key handling, authentication, nonces, usage limits, implementation conformance or modules. Claimed NIST exceptions require separate validation.
**Required facts:** observed, purpose, keyWrapping
**Rule identifiers:** NIST131AR2-KEY-WRAPPING
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 7 / Table 6, printed pages 15-16
NIST SP 800-131A Rev. 2 random bit generation
- **Identifier:** nist-131a-r2-random-generation
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Historical Section 4 / Table 3 algorithm transition rules using referenced reviewed implementation evidence. Does not verify entropy sources, seeds, reseeding, implementation correctness, SP 800-90 conformance or module validation. A successful connection cannot identify its random generator.
**Required facts:** observed, purpose, randomGeneration
**Rule identifiers:** NIST131AR2-RANDOM-GENERATION
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 4 / Table 3, printed pages 11-12
NIST SP 800-131A Rev. 2 message authentication codes
- **Identifier:** nist-131a-r2-macs
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 10 / Table 9 historical HMAC, CMAC, GMAC and KMAC generation/verification rules. Algorithm and key-length suitability do not establish key entropy, tag lengths, nonce safety, volume limits or module validation. Legacy verification is not new protection. Other NIST exceptions require separate review.
**Required facts:** observed, purpose, algorithm, keyBits, hashAlgorithm, macPrimitive, tdeaKeyingOption, existingApplication
**Rule identifiers:** NIST131AR2-MAC-USE
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 10 / Table 9, printed pages 19-21
NIST SP 800-131A Rev. 2 hash functions
- **Identifier:** nist-131a-r2-hashes
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Historical Section 9 / Table 8 hash-use mapping. SHA-1 signing exceptions, legacy verification and collision-resistance requirements are distinct. SHA-2/SHA-3 algorithm suitability does not certify the containing signature, MAC, KDF or module. XOFs are outside this source mapping; later SHA-1 transition policy is assessed separately.
**Required facts:** observed, purpose, algorithm, hashUse, hashCollisionResistanceRequired, sha1ProtocolException
**Rule identifiers:** NIST131AR2-HASH-USE
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 9 / Table 8, printed pages 17-19
NIST SP 800-131A Rev. 2 DH/MQV key agreement
- **Identifier:** nist-131a-r2-dh-agreement
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 5 / Table 4 finite-field and elliptic-curve DH/MQV. Sufficient parameter sizes do not establish SP 800-56A scheme conformance, approved domain parameters, key derivation or module validation. Nonconforming schemes are disallowed from 2021-01-01. This historical mapping is separate from PQC migration guidance.
**Required facts:** observed, purpose, algorithm, keyBits, subgroupOrderBits, keyAgreementConformance
**Rule identifiers:** NIST131AR2-DH-MQV-AGREEMENT
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 5 / Table 4, printed pages 12-14
NIST SP 800-131A Rev. 2 RSA key establishment
- **Identifier:** nist-131a-r2-rsa-establishment
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 6 / Table 5 RSA key agreement and key transport, including encryption and decryption of transported keys. Scheme evidence is distinct from RSA signatures and certificate labels. PKCS1 v1.5 is disallowed after 2023; other nonconforming schemes after 2020. No whole-module or later-standard approval claim.
**Required facts:** observed, purpose, algorithm, keyBits, rsaEstablishmentScheme
**Rule identifiers:** NIST131AR2-RSA-ESTABLISHMENT
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 6 / Table 5
NIST IR 8547 prioritized federal migration
- **Identifier:** nist-ir-8547-federal-priority
- **Mapping version:** 2026-10-27.1
- **Publication status:** Final source
- **Published:** 2026-10-27
- **Effective from:** Not specified as a single effective date in this mapping; consult its source-specific requirements and deadlines.
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** IR 8547 section 4 priority federal systems, read with EO 14412 and OMB M-26-15. Explicit reviewed designation; national security systems excluded. Observed classical key establishment and signature generation only. Deadline findings are not general algorithm approval status or organization-wide compliance.
**Required facts:** observed, purpose, algorithm, classicalSecurityBits, federalPriority
**Rule identifiers:** NIST8547-FEDERAL-PRIORITY-MIGRATION
**Versioned citations**
- [NIST IR 8547, October 2026](https://nvlpubs.nist.gov/nistpubs/ir/2026/NIST.IR.8547.pdf) — 4, 4.1.1, 4.1.2
- [Executive Order 14412, 22 June 2026](https://www.whitehouse.gov/presidential-actions/2026/06/securing-the-nation-against-advanced-cryptographic-attacks/) — 2(c)-(d), 4(b)
- [OMB M-26-15, 24 June 2026](https://www.whitehouse.gov/wp-content/uploads/2026/06/m-26-15-execution-of-the-migration-to-post-quantum-cryptography.pdf) — 1, 3.C.2, 3.D
NIST SP 800-131A Rev. 2 signature parameters
- **Identifier:** nist-131a-r2-signatures
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-03
**Applicability and limits:** Section 3 / Table 2 parameter boundaries for RSA, ECDSA and DSA. Generation and legacy verification are distinct. This historical source mapping does not establish hash suitability, approved curves, key generation, FIPS validation or current FIPS 186-5 approval. EdDSA approval is not inferred from the 2019 text.
**Required facts:** observed, purpose, algorithm, keyBits, subgroupOrderBits
**Rule identifiers:** NIST131AR2-SIGNATURE-PARAMETERS
**Versioned citations**
- [NIST SP 800-131A Rev. 2, March 2019](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-131Ar2.pdf) — 3 / Table 2, pages 8?11
- [FIPS 186-5, February 3, 2023 (later guidance; separately assessed)](https://csrc.nist.gov/pubs/fips/186-5/final) — Supersedes FIPS 186-4
IETF RFC 8996 legacy protocol negotiation
- **Identifier:** ietf-rfc8996-protocols
- **Mapping version:** 2021-03.1
- **Publication status:** Final source
- **Published:** 2021-03
- **Effective from:** 2021-03
- **Last source review recorded:** 2026-11-02
**Applicability and limits:** Sections 1.1, 4 and 5 prohibit TLS 1.0/1.1 and DTLS 1.0 negotiation. Selected-session mapping only; modern negotiation does not prove disabled legacy support or safe fallback. DTLS normalized facts are supported by the rule, but the current stored-asset adapter does not establish DTLS observations.
**Required facts:** observed, purpose, protocol
**Rule identifiers:** RFC8996-LEGACY-PROTOCOL-NEGOTIATION
**Versioned citations**
- [RFC 8996, March 2021 (BCP 195)](https://www.rfc-editor.org/rfc/rfc8996.html) — 1.1, 4, 5
IETF RFC 7465 RC4 negotiation
- **Identifier:** ietf-rfc7465-rc4
- **Mapping version:** 2015-02.1
- **Publication status:** Final source
- **Published:** 2015-02
- **Effective from:** 2015-02
- **Last source review recorded:** 2026-11-02
**Applicability and limits:** Section 2 selected-session RC4 prohibition. Exact qualified suite identities only. A non-RC4 session does not prove RC4 is disabled, inspect client offers or test refusal of RC4-only offers. No whole-service compliance determination.
**Required facts:** observed, purpose, protocol, cipherSuite
**Rule identifiers:** RFC7465-SELECTED-RC4
**Versioned citations**
- [RFC 7465, February 2015](https://www.rfc-editor.org/rfc/rfc7465.html) — 2, Appendix A
IETF RFC 9325 protocol negotiation
- **Identifier:** ietf-rfc9325-protocols
- **Mapping version:** 2022-11.1
- **Publication status:** Final source
- **Published:** 2022-11
- **Effective from:** 2022-11
- **Last source review recorded:** 2026-11-01
**Applicability and limits:** Section 3.1.1 prohibition of TLS 1.0/1.1 negotiation only. A modern session does not prove disabled legacy support. RFC 9852 and RFC 10015 update other requirements; no full BCP 195 compliance claim.
**Required facts:** observed, purpose, protocol
**Rule identifiers:** RFC9325-LEGACY-TLS-NEGOTIATION
**Versioned citations**
- [RFC 9325, November 2022](https://www.rfc-editor.org/rfc/rfc9325.html) — 3.1.1
IETF RFC 10015 TLS 1.2 key exchange
- **Identifier:** ietf-rfc10015-key-exchange
- **Mapping version:** 2026-07.1
- **Publication status:** Final source
- **Published:** 2026-07
- **Effective from:** 2026-07
- **Last source review recorded:** 2026-11-01
**Applicability and limits:** Selected TLS 1.2 suites in the exact QScan suite catalog: RSA and finite-field DH/DHE prohibition; static ECDH discouraged. Does not prohibit RSA signatures or TLS 1.3 FFDHE. Not a complete suite-support or client-offer assessment.
**Required facts:** observed, purpose, protocol, cipherSuite
**Rule identifiers:** RFC10015-TLS12-SELECTED-KEY-EXCHANGE
**Versioned citations**
- [RFC 10015, July 2026](https://www.rfc-editor.org/rfc/rfc10015.html) — 2, 3, 4, 5
NIST SP 800-131A Rev. 2 block ciphers
- **Identifier:** nist-131a-r2-block-ciphers
- **Mapping version:** 2019-03-21.1
- **Publication status:** Final source
- **Published:** 2019-03-21
- **Effective from:** 2019-03-21
- **Last source review recorded:** 2026-11-02
**Applicability and limits:** Section 2 / Table 1 only. Federal sensitive unclassified use; voluntary adoption elsewhere requires explicit applicability. AES key lengths and known mode identities; TDEA/SKIPJACK encryption and legacy-decryption distinctions. Does not establish validated implementation, correct mode parameters, data-volume limits, legacy eligibility or exceptions under other guidance. Rev. 1 is superseded; Rev. 3 draft is separate.
**Required facts:** observed, purpose, algorithm, keyBits, mode
**Rule identifiers:** NIST131AR2-BLOCK-CIPHER-USE
**Versioned citations**
- [NIST SP 800-131A Revision 2, final March 2019](https://csrc.nist.gov/pubs/sp/800/131/a/r2/final) — 1.1, 1.2.3, 2 / Table 1
- [NIST SP 800-131A Revision 2](https://nvlpubs.nist.gov/nistpubs/specialpublications/nist.sp.800-131ar2.pdf) — pages 6–8
NIST SP 800-52 Rev. 2 TLS 1.3 support
- **Identifier:** nist-80052r2-tls13-support
- **Mapping version:** 2019-08-29.1
- **Publication status:** Final source
- **Published:** 2019-08-29
- **Effective from:** 2024-01-01
- **Last source review recorded:** 2026-11-02
**Applicability and limits:** Section 3.1 federal server TLS 1.3 support deadline. A verified TLS 1.3 session establishes support at observation time; another negotiated version does not prove lack of TLS 1.3. Cipher suites, FIPS modules, certificates, extensions, audience-specific legacy exceptions and organization-wide compliance remain unassessed. The 2026 review notice does not supersede this final revision.
**Required facts:** observed, purpose, protocol
**Rule identifiers:** NIST52R2-TLS13-SUPPORT
**Versioned citations**
- [NIST SP 800-52 Rev. 2, August 2019](https://csrc.nist.gov/pubs/sp/800/52/r2/final) — 3.1
- [NIST SP 800-52 Rev. 2 final text](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-52r2.pdf) — 3.1 / page 8
IETF RFC 9852 new TLS protocol design
- **Identifier:** ietf-rfc9852-new-protocols
- **Mapping version:** 2026-07.1
- **Publication status:** Final source
- **Published:** 2026-07
- **Effective from:** 2026-07
- **Last source review recorded:** 2026-11-02
**Applicability and limits:** Reviewed new-protocol design only: TLS 1.3 support and default. TLS 1.2 may be an additional non-default option. Existing protocols and DTLS are outside this mapping. A negotiated session does not establish protocol design or defaults; TLS 1.3 does not establish PQC use. No organization-wide compliance determination.
**Required facts:** observed, purpose, protocolDesign
**Rule identifiers:** RFC9852-TLS13-SUPPORT, RFC9852-TLS13-DEFAULT
**Versioned citations**
- [RFC 9852, July 2026 (BCP 195)](https://www.rfc-editor.org/rfc/rfc9852.html) — 4, 5
---
# Sectigo Certificate Manager
Source: https://qscan.dev/docs/scm-connections
Workspace administrators can now save encrypted OAuth credentials, manage SCM
connections and test certificate visibility from **Integrations > Manage SCM**.
Background inventory imports are available from each configured connection.
The connection test itself does not import certificates into your inventory.
## Prepare the SCM account
Confirm the following with your SCM administrator:
1. Your assigned instance: **enterprise**, **hard** or **eu**.
2. The exact SCM organization IDs that Quantum Ready should inventory.
3. A dedicated OAuth API client with access limited to those organizations and
the certificate inventory it needs to read.
4. The reviewed OAuth token endpoint for your account's authentication realm.
5. The business exposure to apply to imported certificates. SCM certificate
metadata alone does not establish whether a service is publicly reachable.
Do not paste credentials into support requests or documentation. Enter credentials only in the workspace connection form. Saved connection details
never return client secrets or access tokens.
## API and authentication
The current SCM Admin API recommends OAuth client credentials and
`https://admin.{instance}.sectigo.com`. The inventory transport reads
`GET /api/ssl/v2` with an explicit organization ID and bounded position/size paging.
It does not request enrollment, renewal, revocation, private keys or certificate
installation. It discards requester information, comments and unrelated record
fields returned with inventory metadata.
SCM authentication realms can differ between customers. The current implementation
accepts an explicitly reviewed realm token URL under `auth.sso.sectigo.com`. It does
not forward credentials to a URL supplied by a redirect or authentication error.
Other authentication hosts and the legacy password-header flow are not implemented.
## What the evidence will mean
The inventory normalizer keeps the certificate key algorithm separate from its
signature algorithm. It never infers a negotiated TLS key-exchange group from
certificate metadata. Unknown or unavailable algorithms remain unknown.
Records retain the SCM instance, organization and certificate ID, available SHA-256
fingerprint, status and expiry. Private keys are never collected. Page counts and
empty results describe records visible to the integration identity; they do not
prove organization-wide completeness. Inventory jobs must record pagination,
concurrent source changes and incomplete reads before claiming coverage.
Missing optional names or status values do not prevent a read check. An unnamed
certificate uses its SCM certificate ID; an unavailable status remains unknown.
Expiry is retained exactly as supplied by SCM. RFC 3339 timestamps are marked
as such; other bounded date text remains provider text, without an inferred time
or timezone. Certificate and organization IDs remain required and scope-checked.
## Connect and test
1. Open **Integrations > Manage SCM > Add connection**.
2. Name the connection and select your SCM instance. Enter one organization ID;
use separate connections for separate organizations.
3. Choose the exposure classification and confirm the OAuth token endpoint with
your SCM administrator. These settings are fixed for this connection.
4. Select **Configure credentials**, enter the dedicated client ID and secret,
and save. **Credentials saved - not yet tested** means storage succeeded only.
5. Select **Test connection** and run the check. It authenticates and requests at
most one certificate from the selected organization. Only the check timestamp
and visibility result are retained.
A successful empty read means no records were visible to that identity, not that
there are no certificates. Ask the SCM administrator to check organization scope
and inventory permissions. A denied request should be corrected in SCM; retrying
with broader credentials is not necessary. Rate-limit responses include a retry
delay. Authentication errors keep you signed into Quantum Ready.
If a check fails, the message distinguishes the OAuth token response, invalid JSON,
an unsupported certificate field, and the 2 MiB response limit. Field names are
safe to share with support; raw responses, client secrets and access tokens are
never included. A connection check reads only one certificate, so this error does
not by itself indicate that the organization has too many certificates. Bearer
token types are case-insensitive; tokens with longer lifetimes are refreshed
within the local 24-hour cache ceiling rather than rejected.
## Maintain access
Use the row menu to replace credentials or rename a connection. Credential
replacement clears the previous check. If the administrator who configured the
connection loses workspace access, another administrator must replace its
credentials before testing. Disconnect immediately removes stored credentials.
A disconnected connection can be archived and restored; restoration does not
restore secrets or reconnect it.
## Import certificate inventory
Open **Import inventory > Start import** on a configured connection. The request
immediately shows queued status, then updates the imported-record and page counts.
Imports continue in the background when you navigate away. Reopen **Import
history** from the row menu to view the newest runs first, including failed and
cancelled runs. Archived connections retain their import history.
Each page reads up to 50 certificates. Quantum Ready deduplicates records seen
again within a run and commits each page with its evidence and archive job.
**Cancel import** stops further pages; earlier inventory and evidence remain.
Failed runs also retain earlier accepted pages. Start a new import after correcting
the displayed issue. Repeated submissions after a lost response use the same
request ID, so a retry does not create a second run.
### Recover a submission and follow progress
If the start response is interrupted, choose **Check submission**. It reuses the original request ID and connection revision, and reports the existing run even if that run has already completed. The reminder survives navigation and reloads in the same browser tab, scoped to this workspace, connection and sign-in. It contains no provider credential. If tab storage is unavailable, the panel explains that recovery may be lost on reload. A new sign-in or closing the tab can also lose the reminder; inspect history before starting another import.
**Clear reminder** removes only the local reminder. Review history first: clearing does not cancel an import or prove the original request failed. Recovery is also available in disconnected or archived connection history; it cannot authorize a new import after access changes.
Current activity stays visible when you page through older history. **Latest imports** returns to the newest page. An active import disables a second start for that connection. If progress refresh fails, the panel keeps the last history visible, explains that current status could not be refreshed, and retries after 15 seconds. You can also choose **Refresh progress**. A temporary read failure does not mean the import stopped.
The workspace supports two simultaneous SCM imports, one per connection. A run
commits at most 50 provider records per step and expires after 24 hours. SCM
imports no longer stop at 1,000 pages or 50,000 workspace assets. The local
SQLite acceptance fixture imports 50,050 distinct certificates across 1,002
pages, recovers after a provider throttle and executor reconstruction, and
suppresses cross-page duplicates. This is not real-provider or production
resource-limit qualification; larger inventories and imports exceeding 24 hours
remain under review. Other ingestion paths retain their existing limits.
Rate-limited runs show when they may retry and resume
automatically. Network interruptions, timeouts, HTTP 408 and server errors retry
the saved page up to five times, with delays of 10, 20, 40, 80 and 160 seconds.
A longer provider Retry-After is respected within the scan deadline. A committed
page resets this retry budget. Progress explains the wait; exhausted retries
stop the import and retain earlier evidence. Permission failures and malformed
responses stop immediately. Interrupted executions resume after their lease expires.
Requester and credential-owner access are checked for every page. User-initiated
scans keep the requester account version from submission: restoring a role after revocation
does not restart an older queued scan. Start a new import after access is restored.
Session or API
credential expiry, account revocation or configuration changes can stop a run;
reconnect or sign in again and start a new import as appropriate.
Completed means pagination finished for the records visible to the configured
identity. It does not establish organization-wide completeness. SCM changes during
offset pagination can cause records to move between pages. Imported evidence
identifies the connection, scan and page; missing cryptographic details remain
unknown. Metadata imports do not prove endpoint deployment or TLS negotiation.
## Recurring imports
Choose **Actions > Recurring imports** on a configured connection. Select a
frequency, check the authorization box and select **Enable schedule**. The first
run is one interval after saving; the editor shows its next time and authorizing
administrator. Saving again reauthorizes the schedule and resets that time.
Schedules use dedicated execution grants and continue after you sign out. They do
not extend browser sessions. Both the schedule owner and credential owner must
retain their administrator role and account version. Revocation, credential
replacement or disconnection disables the schedule; authorize it again after
correcting access. Changing connection details may also require reauthorization.
**Pause schedule** and **Remove schedule** stop future occurrences and invalidate
active scheduled imports before another page can be accepted. Earlier inventory
and evidence remain. An interrupted run appears failed if its scheduled authority
is no longer valid. Re-enable by saving and explicitly authorizing the schedule.
If a schedule change is interrupted, select **Check saved schedule**. The server
may already have saved the change, so editing stays disabled until this read succeeds.
Checking replaces your draft with the saved schedule and clears the consent checkbox;
review and authorize again only if you still want a different configuration.
**Refresh schedule** also reads the latest state after another administrator changes it.
Successful saves, pauses and removals display the returned result immediately.
Intervals range from one hour to 30 days. Missed intervals do not create a catch-up
burst: only the latest occurrence runs. An overlapping import causes that
occurrence to be skipped; a full workspace defers dispatch until capacity is
available. Each occurrence has the same record, page and lifetime bounds as a
manual import. Check **Import history** for outcomes and partial coverage.
## SDK and MCP automation
JavaScript and Python SDKs can read SCM connections, import history/progress and
schedule status. Workspace admin, analyst and viewer credentials are supported.
These calls never return client secrets, cached tokens or encrypted credentials.
```javascript
const connections = await client.scmConnections({ limit: 25 });
const history = await client.scmScans({ connectionId, limit: 10 });
const progress = await client.scmScan(scanId);
const schedule = await client.scmSchedule(connectionId);
```
```python
connections = client.scm_connections(limit=25)
history = client.scm_scans(connection_id, limit=10)
progress = client.scm_scan(scan_id)
schedule = client.scm_schedule(connection_id)
```
Pass each response's `nextCursor` as `after` to continue. Keep the same connection
and archive selection while paging. History is newest first; cursors describe live
data rather than a fixed snapshot. The connection-list cursor uses UUID order.
MCP exposes `scm_connections`, `scm_connection`, `scm_scans`, `scm_scan` and
`scm_schedule` through the existing OAuth authorization flow. Start with
`workspace_identity` and confirm the intended workspace. These five tools are
read-only. Administrators can also use `scm_scan_start` and `scm_scan_cancel`.
Use the workspace controls for credential changes and authorizing/pausing schedules.
### Start, track and cancel an import
`POST /api/v1/scm-scans` accepts `connectionId`, `expectedRevision` and a UUID
`requestId`; it returns HTTP 202 with the durable import ID. Retain the request ID
before submitting. If the response is lost, repeat the same input using the same
credential and OAuth grant. A different OAuth grant cannot replay that request.
Poll `GET /api/v1/scm-scans/{id}` until terminal and inspect its counts and coverage.
`POST /api/v1/scm-scans/{id}/cancel` accepts an empty JSON object; accepted evidence
is retained. Administrator credentials are required for both mutations.
JavaScript: `client.startScmScan({connectionId, expectedRevision, requestId})` and
`client.cancelScmScan(scanId)`. Python: `client.start_scm_scan({...})` with those same
JSON field names, and `client.cancel_scm_scan(scan_id)`. MCP exposes the equivalent
`scm_scan_start` and `scm_scan_cancel` tools. A queued result is not scan completion.
Background pages check the initiating API credential or original user generation,
the active workspace and the SCM credential owner's current access. OAuth imports
also check the original grant, client, session and expiry. Revoking or expiring that
authority stops further processing; reconnect and start a new import when needed.
Authorization checks are serialized with each page, so revocation does not undo a
page already accepted. Recurring schedules remain a separate, explicit delegation.
A completed import is still limited to records visible to the configured identity.
## Scan records and temporary execution data
After an import completes, fails or is cancelled, the platform removes its stored
OAuth grant/session reference. A one-way fingerprint preserves matching for retries
under the original authorization. Scan history, request IDs, schedule provenance
and accepted evidence remain available.
Temporary duplicate-tracking records and finished scheduled execution grants are
cleared in bounded batches. Maintenance schedules another pass while a terminal
backlog remains; it leaves active execution state intact. This maintenance does
not delete scan history, evidence or the request identifiers used to prevent
duplicate submissions.
## Connection management
### Delete a disconnected connection
In **SCM connections**, disconnect the connection, then choose **Actions > Delete
permanently**. Archived connections also offer **Delete**. The confirmation names
the connection and explains what remains. Deletion removes its configuration and
recurring schedule, cancels pending imports, and prevents late provider responses
from adding findings or restoring the connection. It cannot be restored.
Previously imported findings, immutable evidence and audit records remain part of
the workspace assessment. Reconnecting requires a new connection. A stale tab
must refresh if the connection revision changed. Retrying the same confirmed
deletion returns the original deletion result.
This is an administrator browser-session management operation through
`POST /api/auth/scm/manage` with `operation: "delete"`, `connectionId` and
`expectedRevision`. API keys and delegated MCP scan credentials do not gain
connection-management authority. Their existing read and scan interfaces remain
subject to current connection authorization.
## Remaining delivery work
Credential/schedule automation and real SCM account acceptance
remain unfinished. Current automated acceptance uses provider fixtures with the
actual Worker, Identity and tenant storage runtime.
## Provider references
- [SCM authentication](https://scm.devx.sectigo.com/docs/authentication)
- [SCM instance URLs](https://scm.devx.sectigo.com/docs/base-url-explanation)
- [Create an access token](https://scm.devx.sectigo.com/reference/createaccesstoken)
- [List SSL certificates](https://scm.devx.sectigo.com/reference/get-ssl-certificates-list)
## Import origin and cancellation audit
Import history identifies **Manual import** and **Scheduled import**. Scheduled
entries show the intended occurrence time alongside the actual start time, so a
late run is distinguishable from its scheduled time. API, SDK and MCP scan reads
include `trigger`; scheduled records also include `scheduleId`, `scheduleRevision`
and `scheduledFor`. These describe the schedule captured for that run, even after
the schedule is changed or removed. Internal execution grants and credentials are
never included.
Cancellation audit events identify the administrator who cancelled the import;
the original requester remains intact. Repeating cancellation on a terminal import
does not add another event.
## Organization filtering and paging
The connector supports both current SCM `filter=orgId=?` / `page` parameters and
legacy `orgId` / `position` parameters with identical scope and offsets. It requests
ascending certificate ID order and still checks every returned organization ID.
Use the SCM organization ID, not a customer or department ID. An organization with
no visible certificates can pass the connection test; that is not an authentication
failure. A scope mismatch now names the selected and returned numeric organization
IDs separately from duplicate-record errors.
### When an import reaches its deadline
An inventory import has a 24-hour deadline. Provider retry delays are capped at
that deadline. A response arriving after expiry cannot add records, even if it
contains a valid final page; token acquisition that crosses the deadline cannot
start a new inventory request. The import ends with **deadline-exceeded**, retains
evidence already committed by earlier pages, and releases its active scan slot.
Cancellation remains cancellation if a late response also crosses the deadline.
Coverage is partial. Check provider availability and permissions, then start a
new import. This is a new scan, not an extension or a point-in-time snapshot of
the expired scan. Earlier evidence remains available.
---
# Set up a workspace SDK
Source: https://qscan.dev/docs/sdk-setup
Start with a read-only identity check, then add the permissions needed by your automation. Both SDKs call the workspace API used by the product.
## Prepare your environment
Download and [verify the signed discovery bundle](../agent-distributions/), then extract it. Use Python 3.12 or newer or Node.js 22 or newer. These examples need no additional packages. Keep the reviewed SDK version pinned with your automation.
Ask a workspace administrator for a dedicated **viewer** API credential for the initial check. Set `QSCAN_ENDPOINT` to `https://qscan.dev` and inject `QSCAN_TOKEN` using your environment or secret manager. Do not put tokens in command arguments, source files, screenshots or chat. These environment names belong to the examples; the SDK constructors receive endpoint and token explicitly.
## Python: confirm your workspace
Save this as `verify_workspace.py` in the extracted bundle root:
```python
import os
from sdk.python.quantum_ready import QuantumReady
client = QuantumReady(
os.environ["QSCAN_ENDPOINT"],
os.environ["QSCAN_TOKEN"],
)
print(client.me()["organization"]["name"])
```
Run `python verify_workspace.py`. Confirm the printed organization name before performing writes. This check neither executes scans nor reads provider credentials.
## JavaScript: confirm your workspace
Save this as `verify-workspace.mjs` in the extracted bundle root:
```javascript
import { QuantumReady } from './sdk/javascript/index.mjs';
const client = new QuantumReady({
endpoint: process.env.QSCAN_ENDPOINT,
token: process.env.QSCAN_TOKEN,
});
console.log((await client.me()).organization.name);
```
Run `node verify-workspace.mjs`. A successful response confirms workspace access at that time, not provider connectivity or agent health.
## Choose the next workflow
- [Repository scanning](../repository-connections/): configure scoped access, submit a scan, follow progress and export SARIF.
- [Database discovery](../database-scanning/#queue-a-database-job-through-the-api-sdk-or-mcp): select a locally approved connection UUID, queue a managed job and inspect coverage.
- [Risk profiles](../risk-assessment/): inspect immutable standards mappings, preview tenant-defined scoring and retain recalculation history.
- [Cloud automation](../cloud-sdk/): review resources and trust, test access, run discovery and read results.
- [Capture analysis](../capture-analysis/): prepare an upload, review consent and confirm processing and cleanup.
- [Agent setup](../agent-setup/#browse-your-fleet): traverse the full fleet and inspect host acknowledgements.
- [Signed webhooks](../webhook-integrations/): configure a receiver and verify signatures before processing events.
- [CI scanning](../ci-scanning/): scan locally without a workspace token; use a separate ingestor credential for optional evidence upload.
A viewer reads permitted metadata. An analyst can submit authorized discovery; an administrator manages workspace connections and agents. An ingestor uploads standalone observations. Agent enrollment credentials belong to their assigned host, and platform operator credentials are for provisioning. Never replace a denied credential with a broader one automatically. Check the [OpenAPI reference](./api/index.md) for each operation's requirements.
## Pagination and uncertain responses
Use all-page iterators where available, or follow the documented cursor until null. A page is not the entire inventory. Lists reflect live data; concurrent changes may require restarting traversal.
Retain request IDs and identical input when replaying an operation after a lost response. Keep expected revisions for optimistic edits. The SDKs do not invent new request IDs or retry mutations automatically. A 409 requires inspection of the current resource or original operation. Do not create a replacement job just because its response was lost.
## Troubleshoot the first check
- **Missing environment variable:** configure the environment of the process running the script or assistant host, then restart that process.
- **401:** check expiry, revocation and credential type. Do not print the token.
- **403:** inspect the required role and intended scope. Preserve the original denial.
- **Wrong organization name:** stop before writing and obtain the intended workspace credential.
- **Import not found:** keep SDK folders together and save the example in the extracted bundle root. JavaScript uses an `.mjs` file and the relative path above.
- **429 or timeout:** inspect retry guidance and preserve operation identity. A successful identity check does not prove a later write completed.
## Agent SSH inventory
These methods ship with platform **0.51.353** and source scanner **0.26.70**.
Use the bundled agent for normal deployments; this API is
for integrations that already manage scanner execution and job leases.
JavaScript `claimJob(claimId, instanceId, options)` and Python
`claim_job(claim_id, instance_id, *, job_id=None, pool_id=None, ssh_inventory=None)`
accept an optional exact job or remote pool selection. Do not select both.
JavaScript option names are `jobId`, `poolId`, and `sshInventory`.
Inventory preferences contain `profile: "host-keys-v1"` (five connections) or
`profile: "host-keys-v2"` (ten connections, source scanner 0.26.90), a source name, and a `pins`
object mapping approved SSH endpoints to SHA256 fingerprints (at most 256 entries).
Retain the same preferences, claim ID and process ID when recovering a lost response.
Remote scans additionally require pool/run approval and the agent's local ceiling.
V2 requires `sshHostCertificateInventory: true` in pool policy; the existing
`sshHostKeyInventory` flag authorizes v1 only. Run selection and claim preferences
must name the same profile.
A preference does not authorize scanning arbitrary devices or expand a baseline run.
After claiming, execute the qualified scanner only against the returned job's scope
and profile. Upload its complete raw proof with JavaScript
`reportSshInventory(job.id, job.leaseToken, report)` or Python
`report_ssh_inventory(job_id, lease_token, report)`. Do not flatten the proof into
ordinary observations or manufacture host identity, hosted execution or remote
provenance. Keep the lease current during scanning and upload.
The receipt contains `accepted` and `assetIds`; a repeated identical upload under
the current lease does not duplicate evidence. Complete the job separately using
that accepted count and `partial` when `report.analysisComplete` is false.
An expired or revoked lease is a stop condition, not permission to claim another
job and reuse old evidence. The SDKs perform one request per call and do not
silently retry these operations. See the [remote scan guide](../remote-network-scanning/)
for connection budgets, baseline-only pin trust and partial coverage interpretation.
## SIEM automation and account boundaries
The JavaScript SDK exposes `siemAccess`, `siemConnections`, `createSiemConnection`,
`siemConnectionAction`, `siemDeliveries`, `siemDelivery` and `retrySiemDelivery`.
Python provides the corresponding snake-case methods. These use the workspace
credential supplied to the constructor. A browser's selected workspace does not
retarget that credential. Check `siemAccess()` / `siem_access()` before writes;
a viewer API key does not inherit a person's delegated browser permission.
Connection actions are `test`, `state`, `subscriptions`, `credentials`, `rotate`,
`revoke` and `delete`. Supply the action's documented body from the API reference;
revision and credential-version checks are not filled in automatically. For example:
```javascript
await client.siemConnectionAction(connectionId, 'test');
// Inspect delivery history and the receiver before enabling export.
await client.siemConnectionAction(connectionId, 'state', { enabled: true });
```
```python
client.siem_connection_action(connection_id, "test")
# Inspect delivery history and the receiver before enabling export.
client.siem_connection_action(connection_id, "state", {"enabled": True})
```
Retry methods accept an explicit approval body. Only after checking an unknown
Splunk outcome should a caller pass `{"confirmDuplicateRisk": true}`. The SDK does
not add this confirmation or bypass server-side retry limits. A successful retry
response means queued, not delivered. See [SIEM setup and diagnostics](../siem-log-export/).
Workspace selection, membership invitation acceptance and identity handoff
inspection use verified browser sessions under `/api/auth`; they are deliberately
not bearer-SDK operations. Use the product UI or the documented browser-session
API, with its origin and current-workspace constraints. Never copy browser session
cookies into automation. Existing SDK versions do not acquire these methods
without an updated SDK distribution; pin and verify the version you install.
---
# Compare active tests with observed network use
Source: https://qscan.dev/docs/service-comparison
**Services** brings together active TLS/QUIC tests and passive capture observations
of the same endpoint. Cryptographic inventory keeps the original findings, and
each comparison links to its immutable evidence.
## Establish the network boundary
Two networks can both contain `10.0.0.5:443`. They must not become the same service
just because they belong to one workspace. A **network scope** names the network
represented by your observations, such as “Production VPC” or “Corporate LAN”.
1. Open **Services → Network scopes → Create network scope**.
2. Enter a recognizable name and describe the account, region or network boundary.
3. Select **Assign scan origins**. Choose an origin type, search for an agent when
applicable, and use the page controls for larger inventories.
4. Open **Configure network**, review the current and selected networks, enter the
reason for the assignment, and save.
5. Run a new scan. The mapping applies when new authorized evidence is accepted.
An administrator configures scopes. Analysts and viewers can read service results.
A scope groups evidence; it does not authorize traffic or expand an agent's access.
Remote scans use their **remote scanner pool** scope, not the agent's local network.
Explicit collector-report assignments override agent assignments. Hosted captures
and hosted network scans use their own operation assignments.
Changing or removing an origin assignment affects future evidence. It does not
silently relabel previous findings. Configure agents and pools before scanning.
For hosted operations, configuring a completed operation does not update its
existing findings. Select its scope before starting the operation instead.
### Hosted network scans and capture uploads
As a workspace administrator, select **Network scope (optional)** on the endpoint
configuration form, or on the capture review form after choosing your file. The
selector loads 25 scopes per page and keeps your selection when you browse other
pages. **Manage network scopes** opens the full configuration page. Create a scope
before preparing your scan or capture; leaving an unsent form can discard its input.
Choose the network actually represented by the traffic, then start the scan or
upload. Leaving **Keep observations ungrouped** selected retains ordinary findings
without adding them to service comparison. Analysts can still run ungrouped scans;
scope assignment requires an administrator.
If submission is interrupted, use the recovery action on the same form. The
original request ID and scope remain fixed, so retrying cannot silently change the
network assignment. A hosted scan also preserves this recovery receipt in the same
browser tab across a page reload. Capture files stay only in browser memory; keep
the capture page open while recovering an interrupted submission.
## Compare an endpoint
Open **Services**, search by name or address, and optionally filter by transport or
evidence type. **Active and passive** shows services with both kinds of current
evidence. Select **Compare** to open a full page. Filters and pagination remain in
the URL when you return to the service list.
- **Active tests** show successful test negotiations and any validated, bounded
capability-test profile. Each test keeps its offer and outcome separate.
- **Passive observations** show the negotiation seen in the capture. They do not
authenticate the peer or inherit verification from an active test.
- **View evidence** opens the original observation, including its scanner facts.
An inconclusive or locally unavailable test does not mean the server lacks support.
“Not observed” means that the evidence does not contain that field. Counts describe
current observations, not traffic volume, unique clients or exhaustive capabilities.
Services match only within the same explicit network scope, transport, peer address,
port and requested server name. Missing or ambiguous names are not guessed from DNS
or certificate contents. A no-SNI connection can match an IP-targeted probe; it does
not establish a match with a named virtual host.
## When a service is missing
First check **Cryptographic inventory**. Unmapped findings remain there even when
the Services list is empty. Confirm that the relevant origin had a network assignment
when the finding was accepted, then inspect its evidence. Unsupported or ambiguous
identity evidence will not produce a service association.
The API also supports manual review of a specific observation through
`GET/PUT /api/v1/assets/{id}/network-scope`. A write requires the current evidence ID,
assignment revision, scope ID and reason. New evidence invalidates that manual review
until an administrator reviews it again. Clearing the manual assignment restores any
automatic mapping recorded with the current evidence.
If a save reports a conflict, return to the origin selection and reopen the assignment
to review the latest state. A scope cannot be deleted while assignments or current
service members reference it. Removing an assignment does not erase historical evidence.
## Use the SDKs
Both SDKs expose paginated service inventory, members, comparisons, scope
configuration and reviewed asset assignments. Read calls use ordinary workspace
reader permissions; writes require an administrator. A comparison response
contains `items`, `total` and `nextCursor`. Pass `nextCursor` as `after` to continue.
```javascript
const page = await client.services({coverage: 'both', limit: 25});
for (const service of page.items) {
const observations = await client.serviceComparison(service.id, {limit: 25});
console.log(service.name, observations.items);
}
```
```python
page = client.services(coverage="both", limit=25)
for service in page["items"]:
observations = client.service_comparison(service["id"], limit=25)
print(service["name"], observations["items"])
```
Use `serviceScopes` / `service_scopes` and `createServiceScope` /
`create_service_scope` to manage networks. Before updating an origin, read it with
`serviceScopeOrigin` / `service_scope_origin`, then pass its current revision as
`expectedRevision`, the chosen `scopeId` and a reason to
`updateServiceScopeOrigin` / `update_service_scope_origin`.
For a reviewed existing observation, use `assetNetworkScope` /
`asset_network_scope` and `updateAssetNetworkScope` / `update_asset_network_scope`,
also supplying its current `expectedEvidenceId`. A conflict requires reloading and
reviewing the current evidence; do not automatically overwrite a newer assignment.
## Use MCP with workspace authorization
Connect your MCP host to `https://qscan.dev/mcp` and complete browser authorization
for the intended workspace. Start with `workspace_identity`. The same workspace
roles apply to tools as to the application; OAuth does not grant administrator
rights to a reader or analyst.
| Task | Tools |
| --- | --- |
| Browse current services | `services`, `service_members` |
| Compare active and passive evidence | `service_comparison` |
| Read network scopes | `service_scopes`, `service_scope` |
| Create or delete a scope | `service_scope_create`, `service_scope_delete` |
| Review or change scan-origin assignment | `service_scope_origin`, `service_scope_origin_update` |
| Review or change one observation assignment | `asset_network_scope`, `asset_network_scope_update` |
Read tools return bounded pages. Retain filters and follow `nextCursor` as `after`;
comparison pages allow at most 50 observations. Write tools require an administrator
and explicit review of the network boundary. Read revisions and evidence IDs before
writing. After a conflict or uncertain response, reread the resource before deciding
whether another mutation is appropriate. An in-use scope cannot be deleted.
`network_scan_start` also accepts an optional `networkScopeId` for administrators.
Keep that scope and the original `requestId` unchanged on a submission retry.
Service association never converts passive traffic into authenticated identity or
turns missing observations into proof of complete scanning.
Passive capture cipher IDs are displayed with their registered TLS cipher names when the protocol and evidence validate that mapping. Unrecognized IDs remain visible as IDs; absent cipher evidence stays unknown. This does not authenticate the passive peer.
## Review an existing finding
Workspace administrators can open a TLS or QUIC finding in **Cryptographic inventory**
and choose **Review finding network**. The review opens a dedicated page. Inspect
the immutable observation, choose the network and explain how you verified that
assignment. Network selection loads25 scopes at a time.
A review applies to the exact evidence shown. If a rescan or another administrator
changes the finding while you are reviewing it, saving fails with a conflict.
Use **Reload current evidence**, inspect the new observation and submit a fresh
review. Clearing the manual assignment restores an automatic scope recorded with
the evidence, if present. It does not rewrite evidence or authorize a scan.
After saving, **View service comparison** opens the corresponding active/passive
view. Findings without enough verified endpoint or observed-name evidence cannot
be assigned merely to force a match.
---
# ServiceNow connections
Source: https://qscan.dev/docs/servicenow-connections
## Available today
Workspace administrators can add a ServiceNow instance, save or replace encrypted
OAuth client credentials, rename the connection, disconnect it, and archive or
restore its list entry. Open **Integrations > ServiceNow > Manage ServiceNow**.
Use a verified administrator browser session; API credentials and agent identities
cannot configure these connections.
Reviewed native incident creation, uncertain-delivery recovery, manual status checks and opt-in scheduled status checks are available. Enable automatic checks on a confirmed linked incident as described below; provider permissions and instance-specific behavior still require a pilot.
Authentication and bounded incident read checks are available through **Test connection**. **Credentials saved - not yet tested** means only that storage
succeeded. It does not mean the credentials work or can create an incident. For
current event delivery, use [signed webhooks](../webhook-integrations/) with your
own receiver and destination-specific authentication.
## Add your instance
1. Choose **Add connection** and enter a recognizable name.
2. Enter the HTTPS instance origin, such as `https://example.service-now.com`.
Paths, credentials, custom domains and nonstandard ports are not accepted.
3. Save, then choose **Configure credentials** on the new connection.
4. Enter the OAuth client ID and client secret from your ServiceNow integration.
Choose **Save credentials**.
Use a dedicated integration identity with only the record, field and REST API
permissions needed for the intended incident workflow. Check your instance's
client-credentials support, application user and REST access policies with its
administrator. Do not use an administrator account to bypass missing permissions.
See [ServiceNow's client-credentials configuration](https://www.servicenow.com/docs/r/platform-security/authentication/configure-an-oauth-client-credential-grant.html).
The instance address is fixed when the connection is created. To connect another
instance, add a separate connection so existing credentials cannot accidentally
be sent to a new host. Names can be changed through **Actions > Rename**.
## Test the connection
After saving credentials, choose **Test connection**, review its scope, then select
**Run connection test**. The button shows progress while the request runs.
The test obtains or reuses an encrypted OAuth access token and requests at most one
incident identifier from the Incident Table API. It never creates or changes an
incident, and does not retain the identifier or any incident details.
- **One incident identifier was readable:** one record was accessible at that time.
This does not prove access to every incident or permission to create records.
- **No visible incidents returned:** the request was accepted, but the table may be
empty or its records may be hidden by permissions. Record access remains unverified.
- **Last successful check:** a timestamped historical observation, not continuous
health monitoring. A later failed test shows an error and leaves this explicitly
historical result intact. Credential replacement or disconnect clears it.
For authorization failures, check the application identity and credentials. For
permission failures, check REST policies and the incident record/field ACLs.
Respect the provider's retry delay for rate limits. Do not grant administrator
access merely to make a check pass.
## Configure incident fields and preview a task
Choose **Actions > Incident fields** on a configured connection. Use the migration
task title as the summary, or choose a fixed summary (up to 160 characters). Select
whether to include task details, the current cryptographic observation and acceptance
criteria. Raw evidence and private scanner fields are never exported by this preview.
Optional defaults include urgency, impact, category and subcategory. Leave a field
empty to use the instance default. Advanced references accept exact ServiceNow
`sys_id` values for assignment group, assignee and configuration item. Saving does
not validate those records, instance-specific choices, mandatory custom fields or
business rules. Do not treat saved configuration as evidence of delivery readiness.
After saving, choose **Actions > Preview migration task**. Select a task from the
paged list and choose **Prepare preview**. Review the exact summary, description
and configured defaults. A task title longer than 160 characters needs a shorter
title or fixed summary; it is never silently truncated.
Previews last five minutes and are bound to the administrator, connection revision,
credential generation, saved fields, task version and current evidence. Prepare
another preview after any of these changes. Preparing a preview does not send an incident. Use the explicit creation step below
to approve delivery. Instance-specific business rules and write permissions still
require validation against your provider. Scheduled status checks are configured
after an incident is linked. A closed incident never automatically verifies remediation.
## Create the reviewed incident
After reviewing the preview, select **I reviewed this content and want to create the
incident**, then **Create incident**. The button shows sending progress. ServiceNow
may enforce additional field requirements or business rules; the preview does not
prove those rules or references are valid.
A successful result shows the incident number and a link to the original instance.
The incident is linked to the task without changing its status or verifying remediation.
To retrieve a result after navigation or a lost response, select the same task again
or use **Check saved status**. Repeated submission of the same request never sends
another provider POST.
- **Preparing / Sending:** wait, then check saved status. Do not start another request.
- **Not sent:** preparation stopped before the provider POST. Prepare a new preview,
review it and explicitly choose **Retry with this preview**.
- **Uncertain:** ServiceNow may have created the incident. Do not send it again.
Check the original instance for correlation value `qscan:`. Correlation
values are editable and nonunique, so a search match alone does not establish a
trusted receipt. Use the recovery steps below; the application
blocks another create while this outcome is unresolved.
No provider error after dispatch is treated as permission to resend, including a
validation error. Current workspace administrators can choose **Delivery history** on any connection,
including disconnected and archived entries. Select a migration task to inspect its
saved result, request ID, last observed incident status and incident link. Use
**Check saved status** to reload the stored result. This read-only view does not
contact ServiceNow, recover uncertain deliveries, create incidents or enable
scheduled checks. Those provider operations require a configured connection.
## Check record references before submission
After preparing a preview, select **Check record references**. This reads only the
configured assignment group (`sys_user_group`), assignee (`sys_user`) and configuration
item (`cmdb_ci`) IDs from the original instance. It does not create an incident.
Results identify each record as **Record visible**, **Read access denied**, or
**Record missing or inaccessible**. A missing result cannot distinguish deletion
from access restrictions. No names, emails or other record details are retained.
The result shows its check time and the preview expiry; changing configuration,
credentials, task content or access invalidates the check in progress.
The integration identity needs read access only to the selected records to perform
this optional check. Do not grant broad administrator access. Visibility does not
prove write access, reference qualifier compatibility, group membership or business
rule acceptance. Custom reference fields and dynamic instance rules are not checked.
An empty reference list simply means no standard references were configured.
If a repeated check fails, the prior timestamped observation remains visible with
the error. Prepare a fresh preview after changing the task or configuration.
## Custom incident fields
In **Incident fields**, select **Add custom field** and enter the internal column
name, value type and value. Supported names begin with `u_` or `x_`; use the exact
name supplied by your instance administrator. You can add up to 20 fields.
- **Text / raw reference:** up to 1,024 characters. Use raw choice values or a
reference sys_id, not a display label. Empty text is an explicit empty value.
- **Boolean:** choose True or False.
- **Number:** enter a finite numeric value.
Remove a row to omit the field. Failed saves retain your edits. The incident preview
shows each custom column and exact value alongside standard fields. Any mapping
change invalidates the previous preview; review the new content before submitting.
Custom fields cannot replace system identity, correlation or standard fields.
Saving does not prove that a column exists, that the identity can write it, or that
all instance business rules are satisfied. Confirm those settings with your
ServiceNow administrator and inspect the created incident. Do not store secrets in
these values: they appear in configuration, previews and the submitted incident.
See ServiceNow's [column naming guidance](https://servicenow.github.io/sdk/4.13.0/guides/table-guide)
and [Table API input-value behavior](https://www.servicenow.com/docs/r/xanadu/api-reference/rest-apis/c_TableAPI.html).
## Recover an uncertain delivery
Select **Search ServiceNow** in the uncertain delivery result. The search uses the
original instance and request correlation. It displays up to two candidate incidents,
with a timestamp and a five-minute review window. An empty result does not prove
that no incident was created: permissions or indexing may hide it. Sending again
remains blocked.
Choose an incident and open **Review INC...** to inspect it in ServiceNow. If there
are multiple matches, resolve duplicates with the instance administrator before
choosing the correct record. Correlation is editable and non-unique, so the match
alone does not prove that its content matches your approved request.
Confirm that the incident belongs to this migration task, then select **Link selected
incident**. The server rereads the record and rejects changed identity, correlation,
summary, expired results or changed access. It records who reviewed the link without
sending another incident or changing remediation verification. If results expire or
access changes, search again. Provider errors keep the saved uncertain result.
## Check the linked incident
After creating an incident, select **Check ServiceNow** to read its current provider
status. The result shows the instance's state label and code, its update time, and
when Quantum Ready last checked. **Check saved status** only retrieves the locally
saved delivery result; it does not contact ServiceNow.
A failed check keeps the previous observation visible. Restore valid connection
access before retrying. Checks require current administrator access and the same
original instance and incident identity. Custom provider state labels are preserved;
a resolved or closed incident does not mark a migration task verified.
The read uses ServiceNow's [Table API raw and display values](https://www.servicenow.com/docs/r/xanadu/api-reference/rest-apis/c_TableAPI.html).
### Enable automatic status checks
On a linked incident, select **Automatic status checks**. Choose every 15 minutes,
hour, 6 hours or day, confirm permission for scheduled reads, then select **Enable
checks**. The first check runs after that interval. You can sign out; the schedule
uses your standing administrator consent rather than extending your browser session.
The panel shows whether checks are enabled, the next due time, last successful check
and any saved error. **Pause checks** stops future reads and rejects late results
from a read already in progress. **Remove schedule** removes its consent record.
A provider request already sent cannot be recalled. Open **Check saved status** to
see the latest retained incident observation.
Each execution rechecks tenant status, both the scheduling administrator and the
connection credential owner's account versions, current workspace membership,
connection revision and credential generation. Revocation, role/account changes,
disconnection or replaced credentials stop the schedule. Review the new connection
and explicitly enable checks again. A changed incident identity or correlation also
pauses checks for review; transient provider failures retain the prior observation
and try at the next interval. After an outage, one check runs rather than replaying
missed intervals. At most two due incident schedules execute in each workspace
scheduler pass, so due times are targets rather than exact delivery guarantees.
`POST /api/auth/servicenow/sync` exposes `read`, `save`, `pause` and `remove` under a
verified administrator browser session. Saving requires `confirm: true`, the current
schedule and connection revisions, and a confirmed incident operation ID. Up to
1,000 schedule records are retained per workspace; remove unused schedules to free
capacity. Scheduled reads never create or edit incidents, and never verify a migration
task. Live ServiceNow-instance acceptance remains separate from fixture tests.
## Replace or remove access
**Actions > Replace credentials** requires both the client ID and a new secret. Existing
secrets are never prefilled or returned. Saving replaces the encrypted credential
generation and invalidates prior configuration and preview state. A failed save
keeps entered fields in the current form; cancel or leave the page to discard them.
**Actions > Disconnect** removes stored credentials and configuration together.
It preserves the connection's metadata and audit history. This is local removal;
revoke the OAuth application or token in ServiceNow as well when you need to
invalidate access at the provider.
After disconnecting, **Actions > Archive** moves the entry to **Archived**. Restore
returns it to the working list in a disconnected state. **Reopen setup** then
allows new credentials to be supplied; restoring never silently restores access.
## Errors and limits
- **Setup changed:** another administrator changed the connection. Refresh and
review the latest entry before retrying.
- **Administrator access changed:** sign in again or ask a current workspace
administrator to manage the connection.
- **Connection limit:** archive unused entries. Up to 100 unarchived connections
are supported; the list uses bounded pagination.
- **Instance address rejected:** use only the canonical HTTPS `service-now.com`
origin. Do not paste a record link or credentials into the address field.
Saving connection details does not contact ServiceNow. Running **Test connection**
explicitly contacts the configured instance. No setup or test operation creates an
incident. Live-account acceptance and incident write validation remain outstanding.
## Management API
`POST /api/auth/servicenow/manage` requires a verified workspace administrator
session, the canonical Origin header, and JSON. Supported operations are `create`,
`list`, `read`, `rename`, `configure`, `disconnect`, `reopen`, `archive` and `restore`.
Updates include `connectionId` and `expectedRevision`. `configure` takes
`credentials: {clientId, clientSecret}`. The server supplies tenant and owner
identity from the verified session; caller-supplied owner or tenant overrides
are rejected.
`list` accepts `limit` (1-100), optional `after`, and `archived`. Follow `nextCursor`
with the same archive filter. Returned connection metadata excludes client IDs,
secrets, tokens and internal authorization-owner bindings. See the generated
[API reference](../api/operations/manageServiceNowConnections/).
`POST /api/auth/servicenow/test` accepts `connectionId` and `expectedRevision` under
the same verified administrator session. It returns `authentication`, `incidentRead`,
`createAccess: "not-tested"`, and `checkedAt`. Successful results appear as
`lastSuccessfulCheck` in connection responses. Provider 401 errors return 409 so a
provider authentication failure does not end your workspace session. Rate-limit
responses include `Retry-After`. See [test API reference](../api/operations/testServiceNowConnection/).
`POST /api/auth/servicenow/tasks` supports `read-mapping`, `save-mapping`,
`list-tasks`, `prepare-task`, `read-preview` and `list-choices`. Every operation takes the current
`connectionId` and `expectedRevision`. Saving returns an advanced revision; use it
for subsequent requests. Task selection pages contain at most 50 IDs, titles and
versions, with `nextCursor` passed as `after`. Preparation accepts a task ID/version,
not caller-supplied task content. See [incident configuration API](../api/operations/configureServiceNowIncidents/).
`POST /api/auth/servicenow/deliver` supports `create`, `status`, `refresh-incident`, `find-incidents`, `link-incident` and `check-references`. Creation requires
`connectionId`, `expectedRevision`, `planId`, `previewId`, the preview's `requestId`
and `payloadHash`, and `confirm: true`. Only a fresh preview can retry a `not-sent`
attempt, with its ID in `retryOf`. Status needs `connectionId` and `planId` and makes
no provider request. See [incident delivery API](../api/operations/deliverServiceNowIncident/).
`refresh-incident` takes `connectionId`, `expectedRevision`, `operationId` and
`expectedAttemptRevision`. It returns a timestamped provider observation only after
verifying the original incident identity and correlation.
`find-incidents` takes the same connection/attempt revision fields as refresh.
`link-incident` additionally takes the returned `searchId`, a selected `incidentId`,
and `confirm: true`. Always use the latest returned attempt revision.
Mapping `defaults.customFields` accepts a map of supported internal column names to
text, boolean or finite number values. The delivery payload flattens them into
incident fields and binds them to the reviewed payload hash.
`check-references` takes `connectionId`, `expectedRevision` and `previewId`.
The response contains `attempt: null` and `referenceCheck`, including the exact
preview payload hash, expiry and bounded per-reference observations. It does not
change an existing delivery attempt.
## Load category and subcategory choices
In **Incident fields**, choose **Load category choices** to read English category
and subcategory entries directly from the configured instance. Category selection
filters dependent subcategories. Changing category clears the previous subcategory
so it cannot silently carry into a different category. Select **Enter a value
manually** for an approved raw value that is not listed; saved manual values are
preserved when loading choices or when a lookup fails.
The optional lookup reads only active `incident` entries in `sys_choice`, with
100 entries per page. Use **Load more choices** when offered, or **Refresh choices** after the last page to reload the catalog. It needs read access
to those choice records; incident read access alone may not provide it. Ask the
ServiceNow administrator for narrowly scoped read access or retain manual entry.
Do not grant administrator access to make the dropdowns work. Inherited choices,
other languages, custom field choices and dynamic client-script rules are not
inferred from this list. A complete list of visible pages is not proof that ACLs
expose every choice or that an incident will pass mandatory-field/business rules.
The authenticated `list-choices` operation on `/api/auth/servicenow/tasks` uses the
same connection revision and owner checks as incident setup. Pagination uses a
validated `after` sys_id; there is no arbitrary table, URL or encoded-query input.
Credentials, owner access and connection scope are rechecked after provider waits.
No incident is created and no choice records are changed by this operation.
ServiceNow documents choice languages and dependent values in its
[choice-column reference](https://servicenow.github.io/sdk/4.9.0/api/table/columns/choicecolumn-api).
## Permanently delete a connection
Disconnect an unused connection, then choose **Delete permanently** from its
Actions menu. Archived connections also offer **Delete permanently**. Review the
inline confirmation or choose **Keep connection**. Deletion removes credentials,
incident-field configuration, cached checks and automatic status-check schedules.
It does not delete or modify incidents in ServiceNow.
Choose **Deleted history** on the connections page to find generic identifiers for
deleted connections. **Delivery history** lets you choose a migration task and
read its saved incident receipt. The original connection name and instance setup
are removed; receipts retain their original incident address so you can open an
existing incident. Reading saved history does not contact ServiceNow. You cannot
restore, reauthorize or enable scheduled checks on a deleted connection.
An already-dispatched request may still return a receipt after deletion. That
receipt is preserved. An uncertain result remains uncertain; inspect ServiceNow
before manually creating a replacement incident. Deletion never authorizes an
automatic resend.
If the deletion response is lost, retry using the same revision. A confirmed
same-revision retry is idempotent. `POST /api/auth/servicenow/manage` accepts
`operation: "delete"`, `connectionId`, `expectedRevision` and `confirm: true`.
The existing verified workspace-administrator browser-session requirement applies;
API keys and agent credentials cannot call this management endpoint. To list
history identifiers, send `operation: "list", deleted: true`. Do not combine
`deleted: true` and `archived: true`. Normal reads and restore requests return 404
for deleted connections. The task/history endpoints retain their existing
administrator authorization and tenant checks.
---
# Export workspace audit and security logs
Source: https://qscan.dev/docs/siem-log-export
Workspace administrators can configure log export from **Integrations > SIEM log export**. To delegate this task without granting team administration, open **Workspace members** and grant **SIEM management** to an existing analyst or viewer. The member must sign in again after a permission change. Revoking the grant invalidates existing authorization; it does not change their role or other workspace memberships.
## Connect and verify a receiver
1. Open SIEM log export and add a connection. Give it a recognizable name.
2. Choose **Signed HTTPS receiver** or **Splunk HTTP Event Collector** and enter the HTTPS endpoint. For Splunk, enter a scoped HEC token, optionally an index, and choose whether indexer acknowledgement is required.
3. Select audit activity, authentication/security changes, or both. Save the disabled connection.
4. For signed HTTPS, copy the one-time signing secret directly into your receiver's secret store. Do not paste it into a ticket or log. The saved connection does not reveal it again.
5. Select **Test connection**. Resolve destination, credential or receipt errors before proceeding. Enable export only after a successful test with the current credential.
6. Perform a workspace action and inspect **Delivery history** and the receiver. A successful test does not establish downstream parsing, indexing or alerting. Validate those separately in your SIEM.
Credential replacement requires another successful test. Disabling stops export; revocation removes the stored destination secret. A revoked connection can be deleted. General discovery integrations and mixed discovery/log subscriptions remain separate from delegated SIEM management.
## Understand the event
Both transports use the versioned `qscan.siem-event.v1` mapping to ECS 8.17.0. Signed HTTPS receives the JSON event; Splunk HEC places it inside the HEC `event` field. `organization.id` identifies the workspace, `event.id` is stable across retries, and `@timestamp` is the original event time. Use the event ID to deduplicate.
`audit.recorded` and `security.recorded` select the streams. Unknown outcomes remain unknown. The projection allowlists fields; it does not export arbitrary audit extensions, passwords or tokens. Freeform actor/resource labels become SHA-256 correlation fingerprints. These are pseudonymous identifiers, not a promise of anonymity.
Account-security actions use the initiating workspace. Recovery and known-account failed sign-ins without a session use the last accessible workspace. Events are not broadcast to every workspace the user belongs to. Historical events retain their original workspace when the user later switches. Export starts with new events, not a historical audit backfill.
## Diagnose missing logs
There are two delivery stages:
- **Identity log handoff** shows account events that have not yet reached the workspace delivery queue. It omits the event payload and actor. Pending events retry automatically; exhausted handoffs remain visible. **Retry handoff** schedules another bounded cycle, preserving the original event ID and workspace. Each cycle allows eight attempts; at most sixteen manual cycles are permitted. Contact support after that limit.
- **Delivery history** shows the workspace-to-receiver result. An empty identity handoff queue does not prove receiver delivery. Receiver acknowledgement does not prove downstream analysis. For failed or cancelled deliveries, select **Review retry** to inspect the event ID and eligibility. Unknown Splunk outcomes require explicit duplicate-risk confirmation after checking the receiver. Credential changes, retained acknowledgements, revocation and attempt limits can prevent resending. A queued retry is not a confirmed receipt.
Only the current workspace's administrator or a member granted SIEM management can inspect or retry its handoffs. Browser sessions are required for identity handoff diagnostics. The API reference documents `/api/auth/siem/handoff`, `/api/auth/siem/handoff/retry` and `/api/v1/siem/connections`.
The contract implements a subset of [ECS 8.17 event fields](https://www.elastic.co/guide/en/ecs/8.17/ecs-event.html). It does not claim collection of every ECS field or automatic compliance with a SIEM detection framework.
---
# Splunk event delivery
Source: https://qscan.dev/docs/splunk-connections
Send QScan event notifications directly to Splunk HTTP Event Collector (HEC).
No intermediary receiver is required. Notifications contain event, workspace and
resource IDs rather than raw captures, source code or cryptographic evidence.
A workspace administrator configures the destination and reviews its first test.
## Prepare Splunk access
Create a dedicated HEC token restricted to the intended index. The connector needs
HEC ingestion access, not a Splunk administrator or search credential. Enable the
token, choose its allowed/default index and copy it into QScan's token field.
Follow [Splunk's HEC setup guide](https://help.splunk.com/en/data-management/collect-http-event-data/use-hec-in-splunk-cloud-platform/set-up-and-use-http-event-collector-in-splunk-web).
Use the public HTTPS **event endpoint**, such as
`https://http-inputs-your-stack.splunkcloud.com/services/collector/event`.
A host origin is also accepted and normalized to that path. Ports 443 and 8088
are supported. A private-only instance needs a public TLS ingress that your
organization controls; do not disable TLS verification. Management/search URLs,
literal IP addresses, redirects, URL credentials, query strings and fragments
are not accepted. Obtain the exact hostname from your Splunk administrator.
Leave **Indexer acknowledgement** off unless your deployment and HEC token support
it. Splunk documents Cloud Platform indexer acknowledgement support for AWS Kinesis
Firehose; ordinary direct Cloud HEC delivery should use collector acceptance.
For supported Enterprise deployments, enable acknowledgement on both the HEC token
and the QScan connection. See [Splunk's acknowledgement documentation](https://help.splunk.com/en/splunk-enterprise/get-data-in/get-started-getting-data-in/9.4/get-data-with-http-event-collector/about-http-event-collector-indexer-acknowledgment).
## Configure and test
1. Open **Integrations > Splunk > Manage Splunk**, then **Add Splunk**.
2. Enter a recognizable name, the HEC endpoint and token. Tokens are encrypted
in storage and are never returned in connection metadata or delivery history.
3. Select an index or leave it empty to use the token's default. The default
sourcetype is `sectigo:quantum:ready`. Select the event outcomes you need.
4. Save the disabled connection. Choose **Send test**, then inspect **Deliveries**.
A queued test is not a successful connection check.
5. Wait for **Collector accepted**, or **Indexer confirmed** when acknowledgement
is enabled. Find the test event in Splunk before choosing **Enable**.
Endpoint, index, sourcetype and acknowledgement mode are fixed for a destination.
Create a replacement destination when changing that scope. **Edit events** affects
future events; already queued deliveries retain their original recipients.
The shared limit is ten unrevoked event destinations per workspace, including
signed webhooks. Delivery and attempt history are retained for thirty days.
## Understand delivery results
| Result | What it establishes | Next step |
| --- | --- | --- |
| Queued / Sending | Work is pending or a request is in flight | Refresh delivery history |
| Awaiting indexing | HEC accepted the event and QScan retained its acknowledgement ID | QScan polls the same receipt; it does not resend the event |
| Collector accepted | The HEC event endpoint returned a valid success receipt | Verify indexing and downstream processing in Splunk |
| Indexer confirmed | The acknowledgement endpoint confirmed that receipt | Inspect the indexed event and your downstream rules |
| Failed | A definitive provider error or exhausted retry budget | Review the error and correct access/configuration |
| Outcome unknown | Acceptance or indexing could not be established | Search for the event ID before considering a retry |
| Cancelled | The queued work was stopped | An earlier in-flight request may still have arrived |
QScan inspects the HEC response code; an HTTP 200 by itself is insufficient.
Provider response text and tokens are not retained. History shows safe error
messages, HTTP/provider codes, attempt phase and delivery assurance.
See [HEC response codes](https://help.splunk.com/?resourceId=SplunkCloud_Data_TroubleshootHTTPEventCollector).
Acknowledgement polling is bounded by thirty minutes from the accepted receipt
and 64 total attempts. False means indexing is unconfirmed, not that resending is
safe. A known accepted receipt is never automatically resent. An expired or
unverifiable indexing receipt is marked unknown and cannot be retried as a new
send through the delivery retry action.
Transient sends use up to eight attempts per retry cycle and honor provider retry
delays. A network interruption can occur after Splunk accepted an event. Retries
may therefore duplicate it; events can also arrive out of order. Use the workspace
and stable event ID as your deduplication key. This is not exactly-once delivery.
A later rejected attempt does not erase uncertainty from an earlier send.
## Find an event in Splunk
Copy **Event ID** from delivery history and search the chosen index. For example:
```text
index=security sourcetype="sectigo:quantum:ready"
| spath
| search id="YOUR-EVENT-ID"
| table _time id type organizationId data.resourceId
```
The source is `sectigo-quantum-ready`. Event time is the original QScan event time,
not the retry time. Setup sends `webhook.test`; production subscriptions use the
same [event catalog as signed webhooks](../webhook-integrations/).
If a send's receipt was lost, inspect Splunk first. Retrying an unknown send
requires explicit duplicate-risk approval and retains the same event ID.
Do not put that approval into an automatic retry loop. If the event is already
present, retain it and investigate downstream processing instead of resending.
## Replace a token or stop delivery
Use **Replace token** with the current connection revision. Replacement disables
delivery, cancels active delivery records and clears prior test verification.
Send a new successful test, inspect it in Splunk and enable the connection again.
An old token's in-flight response cannot validate the replacement. Revoke the old
HEC token in Splunk after reviewing your rotation procedure.
**Disable** stops queued work. **Revoke** permanently retires the QScan destination.
Neither action removes previously indexed events or revokes the HEC token at
Splunk. In-flight requests may already have arrived. Re-enabling starts with
future events; it does not backfill events skipped while disabled.
## API and SDKs
Administrators use the shared event-destination API:
- `POST /api/v1/webhooks` with `kind: "splunk"`, name, URL, HEC token and events.
- `GET /api/v1/webhooks` for metadata and `secretVersion`.
- `POST /api/v1/webhooks/{id}/credentials` with `expectedVersion` and the new token.
- Existing test, state, subscriptions, delivery history, retry and revoke routes.
```javascript
const requestId = crypto.randomUUID(); // Retain with the exact request for retries.
const destination = await qr.createSplunk({
requestId,
name: 'Security events', url: process.env.SPLUNK_HEC_URL,
token: process.env.SPLUNK_HEC_TOKEN, index: 'security',
events: ['capture.completed', 'repository-scan.completed']
});
const test = await qr.testWebhook(destination.id);
const receipt = await qr.webhookDelivery(destination.id, test.id);
// Poll with bounded backoff and review receipt.state and deliveryAssurance.
// Enable only after the test succeeds and you inspect the event in Splunk.
```
```python
import os, uuid
request_id = str(uuid.uuid4()) # Retain with the exact request for retries.
connection = qr.create_splunk(
'Security events', os.environ['SPLUNK_HEC_URL'],
os.environ['SPLUNK_HEC_TOKEN'],
['capture.completed', 'repository-scan.completed'], index='security', request_id=request_id)
test = qr.test_webhook(connection['id'])
receipt = qr.webhook_delivery(connection['id'], test['id'])
```
| JavaScript | Python |
| --- | --- |
| `createSplunk(input)` | `create_splunk(name, url, token, events, **options)` |
| `replaceSplunkToken(id, version, token)` | `replace_splunk_token(id, version, token)` |
| `webhookDelivery(id, deliveryId)` | `webhook_delivery(id, delivery_id)` |
| `allWebhookDeliveries(id)` | `all_webhook_deliveries(id)` |
| `retryWebhookDelivery(id, deliveryId, {confirmDuplicateRisk: true})` | `retry_webhook_delivery(id, delivery_id, confirm_duplicate_risk=True)` |
The final row is for an explicitly reviewed unknown **send**, not acknowledgement
polling. Both SDKs omit approval by default. Creation accepts a retained `requestId` (`request_id` in Python); reuse the identical input after a lost response. Changed input or principal returns 409. The console retains its request ID while retrying the same setup. See the [API reference](./api/index.md)
for exact request and response contracts.
## Acceptance boundary
Provider and Worker/Tenant tests use synthetic HEC responses. They verify token
privacy, tenant/role enforcement, receipt persistence, bounded retries, credential
replacement races and acknowledgement handling. They do not certify your Splunk
instance, token permissions, index rules or downstream alerts. Complete the test
and event lookup above in your deployment before enabling production delivery.
## Remove retired connections
Revoke a destination first. Revocation stops queued delivery and removes QScan's
stored credential. Requests already sent may still reach the receiver; their
late receipts remain visible, without scheduling another send or indexing check.
Revoking in QScan does not revoke a token in Splunk or erase receiver-side events.
Open **Retired connections & history** from Signed webhooks or Splunk connections.
The full-page view lists revoked destinations, 25 per page. Choose **Delete
permanently**, review the retained-history explanation, then confirm; **Keep
connection** cancels without changing anything. If the response is lost, **Retry
deletion** uses the same revocation details. A confirmed deletion cannot be undone.
**Deleted history** lists generic connection identifiers, 100 per page. Endpoint
settings, original names and credentials are removed; delivery receipts remain
available for their normal thirty-day retention. Receipt history has no retry
controls for retired destinations. Collector acceptance alone does not establish
indexing or downstream processing.
For automation, revoke with `DELETE /api/v1/webhooks/{id}`, then send
`POST /api/v1/webhooks/{id}/delete` with `confirm: true` and the exact
`expectedRevokedAt` returned by revocation. Repeat that same body after a lost
response. Read deleted identifiers with `/api/v1/webhooks?deleted=true` and follow
`nextAfter` as `after`; delivery-history paths remain unchanged. JavaScript offers
`deleteWebhook`, `deletedWebhooks`, and `allDeletedWebhooks`; Python offers
`delete_webhook`, `deleted_webhooks`, and `all_deleted_webhooks`.
OAuth MCP clients can use `event_destination_revoke`,
`event_destination_delete`, and `event_destinations_deleted`. Mutations require
explicit confirmation and workspace administrator authority. Existing
`event_deliveries` and `event_delivery` tools read retained receipts.
---
# Troubleshoot setup
Source: https://qscan.dev/docs/troubleshooting
| Symptom | Check | Next action |
| --- | --- | --- |
| Invitation missing | Portal delivery state, expiry and junk folder | Resend to the intended recipient; older links are invalidated |
| MFA code rejected | Device clock and latest authenticator code | Wait for the next code; already-used codes cannot be reused |
| Agent has no recent contact | Endpoint, credential expiry/revocation, connectivity and process status | Restore connectivity or enroll a replacement credential |
| Configuration awaiting agent | Agent version, process and heartbeat | Upgrade to scanner 0.11.0+, opt in locally and restart |
| Configuration rejected | Reopen Configure agent for the fixed reason code | For local-opt-in-required, enable managedConfiguration locally; for outside-local-scope, narrow remote scope or obtain approval to change local limits; for invalid-configuration, check paths and types |
| Job rejected by local scope | Exact host:port, repository path and capabilities | Correct the intended job or approved local scope |
| Incomplete analysis | Read errors, Python syntax and manifest diagnostics | Fix inputs or use a compatible interpreter, then rerun |
| HTTP 429 | Retry-After response header | Wait and preserve the ingestion idempotency key |
| Access stops after suspension | Workspace status in the tenant portal | An administrator must resume the workspace |
## Diagnose the local agent
Run `python scanner/qr.py doctor --config agent.local.json` in the agent environment. Fix failed check codes, then rerun. `config.repositoryRoots.N` identifies the zero-based list entry without disclosing its path. Install dependencies using that environment's `python -m pip install -r scanner/requirements.txt`. Do not solve read errors by granting blanket administrator permissions; grant the intended account access only to approved repositories.
Passing doctor does not prove connectivity or credential validity. If all checks pass but contact is missing, review the process, outbound HTTPS access, and credential expiry or revocation. The report is local-only and excludes configured values.
## Review a doctor report in getting started
Open **Getting started > Review local diagnostics**. Choose the distribution actually running on the host: Windows binary, Linux binary, Python on Windows, or Python on macOS/Linux. The dialog provides a matching command and an optional protected credential-file argument. Selecting a distribution changes the instructions; it does not install or change the agent.
For a verified Windows binary, run from its complete extracted directory:
```powershell
.\quantum-ready.exe doctor --config agent.local.json --token-file agent.token | Out-File -Encoding utf8 doctor.json
```
For a verified Linux binary, run from its complete extracted directory:
```sh
./quantum-ready doctor --config agent.local.json --token-file agent.token > doctor.json
```
Use your actual configuration and protected credential-file paths. If the agent uses an existing `QR_TOKEN` environment variable, omit `--token-file`. Keep the same `QR_ENDPOINT` setup. Do not paste credentials into the browser or command history. Native binaries do not require system Python; retain their companion files together.
For Python, use `python scanner/qr.py doctor` with the same arguments and the agent environment's Python executable. Exit code 2 means checks need attention; the JSON report can still be reviewed. Run as the intended agent account. A report from an interactive account does not establish the installed service account's access; use the [service guide](../linux-binary-preview/) for service status and startup diagnostics.
Choose `doctor.json` in the viewer. Reports up to 256 KiB are read locally in the browser, without upload or browser storage. Failed checks appear first with specific repair steps and links. Passed checks are collapsed. Unknown checks require manual review with the matching scanner documentation. Arbitrary messages and extra fields from the file are not displayed. **Clear report** or closing the dialog removes the displayed report.
A report is not authenticated, timestamped or bound to the selected agent. It does not validate credentials, cloud permissions, connectivity or remote capabilities. Regenerate it after configuration changes, then use **Check connection again** to review agent contact. For compiled-agent dependency failures, the viewer directs you to verify the complete signed distribution rather than install Python packages. TShark remains a separate dependency for capture analysis.
## A useful support report
Include workspace name, agent/job identifiers, operating system, Python/scanner versions, timestamp, action attempted, and the redacted error category. Explain what you expected and what occurred. Exclude tokens, password-reset URLs, MFA setup keys, repository contents and packet payloads.
## Understand the limits
Discovery coverage counts observations; it does not prove your entire environment was inspected. A hybrid key exchange does not imply post-quantum authentication. Manifest declarations do not prove runtime use. Review evidence and confidence before making migration decisions.
## Findings rejected at the workspace asset limit
A workspace currently holds up to 50,000 distinct assets. Asset identity combines the observation source and external ID. Multiple findings for that same identity count as one asset; fresh evidence for an existing asset remains accepted at the limit.
If a batch would add enough new identities to exceed the limit, the entire batch is rejected with HTTP 409 and no evidence from that batch is saved. Reconcile source and external IDs before retrying; do not rename the same asset on every scan. Replaying an accepted batch with the same idempotency key and content does not add its evidence again.
HTTP 429 is a separate request-budget limit. Honor `Retry-After` and retain the batch idempotency key when retrying unchanged content. Agent evidence admission uses bounded per-channel and per-credential budgets; other ingestion credentials retain their workspace budget. Admission failures return HTTP 503 without accepting evidence. Sustained high-volume findings ingestion has not yet passed fleet-capacity acceptance.
## Evidence is accepted but its archive is pending
Ingestion and archival are separate steps. Accepted findings are saved with their job provenance before the archive worker writes and verifies an evidence object. A pending archive does not mean the finding was rejected.
Archive writes run in background queue consumers, with up to four storage operations per consumer and eight consumers. The workspace dispatches identifiers in bounded batches; it does not put evidence contents in messages. Consumers load the evidence from its owning workspace, create an immutable object, verify its checksum, and commit a matching receipt before clearing the workspace retry record.
Duplicate deliveries do not duplicate receipts or overwrite archived objects. Interrupted dispatches are retried from the durable workspace record; an uncompleted dispatch is eligible for redelivery after five minutes. Storage failures retain their retry delay. A delayed message from an older dispatch cannot change a newer attempt. Pending and retrying records remain visible until verified completion. These bounds are not a guarantee of sustained throughput; use the evidence archive status to distinguish pending, retrying and archived records.
### Locate an archive delay
Open **Evidence archive**, click the observation name (or **Actions ? View details**), then use **Refresh status** to check its processing stages without leaving the dialog. Downloads appear after verification. The same record is available at `GET /api/v1/evidence/{id}`.
New queued archive receipts include `queuedAt`, `dispatchedAt`, `consumerStartedAt`, `archivedAt`, and `dispatchAttempts`. The evidence API returns these optional fields while processing and after completion. Older receipts may not have them.
Compare enqueue to dispatch to identify workspace scheduling delay; dispatch to consumer start includes queue delivery and the source lookup; consumer start to completion includes object verification and receipt processing. These are elapsed stages, not isolated provider timings. A new dispatch resets its consumer-start timestamp while preserving the original enqueue time. Duplicate deliveries do not reset a recorded start or completion.
## Review cloud-access results
Open **Getting started > Review local diagnostics** and select **AWS KMS access**,
**Azure Key Vault access** or **Google Cloud KMS access**. Choose the distribution
running on the collector host. Copy the generated command, run it from the folder
containing `agent.local.json`, then choose the resulting `cloud-access.json` file.
Python commands use the isolated provider environment created by setup. Cloud access
checks use the local cloud identity and do not require an agent enrollment token.
The viewer separates passed resources from failed checks. Resource 1 means the first
entry in the report's configuration; it does not reveal the resource name. Repeated
errors on different resources remain separate. Malformed or inconsistent reports are
rejected, and unfamiliar diagnostic codes are marked for review.
For authentication errors, check the selected local identity. For access denial,
review the documented metadata-read permission on the exact resource. A generic
request failure can also mean missing SDKs, an unavailable local login, or an HTTPS
problem; it is not proof that the identity needs more permission. Do not grant
administrator access to work around a failed check.
Files stay in this browser without upload or persistent storage. Supplied messages,
resource identifiers and extra fields are not displayed. Clear the report or close
the dialog when finished. A passed report is a point-in-time cloud metadata read,
not proof of platform enrollment, service-account access, future permissions or a
completed scan. It is not bound to the current workspace or selected agent.
## Understand connection retries
Scanner **0.26.2 and newer** reports a fixed `reason` with each `connection-retry`
event. Check the version actually installed; older binaries may show only the
status. Service logs retain the retry delay, including fractional seconds and
longer server-requested waits. A retry is not a completed connection or scan.
| Reason | Next check |
| --- | --- |
| `tls-certificate-rejected` | Check the machine clock, server hostname and the certificate trust available to the service account. Ask your administrator to review any HTTPS inspection certificate. Keep certificate verification enabled. |
| `tls-handshake-failed` | Review TLS compatibility and the outbound proxy or inspection policy. |
| `dns-failed` | Confirm the configured endpoint resolves from the agent host. |
| `connection-timeout` | Check outbound HTTPS routing, firewall and proxy access. |
| `connection-refused` / `connection-reset` | Check endpoint availability and network-device rejection. |
| `rate-limited` | Allow the reported delay to elapse; repeated restarts do not remove a provider limit. |
| `server-unavailable` | Keep the agent running while it retries; review service availability if the failure persists. |
| `http-rejected` / `network-error` | Check the configured endpoint and local network policy. These categories alone do not establish credential validity. |
The log uses fixed categories and omits raw exception text, credentials and URLs.
A `maintenance-wait` event with `reason: paused` confirms the local process is
waiting because of its cloud pause state.
On Windows, Python's default TLS context loads the Windows `CA` and `ROOT`
certificate stores. A browser or an administrator's successful request does not
prove that the agent's service environment can validate the same connection.
Follow your organization's [Windows trusted-root management](https://learn.microsoft.com/en-us/windows-server/identity/ad-cs/configure-trusted-roots-disallowed-certificates)
policy; do not import an unverified certificate to silence an error. See
[Python's default certificate loading](https://docs.python.org/3.12/library/ssl.html#ssl.SSLContext.load_default_certs).
---
# Unified agent quickstart
Source: https://qscan.dev/docs/unified-agent
Open **Getting started > Install unified agent** or **Agents > Enroll > Install unified agent**. Start here for a new installation. One operating-system package includes the native agent, scanner modules, service installer and guided/silent launcher. You select the scanners and exact local scope during setup; including a module does not authorize it to scan everything.
## Choose your platform
| Platform | Primary path | Backup option |
| --- | --- | --- |
| Windows / Windows Server x86_64 | [Unified Windows package and guided installation](../windows-bulk-deployment/#interactive-installation-on-one-machine) | [Individual foreground agent](../windows-binary-preview/) or [service components](../windows-service/) |
| Ubuntu 24.04 x86_64 | [Unified Linux package and guided installation](../linux-binary-preview/#one-package-guided-or-silent-installation) | [Individual native components](../linux-binary-preview/#individual-releases-and-advanced-setup) or [Python service](../linux-service/) |
| Debian 12 / 13 x86_64 | [Unified Linux package and guided installation](../linux-binary-preview/#one-package-guided-or-silent-installation) | [Individual native components](../linux-binary-preview/#individual-releases-and-advanced-setup) or [Python service](../linux-service/) |
| RHEL 8+ / CentOS Stream 9 x86_64 | [Linux glibc 2.28 package and qualification](../linux-binary-preview/#linux-distribution-coverage) | [Python setup](../agent-setup/); full distro-host lifecycle qualification remains separate |
| macOS arm64 | [Combined native package and service instructions](../macos-native-package/) | [Python setup](../agent-setup/#macos-quick-start) |
The product checks the current package catalog before offering a download. If a package is expired or unavailable, refresh or choose the individual-component guide. Do not disable signature or expiry validation.
## Current packages
| Platform | Agent | Installer | Unified package |
| --- | --- | --- | --- |
| Windows / Windows Server x86_64 | 0.27.26 / 964 | 0.51.595 / 965 | 0.51.595 |
| Ubuntu / Debian x86_64 | 0.27.26 / 963 | 0.51.595 / 960 | 0.51.595 |
| macOS arm64 | 0.27.26 / 961 | 0.51.595 / 962 | 0.51.595 |
The Linux package passed Ubuntu/Debian enrollment, restricted service execution,
signed updates, rollback and reboot checks. Its native database scan also passed
against the production control plane. Mac 0.27.4 passed native database and RSA
checks, protected unified installation, upgrade and a production managed database
scan. Windows 0.27.4 passed native scanning, installed production database scans
before and after service restart, protected installation/removal, and unified
ZIP/Intune inventory comparison. Its production scheduled upgrade from 0.27.3
to 0.27.4 preserved protected enrollment and configuration, and the replacement
process completed a real scan. Intune tenant assignment was not exercised. Consult each
platform guide for update, reboot and
distribution-specific qualification. Individual components remain available as
backup paths; the live catalog checks package dependencies and expiry.
## Guided installation
1. Download the platform package. Follow its guide to verify the hash and independently trust the release key, then extract to a protected folder.
2. Run the guided launcher shown in the product. Windows uses `Deploy-QuantumReady.ps1 -Action Guided` from an administrative terminal; Linux uses `sudo ./Deploy-QuantumReady.sh guided`. On macOS, run `./Deploy-QuantumReady.sh guided` as your regular user for foreground scanning. The Mac guide provides separate administrator commands for background services.
3. Select scanners and exact hosts, directories, stores or cloud resources. Review local permissions. Approve the displayed sign-in link in your browser; do not pre-enroll another agent or copy a token for this path.
4. Keep the terminal open until installation finishes. Preserve the setup state and use the platform guide to resume an interrupted install with the same identity.
5. Confirm recent contact in **Agents**, then run an allowed scan and review findings and coverage. Contact alone does not establish working target access.
Background-service installation needs administrator privileges; managed discovery uses its restricted service account. Mac foreground setup runs as your regular user. TShark is a separate prerequisite for capture analysis. Provider permissions are separate from enrollment. For hosted AWS, GCP and Azure scanning, use **Cloud connections** without a local agent.
## Scan other devices through an approved agent
The remote-scanning workflow uses selected enrolled agents to inspect
approved devices and subnets. Installing the unified package does not grant this
access. It requires a scanner pool, explicit device membership and local
administrator approval. See [Remote network scanning](../remote-network-scanning/)
for the release status, network/security review, configuration handoff and a
single-device canary before a wider run. Individual agents remain an alternative
when they have the required protocol capability and remote-scanning runtime.
## Silent and bulk deployment
Open **Integrations > Agent deployment** for Intune, Configuration Manager, Linux deployment and other supported management paths. Deliver a private per-device grant and approved configuration separately from the shared package. Use the platform guide's unattended install parameters, detection, status, recovery and removal commands. Never put credentials in command arguments or embed a shared token in an installer. See [bulk deployment](../bulk-agent-deployment/).
## Individual agents and existing credentials
### Relay-only installation
The unified launcher source now has an explicit relay-install path. It uses an
agent identity already issued by a workspace administrator, so the machine does
not need direct browser or device-grant enrollment before reaching its relay.
Linux 0.51.415 and Windows 0.51.415 packages include separate relay-agent and
relay-node paths. Provider-managed enrollment acceptance remains separate from
local launcher and service qualification.
The administrator supplies three private per-device files separately from the
shared software package: approved agent configuration with `relayEnrollment`,
the agent API credential, and a short-lived bootstrap credential scoped to the
approved relays. Never reuse one agent identity across machines. The configuration
sets primary/secondary relays and the explicit direct-fallback policy.
Linux package launcher:
```sh
sudo ./Deploy-QuantumReady.sh install-relay \
--config /private/agent.json \
--token-file /private/agent.token \
--relay-bootstrap-token-file /private/bootstrap.token
```
Windows launcher source:
```powershell
.\Deploy-QuantumReady.ps1 -Action InstallRelay `
-ConfigurationPath C:\Private\agent.json `
-AgentTokenPath C:\Private\agent.token `
-RelayBootstrapTokenPath C:\Private\bootstrap.token
```
These parameters contain paths, never raw credentials. The launcher verifies its
software package and invokes protected installer setup without starting direct
enrollment. The runtime and updater create their own relay identities under their
operating accounts. Existing installations are refused by this initial-install
path; it cannot silently replace an existing route or identity. Individual-agent
source enrollment remains available as a fallback; see [agent relays](../agent-relays/).
### Existing enrollment handoffs
Individual installation remains available in **Getting started** by selecting a source, and in **Enroll > Advanced: enroll an individual agent**. Use this path for a precision installation, a foreground process, an already enrolled agent, or an email/ZIP handoff that has issued an agent credential. Those instructions preserve the existing identity and local scope.
An email/ZIP enrollment handoff is an identity-bearing setup link, not the unified software package. After redeeming it, follow its existing-credential instructions. Do not start guided browser enrollment again, which would create another identity. To use unified guided enrollment instead, start a new installation with an authorized workspace user and revoke any unused handoff/agent.
Cloud-managed updates require a supported supervisor and an explicitly enabled local update policy. Installing the unified package alone does not permit unrestricted remote updates. See [distribution and update status](../agent-distributions/).
---
# Signed webhook integrations
Source: https://qscan.dev/docs/webhook-integrations
Send job, migration verification and evidence archive events to your organization's HTTPS receiver. Use that receiver to create tickets, notify a security system or enqueue downstream work. For native ticket setup and delivery, see [ServiceNow](../servicenow-connections/) and [Jira](../jira-connections/). For direct HEC delivery without an intermediary receiver, see [Splunk](../splunk-connections/). A custom webhook receiver must implement its destination's authentication and field mapping, including any SIEM-specific ingestion requirements.
## Get your first delivery
1. In **Integrations > Signed webhooks**, select **Add endpoint**. Enter a public HTTPS URL on port 443 and choose the events. Expand a source group to select individual outcomes; the counts show exactly how many are selected. Use **Clear selection** to start with only the outcomes your receiver needs. URLs cannot contain credentials, query parameters or fragments.
2. Save the one-time signing secret directly in the receiver's secret store. The new endpoint starts disabled. Do not put the secret in a URL, ticket or application log.
3. Configure the receiver to verify the exact request body and signature headers before parsing JSON. The SDK helpers below reject invalid signatures and timestamps outside five minutes.
4. Select **Send test**, then **Deliveries > Refresh latest**. Wait for **delivered** and inspect the HTTP status. A queued test has not verified the receiver.
5. Select **Enable** after a successful test. Perform an appropriate workspace action, then confirm the receiver stored the event and completed its downstream work.
Only workspace administrators manage endpoints or read delivery history. A workspace supports up to ten unrevoked endpoints. Delivery history is retained for thirty days.
## Verify and persist before acknowledging
The receiver gets `webhook-id`, `webhook-timestamp` and `webhook-signature` headers. Verify the body before middleware changes its whitespace or encoding. Keep the receiver clock synchronized. JavaScript verification accepts a `Headers` instance and raw UTF-8 text or bytes; Python accepts a header mapping and raw bytes.
```javascript
import {verifyWebhookSignature} from './sdk/javascript/index.mjs';
const valid = await verifyWebhookSignature({
secret: receiverSecret,
headers: request.headers,
payload: new Uint8Array(await request.arrayBuffer())
});
```
```python
from quantum_ready import verify_webhook_signature
valid = verify_webhook_signature(receiver_secret, headers, raw_body_bytes)
```
If verification fails, return 401 and do not process the payload. After verification, validate `schemaVersion`, `organizationId`, `type` and the event ID. Atomically store the event in a durable inbox using the organization ID and event ID as a unique key. Return 2xx only after committing that record. An already-stored event can return 2xx without repeating its effects. Process the inbox asynchronously and track downstream failures separately. These SDK helpers verify signatures; they do not provide durable storage or deduplication.
Events contain resource IDs rather than raw evidence. Fetch authorized resource details using a separate workspace API credential. Setup sends `webhook.test`; production subscriptions support these groups:
| Subscription | Resource to inspect |
| --- | --- |
| `job.completed`, `job.partial`, `job.failed`, `job.cancelled` | Agent scan job |
| `repository-scan.completed`, `repository-scan.failed`, `repository-scan.cancelled` | Hosted repository scan operation |
| `cloud-operation.completed`, `cloud-operation.failed`, `cloud-operation.cancelled` | Hosted cloud access test or scan operation |
| `capture.completed`, `capture.failed`, `capture.cancelled` | Hosted capture analysis |
| `network-scan.completed`, `network-scan.partial`, `network-scan.failed`, `network-scan.cancelled` | Hosted TLS, SSH or QUIC scan operation |
| `scm-scan.completed`, `scm-scan.failed`, `scm-scan.cancelled` | Sectigo Certificate Manager inventory import |
| `plan.verified` | Migration plan |
| `evidence.archived` | Evidence archive |
Use `sdk.repositoryScan(event.data.resourceId)` or Python `sdk.repository_scan(...)` to read a repository result. A terminal repository notification is emitted after runtime cleanup is confirmed; a completed operation can still report partial coverage. Review `result.analysisComplete` and coverage before treating the repository as fully assessed.
For cloud events, use `cloudOperation` or `cloud_operation` to read the operation. Check `purpose`: a successful `test` verifies access, while a `scan` collects evidence. Inspect passed/failed resource counts and paginated results. A failed scan can retain successful resource observations. The notification contains neither credentials nor resource metadata, and it does not assert complete provider coverage.
## Network and certificate inventory notifications
Subscribe to `network-scan.completed`, `network-scan.partial`, `network-scan.failed` and `network-scan.cancelled` for hosted TLS, SSH and QUIC scans. Read `/api/v1/network-scans/{id}` using `event.data.resourceId`. Notifications wait for a terminal outcome: a running scan's cancellation request or pending runtime cleanup does not send a terminal event. A queued scan can fail or be cancelled before any runtime starts. Inspect the operation's findings and diagnostics; completion does not prove every protocol or algorithm was assessed.
For Sectigo Certificate Manager inventory imports, subscribe to `scm-scan.completed`, `scm-scan.failed` and `scm-scan.cancelled`. Read the result with JavaScript `scmScan(id)` or Python `scm_scan(id)`. Review `accepted`, `duplicates`, `pages`, `error` and `coverage`. Earlier imported pages can remain after failure or cancellation. Completion describes the inventory visible to the configured account, not a point-in-time snapshot or complete enterprise certificate coverage.
Both event groups carry only the operation ID in `data`. Provider credentials, OAuth authority, target addresses and certificate contents are excluded. Repeated terminal actions produce one logical event; receiver retries still require event-ID deduplication. Enable these subscriptions before starting a scan: historical operations are not backfilled.
## Capture analysis notifications
Subscribe to `capture.completed`, `capture.failed` and `capture.cancelled`, then use JavaScript `captureStatus(id)` or Python `capture_status(id)` to inspect the outcome. Pass `event.data.resourceId` as `id`. Events contain only the operation ID: no packet bytes, file names, capture hashes, endpoints, lease identifiers or findings are sent to the receiver.
A completion notification is recorded in the same transaction as accepted findings, after the processor confirms destruction and `rawDataState` is `released`. Zero findings is a valid completed analysis, not proof that all traffic was quantum-ready. Passive observations do not establish peer identity or a completed handshake.
A failure or cancellation notification requires `rawDataState` to be `released` or `not-uploaded`. An expired upload window or cancellation before upload therefore produces an event without starting a decoder. Cancellation after processing starts waits for cleanup confirmation. `cleanup-pending` is not terminal and sends no completion/failure/cancellation event; continue checking status while cleanup recovery runs.
Repeated status checks, cancellation requests and recovery do not create a second logical terminal event. HTTP delivery is still at least once: deduplicate by event ID. Late subscriptions do not backfill earlier capture analyses. Receiver acknowledgement confirms notification delivery, not downstream remediation or capture coverage.
## Change subscribed events
Select **Edit events** on an existing endpoint, choose the event types and save. Select at least one; use **Disable** to stop deliveries altogether. Changes affect future events. Already queued deliveries and events waiting for fanout retain their original recipients. Adding a subscription does not backfill historical events. The endpoint URL, signing secret, enabled state and successful receiver test are preserved.
For automation, list endpoints first and retain the selected endpoint's `subscriptionRevision`:
```javascript
const hook = (await sdk.webhooks()).items.find(item => item.id === endpointId);
await sdk.updateWebhookSubscriptions(hook.id, hook.subscriptionRevision,
['repository-scan.completed', 'repository-scan.failed']);
```
```python
hook = next(item for item in sdk.webhooks()['items'] if item['id'] == endpoint_id)
sdk.update_webhook_subscriptions(hook['id'], hook['subscriptionRevision'],
['repository-scan.completed', 'repository-scan.failed'])
```
A concurrent edit returns 409. Reload and review the current selections before saving again; do not overwrite another administrator's change automatically. In the product, **Reload current events** replaces the unsaved selection. A revoked endpoint cannot be edited. If a save response is lost, reload to determine whether it succeeded before submitting another edit.
Polling remains useful for progress and reconciliation after receiver downtime; webhook events are not an historical backfill.
## Inspect and recover deliveries
```javascript
const detail = await sdk.webhookDelivery(endpointId, deliveryId);
console.log(detail.state, detail.history); // No signing secret or event body.
for await (const delivery of sdk.allWebhookDeliveries(endpointId)) {
// Inspect newest-first delivery metadata; persist only what you need.
}
```
```python
detail = sdk.webhook_delivery(endpoint_id, delivery_id)
for delivery in sdk.all_webhook_deliveries(endpoint_id):
process_delivery_metadata(delivery)
```
The single-page methods are `webhookDeliveries(id, before)` and `webhook_deliveries(id, before=...)`. Pass `nextBefore` to resume; each page contains up to 100 deliveries. Iterators follow that cursor and reject repeated cursors. History is live, not a frozen snapshot; retain IDs when reconciling across requests.
Network failures, HTTP 408, 429 and 5xx receive up to eight attempts per cycle with backoff. Other non-2xx statuses fail the cycle. Redirects are not followed. Repair the receiver first, then retry a failed or cancelled delivery using `retryWebhookDelivery` or `retry_webhook_delivery`. Retries retain the event ID, so deduplication remains necessary. Manual retries are limited to fewer than 64 prior attempts; normal events require an enabled endpoint.
## Rotate a signing secret
Rotation takes effect immediately and is not a two-key overlap protocol. An in-flight request may still carry the old signature. Use this sequence for a planned change:
1. Disable the endpoint. This cancels pending deliveries; requests already in flight may still arrive. Events generated while disabled are not automatically backfilled.
2. Call `rotateWebhookSecret(id)` or `rotate_webhook_secret(id)`. Store the returned `secret` immediately; it is shown once. Do not log the response. If a rotation response is lost, explicitly rotate again and store the replacement.
3. Update the receiver's secret store. Send a new test and inspect its delivery. Enabling is rejected until a test succeeds with the current secret version.
4. Re-enable the endpoint. Review cancelled deliveries for explicit retry and reconcile actions that occurred during the disabled interval using the workspace APIs.
Revoke an endpoint to retire it permanently. Revocation stops queued deliveries and prevents future testing or enabling. It does not retract requests already sent. For a replacement receiver, create and test a new endpoint.
See the [OpenAPI reference](../api/) for exact request and response shapes. SDKs and this guide are included in the signed source bundle.
With scanner 0.26.55 (pending release), `network-scan.partial` reports retained TLS certificate metadata after verification rejection. It is terminal and emitted only after runtime cleanup and evidence acceptance. Inspect `analysisComplete`, `reason` and `findings`; partial findings do not establish a verified connection. Existing subscriptions are not automatically expanded, so select this event if your workflow needs partial findings.
## Review deliveries in the workspace
Open an endpoint's delivery history from **Integrations**. Workspace administrators get a full page with up to 100 deliveries per request, event and delivery IDs, response codes, attempt counts and reported errors. On narrow screens, each delivery becomes a labeled card. Paging and **Refresh latest** controls are available above and below the results.
**Older deliveries** follows the server cursor. **Refresh latest** returns to the newest page. Delivery history is retained for 30 days; an HTTP success confirms receipt, not successful processing by the receiver.
Eligible failed or cancelled deliveries offer **Retry delivery**. The button shows progress and suppresses repeated clicks while the request is pending. After an error or uncertain response, refresh the history to inspect the current state before retrying. A late response cannot redirect another workspace view. Exhausted attempts and blocked receipt states do not offer retry controls; the API also enforces endpoint and delivery eligibility.
Endpoint actions suppress overlapping clicks while a request is in progress. If a test-delivery response is uncertain, the button changes to **Review deliveries** so you can check whether the test was queued. An uncertain enable/disable request offers **Refresh endpoint**. Subscription-save conflicts or uncertain responses offer **Reload current events** before retrying. Rotation and revocation confirmations remain locked after an error until you close the review and inspect the endpoint again. These controls do not automatically repeat mutations.
## If endpoint creation is uncertain
A lost creation response does not prove that the endpoint was not created. The form keeps its submitted fields locked and offers **Review creation status**. Closing and reopening **Add webhook endpoint** in the same tab and signed-in workspace preserves that review. **Check endpoints** lets you inspect the existing receivers; no creation request is automatically repeated.
While the original request is still running, starting another creation is disabled. Once it finishes, **Start a separate endpoint** is an explicit choice; check the existing endpoint list first. If confirmation arrives after leaving the form, the review reports that creation succeeded. The one-time signing secret is not retained in recovery state. If it was missed, rotate the endpoint's secret before enabling deliveries.
This recovery state is held in tab memory only. Reloading clears it, so check existing endpoints before recreating a receiver after a reload. Validation rejections allow correcting the original form.
## Remove retired connections
Revoke a destination first. Revocation stops queued delivery and removes QScan's
stored credential. Requests already sent may still reach the receiver; their
late receipts remain visible, without scheduling another send or indexing check.
Revoking in QScan does not revoke a token in Splunk or erase receiver-side events.
Open **Retired connections & history** from Signed webhooks or Splunk connections.
The full-page view lists revoked destinations, 25 per page. Choose **Delete
permanently**, review the retained-history explanation, then confirm; **Keep
connection** cancels without changing anything. If the response is lost, **Retry
deletion** uses the same revocation details. A confirmed deletion cannot be undone.
**Deleted history** lists generic connection identifiers, 100 per page. Endpoint
settings, original names and credentials are removed; delivery receipts remain
available for their normal thirty-day retention. Receipt history has no retry
controls for retired destinations. Collector acceptance alone does not establish
indexing or downstream processing.
For automation, revoke with `DELETE /api/v1/webhooks/{id}`, then send
`POST /api/v1/webhooks/{id}/delete` with `confirm: true` and the exact
`expectedRevokedAt` returned by revocation. Repeat that same body after a lost
response. Read deleted identifiers with `/api/v1/webhooks?deleted=true` and follow
`nextAfter` as `after`; delivery-history paths remain unchanged. JavaScript offers
`deleteWebhook`, `deletedWebhooks`, and `allDeletedWebhooks`; Python offers
`delete_webhook`, `deleted_webhooks`, and `all_deleted_webhooks`.
OAuth MCP clients can use `event_destination_revoke`,
`event_destination_delete`, and `event_destinations_deleted`. Mutations require
explicit confirmation and workspace administrator authority. Existing
`event_deliveries` and `event_delivery` tools read retained receipts.
---
# Windows binary setup
Source: https://qscan.dev/docs/windows-binary-preview
import NativeDownloads from '@site/src/components/NativeDownloads';
Run discovery on Windows without installing Python. Use the unified package for
guided setup or silent deployment, then choose foreground operation or a restricted
background service. Keep enrollment, approved scan scope and update permission
separate. The [Windows service guide](../windows-service/) explains service
accounts, local update policy and recovery.
## Current release {#current-service-release}
Unified package **0.51.575** contains agent **0.27.8 / sequence 873** and
installer **0.51.571 / sequence 866**. Use the
[unified Windows installation guide](../windows-bulk-deployment/) for the
current package, checksum, guided installation and silent deployment commands.
The package includes database drivers; no system Python or separately installed
database SDK is required on the discovery host.
The current 0.27.8 package passed native qualification, protected service lifecycle
and ZIP/Intune inventory verification. The service update fixture used a
same-version signed sequence replacement; it does not establish a new production
version-advancing update or reboot test. Intune tenant assignment remains separate.
### Retained earlier release evidence
The published 0.27.4 agent completed production managed SQLite scans from its
restricted Windows service before and after service restart. A production
scheduled upgrade from **0.27.3 / 779** to **0.27.4 / 794** preserved enrollment
and protected configuration, and the replacement process completed a real TLS
scan. Signed ZIP and Intune package inventories were compared successfully;
Intune tenant assignment was not exercised. These checks do not claim a new
0.27.4 reboot test or production managed scans of every database engine.
Previously qualified PostgreSQL, MySQL and SQL Server managed jobs used 0.27.3;
their retained evidence and visibility limitations are described in
[database scanning](../database-scanning/). Local target authorization and
database permissions still apply. Unknown or missing encryption evidence remains
unknown rather than being inferred from successful enrollment or a completed job.
### Earlier 0.27.2 qualification
Unified package **0.51.501** contains agent **0.27.2 / sequence 774** and
installer **0.51.490 / sequence 761**. It includes the database drivers for
PostgreSQL, MySQL, SQL Server and SQLite/SQLCipher. Follow
[database setup](../database-scanning/) to authorize each connection locally.
No system Python or separately installed database SDK is required.
That native Windows agent passed local SQLite/SQLCipher formats 1 through 4, real
PostgreSQL/MySQL/SQL Server fixtures, guided configuration, independent hybrid
SSH and QUIC, and the full real-decoder capture corpus. A foreground SQLite job
completed through the production workspace API without uploading rows or local
paths. Unknown storage encryption remained partial evidence.
Windows Server 2025 service acceptance verified protected guided enrollment,
restricted identity, disabled installation, signed sequence upgrade, detection
and removal. Service-scoped database credential tests verified DPAPI access and
wrong-identity denial. The restricted installed service also completed production
SQLite jobs before and after restart, preserving the enrolled identity and protected
configuration. A production scheduled upgrade from 0.26.98 to 0.27.2 also passed,
including an unchanged enrolled identity/configuration and a post-upgrade TLS scan.
A real Windows Server 2025 reboot passed automatic service/updater recovery,
identity/configuration preservation and a new production TLS scan. Installed
network-engine jobs were still under qualification at that release; subsequent
0.27.3 managed-engine results are recorded in the database guide. Existing
qualified relay-node releases remain available.
### Previous release qualification
The published unified package **0.51.464** contains agent **0.26.96 / sequence 740**
and installer **0.51.413 / sequence 649**. The same agent binary supports enrollment,
scanning and the explicitly authorized relay-node role.
Windows Server 2025 acceptance passed restricted service installation, enrollment
transfer, scope refusal, DPAPI isolation, Intune/Configuration Manager detection,
and unified relay installation/restart/removal. Its live scanner completed a TLS
job through an approved relay with direct fallback disabled, acknowledged cloud
pause, and stopped after revocation. Cloud heartbeat/job state stayed unchanged
after retirement. A denied relay route alone cannot distinguish revocation from
paused relay access; authenticated origin rejection remains distinct.
Separate native tests verify persistent-agent termination on origin HTTP 401/403,
no unsafe replay after interruption or HTTP 503, primary/secondary selection,
and explicit fallback policy. Foreground qualification includes independent
hybrid SSH, QUIC v1/v2 interoperability, and 123 capture parity cases.
The packages use independently verified release signatures. Authenticode signing,
real Intune/Configuration Manager tenant assignment remain unqualified. A separate
production-signed Windows 75-to85 cloud update passed scheduled replacement,
identity preservation and an actual reboot with a fresh cloud heartbeat. Local
update approval was disabled afterward. A running service alone does not prove
a successful scan: confirm its heartbeat and findings in your workspace.
## Earlier live capture qualification
Agent 0.26.42 passed 14 managed capture-job cases on Windows 11, including mixed
TLS 1.2/1.3, legacy certificate flights, CBC protection, QUIC v1/v2, malformed-input
rejection and local-scope denial. Raw capture files stayed on the machine.
Captured signatures remain unverified, and legacy TLS signatures are labelled
suite-implied. This does not qualify live packet interception or every capture
format. Follow the [capture guide](../capture-analysis/) for permission scope.
Earlier release-specific service and scheduled-update results are documented in
the [Windows service guide](../windows-service/#current-qualified-release).
They do not substitute for qualification of a new release.
## Go crypto discovery in 0.26.37
The foreground binary includes the Go parser; no Go toolchain or Python installation
is needed. Scoped code scans resolve imported crypto calls, exclude shadowed names
and text mentions, and report unresolved function-value flows as incomplete analysis.
Native tests verified findings, partial-scan recovery, immutable evidence and CBOM
through managed jobs. See [Go discovery scope](../repository-connections/#go-crypto-call-discovery).
## Crypto certificate discovery
The current foreground scanner identifies ML-DSA-44/65/87,
ML-KEM-512/768/1024 and all twelve pure SLH-DSA public-key parameter sets.
Seventy-two actual Windows executable cases cover PEM, DER and PKCS#7
certificates with Python removed from PATH. The results retain exact public-key
and certificate-signature identities through API validation and CBOM export.
Public-key encoding validation does not verify a certificate signature, trusted
chain, completed handshake or runtime use. Prehash SLH-DSA variants remain
outside this extension.
## TLS capability correction retained from release 426
The 0.26.33 foreground binary (signed release sequence **426**) fixed
explicit X25519 and P-256 probe configuration under Windows certificate trust.
The earlier sequence 423 could negotiate the default group while labelling the
probe as constrained. Live managed scanning now verifies the requested groups,
certificate relationships and CBOM outcomes. API ingestion rejects contradictory
probe evidence. Download the latest release below and replace the complete
extracted directory; keep your protected agent configuration separately.
This correction applies to the foreground distribution. Background-service and
managed-update releases have separate qualification and release sequences.
## Crypto scanning in 0.26.29
The 0.26.29 foreground release bundles Python 3.14.9/OpenSSL 3.5.9. The actual Windows binary
completed a verified X25519MLKEM768 handshake against our owned endpoint using
Windows certificate trust, and its findings passed live inventory and hybrid CBOM
relationship checks. Authentication remained classical ECDSA. This validates the
observed hybrid group, not every PQ group or the background-service channel.
TLS 1.2 CBC discovery now observes both handshake hellos to distinguish
encrypt-then-MAC from MAC-then-encrypt. Missing or inconsistent evidence stays
unknown. The compiled binary verified MAC-then-encrypt against badssl's public CBC
test endpoint with normal certificate verification and no system Python. Positive
encrypt-then-MAC fixtures passed in source and hosted execution; the full compiled
CBC negotiation matrix remains unqualified. This finding is separate from the
quantum risk score and does not establish overall TLS security.
Windows certificate-store discovery now reads public certificate metadata from
explicitly selected user or machine stores. The binary matched 118 root-store
observations against the source scanner and independent .NET decoding. A live
managed scan verified 59 certificate observations through inventory, immutable
evidence and CBOM, and rejected a store outside its local allowlist. It does not
access private keys, verify certificate trust or prove runtime use. See
[Windows certificate stores](../windows-certificate-stores/) for account selection,
store scope and setup. Store discovery under a Windows service identity still
requires separate qualification.
Capture validation now rejects contradictory TLS version fields and invalid
HelloRetryRequest messages. All 44 compiled/source parity fixtures passed with
real TShark, including mixed TLS 1.2/1.3 and QUIC captures. Live managed jobs
verified successful mixed-version analysis and rejection of malformed captures
without publishing their partial findings. Saved captures still require TShark.
Repository code scans also inventory PKCS#7 `.p7b`/`.p7c` certificate bundles.
The compiled binary passed PEM/DER bundle parity, independent OpenSSL extraction,
and live managed inventory/CBOM checks. Container signatures, content and CRLs
remain unverified; only certificate metadata is inventoried.
Repository code scans now inventory stored PEM/DER certificates, retaining file
provenance, signature/key metadata and explicit unverified trust. Live agent jobs
verified two file formats through inventory, evidence and CBOM public-key links.
Eight RSA, EC, Ed25519 and Ed448 observations matched independent OpenSSL decoding.
Malformed certificate files produce coverage gaps. See [stored certificate discovery](../repository-connections/#stored-certificate-discovery).
Certificate inventory preserves key-usage restrictions, exact extended-usage
OIDs, criticality and CA path limits. Live managed scan jobs verified these fields
through ingestion and CBOM export. Missing extensions remain distinct from empty
usages or an unlimited CA path. These are certificate permissions, not evidence of
runtime use. All 38 capture parity cases passed against the Python scanner and a
real decoder, including retry-only and fragmented final ServerHello captures.
The foreground binary identifies all 18 standardized ML-KEM, ML-DSA and SLH-DSA parameter sets in supported code patterns, alongside distinct classical algorithm identities. Verified TLS connections report negotiated group and signature evidence when available, and inventory peer-presented certificates with links in the exported CBOM. Code-pattern findings are candidates, not proof that an algorithm executes. Certificate inventory does not claim to capture the operating system's verified certification path.
JavaScript and TypeScript now use syntax parsing, with direct Node crypto imports and aliases resolved across lexical scopes. Comments, strings and JSX text do not become call findings. Unresolved call-name candidates remain lower confidence, dynamic algorithm arguments remain unknown, and parse failures produce incomplete coverage. The parser and its grammars are included in the binary; neither Python nor Node.js needs to be installed. Supported WebCrypto calls preserve declared algorithm parameters without claiming runtime use. Re-exports and cross-file dataflow remain coverage gaps.
This version passed standalone Windows execution, live managed TLS/code jobs, credential isolation, scope refusal, pause and revocation. The background-service channel remains a separately validated release.
Python source scanning now resolves local imports and closures by lexical scope;
shadowed parameters in unrelated functions no longer hide valid calls. Eight
compiled scope fixtures and their SARIF output passed. The real-decoder capture
corpus also passed TCP segmentation, retransmission and TLS record splits for
TLS 1.2/1.3, alongside mixed-version PCAP/PCAPNG and QUIC v1/v2 fixtures. These
passive observations still do not prove handshake completion or peer identity.
Use `quantum-ready.exe tls example.com:443 --capabilities` for the bounded modern
capability profile, or set `"tlsCapabilities": true` in the local configuration
for managed TLS jobs. The compiled profile passed owned-endpoint and managed-job
acceptance, including seven probe outcomes and CBOM export. Exact RFC 7919 finite-field
parameter recognition is included. Failed probes remain inconclusive; the profile
does not enumerate every supported protocol, cipher, signature or group.
## Credential checks in 0.26.1
Windows now checks token-file permissions directly using Windows APIs on the open file. It no longer launches PowerShell to read those permissions. Private token files are accepted; inherited permissions or access granted to other users are rejected. This applies to both the compiled agent and the Python package.
## Check setup before entering your token
Agent **0.25.4 and newer** run local configuration and dependency checks before displaying
the enrollment-token prompt. A missing configuration, invalid scope or missing
dependency stops with a diagnostic; fix it and run the same command again. Once
local checks pass, enter the token at the hidden prompt. These local checks do not
verify cloud permissions or authenticate the token with the platform.
## Recommended setup path
Each installation step now has **Next** to advance without leaving setup.
For the download step, choose **Download commands**, save `download-agent.ps1`
in your new setup folder, review it, then run `.\download-agent.ps1` in PowerShell.
It saves the verified download beside the script. If your organization's script
policy blocks it, use **Copy** to run the displayed commands in that folder.
The script contains no enrollment credential. Continue with configuration and connection;
downloading does not enroll an agent.
Open **Getting started**, choose the discovery source and the agent's operating
system, then select **Binary**. Download `agent.local.json` from the wizard. Follow
its numbered expandable steps in order; each command block has a copy button.
Commands use the current signed release details automatically, so you do not need
to substitute version and sequence placeholders from this reference guide.
Long command panels start collapsed. Select **Copy** to copy the complete command, or **Show commands** to review it first. Long lines scroll horizontally so paths and shell syntax stay intact; copying preserves the exact text.
Individual files and advanced verification details remain available inside each step.
## 1. Choose your source and download
Open Getting started, choose TLS, SSH, repository discovery or saved captures, and enroll or select an agent. Choose **Windows** and **Windows binary (x86_64 foreground preview)**. Download the scoped configuration as `agent.local.json`.
The wizard generates download and integrity-check commands for the current release. Use a new folder owned by your account and 64-bit PowerShell. You do not need an elevated terminal. The command refuses an existing `agent` folder and checks the exact archive SHA-256 before extraction. Keep every extracted companion library together.
The displayed hash comes from the published release catalog. Hash comparison detects a download that differs from those reviewed bytes; it is not independent verification of the publisher. The ZIP has an Ed25519 development signature, while its executable does not yet have Authenticode signing. Do not disable Windows security controls to run it; follow your organization's software approval process.
### Independent signature verification
Your administrator can verify the archive before distributing it. Use `scanner/binary_release.py` from a reviewed, separately verified source bundle, Python 3.12+ and `cryptography` on the verification machine. Python is not needed on the discovery host. The command above checks the signature, selected platform/version/sequence, expiry, every archive member and executable architecture. It does not extract or execute the archive.
Obtain `release-key.json` through a separately trusted administrator channel. Its current development key ID is `057ea0f9faf27f6710f042be3286d595951b5beb1f959e1a9ca5ba0daed9b832`. A key downloaded alongside a candidate is not independent trust. Public key files are also available below for comparison:
## Interactive terminal setup
Agent **0.26.5** adds an optional guided terminal workflow. After verifying and
extracting the Windows archive into `agent`, run this in ordinary PowerShell:
```powershell
& .\agent\quantum-ready.exe setup
```
No separate Python installation or configuration file is required. Choose scanners
and exact local resources, review diagnostics, then complete normal browser sign-in
and MFA. Enter the terminal's confirmation code in the browser. Setup confirms
workspace contact and offers a real validation scan before foreground operation.
The [guided setup guide](../agent-setup/#guided-terminal-setup-python) explains
protected state, expiry and recovery; those behaviors also apply to this binary.
Run the same command again to resume. Windows encrypts the saved state for your
current user. Keep the terminal open while discovery runs; this command does not
install a background service. Version 0.26.5 has passed Windows 11 native terminal
preflight/resume and separate live TLS/code scan acceptance. Full browser approval
and scan execution through the compiled wizard are still awaiting end-to-end acceptance.
For background operation, use the currently published service pair described
above; terminal-wizard acceptance does not establish service-mode discovery.
## 2. Limit local access
Save `agent.local.json` beside the extracted `agent` folder. Use the wizard to configure only the targets or directories you want assessed. The cloud cannot expand the local allowlist. Run under an account that has only the required network and read permissions; repository scanning does not install dependencies or execute source files.
For saved captures, install trusted TShark 4.6.9+ in the 4.6 series and select its full executable path. The agent reads existing captures; it does not enable privileged live packet capture. Mixed TLS 1.2/1.3 and QUIC v1/v2 fixtures have passed compiled/source parity checks.
## 3. Check and start
Use **Copy check and start** in the wizard. Its masked prompt accepts the one-time agent enrollment token without putting the token in command history. It runs local diagnostics first and starts discovery only if they pass. With agent 0.23.9 or newer, the agent itself prompts for the token; it is not stored in a PowerShell variable. The token is present in the agent process environment while discovery runs. Older releases use the longer PowerShell prompt shown by their setup instructions.
For agent 0.23.9 or newer, the check-and-connect command is:
```powershell
$env:QR_ENDPOINT = 'https://qscan.dev'
& .\agent\quantum-ready.exe connect --config .\agent.local.json
```
Keep the terminal open. Press **Ctrl+C** to stop. This foreground preview does not automatically start after sign-out or reboot. Never put an enrollment token in a ticket, screenshot or shared script.
## 4. Confirm useful evidence
Select **Check connection again**, then create an allowed scan. Confirm that the job completes and its evidence matches the intended target. Code scanning includes `.mjs`, `.cjs`, `.mts` and `.cts` sources. A heartbeat is not proof of target access, and a successful TLS scan does not prove cloud-provider permissions.
If diagnostics fail, use the in-product diagnostics viewer and [troubleshooting guide](../troubleshooting/). If local scope rejects a job, review the target and local configuration before changing permissions. To retire the agent, stop the terminal process, revoke its enrollment in **Agents & sensors**, then archive the revoked entry. Revocation is required even when you remove the local files.
Agent 0.23.7 also returns structured preparation failures when validating service settings: `service.settings` for missing or malformed settings and `service.logs` when the configured log directory cannot be used. See the [diagnostic recovery table](../agent-setup/) for the required action. These checks do not install a service or verify a service account; this download still supports foreground operation only.
## Release validation
Version **0.25.2** adds bounded polling and retry spread to reduce synchronized fleet traffic. A real-process loopback test checks server retry delays, recovery, idle polling, process identity and revocation without Python on PATH. First contact stays immediate; shutdown remains interruptible. See [polling behavior](../agent-distributions/#polling-and-reconnect-behavior) for interval details.
Version **0.25.1** adds cryptographic dependency discovery in `requirements.txt`. The compiled release passed source parity, unresolved-include reporting and redaction checks, plus live TLS/code jobs, managed configuration, scope rejection, pause and revocation. Real TShark checks covered TLS, QUIC v1/v2 and mixed TLS 1.2/1.3 packet orders. See [requirements coverage](../repository-connections/#python-requirements-discovery) for interpretation and limits.
Version **0.23.9** adds `connect`, which prompts for the enrollment token without
showing it, checks the saved configuration, and starts the foreground agent only
when local diagnostics pass. The Windows native executable passed hidden-prompt,
live development-workspace TLS and code scanning, revocation, and real TShark
mixed TLS/QUIC checks. Service installation and Windows Server acceptance remain
separate work.
Version **0.23.8** adds resolved `Cargo.lock` dependency coverage. The compiled release passed live MCP code and TLS jobs, local scope rejection, managed configuration, pause, revocation and evidence/CBOM checks. Its output matched the Python scanner without Python on PATH, including private source-URL filtering. Real TShark regression tests covered TLS, QUIC v1/v2 and mixed TLS 1.2/1.3 in both packet orders. See [Rust dependency coverage](../repository-connections/#rust-dependency-coverage) for interpretation and limits.
## Go module coverage in 0.25.3
The 0.25.3 compiled agent adds catalog-based `go.mod` dependency discovery. It passed source parity, redaction, unresolved replacement reporting, and a live workspace scan through inventory and CBOM. No Go installation is required. See [Go module coverage and limits](../repository-connections/#go-module-discovery). The existing operating-system and service acceptance limits still apply.
## Native certificate trust in 0.26.3
The Windows agent uses Windows certificate-chain validation and the machine's trust
policy for its control-plane connection and TLS discovery. This fixes first contact
on the tested clean Windows Server 2025 installation without running a separate
administrator connectivity command. Certificate and hostname verification remain
required; invalid issuers, hostnames, validity periods and server usage are rejected.
The clean service test used a dedicated account, restricted service SID and minimal
privileges, with no Python on PATH. It verified a hosted TLS job, attributed inventory
evidence, refusal of a target outside local scope, pause acknowledgement, and service
shutdown after revocation followed by removal. This does not verify managed Windows
updates, reboot recovery, or every Windows Server version. Enterprise private CAs must
be trusted by the service's machine policy; do not disable certificate validation.
---
# Deploy Windows agents with Intune or Configuration Manager
Source: https://qscan.dev/docs/windows-bulk-deployment
Open **Integrations > Agent deployment** to download the Intune package or Windows ZIP directly. Matching downloads also appear in Windows x64 deployment details and the authorized-device handoff.
Download a prepared Windows x64 package, deliver a separate enrollment grant to
each device, then assign a one-device pilot from your management tool. The package
includes compiled enrollment and service installers; managed devices do not need Python.
## Download a deployment package
| Management tool | Download | Use |
| --- | --- | --- |
| Microsoft Intune | Intune Win32 package (243 MB) | Upload as a Windows app (Win32). |
| Configuration Manager or manual pilot | Windows deployment ZIP (234 MB) | Extract the ZIP; the launcher stages writable folders into a private cache. |
Read package instructions.
Both packages contain installer **0.51.571 / sequence 866**, enrollment client
**0.27.8 / sequence 873** and service agent **0.27.8 / sequence 873**. Each release
has its own signed manifest and expiry. Download a current package when an installer
reports expiry. Neither package contains a workspace token, device grant or saved
credential. Apply your organization's PowerShell script-signing policy.
Verify the downloaded file
Run `Get-FileHash -Algorithm SHA256` against your downloaded file and compare:
```text
Intune: 5bc319b1666578cdd197f777221d52f42a9cae8d55d9b59739170c0cc9248520
ZIP: de5741feda9ab9adc8c5a976f0305e732a5e3045262cd0883b6a52bb39679952
```
The installer separately verifies the signed agent release before installation.
The deployment entry point also checks its payload inventory and protected cache.
## Inspect or upgrade an existing installation
In an elevated PowerShell terminal, use the same extracted package:
```powershell
.\Deploy-QuantumReady.ps1 -Action Status
.\Deploy-QuantumReady.ps1 -Action Upgrade
```
`Status` returns JSON without enrollment or lifecycle changes. It remains available
when recovery is required or package releases have expired. A successful command
means the status was read; inspect `exists`, `serviceState`, `installation`, and
`recoveryRequired` before deciding that the service is healthy. Cloud contact and
a completed first scan must still be confirmed in the workspace.
`Upgrade` verifies this package's signed release, preserves the existing identity
and approved scope, and starts the service. It refuses missing or removed services,
recovery-pending state, and downgrades. It never enrolls a new device. An equal
release is reused. To restore a removed managed service, choose `Install` explicitly.
These actions also accept `-NonInteractive` on `powershell.exe` for management tools.
## Interactive installation on one machine
For a manual pilot, download and extract the Windows ZIP. Open an elevated
PowerShell terminal as your own Windows account, change into the extracted folder,
and run:
```powershell
powershell.exe -NoProfile -File .\Deploy-QuantumReady.ps1 -Action Guided
```
Choose a hosted cloud connection or a local agent. For a local agent, select the
scanner types and exact targets, approve the scope, then sign in through your
browser. The installer reuses the approved identity and configuration without
asking you to copy a token. Choosing a hosted connection or declining the scope
does not install a service.
Keep the terminal open until installation finishes. If interrupted, rerun the same
command as the same Windows account; saved enrollment is protected with Windows
DPAPI. Existing installations reuse their current identity and approved scope.
The service runs under a restricted account: access to a directory from your own
account does not prove the service can read it. Confirm the device heartbeat and
run a validation scan in the workspace after installation. Resolve any specific
access failure without granting administrator rights to the agent.
Guided mode needs an interactive terminal. Use the following per-device grant flow
for silent deployment through Intune, Configuration Manager or scripts.
## 1. Authorize a pilot device
In **Integrations > Agent deployment**, select your management tool and Windows
x64. Create an authorization for the required fleet group and discovery scope,
then choose **Authorize test device**. Download that device's grant and approved
configuration. A shared package never replaces per-device authorization.
## 2. Deliver private enrollment files
Use your management controller's protected, per-device delivery channel to place:
```text
C:\ProgramData\SectigoQuantumReadyEnrollment\agent.json
C:\ProgramData\SectigoQuantumReadyEnrollment\device-grant.json
```
Create a `state` subdirectory in the same folder. Protect the folder and contents
so only SYSTEM and administrators can read or modify them. Do not place these
files in an Intune package, shared content folder or command-line argument.
The grant file must have its **own protected ACL**. Protecting its parent folder
alone leaves a newly copied file inheriting permissions, which the credential
reader rejects. After your controller delivers the files into the protected
folder, run this in the same elevated installing account:
```powershell
$enrollment = "$env:ProgramData\SectigoQuantumReadyEnrollment"
foreach ($name in 'device-grant.json', 'agent.json') {
$path = Join-Path $enrollment $name
icacls.exe $path /inheritance:r /grant:r '*S-1-5-18:F' '*S-1-5-32-544:F'
if ($LASTEXITCODE -ne 0) { throw "Cannot protect $name" }
if (-not (Get-Acl -LiteralPath $path).AreAccessRulesProtected) {
throw "$name still inherits permissions"
}
}
```
These SIDs identify SYSTEM and the local Administrators group. Start with files
delivered only to those trusted identities; this command does not remove unrelated
explicit access entries. The agent rejects such additional access. Preserve the
downloaded JSON bytes; if your controller generates JSON, use UTF-8 without a BOM.
Do not solve a credential-permission error by granting access to Users or Everyone.
The install command completes enrollment and service setup as the same installing
account. Intune uses SYSTEM for both; saved enrollment state is protected with
account-bound DPAPI. Preserve this state on retries. See the
[enrollment handoff guide](../bulk-agent-deployment/#transfer-windows-enrollment-to-the-service)
for API-driven device authorization and recovery. Remove the delivered grant
through your controller after successful enrollment; retain the private state.
## 3. Configure the management application
For Intune, upload the `.intunewin` download as **Windows app (Win32)**. Choose
**System** install behavior and an **x64** architecture requirement. Use these
values in the install and uninstall command fields:
```text
%SystemRoot%\Sysnative\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Install
%SystemRoot%\Sysnative\WindowsPowerShell\v1.0\powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Remove
```
The Sysnative path selects 64-bit PowerShell from Intune's 32-bit command host,
as documented by [Microsoft](https://learn.microsoft.com/en-us/intune/app-management/deployment/add-win32).
Use the Intune detection script below and run it in **64-bit PowerShell**.
For Configuration Manager, extract the ZIP into protected application content and
run `Deploy-QuantumReady.ps1` in 64-bit PowerShell as SYSTEM. Use the ConfigMgr
detection script. For a manual pilot from an already elevated 64-bit terminal:
```powershell
powershell.exe -NoProfile -NonInteractive -File .\Deploy-QuantumReady.ps1 -Action Install
```
Quantum Ready supplies the package and enrollment controls. Your administrator
publishes the application and assigns devices in Intune or Configuration Manager;
creating a Quantum Ready authorization does not create those assignments.
## 4. Confirm contact before expanding
Assign one pilot device first. Confirm the restricted service is running, the
workspace shows recent contact, and an approved validation scan finishes. A
management-tool installation result or detection success alone does not prove
cloud contact. Repeat installation, removal and restoration on the pilot before
expanding the assignment.
## Remove and reinstall
`-Action Remove` removes the service while retaining its protected configuration
and device identity. Assigning `-Action Install` again restores that identity using
installer 0.51.211 or newer, verifies the retained files, reruns service-account
checks and starts the service. Do not delete private installer records to force a
new installation. A newer agent is never downgraded by this package.
Removal disables a registered scheduled updater, waits for any active update to
finish, and removes the task before removing the service. The default wait is
300 seconds; set `-UpdateDrainTimeoutSeconds` from 0 to 1800 to change it. If
the updater cannot be confirmed stopped and removed, removal preserves the
service and returns an error. Revoke
the agent in the workspace when retiring the device. Restoration does not reverse
revocation or silently enroll a replacement agent.
For an explicit administrator-operated restore with the current compiled installer:
```powershell
.\quantum-ready-service.exe restore --trusted-key .\release-key.json
```
Run `status` and follow recovery guidance if an operation was interrupted. Keep
configuration, credentials and installation records intact.
## Build your own package from the project checkout
Use `scripts/prepare-windows-management-package.py --help` to select independently
verified signed releases and assemble a new payload. On a Windows packaging
workstation with Microsoft's [Content Prep Tool 1.8.7](https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool/releases/tag/v1.8.7):
```powershell
python scripts/package-intune.py --source C:\Packages\QuantumReady --tool C:\Tools\IntuneWinAppUtil.exe --destination C:\Packages\QuantumReady-Intune
```
Use a new output directory outside the source folder. The command verifies the tool,
payload inventory and entry point, rejects additional package files, and checks the
resulting `.intunewin` file. Python is needed only on this packaging workstation.
## Detection scripts
These scripts require agent **0.26.3 or newer** and signed release **sequence 315
or newer**. Both requirements must be met. A later installed release is accepted,
so an older application assignment does not request a downgrade.
- Download Intune detection script
- Download Configuration Manager detection script
Use the script for the corresponding management tool. Both are UTF-8 with a byte
order mark. Apply your organization's script-signing process when required by its
deployment policy. No execution-policy change is needed to generate the files.
## Configure detection
For Intune, choose a custom detection script for the Win32 application and upload
the Intune file. Run it in **64-bit PowerShell** on 64-bit clients, in the application's
**System** installation context. The protected installer records require SYSTEM or
administrator access; discovery itself continues under its restricted service identity.
For Configuration Manager, select a custom **PowerShell** detection method for the
application deployment type and import the ConfigMgr file. Use the 64-bit process
and device/System context. Keep installation detection separate from compliance or
scan-health monitoring.
| Result | Intune | Configuration Manager |
| --- | --- | --- |
| Matching installation | Exit 0 and a fixed installed message | Exit 0 and a fixed installed message |
| No service, or an older release | Exit 1 with no output | Exit 0 with no output |
| Busy installer, incomplete state, wrong service identity/path, unreadable records or unsupported process architecture | Exit 1 with no output | Exit 1 with no output |
The scripts emit no stderr or raw diagnostics. For an unknown result, run the
reviewed installer's `status` command as an administrator and inspect its recovery
guidance. Do not remove installation state to force detection to succeed.
A stopped or paused service can still be installed correctly. Detection deliberately
does not require a running process, a heartbeat or a successful scan. Confirm those
separately in the agent fleet. A committed removal awaiting service deletion is not
reported as installed.
## Generate detection for another signed release
The source bundle includes the template and generator. Supply a complete signed
Windows agent archive, its manifest/signature, and your independently trusted public
key. Select the exact version and sequence from that release. Use a new output folder:
```shell
python scripts/prepare-windows-deployment-detection.py --release RELEASE_DIRECTORY --version EXACT_VERSION --sequence EXACT_SEQUENCE --trusted-key TRUSTED_KEY_FILE --destination NEW_OUTPUT_DIRECTORY
```
The generator verifies the archive before writing either script, refuses a sequence
mismatch and refuses to overwrite an existing output directory. The output contains
no workspace token, device grant or credential. Deliver device enrollment secrets
separately using [deployment authorization](../bulk-agent-deployment/).
## Verification scope
The Windows management package passed install, repeat install, both detection
contracts, removal and repeat removal in an offline Windows Server 2025 VM.
Installer 0.51.211 separately passed two restore/remove cycles and repeat restore,
preserving the exact saved installation identity. These tests used synthetic
enrollment state. Provider-managed assignments remain unverified.
The detection logic passed 33 PowerShell assertions covering version thresholds,
paused/stopped services, incomplete installation, changed service identity/paths,
pending removal, malformed metadata and both providers' output contracts. The
generated scripts also passed native 64-bit PowerShell execution on a Windows host
without the product service. The same verified template subsequently passed real
Windows Server 2025 SCM acceptance before installation, after installation, after
upgrade and after removal. That offline test used synthetic signed sequences 1
and 2, with the minimum set to 1, and confirmed both providers' output contracts
and acceptance of the newer installed sequence. Provider-managed assignment and
end-to-end Intune/Configuration Manager rollout remain to be verified.
The provider contracts follow Microsoft's [Intune detection documentation](https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-add)
and [Configuration Manager custom detection documentation](https://learn.microsoft.com/en-us/intune/configmgr/apps/deploy-use/create-applications).
## Manual extraction and package permissions
The current launcher automatically stages a package when its extraction folder is
writable by other accounts, including a normal folder under `C:\ProgramData`.
Run the new package from an elevated 64-bit PowerShell terminal as documented
above. It creates a protected cache under `%ProgramData%`, copies only the pinned
inventory's files, and checks all file sizes and SHA-256 hashes before starting a
native program. Later runs reuse and reverify that cache. The original folder's
permissions are not changed, and no credentials belong in the package cache.
If an older launcher reports **Package files must not be writable by untrusted
accounts**, download and extract the current ZIP into a new folder and run its
launcher. Keep your existing private enrollment state and use the same installing
Windows account. Do not grant Everyone access or disable the package checks.
This update changes the launcher, not the agent or service installer binaries.
---
# Windows certificate stores
Source: https://qscan.dev/docs/windows-certificate-stores
Discover public X.509 certificate metadata in explicitly selected Windows stores.
The collector reads existing stores without retrieving private keys or changing
store contents. Store membership does not establish trust, deployment, or runtime use.
## Release status
Source scanner and Windows x86_64 foreground binary 0.26.28 add this capability.
Earlier 0.26.27 binaries do not include it. Check the scanner version before
configuring store discovery. Both collectors passed real Windows API checks,
comparison with .NET root-store inventory, and live managed inventory/CBOM scans.
Windows service-account execution remains a separate acceptance requirement.
## Select the account and stores
`CurrentUser` means the account running the agent. For a Windows service, that is
the service identity, which may differ from the interactive administrator.
`LocalMachine` selects machine stores. A scan does not enumerate other user
profiles or remote computers.
Supported store names are `MY`, `ROOT`, `CA`, `TrustedPeople`, `TrustedPublisher`,
and `Disallowed`. Select each explicitly, for example `CurrentUser/MY` or
`LocalMachine/ROOT`. Read permission is sufficient; the collector does not request
administrator elevation. A certificate in `Disallowed` remains inventory evidence,
not a trusted certificate.
## Check locally
From the source scanner directory in an environment with the locked dependencies:
```powershell
python qr.py windows-certificates --store CurrentUser/MY --store LocalMachine/ROOT --source workstation-42 --output certificates.json
```
Use a stable, unique host label for `--source`. Output includes fingerprints,
subject and issuer names, validity dates, public-key parameters, signature
algorithms, certificate usages, and the selected store. These names can identify
internal systems: handle the report as security inventory.
The JSON report marks `analysisComplete: false` and exits with status 2 when a
store cannot be read or a bound is reached. Inspect `diagnostics`; do not interpret
an incomplete or empty failed scan as proof that no certificates exist. Certificate
contexts are released if the scan is cancelled. A store can change during a scan,
so the collector does not claim an atomic snapshot.
## Permit managed scans
Add the exact stores to the local agent configuration:
```json
{
"source": "workstation-42",
"managedConfiguration": true,
"allowedWindowsCertificateStores": ["CurrentUser/MY", "LocalMachine/ROOT"]
}
```
Run `python qr.py doctor --config agent.json` to validate configuration, platform,
and dependencies. It checks setup without enumerating certificate stores.
The agent must be enrolled with the `windows-certificates` capability. A managed
scan selects one store as its target. Central configuration can narrow the locally
approved list, but cannot add stores beyond it. Omitting the list from a managed
configuration disables this scope.
Incomplete scans are not uploaded as successful inventory. Complete observations
retain store provenance in inventory and CBOM, including explicit false flags for
signature verification, private-key access, and runtime-use verification. Generic
EC keys remain `EC`; the collector does not infer ECDSA or ECDH use from the key.
## Queue or schedule a store scan
In **Discovery scans**, choose **New discovery scan** and select **Windows certificate
stores**. Choose an approved store such as `CurrentUser/MY` or `LocalMachine/MY`, then
select a compatible Windows agent. The store suggestions cover the twelve supported
user/machine store combinations; the agent still enforces its local store allowlist.
`CurrentUser` refers to the agent or service account, not the person using the website.
Only public certificates are read; this does not access private keys.
For recurring discovery, use **Discovery schedules > Create schedule** and select the
same scanner and approved store. Configure and validate the agent's local scope before
queuing or scheduling work.
---
# Windows background service
Source: https://qscan.dev/docs/windows-service
Use **Getting started > your discovery source > Windows or Windows Server > Binary >
Background service**. The installer and agent are standalone binaries; no Python or
provider SDK installation is needed. Install from an elevated 64-bit PowerShell
terminal. Discovery runs under `NT SERVICE\SectigoQuantumReady`, with a restricted
service SID and only the privileges it needs.
## Current qualified release
Agent **0.27.8 / sequence 873**, installer **0.51.571 / sequence 866**, and unified
package **0.51.575** are the current native package. Use the
[Windows deployment guide](../windows-bulk-deployment/) for current download,
verification, guided installation and silent deployment commands.
The current 0.27.8 package passed native qualification, protected service lifecycle
and ZIP/Intune inventory verification. The service update fixture used a
same-version signed sequence replacement; it does not establish a new production
version-advancing update or reboot test. Intune tenant assignment remains separate.
### Retained earlier release evidence
The restricted installed 0.27.4 service completed production SQLite jobs before
and after restart. A production scheduled upgrade from **0.27.3 / 779** to
**0.27.4 / 794** preserved the enrolled identity and protected configuration;
the replacement process completed a real TLS scan. The signed unified ZIP and
Intune package inventories also matched. Intune tenant assignment and a new
0.27.4 reboot test were not part of these checks.
Retained installed PostgreSQL, MySQL and SQL Server evidence used 0.27.3; see
[database scanning](../database-scanning/#installed-agent-acceptance) for
engine-specific evidence and visibility limits. Configure database credentials
under the dedicated service identity, not an unrelated administrator identity.
Confirm recent contact and actual findings after enabling discovery; service
startup alone does not prove successful target access.
### Earlier 0.27.2 qualification
Agent **0.27.2 / sequence 774**, installer **0.51.490 / sequence 761**, and unified
package **0.51.501** provided the earlier native database-enabled package. Windows
Server 2025 acceptance verified protected guided enrollment, restricted identity,
disabled installation, signed sequence upgrade, removal and deployment detection.
Database credentials are configured for the service identity; follow the
[Windows database credential instructions](../database-scanning/).
Native database workers passed real PostgreSQL, MySQL and SQL Server fixtures,
and local SQLite/SQLCipher checks. Production SQLite jobs passed in foreground
mode and from the restricted installed service before and after a service restart.
The same enrolled identity and protected configuration were preserved; database
contents were unchanged and application rows/local paths were not uploaded.
A production scheduled upgrade from 0.26.98 to 0.27.2 preserved the same protected
identity/configuration and completed a TLS scan from the replacement process.
A real Windows Server 2025 reboot also passed automatic restricted-service and
scheduled-updater recovery, preserved identity/configuration, and a fresh production
TLS scan without manually starting the service. Installed network-engine jobs were
still under qualification at that point; subsequent 0.27.3 results are retained
separately from these release-specific checks.
### Previous release qualification
Agent **0.26.96 / sequence 740**, installer **0.51.413 / sequence 649**, and unified
package **0.51.464** are available. Windows Server 2025 acceptance passed protected
guided-enrollment handoff, repeat setup, changed-scope rejection, installation,
fixture-signed sequence upgrade, removal, restricted service permissions, and
Intune/Configuration Manager detection.
The installed scanner completed a real TLS job through an approved relay with
direct fallback disabled. Evidence was bound to its process and agent identity;
an unapproved target was refused, cloud pause was acknowledged, and revocation
stopped further activity. The temporary agent and test VM were retired.
The production-signed unified relay launcher passed installation, protected
service-account identity, restart preserving its CA-verified listener identity,
non-advancing update rejection, and removal. Cloud health independently verified
both listeners. These results do not establish a fresh version-advancing scheduled
update or reboot for agent96. Earlier update evidence is described below.
Native foreground checks include independent hybrid SSH and QUIC interoperability,
all 123 real-decoder capture cases, certificate stores, and cryptographic code
scanning. The Intune package was generated with Microsoft's pinned Content Prep
Tool; assignment in an actual Intune/Configuration Manager tenant remains separate.
Agent 0.26.52 adds [collector report uploads](../collector-capture-reports/), including isolated partial results and zero-finding coverage. Six live compiled-client cases verified manual uploads, retries and managed completion; raw capture files remain on the collector.
### Earlier lifecycle evidence
The earlier agent **0.26.42 / sequence 460**, with installer
**0.51.258 / sequence 455**. On Windows Server 2025, the compiled 0.26.42 agent
passed disabled installation, signed local replacement, removal, and restoration
from retained installation state. Its service executable hash was verified again
after an offline cold start; the service started automatically with the dedicated
account, restricted SID, minimal privileges and recovery policy intact.
The scheduled updater also ran successfully after that cold start. A disabled local
update policy stayed disabled, and updater/service removal completed afterward.
These lifecycle tests used synthetic enrollment and fixture signatures. They do
not establish a live cloud update or service-mode discovery with 0.26.42.
Warm-reboot qualification remains open: the guest requested a reboot, but the
QEMU WHPX/UEFI test environment stalled before Windows booted again and logged
XSAVE-state errors. After explicitly stopping and starting the emulator, Windows
and the agent recovered automatically. This cold-start result must not be read as
a successful warm reboot. A [related QEMU reset issue](https://gitlab.com/qemu-project/qemu/-/work_items/2402)
is documented upstream; the exact cause of this test's stall is not established.
Earlier agent **0.26.40 / sequence 444** passed native scheduled replacement,
a new-process TLS scan, preserved service restrictions, revocation and removal
on Windows Server 2025.
The production control plane also completed an upgrade from published agent
**0.26.3 / sequence 315** to **0.26.40 / sequence 444** using the scheduled updater
and production release signatures. A new process completed a TLS scan with verified
certificate-chain evidence; revocation, updater removal and service removal passed.
This was one development-workspace agent, not a fleet-scale acceptance test. Warm-reboot
recovery and Authenticode signing remain unqualified. Windows 11 qualification
covers foreground scanning; the service lifecycle above was tested on Server 2025.
## Install in four steps
1. **Download and check.** Open PowerShell in a new private folder. Copy the generated
download commands. They download the exact installer and agent releases, manifests,
signatures and public key, verify published SHA-256 hashes, and extract the installer.
2. **Configure and enroll.** Save `agent.local.json` from the wizard in that folder.
Open PowerShell as administrator in the same folder. Run the generated verification
and enrollment commands. Paste the agent enrollment token only at the hidden prompt.
You do not need to create a temporary token file.
3. **Install and start.** Run the installation command. The installer verifies the
signed agent again, enforces the generated minimum release sequence, provisions protected code and settings, and checks configuration
under the dedicated account before activating the service.
4. **Confirm discovery.** Check service status, recent contact in the product, and a
completed scan with findings. A running process or heartbeat alone does not prove
access to your discovery targets.
The setup prompt refuses redirected input and never falls back to visible typing.
Cancellation leaves private setup unchanged. Automation can supply `--token-file`
with a protected credential file instead. Never put the token in command arguments,
PowerShell history or a support message.
## Verify the release key
Independently confirm the release key through your organization's trusted channel.
A key downloaded beside an archive is not independent trust. The generated download
commands check hashes from the product over HTTPS. The installer verifies the agent's
Ed25519 signature, selected version and minimum sequence before installation. Installer
0.51.183 and newer accept `install --minimum-sequence`; the generated command supplies
the selected agent's exact sequence. A correctly signed but older sequence is rejected
before code staging or service registration. Keep the generated value when handing
the installation commands to another administrator. For independent installer
signature verification, use the reviewed verifier with **installer** purpose as
described in [agent distributions](../agent-distributions/).
These preview executables are not Authenticode signed. Published SHA-256 checks and
Ed25519 release signatures do not establish Authenticode publisher identity.
## Give the service only the access it needs
The service does not inherit your terminal's cloud login, environment or home folder.
For an Azure VM, prefer its configured managed identity; a workstation's `az login`
does not sign in the service. AWS and GCP also need identities available to the service
account. See [cloud binary collectors](../cloud-binary-collectors/).
Grant the service account read access only to approved repository/capture folders.
TLS and SSH discovery need outbound access to the allowed endpoints. Saved captures
also require an approved TShark installation and its configured executable path.
Do not grant local administrator membership to the discovery account.
## Stop, inspect or remove
From the installer folder, in an elevated PowerShell terminal:
```powershell
.\quantum-ready-service.exe status
.\quantum-ready-service.exe stop
.\quantum-ready-service.exe remove
```
Run only the command for the action you intend. Stop disables future service starts.
Remove deletes the service registration and preserves protected files and credentials.
Revoke the agent separately in **Agents & sensors**. If an update supervisor is
registered, disable it, wait for the active operation to finish, and remove the
supervisor before removing the discovery service.
For a registered updater, `supervisor-status` reports whether the scheduled task is
enabled or running, its last result, and (installer 0.51.183+) `lastRunAt` in UTC.
A null time means the task has not run. A zero result means that reconciliation
completed; inspect the cloud update operation to determine whether it actually
replaced software. An old successful result does not prove a run after a reboot.
For an interrupted installation, inspect `status` and its recovery information.
Do not delete protected state or repeatedly reinstall over it. `recover --trusted-key`
uses the existing protected evidence; incomplete private setup needs the original
configuration and enrollment credential again.
## Local update permission
The Windows installer accepts the same bounded update-policy JSON as Linux, but
uses a different command. When a Windows update is offered in **Agent controls**,
select the release, expand **Prepare the local update policy**, and download the
file. In elevated PowerShell, from the setup folder containing your verified
`installer` directory, run:
```powershell
& .\installer\quantum-ready-service.exe update-policy --file .\update-policy.json
```
This replaces the local policy. It grants permission only for the selected version
and sequence, until the earlier of your chosen expiry or the signed release expiry.
Inspect it by omitting `--file`. Applying a policy does not register or enable an
updater, pause discovery, or request a cloud update. The discovery service remains
under its restricted account; updater administration requires elevation.
## Acceptance and update status
Clean Windows Server 2025 x86_64 testing covers restricted service installation,
real hosted TLS discovery, local-scope refusal, pause acknowledgement, revocation,
service shutdown and removal. Scheduled updater reconciliation has also run without
a manual start. Windows 11 foreground discovery is separately tested.
Installer 0.51.186 also passed a real cloud-requested scheduled replacement on a clean
Windows Server 2025 guest. The replacement process completed a TLS scan, retained all
service restrictions, stopped after revocation, and allowed removal of the updater
and service. The test used two signed archive sequences with the same agent executable
version and an isolated test key.
That historical test does not qualify every later release. The current signed
0.27.4 package is available for explicitly authorized managed updates. Local update
policy, a maintenance pause and administrator approval still apply. See the current
release status above for remaining version-specific update and reboot acceptance.
## Unattended deployment enrollment
The compiled Windows installer **0.51.205 / sequence 349** supports protected enrollment-state handoff. Follow [Windows enrollment and service setup](../bulk-agent-deployment/#transfer-windows-enrollment-to-the-service) using the same Windows account for enrollment and setup. The complete source bundle also includes the Python service installer and its dependencies; see the [source installer handoff](../bulk-agent-deployment/#windows-source-installer-credential-handoff) when using that distribution.
## Reuse guided setup enrollment
Installer **0.51.258 / sequence 455** can reuse the identity and exact local scope
saved by guided browser setup. Exit setup and stop its foreground agent first.
Open an elevated terminal as the **same Windows account**, then run the downloaded
installer with the absolute private state folder used during setup:
```powershell
.\quantum-ready-service.exe setup --terminal-state C:\private\qscan-setup
```
No configuration export or token copying is required. A different configuration
is rejected; repeat setup preserves the identity. Continue with the signed
installation command from Getting started to register and start the service.
The service account still has to pass its own access checks for the approved scope.
SYSTEM or another administrator cannot decrypt your account-bound setup state.
This transfer, repeat setup, restricted installation, signed sequence upgrade,
Intune/ConfigMgr detection and removal passed an offline Windows Server 2025 test
with synthetic enrollment. This does not establish provider deployment, reboot
recovery or a completed one-command interactive installer.
---
# Workspace encryption
Source: https://qscan.dev/docs/workspace-encryption
## Availability
Workspace key controls are available under **Organization → Workspace encryption**.
Opening the page does not configure a key, migrate data or change protection.
New workspaces initialize with a distinct, wrapped, platform-managed local key.
An existing workspace may need **Set up workspace encryption** before preparing
its first migration.
A deployed page, configured key or successful connection test does not mean
existing workspace data has completed migration. Check the workspace's operation,
coverage and recovery status. Keep the existing key until the verified transition
has completed; retained encrypted history may continue to require older keys.
## Choosing who controls the key
QScan supports platform-managed local wrapping and adapters for
AWS KMS, Google Cloud KMS, Azure Key Vault and HashiCorp Vault Transit. Each
workspace uses a distinct random data key; a local wrapping key is
not a shared workspace data key. Wrapped keys can be stored with workspace state;
unwrapped keys must not become database records or diagnostic output.
External key services wrap and unwrap the workspace data key. They do not receive
the complete evidence inventory as part of that operation. QScan must decrypt
authorized data while processing it, so customer-controlled keys are not a claim
that the application operator can never access plaintext during processing.
Choose an external provider only if your team can maintain its availability,
permissions and recovery procedures. A provider outage or revoked permission must
fail protected access rather than silently switch the workspace to a local key.
Do not revoke an old key merely because a new configuration has passed a connection
test: retained data and historical results may still depend on it.
## Connection testing is not activation
The workflow separates these steps:
1. **Configure and test:** prove the actual provider configuration can wrap and
unwrap a test value. This does not demonstrate migration or storage coverage.
2. **Prepare:** establish the target wrapped key and a recoverable migration
operation. The previous key remains required.
3. **Migrate:** process bounded batches, preserve existing evidence and historical
assessment meaning, and retain checkpoints for interrupted work.
4. **Verify:** inspect all covered storage owners, pending jobs, scan runtime
references and retained history. Unknown fields and unavailable checks must
remain unresolved rather than appearing as protected or empty.
5. **Activate and recover:** commit the verified key transition and finish the
matching delivery/admission transitions. A committed key alone does not prove
every acknowledgement or recovery step has completed.
Rotation, provider changes and a return to local wrapping require the same
coverage and recovery discipline. Key retirement must refuse a key still referenced
by retained records, objects, historical snapshots or unfinished jobs.
## Coverage and storage limits
The rollout covers workspace payloads, integration secrets, evidence, assessments,
reports, queued payloads and derived data. Its final coverage report must identify
any plaintext query or operational metadata separately. Routing IDs, lifecycle
markers or counters must not become a blanket exception for arbitrary extensions.
Temporary scan data needs separate verification of the hosted execution and cleanup
path. An empty runtime metadata record, a stopped container, or an object absent
from a listing is not proof that all previous disk content was destroyed. Likewise,
a provider's **has stored data** flag does not tell you whether that data is a
lifecycle marker or a payload.
Migration of current records does not retroactively rewrite provider backups or
point-in-time recovery history. Pre-migration snapshots can retain their original
representation until the applicable retention period ends. Recovery planning must
preserve the keys required by retained encrypted history and verify restored data
before normal writes resume. Encryption activation is not secure deletion of old
backups.
## Access and recovery
Workspace key administration requires the workspace administrator role and fresh
authentication for sensitive changes. Shared account identity, passwords, MFA and
memberships must remain independent of an individual workspace key so a provider
outage does not prevent administrators from reaching recovery controls. That does
not grant access to encrypted workspace contents without the required key.
Keep a recovery owner and provider-side recovery procedure. Never include root
keys, provider credentials, unwrapped data keys or plaintext evidence in support
messages. Diagnostics should identify the failed operation and affected key version
without disclosing those values.
## Verification limits
Provider adapters have been checked with specification-based fixtures, simulated
providers and failure injection. Live customer AWS, GCP, Azure and Vault accounts
have not been used for acceptance. Those simulations must not be described as live
provider testing. Each actual customer configuration will still require a real
wrap/unwrap connection test before activation.
Availability of the controls does not certify an individual provider deployment
or the protection of an unmigrated workspace. Use the actual connection test and
completed workspace migration/recovery status rather than inferring those results
from this guide.
## Configure a provider
Sign in again as a workspace administrator, then open **Organization → Workspace
encryption**. Saving configuration does not contact the provider or change the
active key. Save its resource references first, then expand **Federation setup
values**. Copy those exact values when establishing provider trust. Each saved
configuration has its own subject; a replacement configuration needs its own trust
entry even when it refers to the same wrapping key.
### AWS KMS
1. Select an enabled symmetric encryption key. Enter its full **key ARN**, not
an alias ARN, and an IAM role ARN in the same account and partition.
2. Register the displayed issuer as an IAM OIDC provider, with the displayed
audience (`sts.amazonaws.com`). Permit `sts:AssumeRoleWithWebIdentity` for
that provider only. In the role trust conditions, match both `aud` and `sub`
exactly to the displayed values; do not use a wildcard subject.
3. Grant the role `kms:Encrypt` and `kms:Decrypt` on the selected key. The KMS
key policy must also permit that role, directly or through IAM delegation.
QScan does not need permission to delete keys, change policies or create grants.
4. Save the trust and permission changes, then choose **Test connection**.
QScan further restricts each STS session to the requested operation, exact key and
workspace/key-version encryption context. Keep older KMS keys enabled for retained
data. See [AWS OIDC role setup](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_oidc.html)
and [KMS encryption context](https://docs.aws.amazon.com/kms/latest/developerguide/encrypt_context.html).
### Google Cloud KMS
1. Use a symmetric encryption CryptoKey. Enter
`projects/PROJECT/locations/LOCATION/keyRings/RING/cryptoKeys/KEY` without a
version suffix. Keep versions required by existing ciphertext enabled.
2. Create an OIDC provider in a Workload Identity Pool. Enter its resource name
in QScan's audience field, starting with `//iam.googleapis.com/projects/` and
using the **project number**, not project ID.
3. Set the provider issuer to the displayed issuer, map
`google.subject=assertion.sub`, and restrict its attribute condition to
`assertion.sub == 'EXACT_DISPLAYED_SUBJECT'`. Permit the displayed audience.
4. Grant `roles/cloudkms.cryptoKeyEncrypterDecrypter` on this CryptoKey to the
individual federated subject:
`principal://iam.googleapis.com/projects/PROJECT_NUMBER/locations/global/workloadIdentityPools/POOL/subject/EXACT_DISPLAYED_SUBJECT`.
This adapter uses direct federated access, not service-account impersonation.
5. Enable the required IAM/STS and Cloud KMS APIs, then **Test connection**.
Use [Google's OIDC federation guide](https://docs.cloud.google.com/iam/docs/workload-identity-federation-with-other-providers)
for provider creation and [KMS roles](https://docs.cloud.google.com/iam/docs/roles-permissions/cloudkms)
for key-level permissions. A project-wide administrator grant is unnecessary.
### Azure Key Vault
1. Choose an enabled RSA key supporting `RSA-OAEP-256`. Enter the full
**versioned** key URL, directory ID and application client ID. The implemented
endpoints are public Azure `vault.azure.net` and `managedhsm.azure.net`;
other sovereign-cloud endpoints are not accepted by this configuration contract.
2. Add a federated identity credential to the Entra application with the exact
displayed issuer, subject and audience (`api://AzureADTokenExchange`). Do not
create or paste an application secret.
3. For an RBAC Key Vault, grant its service principal **Key Vault Crypto Service
Encryption User**, scoped to the required key where your access policy allows.
For Managed HSM, assign **Managed HSM Crypto Service Encryption User** through
the HSM's local RBAC system at key scope; a Key Vault RBAC assignment does not
establish HSM permission.
4. Keep the named version enabled and reachable, then **Test connection**.
References: [Entra federation](https://learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation-create-trust),
[Key Vault roles](https://learn.microsoft.com/azure/role-based-access-control/built-in-roles/security),
and [key algorithms](https://learn.microsoft.com/en-us/azure/key-vault/keys/about-keys-details).
For HSM deployments, use the separate [Managed HSM role reference](https://learn.microsoft.com/en-us/azure/key-vault/managed-hsm/built-in-roles).
### HashiCorp Vault Transit
1. Enter an HTTPS origin without a path, JWT auth mount, role, Transit mount and
existing key name. Set the optional namespace when required. The reference is
the immutable QScan identifier for this configuration's wrapping key.
2. Configure JWT authentication with QScan's discovery URL and issuer. Set the
role's `bound_subject` and `bound_audiences` to the exact displayed values,
`user_claim` to `sub`, and use JWT rather than interactive OIDC login.
3. Issue a short-lived token: this adapter accepts a returned lease longer than
60 seconds and no longer than 900 seconds. A five-minute role TTL is suitable.
Attach only the policy for `update` on `MOUNT/encrypt/KEY` and
`MOUNT/decrypt/KEY`; do not attach a root or administrative policy.
4. Use a Transit key supporting authenticated encryption and associated data.
Match QScan's **Derived key** setting to the existing Transit key. QScan supplies
its own bound context. The key must already exist; QScan does not create it.
5. Ensure the service can reach the approved HTTPS endpoint, then **Test connection**.
References: [JWT role fields](https://developer.hashicorp.com/vault/api-docs/auth/jwt)
and [Transit operations](https://developer.hashicorp.com/vault/api-docs/secret/transit).
Private-only network endpoints require an approved reachable deployment path;
entering a URL does not establish a network tunnel.
### Prepare, activate and recover
After **Test connection** succeeds, choose **Prepare key**. Review the pending
provider and current revision before starting activation. Follow the durable
operation until migration, verification and recovery all complete. A prepared key
or committed key alone is not the final success condition. If the response is lost,
reopen this page and inspect the existing operation rather than creating another.
The page refreshes key status and coverage every five seconds without requesting
fresh identity verification. These reads do not advance the migration or change
keys. The visual meter shows verified record families for the exact target key,
or verified channel shards during channel recovery. Provider form drafts and
expanded diagnostics stay in place. If a refresh fails, the page identifies the
last confirmed snapshot rather than claiming it is current.
Time estimates apply only to the current verification stage. They need at least
three newly verified units over thirty seconds and disappear after a minute
without observed progress. Units vary in size: the estimate is not a guarantee
of completion, and it does not include later cutover or recovery stages.
**Migration recovery options** is a collapsed secondary section. It is hidden
while an action is pending or recent progress is observed. Use **Resume migration
and recovery** only when continuation is needed; this is a key action and may
require identity verification. Simply viewing progress does not.
The diagnostics show which key revision each retained receipt verified. During
activation, receipts for the prior key are labeled **migration pending**. The
target-revision count measures record families, not bytes or elapsed time; object
storage, channels and final recovery have separate verification requirements.
Leaving the page stops browser-driven continuation, but does not undo completed
migration batches or release the scan admission hold. There is no cancellation
or key-deletion action: partially migrated data can already require both keys.
Return to this page and resume the same operation. If the five-minute sensitive
authorization window expires, sign in again before resuming; do not create a new
operation or revoke either provider. To change direction, first finish recovery,
then prepare the desired key and run another complete transition. This also
applies to a return to local encryption.
Keep both providers available throughout a provider change. To return to local
encryption, explicitly prepare a local key and complete the same migration; this
cannot recover ciphertext whose old wrapping key is unavailable. Renew provider
trust in place when restoring existing-key access. Do not delete an old key or
configuration based only on the current-key label.
| Failure | Check before retrying |
| --- | --- |
| Sign-in required | Sign in again; refreshing an OAuth grant does not refresh the original authentication time. |
| Federation rejected | Compare issuer, subject and audience exactly, then check provider-side trust and token policy. |
| Wrap/unwrap denied | Check key state/version, data-plane permissions and endpoint access. A successful token exchange is not key access. |
| Revision conflict | Reload current state. Do not replay a mutation using an older revision. |
| Migration cannot verify | Keep the operation and both keys. Inspect coverage and audit history; unknown coverage is not empty storage. |
These instructions were checked against the implementation and linked primary
documentation on 2026-11-18. External-provider acceptance remains simulation-based;
each customer configuration must pass its real connection test.
## SDK and OAuth controls
Use the service origin where your workspace is hosted. SDK and OAuth operations
use the same authorization, revision checks and migration workflow as the UI.
Encryption SDK clients use an OAuth grant for the `/mcp` resource. They never
send that grant to the general REST API. A static workspace API key cannot
substitute for a signed-in administrator. Sensitive changes require the original
sign-in to be less than five minutes old: obtaining a new grant from an old
session does not renew that time. Sign in again and reconnect if authorization
has expired. Current membership and grant revocation are checked on each call.
JavaScript, from the unpacked project/SDK sources:
```js
import { WorkspaceEncryption } from './sdk/javascript/index.mjs';
const encryption = new WorkspaceEncryption({
endpoint: process.env.QSCAN_ENDPOINT,
token: process.env.QSCAN_OAUTH_TOKEN,
});
const status = await encryption.status();
// Resume the same durable operation after a restart or uncertain response.
if (status.activation && !status.activation.complete) {
console.log(await encryption.activation(status.activation.operationId));
}
```
Python, from the unpacked sources:
```python
import os
from sdk.python.workspace_encryption import WorkspaceEncryption
encryption = WorkspaceEncryption(
os.environ['QSCAN_ENDPOINT'], os.environ['QSCAN_OAUTH_TOKEN']
)
status = encryption.status()
if status.get('activation') and not status['activation']['complete']:
print(encryption.activation(status['activation']['operationId']))
```
In the downloadable source bundle, both Python clients are packaged in the
standalone `sdk/python/quantum_ready.py` entry point: import `WorkspaceEncryption`
from that module instead. JavaScript continues to export it from `index.mjs`.
The authored repository modules remain separate; packaging combines them to
preserve the inventory limit supported by deployed release verifiers.
| JavaScript / Python method | Purpose |
| --- | --- |
| `status` / `status` | Current and pending key references, plus the resumable activation |
| `coverage` / `coverage` | Migration diagnostics; missing evidence is not success |
| `audit` / `audit` | Paginated, explicitly tenant-attributed key-control events; optional `cursor` and `limit` |
| `configurations` / `configurations` | Paginated provider configuration references |
| `createConfiguration` / `create_configuration` | Save `{configuration, confirm: true}` without activating it |
| `testConfiguration` / `test_configuration` | Test wrap/unwrap for a configuration ID |
| `testRetainedKey` / `test_retained_key` | Verify access to an existing wrapped key by key ID; does not rotate or rewrite it |
| `prepareConfiguration` / `prepare_configuration` | Supply `configurationId`, `expectedRevision`, `confirm: true` |
| `prepareLocal` / `prepare_local` | Explicit local rotation or return to local; supply `expectedRevision`, `confirm: true` |
| `startActivation` / `start_activation` | Supply a persisted `operationId`, pending `keyId`, `expectedRevision`, `confirm: true` |
| `activation` / `activation` | Read an operation by ID |
| `advanceActivation` / `advance_activation` | Supply `operationId`, `confirm: true` to advance one bounded step |
Python inputs use dictionaries with the same wire field names and Python `True`.
Neither SDK automatically retries mutations. Persist your operation ID before
starting activation; after a timeout, read status before deciding what to retry.
Do not generate another ID simply because the first response was lost. Advancing
an operation can commit its key change, so it requires fresh authorization too.
Keep both old and new providers accessible until migration and recovery finish.
A successful configuration save or connection test is not activation.
To diagnose an outage, sign in again and use **Verify current key access** on the
encryption page, or pass `status.active.keyId` to `testRetainedKey` (Python:
`test_retained_key`). Unlike **Test connection**, this operation uses the existing
wrapped key and its original provider configuration. It checks an ephemeral
encrypted challenge without rewriting stored data or selecting a replacement key.
Restore access to the same provider key or retained local root before retrying.
Success confirms key access at that moment; it does not certify every historical
record or migration owner. Both diagnostics require a recent administrator sign-in
and produce audit events. There is no automatic local fallback.
**Encryption audit history** loads bounded pages from independent Identity storage,
so a workspace key outage does not require decrypting workspace data to inspect
control events. New events retain explicit workspace ownership. Historical events
without that attribution remain available to operators only; they are not assigned
to workspaces based on present-day membership. Retained-key diagnostics identify
the tested key as their audit resource.
### Credential renewal and recovery boundaries
After saving a provider configuration, open **Federation setup values** on its
card. Copy the issuer, exact subject and audience into the provider's trust
configuration; OpenID discovery and JWKS URLs are shown there as well. The subject
is scoped to both the workspace and that immutable configuration. Do not substitute
a cloud-scanner connection subject or a wildcard workspace subject. The displayed
values come from the same contract used to issue encryption assertions.
Provider credentials are acquired through federation for each operation. AWS
exchanges a fresh assertion through STS with an operation-, key- and
encryption-context-scoped session policy. Google and Azure exchange an assertion
for a short-lived access token; Vault performs JWT login. These access tokens are
not persisted in workspace configuration. There is no customer token field to
refresh, and an expired or rejected token does not trigger a local-key fallback.
If trust or permissions were revoked, restore the original federation relationship
and access to the original wrapping key, then verify retained-key access. Keep the
old configuration and provider key available while preparing a different provider
or rotating to a new key. Configuration records are immutable: saving another
configuration does not silently redirect existing keys to a different identity or
endpoint. A successful test on the new configuration does not establish access
to the old key.
Deleting an external wrapping key or losing its required version can make
retained data unrecoverable. Preparing a local key cannot decrypt data whose
external key is unavailable. Preserve provider backups and recovery procedures
alongside the platform's documented backup/PITR limitations.
The clients reject redirects, unsafe endpoints, mismatched RPC responses and
responses over 2 MiB. They accept both JSON and SSE responses from the stateless
MCP endpoint. No SDK success response establishes coverage beyond the server's
reported operation and diagnostics.
## Workspaces created before encryption
If the page shows **Not provisioned**, choose **Set up workspace encryption** after a fresh administrator sign-in. This creates a random wrapped local key without rewriting retained data. Retries preserve the same key; setup never replaces an existing external key. Next prepare a local key and start migration. Keep the page open or return to resume the same operation, and verify coverage and completed recovery before treating existing data as protected.
The browser endpoint is `POST /api/v1/workspace-encryption/local/initialize` with an empty JSON object and `X-QScan-Workspace`. OAuth clients use `workspace_encryption_initialize_local` with `confirm: true`; the SDK methods are `initializeLocal({confirm: true})` and `initialize_local({"confirm": True})`. Initialization is separate from migration and does not change historical assessments.
---
# Invite someone to create a workspace
Source: https://qscan.dev/docs/workspace-invitations
Platform administrators can invite a new owner to choose their own workspace details. Open **Account > Tenant portal > Invite a workspace owner**. Enter the recipient's name and email, then select **Email workspace invitation**.
No workspace is created when you send the invitation. The email service's acceptance means it accepted the message for sending; it does not confirm inbox delivery. The portal lists invitation status and delivery outcome. Use **Send again** if delivery failed or the link expired. Resending invalidates the previous link. **Revoke** cancels a pending invitation after confirmation.
## What the recipient does
1. Open the single-use email link within 24 hours.
2. Choose a workspace name and address, an optional alternative username, and a password. The invited email becomes the verified sign-in and recovery email.
3. Set up an authenticator and save the recovery codes. Workspace APIs remain unavailable until MFA is complete.
4. Open the workspace and follow **Getting started** to connect a scoped discovery source. Add a passkey from Account & security for easier subsequent sign-in.
Sign in using the invited email; there is no need to remember the workspace address. This provisioning flow creates a new owner account. To add an existing verified account to an existing workspace, use [workspace membership invitations](./multiple-workspaces.md) instead; the same sign-in can access multiple workspaces.
## Recover interrupted setup
If tenant initialization fails, the invitation retains the original workspace details and reserves the address. Reopen the invitation to retry those details; the same workspace ID is used. If the link has expired, an operator can send it again. A successfully created account consumes the invitation. If the final response was lost, sign in with the chosen password and complete MFA rather than trying to reuse the invitation.
Revoking an incomplete invitation releases its reserved workspace address and prevents account creation. An accepted invitation cannot be revoked; suspend the created workspace through the tenant portal instead. Existing administrator-led **Create & invite** provisioning remains available when you want to choose workspace details yourself.
Invitation creation, sending, revocation and acceptance appear in administrative activity. The API is documented under **Invite workspace owner**, **List workspace invitations**, **Resend workspace invitation**, **Revoke workspace invitation**, **Preview workspace invitation**, and **Accept workspace invitation**.