Stop trusting compromised eMudhra roots in CI images #218
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
eliottness
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 fromalpine:3.19toalpine:3.24.3. Installsp11-kit-trust, points thelibnssckbi.soNSS modules at the p11-kit trust module, and removes the NSS test copylibnssckbi-testlib.so.ci/alpine-temurin21/Dockerfileandci/alpine-temurin25/Dockerfile: base moved fromalpine:3.19toalpine:3.24.3, with the same p11-kit change. After copying the JDK, anycacertsentry whose subject is either compromised root is deleted, and the build fails if one is still there. The currenteclipse-temurin:21-jdk-alpine/:25-jdk-alpinetags (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 onalpine:3.11, on purpose: the musl native binaries built here must run on old musl. It gets no fixedca-certificatespackage, so both compromised roots are removed in place: disabled in/etc/ca-certificates.conf, their.crtfiles deleted,update-ca-certificatesrun, and/etc/ssl/cert.pemlinked to the bundle.openjdk8pulls innss, whose builtin roots still include both, so after installing it thelibnssckbi.somodules are pointed atp11-kit-trustandlibnssckbi-testlib.sois 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.3was 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 (nssviaopenjdk8) 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.19andalpine: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 inactions.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 inactions.yml:530keeps 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, soactions.yml:259keeps 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 supportedmanylinux_2_34_x86_64@sha256:c8f6ffd1ef26still hits OS/certifi stores, soactions.yml:251keeps this glibc x86_64 baseline.Additional Notes
alpine-stock8"patched in place (no clean version to move to)". The diff moves it toalpine:3.24.3like the other two Alpine JDK images, so this description follows the diff.docker build -t <image> ci/<image>(actions.yml:606), and theNative_binaries_Stage_linuxmusl jobs rundocker build ci/alpine(actions.yml:282).Jira: APPSEC-71286 (parent APPSEC-71273)