Skip to content

Schedule detection runs

Runtime › Runtime Detections fills from three places:

Source Covers Setup
Live detection feed AWS and Azure cloud audit logs, as events arrive In the console, on the connection
Enrolled collectors Hardware fleet rules (DET-H…) Enroll the host
A scheduled detection run in your CI Everything the feed does not cover This page

Schedule a detection run for:

  • Google Cloud (Confidential Space), which has no live feed;
  • NVIDIA GPU CC, from successive GPU attestation captures;
  • key-broker release events, from an exported log;
  • image registries, for tag moves and unsigned pushes;
  • AWS or Azure accounts where you don't run the live feed.

What you need

1. Run the detection pass

Run untrust detect for the platform. --since sets how many minutes back to read (default 60); match it to your schedule so windows overlap. Re-reading an overlapping window never creates a duplicate detection.

Platform Command Reads
GCP Confidential Space untrust detect --platform sev-snp --gcp-project <project> --gcp-instance <vm> --gcp-zone <zone> --gcp-kms-key <key> --wip-provider <provider> Cloud Audit Logs
AWS Nitro Enclaves untrust detect --platform nitro --region <region> --target-bucket <bucket> --kms-key-id <key> --instance-id <instance> CloudTrail
Azure confidential VMs untrust detect --platform azure-cvm --azure-subscription <id> --azure-vm <vm> --azure-vault <vault> --azure-key <key> Activity Log and Key Vault audit events, live or from an exported file
NVIDIA GPU CC untrust detect --platform gpu-cc --capture <dir> --capture <dir> Successive GPU evidence captures
Key broker untrust detect --platform kbs --kbs-log-file <events.json> Exported key-broker release events
Image registries untrust registry detect --policy <policy.json> ECR CloudTrail events or Artifact Registry audit logs, for the repositories the trust policy watches

Add --output detections.json to write the evidence document. Every option is in the CLI reference.

On Nitro, --expected-pcr0 names the enclave images you released, so a key release to any other image is detected. --coverage-output coverage.json also writes which rules were evaluated in the window.

2. Send the result

python -m untrust.enterprise_ci_client --endpoint "$UNTRUST_SUBMIT_ENDPOINT" --github-oidc \
  --detections detections.json

On GitLab, omit --github-oidc; the client reads the token from UNTRUST_CI_ID_TOKEN.

3. Put it on a schedule

Run the job on a schedule: a schedule trigger in GitHub Actions or a scheduled pipeline in GitLab. The binding must allow the trigger you use; register a separate binding for the scheduled workflow if your build pipeline runs on push.