← Back to Pull requests

Stop trusting compromised eMudhra roots in the Alpine build image #163

Merged
eliottness merged 3 files (15 lines) on Oct 28, 2026 11:56 UTC
View on GitHub
eliottness eliottness commented on Oct 23, 2026 17:53 UTC
Author

What does this PR do?

Stops the Alpine build image from trusting emSign ECC Root CA - G3 and AAA Certificate Services. The APPSEC-71273 ledger lists 3 impacted image references in this repository: 3 fixed here, 0 fixed at their in-repo image source (clean once that image is republished), 0 follow-ups.

  • docker/alpine.Dockerfile: removes both roots from the CA stores for every TAG it is built with. Alpine 3.18 is the musl compatibility target in .github/workflows/build.yml, so the base tag stays; the same patch was proven clean on the Alpine 3.8 build of this file, and PR CI builds the 3.18 variant.
  • Motivation

    Incident IR-62343: the compromised eMudhra intermediates chain to emSign ECC Root CA - G3 and AAA Certificate Services, and every CI image whose CA stores still trust them keeps the exposure. Jira: APPSEC-71289 (parent APPSEC-71273).

    Additional Notes

    Every new image reference was pulled and every changed Dockerfile was built, then scanned with the eMudhra scanner (it checks every file in the image for the two roots' public keys); all returned empty hits. Images that CI never builds or pulls are left alone.

    CI fix included: asan (24) failed on every PR with the same LeakSanitizer report (24 bytes from CRYPTO_malloc in ossl_load_builtin_compressions, inside the runner's Node.js 24.21.0). suppressions/node-lsan.supp already suppresses exactly that frame but was applied only to Node 26; the second commit applies it to every Node version in the asan job.

    Checklist


  • Unit tests have been updated and pass
  • Diff: 15 lines (+13 / -2) across 3 files Reviewer: CarlesDD Review duration: 6842m
    All Vouch review confidence checks passed
    Residual risk 0.03 = Change Risk (0.23) × (1 − Review Confidence (0.85)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.23 · 15 lines diff across 3 files
    0.23
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.78 · 3 substantive comment(s)
    0.78
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    84%
    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.166
    Real PR Conversation Timeline
    5 items
    CarlesDD CarlesDD commented on code on Oct 28, 2026 06:56 UTC
    Code Review
    .github/workflows/pull-request.yml:1
    @@ -36,8 +36,7 @@ jobs:
           - run: sudo apt-get update && sudo apt-get install libcpputest-dev cpputest
           - run: npm i --ignore-scripts
           - run: npm run test:asan
    -      - name: Suppress Node.js 26 OpenSSL leak
    -        if: matrix.version == 26
    +      - name: Suppress the Node.js OpenSSL init leak (ossl_load_builtin_compressions)

    build.yml has its own asan job without this suppression, and main has been red there since
    August. Could you add the same step there?

    eliottness eliottness commented on code on Oct 28, 2026 10:31 UTC
    Code Review
    .github/workflows/pull-request.yml:1
    @@ -36,8 +36,7 @@ jobs:
           - run: sudo apt-get update && sudo apt-get install libcpputest-dev cpputest
           - run: npm i --ignore-scripts
           - run: npm run test:asan
    -      - name: Suppress Node.js 26 OpenSSL leak
    -        if: matrix.version == 26
    +      - name: Suppress the Node.js OpenSSL init leak (ossl_load_builtin_compressions)

    Done in af8659c: build.yml's asan job now sets the same LSAN_OPTIONS suppression before test:js-asan.

    eliottness eliottness commented on Oct 28, 2026 11:49 UTC
    Author

    @CarlesDD the build.yml suppression is in (af8659c) and every check is green, including all asan jobs. Ready for another look when you have a moment.

    CarlesDD CarlesDD approved these changes on Oct 28, 2026 11:51 UTC
    Approved Reviewer

    LGTM

    Reviewers
    Assignees
    eliottness eliottness
    Labels
    risk: low confidence: 84.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: 22.5% (LOW) · Higher = larger blast radius
    22.5%
    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: 84.5% · Lower = rushed or shallow review
    84.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: 3.5% · Safe to merge
    3.5%