Spotfire Copilot: Mitigating the eMudhra Intermediate CA Compromise in Copilot Container Images

book

Article ID: KB0138830

calendar_today

Updated On:

Products Versions
Spotfire 14.0.0 and higher

Description

An attacker with the compromised eMudhra intermediate CA private keys can issue certificates that impersonate any website or service. 

Exploitation requires the attacker to intercept or redirect HTTPS traffic from your Copilot services (for example, via a compromised network path or DNS manipulation). Because these connections carry service credentials and customer data, apply the mitigation as soon as possible. Operating systems and browsers already distrust these certificates, but Spotfire Copilot containers do not use the host certificate store. Each container ships with its own trusted CA list, which still trusts the compromised certificates.

Affected components: The Python "certifi" package earlier than 2026.10.18. 10. 18 (we recommend 2026.10.19. 10. 19 or later, which also restores unrelated emSign roots that 2026.10.18. 10. 18 removed), the same CA list in the container's OS certificate package, and the Python "grpcio" package. The mitigation in the Resolution section addresses all three for clients using the standard certificate settings and is not expected to change any Copilot functionality. Validate it in a test environment before rolling it out to production.

Affected images (all versions - apply the mitigation to every image you run; tags shown are examples):

  • Orchestrator: copilotoci. azurecr. io/spotfirecopilot/llm- orchestrator: 2. 3. 7 (in Docker Compose and Helm deployments, the Admin Console also runs from this image)
  • Admin Console (Azure Container Apps and Amazon ECS deployments): copilotoci. azurecr. io/spotfirecopilot/admin- console: 2. 3. 7
  • Agent registry: copilotoci. azurecr. io/spotfirecopilot/agent- container: 1. 1. 1
  • Data loader - Azure PDF: copilotoci. azurecr. io/spotfirecopilot/azcog- data- loader- pdf: 2. 3. 7
  • Data loader - Azure Blob: copilotoci. azurecr. io/spotfirecopilot/azcog- data- loader- azblob: 2. 3. 7
  • Data loader - PyPDF: copilotoci. azurecr. io/spotfirecopilot/data- loader- pdf- pypdf: 2. 3. 7
  • Data loader - Unstructured: copilotoci. azurecr. io/spotfirecopilot/data- loader- pdf- unstruct: 2. 3. 7

If you also run Ecosystem Agent Server, MCP server, or your own custom containers, assess them separately using the same checks.

Environment

Product: Spotfire Copilot (all versions)

Affected components:

  • Orchestrator and Admin Console (llm-orchestrator, admin-console)
  • Agent registry (agent-container)
  • Data loader - Azure PDF (azcog-data-loader-pdf)
  • Data loader - Azure Blob (azcog-data-loader-azblob)
  • Data loader - PyPDF (data-loader-pdf-pypdf)
  • Data loader - Unstructured (data-loader-pdf-unstruct)

Affected package: Python "certifi" earlier than 2026.10.19 (also the trusted certificate list in the container OS certificate package and in Python "grpcio")

Deployment platforms: Docker / Docker Compose, Kubernetes (Helm), Amazon ECS, Azure Container Apps, Google Cloud Run

Operating system: All (the containers carry their own certificate store, independent of the host OS)

Resolution

You can protect your installation today by replacing the outdated certificate list in each affected container with an up-to-date one. There are two ways to do this:


Option A (recommended): Build a patched copy of each image. This is a one-time change that stays with the image.

Option B: Keep your current images and mount the corrected certificate list into the containers at runtime. Use this if you can't build images in your environment.


Both options are interim mitigations. We will issue rebuilt images that address the vulnerability as soon as possible. When they are released, switch your deployment to the new image tags.

