Skip to main content
DevSecOps guide 8 min read Updated

Post-Quantum Cryptography in CI/CD: Automated CBOM & Crypto-Agility Gates

Automate external PQC discovery, CycloneDX 1.6 CBOM generation, and TLS downgrade guardrails across every release.

For DevSecOps, AppSec, platform engineers and compliance leads
Pipelines & standards covered
GitHubGitLabAzure DevOpsTerraformPost-Quantum ML-KEMCycloneDX 1.6 CBOMCloudflare
Short answer

Automating Post-Quantum Cryptography (PQC) checks in CI/CD prevents silent TLS regressions after CDN, ingress or load-balancer changes while keeping your CycloneDX 1.6 Cryptographic Bill of Materials (CBOM) current for NIST IR 8547, NSA CNSA 2.0, ASD/ACSC and EU DORA audits. Pair automated passive DNS and Certificate Transparency gates in your pipeline with live hybrid ML-KEM handshake verification after every ingress release.

Who it is for
DevSecOps, platform and security engineering teams tracking PQC migration milestones across customer-facing domains.
What it covers
A two-stage pipeline workflow combining passive DNS/CT crypto-agility gates with live RFC 10024 ML-KEM verification and CycloneDX 1.6 CBOM snapshots.
Why it matters
Ingress edits, WAF policy changes and CDN origin swaps routinely drop hybrid ML-KEM or re-enable TLS 1.2 downgrades without breaking unit tests.
How to integrate
Gate passive DNSSEC, MTA-STS and Certificate Transparency signals via API on every merge, and export dated CycloneDX 1.6 CBOMs after each release.
Run a live PQC readiness check and export a CBOM now

Test any domain for RFC 10024 hybrid ML-KEM key exchange, middlebox tolerance, email STARTTLS PQC and CycloneDX 1.6 CBOM export.

Why PQC migrations regress silently without CI/CD gates

Turning on X25519MLKEM768 at a CDN or reverse proxy is only day one of a post-quantum transition. Within weeks, someone introduces a new subdomain bypassing the CDN, swaps a load-balancer TLS policy back to a legacy profile, or forgets to enable hybrid key exchange on the IPv6 listener or mail gateway.

Because standard browser traffic falls back transparently to classical X25519, functional smoke tests and synthetic uptime monitors still pass green while Harvest-Now-Decrypt-Later exposure quietly returns. Continuous external verification turns PQC readiness from a one-off spreadsheet into an enforced deployment invariant.

PQC layerWhat breaks silentlyVerification signalRecommended CI/CD action
Hybrid TLS 1.3 key exchangeIngress or WAF profile drops X25519MLKEM768 (0x11ec) or serves obsolete Kyber draft (0x6399)PQC Readiness Checker (live handshake)Verify post-deploy & archive CycloneDX 1.6 CBOM
IPv4 / IPv6 & HTTP/3 parityAAAA listener or QUIC UDP/443 runs older TLS library than IPv4 TCP/443PQC Readiness Checker (dual-stack + QUIC)Flag asymmetric edge listeners before cutover
Certificate agility & CT logsLegacy 397-day certs or undocumented shadow subdomains appear outside ACME automationct-logs APIGate unexpected issuers or long-lived certs in PR
Email transport hardeningMX gateways drop MTA-STS enforcement or TLS-RPT reporting during mail migrationsmta-sts, tls-rpt, mx APIsFail build if MTA-STS drops from enforce
DNS trust anchorDNSSEC validation breaks ahead of DANE/TLSA or future PQC DNSKEY rolloversdnssec APIFail DNS PR on broken DS/DNSKEY chain
Passive API gates vs active TLS handshake probes
Certificate Transparency (ct-logs), DNSSEC, MTA-STS, TLS-RPT, MX and DNS lookups are passive checks ready for self-serve API automation on every commit. Active handshake probing (PQC Readiness Checker for RFC 10024 ML-KEM and TLS grading) runs from the web tool, Domain Health Check, or verified-domain Enterprise pipelines, while passive SSH Port 22 KEXINIT auditing is reserved for Enterprise customers with verified domain ownership.

Automate passive PQC crypto-agility gates in GitHub Actions

Start every release pipeline with a zero-intrusion passive gate that queries our API for Certificate Transparency certificate lifetimes, DNSSEC signing posture, and email MTA-STS / TLS-RPT enforcement. Pair the job summary with a direct link to run the live PQC Readiness Checker and download the updated CycloneDX 1.6 CBOM.

GitHub Actions: passive PQC crypto-agility gate + CBOM evidence link
name: PQC Crypto-Agility Gate
on:
  pull_request:
    paths: ['infra/**', 'dns/**', 'terraform/**']
  schedule:
    - cron: '0 2 * * 1'

jobs:
  pqc-agility:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Check passive PQC foundations (DNSSEC, MTA-STS, CT logs)
        env:
          MN_API_KEY: ${{ secrets.MN_API_KEY }}
          TARGET_DOMAIN: example.com
        run: node scripts/pqc-agility-gate.mjs
