← Back to Pull requests

Stop trusting compromised eMudhra roots in CI images #218

Closed
unknown closed this pull request without merging on Oct 27, 2026 10:28 UTC
View on GitHub
unknown unknown commented on Oct 23, 2026 17:55 UTC
Author

What does this PR do?

Stops CI, test and build images from trusting two compromised roots: emSign ECC Root CA - G3 and AAA Certificate Services (incident IR-62343). The APPSEC-71273 ledger lists 6 impacted image references for this repository. Images that CI never builds or pulls are left alone.

Changed Dockerfiles:

  • ci/alpine-stock8/Dockerfile: base moved from alpine:3.19 to alpine:3.24.3. Installs p11-kit-trust, points the libnssckbi.so NSS modules at the p11-kit trust module, and removes the NSS test copy libnssckbi-testlib.so.

  • ci/alpine-temurin21/Dockerfile and ci/alpine-temurin25/Dockerfile: base moved from alpine:3.19 to alpine:3.24.3, with the same p11-kit change. After copying the JDK, any cacerts entry whose subject is either compromised root is deleted, and the build fails if one is still there. The current eclipse-temurin:21-jdk-alpine / :25-jdk-alpine tags (jdk-21.0.12.1+1, jdk-25.0.4.1+1) still ship emSign ECC G3; Temurin 21.0.13+9 and 25.0.5+8 ship neither root, so the step becomes a no-op guard once the tags move.

  • ci/alpine/Dockerfile: stays on alpine:3.11, on purpose: the musl native binaries built here must run on old musl. It gets no fixed ca-certificates package, so both compromised roots are removed in place: disabled in /etc/ca-certificates.conf, their .crt files deleted, update-ca-certificates run, and /etc/ssl/cert.pem linked to the bundle. openjdk8 pulls in nss, whose builtin roots still include both, so after installing it the libnssckbi.so modules are pointed at p11-kit-trust and libnssckbi-testlib.so is removed.
  • Motivation

    IR-62343 / Jira APPSEC-71286 (parent APPSEC-71273). These are the roots behind the compromised eMudhra intermediates, so every CI image that trusts them keeps the exposure.

    Description of the Change

    The new image reference alpine:3.24.3 was pulled and scanned with the eMudhra scanner, which checks every file in the image for the roots' public keys; it returns no hits. Packages installed on top (nss via openjdk8) bring their own NSS builtin roots, which the p11-kit redirect and testlib removal handle. The changed Dockerfiles were not built locally; PR CI builds them (see Additional Notes).

    Of the 6 impacted references: 2 are fixed here (alpine:3.19 and alpine:3.11), 0 are fixed at their in-repo image source (clean once the image job republishes), and 4 are follow-ups below.

    Follow-ups (not in this PR):

  • centos:7: NSS 3.131.1 is unavailable for EOL CentOS 7, and the blocklist attempt still scanned positive in NSS and OS/Java stores, so the edit was restored at the stock8 target in actions.yml:520.

  • centos:6: NSS 3.131.1 is unavailable for EOL CentOS 6, the base scan hits AAA, and the full build fails with curl exit 139 under amd64 emulation on arm64 hosts, so the stock8 target in actions.yml:530 keeps its current base.

  • quay.io/pypa/manylinux2014_aarch64@sha256:d4cb8ad04184: no clean tag exists in this line, since the 2024-02-04 image and the newest 2026.10.22-0 both hit NSS, system bundles and vendored certifi, so actions.yml:259 keeps this glibc aarch64 baseline.

  • quay.io/pypa/manylinux2010_x86_64@sha256:3b5eb5ab9bc7: the 2022-08-05 tag still resolves to the impacted digest and the supported manylinux_2_34_x86_64@sha256:c8f6ffd1ef26 still hits OS/certifi stores, so actions.yml:251 keeps this glibc x86_64 baseline.
  • Additional Notes

  • The earlier description called alpine-stock8 "patched in place (no clean version to move to)". The diff moves it to alpine:3.24.3 like the other two Alpine JDK images, so this description follows the diff.

  • CI builds each changed Dockerfile: the Test matrix runs docker build -t <image> ci/<image> (actions.yml:606), and the Native_binaries_Stage_linux musl jobs run docker build ci/alpine (actions.yml:282).
  • Jira: APPSEC-71286 (parent APPSEC-71273)

    Diff: 491 lines (+368 / -123) across 6 files Reviewer: eliottness Review duration: 5313m
    All Vouch review confidence checks passed
    Residual risk 0.19 = Change Risk (0.47) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.47 · 491 lines diff across 6 files
    0.47
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.371
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #218"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 47.4% (MEDIUM) · Higher = larger blast radius
    47.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 18.7% · Safe to merge
    18.7%