Prerequisites:

  1. A machine with Docker installed. This can be any workstation or build server. It does not need to be the machine that runs Copilot.
  2. Access to a container registry you can push images to (for example, Amazon ECR, Azure Container Registry, or Google Artifact Registry), if you deploy to a cloud or Kubernetes environment.
  3. The image name and version tag of each Copilot image you currently run.
  4. A saved copy of your current deployment configuration (docker-compose.yml, Helm values, or ECS / Container Apps / Cloud Run definitions) so you can roll back if needed.
  5. A test environment in which to validate the change before production.

    Note for corporate proxy users: if you previously configured a custom certificate bundle by following the Spotfire Copilot "Corporate Proxy & SSL Certificate Configuration" guide, your deployment overrides the certificate settings in the image. You must also complete "Additional step: If you use a corporate proxy certificate" below, or your installation will remain vulnerable.


Download the Certificates


Both options use the same corrected certificate list. Create an empty working folder and run one of the following commands in it. Each command creates a file named cacert-fixed.pem. This file is the public list of trusted certificate authorities; it is not a private key.


Standard network:


macOS / Linux:

docker run --rm -v "${PWD}:/out" python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


Windows (PowerShell):

docker run --rm -v "$($PWD.Path):/out" python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


Behind an SSL-inspecting corporate proxy (replace the certificate path and proxy address with your own):


macOS / Linux:

docker run --rm -v "${PWD}:/out" -v /path/to/corporate-ca.crt:/corp-ca.crt:ro -e HTTPS_PROXY=http://<proxy-host>:<port> python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --cert /corp-ca.crt --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


Windows (PowerShell):

docker run --rm -v "$($PWD.Path):/out" -v C:\path\to\corporate-ca.crt:/corp-ca.crt:ro -e HTTPS_PROXY=http://<proxy-host>:<port> python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --cert /corp-ca.crt --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


If your proxy is transparent (no proxy address is configured), leave out the -e HTTPS_PROXY=... part. Do not disable certificate verification (for example, with --trusted-host) to make the download work.


Confirm the file was created and record its SHA-256 hash for your change record:

macOS: shasum -a 256 cacert-fixed.pem
Linux: sha256sum cacert-fixed.pem
Windows: Get-FileHash .\cacert-fixed.pem -Algorithm SHA256


OPTION A: CREATE A PATCHED IMAGE (RECOMMENDED)


Step 1: Find the certificate path for each image you run


The certificate list location differs between images and can vary between versions. Check it before you write the Dockerfile. If you copy the file to a path that does not exist, Docker creates it silently, and the image remains unpatched.

docker login copilotoci.azurecr.io
docker pull <image>:<your-version>
docker run --rm --entrypoint python <image>:<your-version> -c "import certifi; print(certifi.__version__); print(certifi.where())"


The second line of output is the certificate path to use in Step 2. For version 2.3.7, the expected paths are:

  • Orchestrator, Admin Console, Data loader - Azure PDF, Data loader - Azure Blob, Data loader - PyPDF: /app/venv/lib/python3.12/site-packages/certifi/cacert.pem
  • Agent registry: /app/.venv/lib/python3.12/site-packages/certifi/cacert.pem
  • Data loader - Unstructured: uses a different Python installation. Always use the path printed by the command above.

If the output differs from the path listed, use the path from the output.

Step 2: Create a Dockerfile for each image you run


For each image, create a folder containing a copy of cacert-fixed.pem and a file named Dockerfile. Every image uses the same template. Change only the FROM line and the path in the first COPY line (the path from Step 1).


Template:

FROM <image>:<your-version>
COPY cacert-fixed.pem <certificate-path-from-step-1>
COPY cacert-fixed.pem /etc/ssl/cacert-fixed.pem
ENV SSL_CERT_FILE=/etc/ssl/cacert-fixed.pem \
   SSL_CERT_DIR=/etc/ssl/cacert-fixed.d \
   REQUESTS_CA_BUNDLE=/etc/ssl/cacert-fixed.pem \
   GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/cacert-fixed.pem


Example - Orchestrator:

