← Back to Pull requests

ci: stop trusting compromised eMudhra roots in CI images #21265

Closed
unknown closed this pull request without merging on Nov 02, 2026 14:53 UTC
View on GitHub
unknown unknown commented on Oct 26, 2026 15:05 UTC
Author

Description

Stops this repository's CI and test images from trusting emSign ECC Root CA - G3 and AAA Certificate Services. The APPSEC-71273 ledger lists 72 impacted image references in this repository: 3 fixed here, 3 fixed at their in-repo image source (clean once that image is republished), 66 follow-ups.

  • docker-compose.base.yml: rabbitmq:4.3.4-alpine -> rabbitmq:4.3.7-alpine (same 4.3 line).

  • lib-injection/docker-compose.yml: python:3.14.7 -> python:3.14.9 (same 3.14 line).

  • docker/Dockerfile (testrunner image): CA store patched in place. It takes effect when the Testrunner build-and-publish workflow republishes the image after merge; docker-compose.base.yml should then be re-pinned to the new testrunner digest.

  • .gitlab/fuzz.yml and docker/Dockerfile.fuzz: FUZZ_BASE_IMAGE moves to the newest published fuzz_base (v146235341-f921d57), which still trusts the roots, so Dockerfile.fuzz gets a CA stage that removes them; the fuzz jobs build it on GitLab.
  • 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-71279 (parent APPSEC-71273).

    Testing

    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. This PR comes from a branch in the repo (it replaces fork PR #21229), so the GitLab pipeline (fuzz build, lib-injection, test services, wheel builds) and download-s3-wheels run on it.

    Risks

    Low. The two test services move only within their patch lines (rabbitmq 4.3.4 -> 4.3.7, python 3.14.7 -> 3.14.9). The testrunner and fuzz images only change their CA stores.

    Additional Notes

    Follow-ups (not in this PR):

  • Needs a rebuild at its source (Datadog-built or mirrored image) (40): registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu:6845f3c7, registry.ddbuild.io/images/mirror/amazon/aws-cli:2.4.29, registry.ddbuild.io/dd-trace-py:v106957811-b912d74-lib_injection, registry.ddbuild.io/images/benchmarking-platform-tools-ubuntu:16a75e4d, registry.ddbuild.io/dd-trace-py:v103334885-be1888c-profiling_native, registry.ddbuild.io/images/mirror/python:3.14.0, datadog/agent:latest, ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:v1.68.0, registry.ddbuild.io/ci/serverless-tools:1, registry.ddbuild.io/images/mirror/datadog/agent:7.40.1, registry.ddbuild.io/dd-trace-py:v130207166-153cbe2-ci-utils, registry.ddbuild.io/images/code-scanning:v76675231-865a08a-default, registry.ddbuild.io/images/mirror/dd-apm-test-agent/ddapm-test-agent:v1.68.0, registry.ddbuild.io/images/mirror/mongo:6.0.5, registry.ddbuild.io/images/mirror/valkey:8.0-alpine, registry.ddbuild.io/images/mirror/apache/kafka:3.8.0, registry.ddbuild.io/images/mirror/mccutchen/go-httpbin:v2.14.1, registry.ddbuild.io/images/mirror/library/memcached:1.5-alpine, registry.ddbuild.io/images/mirror/grokzen/redis-cluster:6.2.0, registry.ddbuild.io/images/mirror/library/elasticsearch:7.17.23, registry.ddbuild.io/images/mirror/opensearchproject/opensearch:1.3.13, registry.ddbuild.io/images/mirror/rabbitmq:3.12.7-management-alpine, registry.ddbuild.io/images/mirror/mysql:5.7, registry.ddbuild.io/images/mirror/localstack:1.4.0, registry.ddbuild.io/images/mirror/mariadb:lts, registry.ddbuild.io/images/mirror/consul:1.6.0, registry.ddbuild.io/images/mirror/moto:5.1.0, registry.ddbuild.io/images/mirror/cosmosdb/linux/azure-cosmos-emulator:vnext-preview, registry.ddbuild.io/dd-trace-py:v128241639-e35a704-eventhubs-emulator, registry.ddbuild.io/images/mirror/azure-messaging/servicebus-emulator:1.1.2, registry.ddbuild.io/images/mirror/azure-sql-edge:1.0.7, registry.ddbuild.io/images/mirror/google/cloud-sdk:557.0.0-emulators, registry.ddbuild.io/images/mirror/azure-storage/azurite:3.34.0, registry.ddbuild.io/images/mirror/selenium/standalone-chrome:4.46.0, registry.ddbuild.io/images/mirror/postgres:16-alpine, registry.ddbuild.io/dd-trace-py:v126532003-233089d-alpine_build, registry.ddbuild.io/images/mirror/python:3.10.13, registry.ddbuild.io/images/mirror/python:3.11.6, registry.ddbuild.io/images/mirror/python:3.12.0, registry.ddbuild.io/images/mirror/python:3.13.0.

  • No clean upstream version yet (20): elasticsearch:9.5.1, opensearchproject/opensearch:3.8.0, cassandra:5.0.9, mariadb:lts, mysql:26.7.0, apache/kafka:4.3.1, grokzen/redis-cluster:7.2.5, mongo:8.2.12, motoserver/moto:5.2.2, mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview, mcr.microsoft.com/azure-messaging/eventhubs-emulator:2.2.1, mcr.microsoft.com/azure-messaging/servicebus-emulator:2.0.1, mcr.microsoft.com/azure-storage/azurite:3.36.0, selenium/standalone-chrome:151.0.7922.108, localstack/localstack:4.14.0, valkey/valkey:9.1-alpine, google/cloud-sdk:580.0.0-emulators, selenium/standalone-chrome:latest, registry.ddbuild.io/images/mirror/pypa/manylinux2014_x86_64:2025-04-12-5990e2d, registry.ddbuild.io/dd-trace-py:v133965501-8f84bce-manylinux2014_aarch64.

  • EOL test target kept on purpose (moving the tag would change the tested version) (4): consul:1.15.4, mcr.microsoft.com/azure-sql-edge:2.0.0, kennethreitz/httpbin, registry.ddbuild.io/images/mirror/postgres:12-alpine.

  • Unscannable from outside the registry (pull access denied) (1): 486234852809.dkr.ecr.us-east-1.amazonaws.com/ci/benchmarking-platform:dd-trace-py-macrobenchmarks.

  • Not used by any CI job, left untouched: 1 reference(s).
  • Diff: 650 lines (+487 / -163) across 8 files Reviewer: eliottness Review duration: 10068m
    All Vouch review confidence checks passed
    Residual risk 0.21 = Change Risk (0.52) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.52 · 650 lines diff across 8 files
    0.52
    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.388
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #21265"
    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: 52% (MEDIUM) · Higher = larger blast radius
    52%
    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: 20.5% · Safe to merge
    20.5%