Source analysis¶
Source analysis is in the sidebar under Build › Source analysis (shortcut g then
b). It shows the static analysis of each build artifact your pipeline produces: the
untrust buildscan gate's verdict for every run, the rules it ran and the custom rules your
organization adds. The header asks Did the code you are about to ship pass its gate? The
findings themselves are triaged on the Findings page under the Build phase.
The old Build pipeline route (/pipeline) now redirects here.
What the build scan looks for¶
untrust buildscan reads the files inside a built artifact (an enclave image, a root
filesystem tar or a confidential VM boot bundle) and never runs it. It checks source and
configuration against the 55 built-in build rules: 34 rules
for confidential-computing patterns (scope TEE) and 21 for any workload (scope
Generic).
| Rule family | What it catches | Example rules |
|---|---|---|
| Attestation handling | Tokens decoded without signature checks, attestation requested without a fresh nonce, code that weakens or disables verification, algorithm confusion, attestation documents written to logs | CONTENT-ATTEST-NOVERIFY, CONTENT-ATTEST-REPLAY, CONTENT-ATTEST-WEAKEN, CONTENT-JWT-ALG, CONTENT-ATTEST-DOC-LEAK |
| Trusting the host | Boot configuration driven by host-supplied environment, freshness decided by host time, keys or nonces drawn from a non-cryptographic random source, host-supplied bytes parsed inside the TEE | CONTENT-ENV-CONFIG, CONTENT-HOST-TIME, CONTENT-HOST-ENTROPY, CONTENT-ASN1-PARSE |
| Key release | Keys or disk keys not bound to a measurement, endpoints not pinned | CONTENT-KEY-NOT-BOUND, VM-DISK-KEY, CONTENT-NO-ENDPOINT-PIN |
| Debug and signing | Debug mode in Gramine, SEV-SNP or TDX policy or on the kernel command line, unsigned launches, unsigned or unencrypted images | GRAMINE-DEBUG, SNP-POLICY-DEBUG, VM-TD-DEBUG, SNP-ID-BLOCK, COCO-SUPPLY-CHAIN |
| Confidential VM boot chain | Unmeasured boot components, unsupported firmware, a root filesystem without integrity protection, a launch measurement that differs from the expected one, shell, password, serial-console or SSH-key access baked in | VM-BOOT-UNMEASURED, VM-ROOT-INTEGRITY, VM-MEASUREMENT-MISMATCH, VM-SSH-AUTHORIZED-KEYS |
| Code flaws | Path traversal, zip slip, command injection, dynamic imports, unsafe deserialization, XML external entities | CONTENT-PATHJOIN, CONTENT-ZIPSLIP, CONTENT-CMDI, CONTENT-PICKLE, CONTENT-XXE |
| Dataflow and structure | A value from an untrusted source reaching a dangerous sink, a decrypted secret reaching a log, validators that always pass, secrets compared in non-constant time | TAINT, AST-PATTERN |
| Secrets and crypto | Hard-coded cloud keys and private keys, weak ciphers and hashes, small key sizes, unauthenticated encryption, disabled TLS verification | CONTENT-AWSKEY, CONTENT-PRIVKEY, CONTENT-WEAK-CIPHER, CONTENT-TLS-VERIFY |
Some rules apply only to one kind of artifact; the VM boot-chain rules, for example, run on
vm-snp and vm-tdx bundles. CI gates lists the targets, the
artifact each takes and the scanner's limits.
Confirmed and possible findings¶
Every finding carries a confidence:
| Confidence | Meaning | Can it block the gate? |
|---|---|---|
confirmed |
The scanner proved it: a dataflow from source to sink, a configuration value or a permission. | Yes, at or above the gate threshold. |
possible |
A pattern hint that a person should review. | No. It is listed as possible: a pattern hint, not confirmed. |
A dataflow finding includes its evidence as steps: source, propagators and sink, each with its file and line. Each finding also carries a one-line fix for its class.
How results arrive¶
Today Source analysis is filled by your CI. The pipeline runs untrust buildscan, keeps the
JSON receipt and sends it to the console with its own OpenID Connect identity through a
registered CI binding. Scan code and IaC in CI covers the binding and the
upload, and CI gates covers the command.
When a receipt is ingested, the service recomputes the gate from the findings against your organization's armed custom rules and rule levels, and stores the verdict with the receipt.
The empty state reads No source analysis yet and offers Connect GitHub. Connecting repositories so untrust scans each commit itself is not available yet on the hosted service; use the CI upload.
Scans tab¶
The default tab. One row per CI receipt, newest first, plus any scan a CI run reported as started that has no receipt yet. The tab's count includes both.
| Column | Shows |
|---|---|
| Scan | A short ID such as bs-1a2b3c and the time the receipt was received (UTC). Hover for the CI run ID. |
| Artifact | The artifact name, and its target, such as EIF · Nitro, OCI · container, OCI · Confidential Space, OCI · NVIDIA GPU CC, SNP VM image or TDX VM image. |
| Revision | The branch or pull request and the short commit, for example main @ 4f2a91c. |
| Trigger | CI · push, CI · pull request, CI · tag, CI · merge queue, CI · release, Scheduled or Manual. A manual run can show who started it, marked as reported by the CI run and not verified. |
| Rules | How many rules ran. |
| Result | Findings by severity, worst first, such as 2 critical · 9 high, or no findings. not assessed when the gate errored, incomplete when the run recorded errors but no finding. An errors tag marks a run with errors. |
| Time | The run's duration, when CI reported start and finish times. |
| Status | PASSED, FAILED, ERROR, WARN or NO GATE. |
WARN is a display tier, not a verdict: the gate passed, a threshold is recorded, and the run still lists findings that did not block. The gate result is unchanged.
Notes above the table:
- Showing the newest N CI receipts; older ones are not read on this page. The page reads a bounded number of receipts.
- Partial: older CI receipts did not load. Reload to try again. A later page of receipts failed.
- When the header's platform filter is set, the table shows only receipts on that platform and says how many generic container images are not tied to a platform.
Running scans¶
A pipeline can report that a scan started, the steps it reached and that it finished. Such a run shows as a row with Result in progress and status RUNNING. A run with no update for more than two hours reads STALE (it may have been cancelled). FINISHED and FAILED mean the run ended and its receipt has not arrived yet. The receipt replaces the row; rows are purged after 24 hours.
Click the row for its Branch, Trigger, Started, Last update and the Steps reported by the CI run: Fetch, Copy and hash, Start analysis, Unpack, Built-in rules, Custom rules and Gate, as the scanner reports them. Progress is reported by the CI run, is not evidence and never changes a verdict.
Run drawer¶
Click a receipt row to open its drawer. The URL keeps ?run=<id>, so Copy link shares
it and Back closes it.
- Release gate. The title reads Blocked by N findings, Passed with N warnings, Passed — no findings, Incomplete or No gate recorded. Under it, the gate policy line, for example Blocks at or above high · warn and report rule levels never block · shadow custom rules never block, then the blocking findings.
- Not blocking · N (collapsed) and Not recorded · N list the other findings. Each
finding shows its severity, what it is,
file:line, the rule and its confidence, and a short reason such as critical · always blocks, high · at threshold, high · possible, medium · warns or shadow rule. Hover for the full reason. Click a finding to open it in Findings. - New and on main pills. For a pull-request run, each finding is compared with the newest push run on the base branch: new when that run did not have it. Branch names are reported by the CI run.
- Rule levels applied. The profile, the verdict the run would have had without your organization's rule levels, and each rule whose level changed.
- Rules line, for example 10 rules ran · 3 caught findings · 7 passed, with View rules → and Each rule's result (failed, possible or passed).
- Facts. Revision, Trigger, Started, Duration, Engine and Output, then under More about this run: Repository, CI run (a link, labelled as reported by the CI run and not verified), Rules run, Coverage (source files), Artifact digest and Received.
- Command. The command as the CI run reported it, with Copy command. For an older receipt that did not record it, an equivalent command rebuilt from the receipt, labelled as such.
A field the receipt did not record reads not recorded. An older run's drawer notes that Findings lists the newest run per target, so its findings may no longer appear there.
Rules tab¶
The full built-in rule catalog plus your organization's custom rules, highest risk first. Search by ID, name, class or scope.
| Column | Shows |
|---|---|
| On | Whether the rule is enforcing. Locked for floor rules and custom rules. ? when your organization's rule settings did not load. |
| Rule | The rule ID. A built-in rule links to its documentation. |
| What it catches | One line. |
| Class | Attack class and CWE, such as path-traversal · CWE-22. |
| Scope | TEE or Generic; custom for a custom rule. |
| Severity | The severity for your organization. Hover when it differs from the catalog. |
| Mode | enforcing, warn, report or disabled; an armed custom rule shows enforcing, the others shadow or draft. unknown when rule settings did not load. Hover for where the level came from: a floor rule, the profile or an administrator's override with its reason. |
| Hits | Matches in the last 30 days, counting every run. |
| Source | built-in or custom. |
| Policy | The governance policy the rule relates to, linked to Findings for that policy. A build rule never satisfies a policy, and the label never changes the gate. |
Rule profiles and levels¶
Above the table, the Profile selector sets the organization's baseline:
| Profile | Description in the console |
|---|---|
standard |
Rules block at the pipeline's own threshold. The default. |
audit |
Findings are reported but do not fail the gate, except floor rules. |
strict |
Blocks at medium and above whatever the pipeline asks for. |
An administrator can also:
- Disable a rule with the On switch: enter a reason of at least 10 characters and a duration of 1 to 365 days (30 by default). The switch re-enables it.
- Set level: click the Mode cell to change the rule's Severity and Enforcement (block (fails the gate), warn (shown, never fails) or report (listed only)), with a reason and duration as above. Reset to default removes the override.
Floor rules, the attestation-critical ones, always block. You can only make them more severe. Every change is audited and expires. A level changes the gate verdict only: findings stay recorded on every receipt. Levels and the profile apply to the whole organization. Rule levels and CI gates explain how to apply the same levels to pull-request checks.
Custom rules tab¶
Your organization's own build rules, under Your rules, with a Write a rule panel beside them. A build rule matches a file path or file content.
Each rule card shows its ID (CUS-B-…), state (draft, shadow or armed), its
matcher, severity and hits, with As code to show the rule as JSON. A rule whose last
receipt ran an older version of its matcher reads older matcher: the pipeline's rules
file is stale.
| State | Behaviour |
|---|---|
| draft | Stored only, not run. |
| shadow | Runs on every scan and reports what it would catch, never fails the gate. New rules start here. |
| armed | Gates: a match at or above the threshold fails the scan. Arming is enabled per organization by untrust; until then Arm is unavailable and the page says so. |
Custom rules covers matchers, limits and dry runs, and how to test a rules file locally.
Who can do what¶
| Action | Role |
|---|---|
| View scans, run drawers, rules and custom rules | Everyone |
| Create draft and shadow custom rules | analyst or administrator |
| Edit, arm, disarm and delete custom rules | administrator |
| Change the profile, disable a rule, set a rule's level | administrator |
See the role and permission tables.
Scope¶
With a project scope, the Scans tab shows runs from the scope's pipelines. Custom rules and rule levels are organization-wide. The header's figures (scans in 30 days, last scan, gate pass rate and rules ran in the newest scan) are organization-wide and are hidden while a project or environment scope is on.
Where the data comes from¶
| Data | Source |
|---|---|
| Scans, findings, gate verdicts | build receipts your CI uploads through a CI binding |
| Running scans | Progress events the same pipeline sends before its receipt |
| Rule catalog | The scanner's built-in rule list, served by the console |
| Rule levels and profile | Your organization's rule overrides |
| Custom rules | Your organization's custom rules |
A CI upload is an authenticated submission: untrust knows which pipeline sent it, not that the scanner ran on the artifact you deployed. You can verify a stored receipt offline.