// scripts/pqc-agility-gate.mjs - passive PQC crypto-agility check via /v1/
const API = 'https://api.middle.network/v1/tools';
const KEY = process.env.MN_API_KEY;
const domain = process.env.TARGET_DOMAIN || 'example.com';

const call = async (tool, input) => (await fetch(`${API}/${tool}`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${KEY}`, 'Content-Type': 'application/json' },
  body: JSON.stringify({ input }),
})).json();

const [dnssec, mtaSts, tlsRpt, ct] = await Promise.all([
  call('dnssec', { domain }),
  call('mta-sts', { domain }),
  call('tls-rpt', { domain }),
  call('ct-logs', { domain }),
]);

const report = {
  domain,
  checkedAt: new Date().toISOString(),
  dnssec: dnssec.status,
  mtaStsMode: mtaSts.data?.policy?.mode || 'missing',
  tlsRpt: tlsRpt.status,
  recentCerts: (ct.data?.certificates || []).slice(0, 5).map((c) => ({
    issuer: c.issuer, notAfter: c.notAfter,
  })),
  livePqcCheckUrl: `https://middle.network/ssl-tls/pqc-readiness/?q=${encodeURIComponent(domain)}`,
};

console.log(JSON.stringify(report, null, 2));
if (dnssec.status === 'fail' || report.mtaStsMode === 'none') {
  console.error('PQC foundation gate failed: fix DNSSEC or MTA-STS before promoting.');
  process.exit(1);
}
# Quick passive check of MTA-STS and DNSSEC before a TLS cutover
curl -sS -X POST "https://api.middle.network/v1/tools/mta-sts" \
  -H "Authorization: Bearer $MN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"domain":"example.com"}}' | jq '{status, mode: .data.policy.mode, plain: .summary.plain}'
Tip: Store each release’s downloaded CycloneDX 1.6 CBOM JSON alongside your SBOM build artefacts so security auditors can trace your exact hybrid ML-KEM rollout date.

Verify both the CDN edge and the origin hop

A common trap during post-quantum rollouts is seeing X25519MLKEM768 pass externally because a managed CDN terminates public TLS, while the backhaul connection from CDN edge to your origin load balancer still negotiates classical ECDHE or TLS 1.2.

Our PQC Readiness Checker detects major managed CDNs automatically and prints provider-specific origin verification steps right inside the result panel. Track edge and origin upgrades separately in your CBOM inventory so neither leg is left exposed.

Why teams pair middle.network with PQC release pipelines

Standard SSL checkers only test classical TLS 1.3 and miss ~1.5 KB ClientHello middlebox drops, IPv6/QUIC listener mismatches and obsolete Kyber drafts. middle.network crafts wire-level RFC 10024 ML-KEM handshakes directly, generates CycloneDX 1.6 CBOM JSON in one click, and exposes passive DNS/CT crypto-agility checks over one consistent REST API.

Real RFC 10024 wire probes

Tests X25519MLKEM768 (0x11ec), SecP256r1MLKEM768, SecP384r1MLKEM1024 and obsolete draft 0x6399 independently of host TLS defaults.

One-click CycloneDX 1.6 CBOM

Export structured external cryptographic assets and compliance framework mappings ready to archive beside every release SBOM.

Edge-vs-origin & dual-stack clarity

Detects managed CDNs with tailored origin checklists and checks IPv4, IPv6, HTTP/3 QUIC and MX STARTTLS for asymmetric downgrades.

Questions people ask

What is a CycloneDX 1.6 CBOM and why do auditors ask for it?
A Cryptographic Bill of Materials (CBOM) extends OWASP CycloneDX 1.6 to inventory live cryptographic protocols, key-exchange groups (such as X25519MLKEM768), certificate algorithms and downgrade postures in machine-readable JSON for NIST IR 8547, ASD/ACSC and EU DORA evidence.
Does our CI/CD pipeline need to scan internal source code to build an external CBOM?
No. External CBOM snapshots capture what the public internet actually negotiates with your HTTPS, HTTP/3 and MX endpoints, complementing internal code and package scanners that cannot see CDN or load-balancer TLS settings.
Can we also audit SSH Port 22 post-quantum key exchange in CI/CD?
Passive SSH KEXINIT verification (checking mlkem768x25519-sha256 and sntrup761x25519-sha512@openssh.com) is reserved for Enterprise customers with verified domain ownership to avoid triggering intrusion-detection alerts on third-party hosts.
How should we handle middleboxes that drop ~1.5 KB hybrid ClientHello packets?
Run the PQC Readiness Checker after any firewall, WAF or DDoS appliance update. It compares a ~1.5 KB hybrid ML-KEM ClientHello against a classical X25519 baseline and immediately flags packet drops or TCP resets so you can fix MTU or deep-packet-inspection rules before rolling out widely.

Sources and further reading

Written by the middle.network engineering team (Middle Enterprises Pty Ltd, ABN 88 633 909 412), who build and operate these tools. Last reviewed 2026-12-03.