FROM copilotoci.azurecr.io/spotfirecopilot/llm-orchestrator:<your-version>
COPY cacert-fixed.pem /app/venv/lib/python3.12/site-packages/certifi/cacert.pem
COPY cacert-fixed.pem /etc/ssl/cacert-fixed.pem
ENV SSL_CERT_FILE=/etc/ssl/cacert-fixed.pem \
   SSL_CERT_DIR=/etc/ssl/cacert-fixed.d \
   REQUESTS_CA_BUNDLE=/etc/ssl/cacert-fixed.pem \
   GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/cacert-fixed.pem


Example - Agent registry (replace <your-agent-image> with the image you run, for example copilotoci.azurecr.io/spotfirecopilot/agent-container:<your-version>, or your own build such as agent_container-prod:latest):

FROM <your-agent-image>
COPY cacert-fixed.pem /app/.venv/lib/python3.12/site-packages/certifi/cacert.pem
COPY cacert-fixed.pem /etc/ssl/cacert-fixed.pem
ENV SSL_CERT_FILE=/etc/ssl/cacert-fixed.pem \
   SSL_CERT_DIR=/etc/ssl/cacert-fixed.d \
   REQUESTS_CA_BUNDLE=/etc/ssl/cacert-fixed.pem \
   GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/cacert-fixed.pem


Note: SSL_CERT_DIR deliberately points to a folder that does not exist. This stops the container from also loading its built-in certificate folder, which still contains the compromised certificates. Do not change it.


Note: If your Copilot services connect to internal services that use a private certificate authority, append that authority's certificate to cacert-fixed.pem before you build, so both copies in the image contain it.


Step 3: Build


In the folder containing your Dockerfile, run the following. The -cafix suffix makes it easy to tell the patched image apart from the original.

docker build --pull --platform linux/amd64 -t <your-registry>/<image-name>:<your-version>-cafix .


Step 4: Verify


Run these checks against each patched image.


1. Confirm the certificate list was replaced, and the settings are in place. The command must print "certificate list replaced":

docker run --rm --entrypoint python <your-registry>/<image-name>:<your-version>-cafix -c "import os,certifi,filecmp; p='/etc/ssl/cacert-fixed.pem'; assert filecmp.cmp(certifi.where(), p, shallow=False); assert os.environ['SSL_CERT_FILE']==p and os.environ['REQUESTS_CA_BUNDLE']==p and os.environ['GRPC_DEFAULT_SSL_ROOTS_FILE_PATH']==p; print('certificate list replaced')"


If it fails, the path in your Dockerfile is wrong. Check it with Step 1 and rebuild.


2. Confirm the compromised certificates are rejected. Run the command below once for each of the four test addresses. Each run must fail with CERTIFICATE_VERIFY_FAILED:

docker run --rm --entrypoint python <your-registry>/<image-name>:<your-version>-cafix -c "import urllib.request; urllib.request.urlopen('https://dv-g3b-emudhra.we-have-a-problem.com/', timeout=15)"

 

Test addresses:
* https://dv-g3b-emudhra.we-have-a-problem.com/
* https://dv-g3b-aaa-emudhra.we-have-a-problem.com/
* https://dv-g3b-noct-emudhra.we-have-a-problem.com/
* https://dv-g3b-aaa-noct-emudhra.we-have-a-problem.com/


If a command completes without error, the image isn't patched. Any other error, such as a timeout or a name-resolution failure, means the test could not run; try again from a network that allows direct HTTPS. Skip this test behind an SSL-inspecting proxy, because the proxy answers on the site's behalf.


3. Confirm that legitimate sites still work. This command must complete without error:

docker run --rm --entrypoint python <your-registry>/<image-name>:<your-version>-cafix -c "import urllib.request; urllib.request.urlopen('https://pypi.org/', timeout=15); print('trusted site OK')"


Step 5: Push


If you deploy to a cloud or Kubernetes environment, push the patched image to your registry:

docker push <your-registry>/<image-name>:<your-version>-cafix


Step 6: Deploy the patched image


Docker Compose - in your docker-compose.yml, change the image: line of every service that uses an affected image to the patched image. This usually includes both the orchestrator and admin-console-service services, plus any data loader or agent registry services. Keep all other settings unchanged. Then apply the change and confirm the running images:

services:
 orchestrator:
   image: <your-registry>/llm-orchestrator:<your-version>-cafix
 admin-console-service:
   image: <your-registry>/llm-orchestrator:<your-version>-cafix
docker compose up -d
docker compose ps


Helm (Kubernetes) - the Spotfire Copilot orchestrator-stack chart sets the orchestrator and Admin Console image in one place, global.orchestratorImage. First confirm your chart version and current values:

helm list -n <namespace>
helm get values <release> -n <namespace> -a


Then upgrade the release with the patched image:

helm upgrade <release> oci://copilotoci.azurecr.io/spotfirecopilot/orchestrator-stack --version <installed-chart-version> -n <namespace> --reuse-values \
 --set global.orchestratorImage.repository=<your-registry>/llm-orchestrator \
 --set global.orchestratorImage.tag=<your-version>-cafix


If you use a different chart, or deploy the data loaders or agent registry separately, run "helm show values <chart>" and update the image settings for each component. Confirm that the running pods use the patched image, because a successful Helm upgrade alone does not prove it:

kubectl get pods -n <namespace> -o jsonpath="{range .items[*]}{.metadata.name}{'\t'}{.spec.containers[*].image}{'\n'}{end}"

Other platforms (Amazon ECS, Azure Container Apps, Google Cloud Run) - update each affected service's container image (including the Admin Console) to the patched image tag using your usual deployment process, then redeploy and confirm the new revision is running.

 

Step 7: Check the application


After deployment, check the container logs and health checks, and confirm that Copilot still works end to end: chat answers (LLM provider), knowledge-base questions (embeddings and vector database), document loading, and any agents you use.


OPTION B: MITIGATION WITHOUT REBUILDING IMAGES


If you cannot build images, you can mount the corrected certificate list into your existing containers at runtime. The result is the same as Option A, but you must keep the setting in your deployment configuration until you move to a rebuilt image.


Step 1: Use the cacert-fixed.pem file you downloaded in "Download the Certificates". Make sure it exists and is not empty; if the file is missing, Docker mounts an empty folder in its place.


Step 2: Mount the file into each affected container at two locations and set the environment variables. Use the certificate path for your image from Option A, Step 1.


Docker Compose example for the orchestrator (add these settings to the existing service; do not replace its other settings):

services:
 orchestrator:
   volumes:
     - ./cacert-fixed.pem:/app/venv/lib/python3.12/site-packages/certifi/cacert.pem:ro
     - ./cacert-fixed.pem:/etc/ssl/cacert-fixed.pem:ro
   environment:
     SSL_CERT_FILE: /etc/ssl/cacert-fixed.pem
     SSL_CERT_DIR: /etc/ssl/cacert-fixed.d
     REQUESTS_CA_BUNDLE: /etc/ssl/cacert-fixed.pem
     GRPC_DEFAULT_SSL_ROOTS_FILE_PATH: /etc/ssl/cacert-fixed.pem


Apply the same settings to admin-console-service and every other affected service, adjusting the certificate path for each image.


Helm (Kubernetes) - first create a ConfigMap from the file:

kubectl create configmap ca-fix --from-file=cacert.pem=cacert-fixed.pem -n <namespace> --dry-run=client -o yaml | kubectl apply -f -


Then, if your chart supports additional volumes and environment variables, add them to your values file and run helm upgrade. The setting names vary by chart, so check them with "helm show values <chart>" before you start. The following is an example only:

extraVolumes:
 - name: ca-fix
   configMap:
     name: ca-fix
extraVolumeMounts:
 - name: ca-fix
   mountPath: /app/venv/lib/python3.12/site-packages/certifi/cacert.pem
   subPath: cacert.pem
   readOnly: true
 - name: ca-fix
   mountPath: /etc/ssl/cacert-fixed.pem
   subPath: cacert.pem
   readOnly: true
extraEnv:
 - name: SSL_CERT_FILE
   value: /etc/ssl/cacert-fixed.pem
 - name: SSL_CERT_DIR
   value: /etc/ssl/cacert-fixed.d
 - name: REQUESTS_CA_BUNDLE
   value: /etc/ssl/cacert-fixed.pem
 - name: GRPC_DEFAULT_SSL_ROOTS_FILE_PATH
   value: /etc/ssl/cacert-fixed.pem


If your chart does not support additional volumes, use Option A instead. Changes made directly to a running Kubernetes deployment are overwritten by the next helm upgrade. Files mounted from a ConfigMap with subPath are not refreshed in running pods; if you change the ConfigMap later, restart the affected pods (kubectl rollout restart).


Step 3: Apply the change and run the checks. For Docker Compose, run "docker compose up -d" (a plain restart does not apply new volumes or environment variables). Then run the checks from Option A, Step 4 against each running service, replacing "docker run --rm --entrypoint python <image>" with "docker compose exec <service-name> python". For example:

docker compose exec orchestrator python -c "import certifi,filecmp; assert filecmp.cmp(certifi.where(), '/etc/ssl/cacert-fixed.pem', shallow=False); print('certificate list replaced')"


For Kubernetes, use "kubectl exec -n <namespace> deploy/<deployment-name> -- python -c ..." with the same commands. Finally, check the application as described in Option A, Step 7.


Additional step: If you use a corporate proxy certificate


If your network uses an SSL-inspecting proxy (for example, Zscaler, Netskope, or Palo Alto) and you followed the "Corporate Proxy & SSL Certificate Configuration" guide, two things need attention.


1. Check your proxy first (most important)


Your proxy, not the Copilot containers, checks the certificates of external services. If the proxy still trusts the compromised eMudhra certificates, your installation stays exposed, no matter what you change in Copilot. Ask your IT team or proxy vendor to confirm the proxy has been updated to distrust them, including the Sectigo cross-signed eMudhra chains. Make sure the eMudhra authorities have been removed from (or distrusted in) your proxy's list of trusted root certificates. Blocking individual certificates by fingerprint is not a reliable fix, because a certificate can be re-encoded so that its fingerprint changes.


To check, open each of the four test addresses listed in Option A, Step 4 in a browser on your corporate network. The proxy should block every page, usually with a certificate or security warning page. If any page loads normally, your proxy has not been updated yet. This browser test checks only the proxy. It does not prove the containers are protected.


2. Recreate your combined certificate file


Your deployment mounts a combined certificate file (combined-ca.crt). That file was built from the original certificate list, which still trusts the compromised certificates. It also overrides the certificates in a patched image. Traffic that bypasses the proxy (for example, destinations in NO_PROXY or on your proxy's inspection bypass list) relies on this file, so recreate it.


Step 1: Download the corrected certificate list. Run this in the folder that contains combined-ca.crt. It uses your corporate certificate so the download works through the proxy:


macOS / Linux:

docker run --rm -v "${PWD}:/out" -v /path/to/corporate-ca.crt:/corp-ca.crt:ro -e HTTPS_PROXY=http://<proxy-host>:<port> python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --cert /corp-ca.crt --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


Windows (PowerShell):

docker run --rm -v "$($PWD.Path):/out" -v C:\path\to\corporate-ca.crt:/corp-ca.crt:ro -e HTTPS_PROXY=http://<proxy-host>:<port> python:3.12.16-slim sh -ec 'python -m pip install -q --no-cache-dir --cert /corp-ca.crt --target /tmp/ca "certifi==2026.10.19" && cp /tmp/ca/certifi/cacert.pem /out/cacert-fixed.pem'


If your proxy is transparent (no proxy address is configured), leave out the -e HTTPS_PROXY=... part.


Step 2: Build the new combined file from the corrected list and your corporate certificate. Include only approved corporate or private CA certificates:


macOS / Linux:

cat cacert-fixed.pem /path/to/corporate-ca.crt > combined-ca.crt


Windows (PowerShell):

$public = Get-Content .\cacert-fixed.pem -Raw
$corporate = Get-Content C:\path\to\corporate-ca.crt -Raw
[System.IO.File]::WriteAllText((Join-Path (Get-Location) 'combined-ca.crt'), $public.TrimEnd() + "`n" + $corporate.Trim() + "`n", [System.Text.Encoding]::ASCII)


Note: Use the PowerShell commands above rather than Set-Content, which can save the file in an encoding that the containers cannot read.


Step 3: Add SSL_CERT_DIR to each service that uses the combined file, next to the variables you already set:

environment:
 SSL_CERT_FILE: /app/certs/ca-bundle.crt
 SSL_CERT_DIR: /app/certs/none
 REQUESTS_CA_BUNDLE: /app/certs/ca-bundle.crt
 GRPC_DEFAULT_SSL_ROOTS_FILE_PATH: /app/certs/ca-bundle.crt


SSL_CERT_DIR must point to a folder that does not exist. This stops the container from also loading its built-in certificate folder, which still contains the compromised certificates.


Keep the corrected certificate list from Option A or Option B in place as well. Some components read the certifi certificate list directly and ignore these settings.


Step 4: Apply the change (docker compose up -d, or restart the pods), then confirm the container is using the new file. The two values below must match:

Host (macOS):            shasum -a 256 combined-ca.crt
Host (Linux):            sha256sum combined-ca.crt
Host (Windows):          Get-FileHash combined-ca.crt
Container:               docker compose exec orchestrator sha256sum /app/certs/ca-bundle.crt


Note: Testing the eMudhra test sites from inside the container does not work behind an SSL-inspecting proxy. The proxy answers on the site's behalf, so the result reflects the proxy, not the container.


AFTER REBUILT IMAGES ARE RELEASED

When Spotfire publishes rebuilt images, switch your deployment to the new image tags and run the checks from Option A, Step 4 and Step 7 against them. Then:

  1. Option A: you can delete the -cafix images.
  2. Option B: remove the extra volume mounts and environment variables you added so they don't override the certificate list in future images.
  3. Corporate proxy users: your new combined-ca.crt can stay in place. If you rebuild it later, use Steps 1 and 2 of "Additional step" above rather than copying the certificate list from an image.

Record the new image tags for your change record. Until you switch to the rebuilt images, vulnerability scanners may still report the old "certifi" version, because this mitigation replaces the certificate list, not the package.

Rollback: If the change breaks a connection to an internal service, restore your saved deployment configuration and check whether that service needs a private certificate authority added to cacert-fixed.pem (see the note in Option A, Step 2). Rolling back to an unpatched image restores the exposure, so treat it as temporary.

Issue/Introduction

Spotfire Copilot container images (all versions) are affected by the eMudhra Intermediate CA Compromise (Security Advisory, 22nd October 2026). The trusted certificate list bundled inside the containers still trusts the compromised eMudhra certificates.

Additional Information

  1. eMudhra intermediate CA compromise disclosure: https://emudhra.we-have-a-problem.com/
  2. Python Software Foundation advisory - "Information for Python users regarding eMudhra / emSign CA certificate security incident": https://discuss.python.org/t/information-for-python-users-regarding-emudhra-emsign-ca-certificate-security-incident/109576
  3. certifi security advisory GHSA-6q48-6c7w-9gw2: https://github.com/certifi/python-certifi/security/advisories/GHSA-6q48-6c7w-9gw2
  4. certifi 2026.10.19 on PyPI: https://pypi.org/project/certifi/
  5. Python 3.12.16 security release: https://www.python.org/downloads/release/python-31216/
  6. Spotfire Copilot documentation: https://github.com/spotfiresoftware/spotfire-copilot-docs