Manual remediation for compromised eMudhra certificates in SAS® 9.4


Severity: Critical

Description: On October 20, 2026, eight Intermediate CA Certificates issued by the eMudhra Certificate Authority were publicly disclosed as compromised. These certificates were generated without sufficient randomness to protect their associated private keys. An attacker might use a forged certificate to impersonate servers and intercept traffic.

Table of Contents

 

Purpose: The Certificate Remediation Script removes only self-signed root certificates whose SHA-256 fingerprints match the known compromised list. It does not remove unrelated user-installed leaf and intermediate certificates.

Important: The script does not remove affected certificates that you added. Use SAS® Deployment Manager to remove those certificates and then add clean replacements. For instructions, see Manage Certificates in the Trusted CA Bundle Using the SAS Deployment Manager.

Before You Begin

Do the following before you begin the remediation:

Note: If you already successfully completed the manual remediation described in this article, do not repeat the manual remediation because a SAS hot fix has become available.

Choose the Remediation Method

SAS 9.4M8 and SAS 9.4M9: SAS has released hot fixes for the SAS Security Certificate Framework. SAS Private JRE hot fixes are also available for many maintenance-release and operating-system combinations.

Install Available Hot Fixes

SAS Security Certificate Framework hot fixes for SAS 9.4M8 and SAS 9.4M9 became available on November 12, 2026. See SAS KB0060909 (SAS 9.4M9) and SAS KB0060908 (SAS 9.4M8) to select the hot fix that matches the installed release and Certificate Framework build.

SAS Private JRE updates are available for most supported maintenance-release and operating-system combinations. As of November 16, 2026, additional packages for Solaris and for AIX on SAS 9.4M6 and SAS 9.4M7 are still planned for release by November 20, 2026. Until the applicable package is available, follow the steps in the SAS Private JRE Remediation section. The newer JRE packages update the JRE’s default cacerts truststore. SAS runtime certificate validation uses jssecacerts; therefore, customers must also apply the applicable Certificate Framework hot fix or complete the corresponding manual truststore remediation. 

Manual Remediation of Compromised Root Certificates from SAS truststores

Complete this part only if you cannot install the applicable SAS Certificate Framework hot fix. If you have installed the applicable Certificate Framework hot fix referenced in the SAS 9.4M8 or SAS 9.4M9 remediation article, do not complete Part 2, because the required Certificate Framework truststore remediation is included in that hot fix.

What the Script Does

The script checks and updates truststores under SASHome/SASSecurityCertificateFramework/1.1/cacerts/

SAS release

Truststore files

SAS 9.4M9

cacerts.p12, trustedcerts.p12, cacerts.pem, trustedcerts.pem

SAS 9.4M8 and earlier

cacerts.jks, trustedcerts.jks, cacerts.pem, trustedcerts.pem

Select the Package for Your Operating System

Each ZIP package contains the Groovy script and the wrapper for the selected platform. Extract both files into the same working directory.

Groovy script that is included in every package: remove_compromised_emudhra_roots.groovy

Linux/UNIX

ZIP file: remove_compromised_emudhra_roots_linux.zip

Wrapper (in the ZIP file): run_remove_compromised_emudhra_roots.sh

Windows

ZIP file: remove_compromised_emudhra_roots_windows.zip

Wrapper (in the ZIP file): run_remove_compromised_emudhra_roots.bat

z/OS Unix System Services (USS)

ZIP file: remove_compromised_emudhra_roots_zos.zip

Wrapper (in the ZIP file): run_remove_compromised_emudhra_roots_ebcdic_cp1047.rexx

Linux/UNIX Instructions

1. Ensure that the script is executable (chmod +x):

chmod +x run_remove_compromised_emudhra_roots.sh

2. Run the script in dry-run mode:

./run_remove_compromised_emudhra_roots.sh --sashome "<SASHome>" --dry-run --verbose

3. Review the MATCH and SCAN lines. They identify the certificates that match and would be removed. No changes are made in dry-run mode.

4. Run the script in apply mode:

./run_remove_compromised_emudhra_roots.sh --sashome "<SASHome>" --apply --verbose

If you are not running as root, the wrapper re-runs with sudo for apply mode.

Windows Instructions

1. Open Command Prompt or Windows PowerShell.

2. Run the wrapper in dry-run mode:

run_remove_compromised_emudhra_roots.bat --sashome "<SASHome>" --dry-run --verbose

3. Review the MATCH and SCAN lines. They identify the certificates that match and would be removed. No changes are made in dry-run mode.

4. Run the wrapper in apply mode:

run_remove_compromised_emudhra_roots.bat --sashome "<SASHome>" --apply --verbose

If the wrapper is run in apply mode without administrator privileges, the wrapper requests elevation automatically.

 

z/OS Unix System Services (USS) Instructions

1. Extract all files from the ZIP into the same USS directory. Before running the utility, select and verify the Java version using java -version. Use Java 8 with SAS 9.4M8 and Java 21 with SAS 9.4M9. 

2. Run the utility with the following: 

./run_remove_compromised_emudhra_roots_ebcdic_cp1047.rexx --sashome <SASHome> --verbose --apply

Note: The --apply option makes the certificate changes and requires root privileges. To perform a dry run without changing the certificate stores, leave off --apply:

./run_remove_compromised_emudhra_roots_ebcdic_cp1047.rexx --sashome <SASHome> --verbose

Review the Expected Output

Use the console output and generated files to confirm what the script found and changed. The script emits the following information during execution:

After the run, the following items are present:

Optional Parameters

Parameter

Use

--storepass <password>

Use when the PKCS12 truststore password is not the default.

--backup-dir <path>

Write backups to a location other than the default certificate directory.

--audit-dir <path>

Write audit artifacts to a controlled location, such as a centralized evidence share. Recommended for environments with formal retention and audit collection requirements.

--verbose

Display detailed discovery and execution diagnostics, including SASHome, the Groovy JAR path, and Java runtime selection.

--dry-run

List matching certificates without making changes.

--apply

Remove matching certificates and write the updated truststores.

 

Retain Audit Evidence

Retain artifacts according to local policy (for example, ticket/CR attachment or regulated retention window). If no removals occur, keep dry-run artifacts as proof of verification.

Minimum evidence set per execution:

Final Steps

1. Restart SAS Applications and Servers

After the manual changes to the SAS Private JRE and after running the Certificate Remediation Script, restart all SAS Applications and Servers.

2. Replace affected certificates that you previously added.
The script does not remove these certificates. Use SAS Deployment Manager to remove each affected certificate and then add a clean replacement. For instructions, see Manage Certificates in the Trusted CA Bundle Using the SAS Deployment Manager.

3. Retain the remediation records.
Keep the run output, audit artifacts, and backups according to your organization's change-control and retention requirements.

SAS Private JRE Remediation

This section is needed only if your release doesn't have a SAS Private JRE update available.

These releases deliver a SAS Private Java Runtime Environment (JRE) that is used to install SAS Software, execute Java clients, and run middle-tier applications. In addition to the default keystore, the SAS Private JRE includes trusted certificate authority (CA) certificates provided by Mozilla to authenticate TLS-certificate chains provided by servers.  

SAS 9.4M8 and SAS 9.4M9 do not deliver the compromised intermediate eMudhra certificates. However, you can use the following interim procedure to automatically block the use of the eight compromised intermediate certificates. 

1. Open the SAS Private JRE security directory: 

Note: Identify the SAS installation directory that is represented by <SASHome> in this guide. Replace the placeholder with the actual path for your installation.

Linux/UNIX: cd "<SASHome>/SASPrivateJavaRuntimeEnvironment/9.4/jre/lib/security"

Windows: cd "<SASHome>\SASPrivateJavaRuntimeEnvironment\9.4\jre\lib\security"

2. Back up the existing blocked.certs file:

Linux/UNIX: cp blocked.certs orig.blocked.certs

Windows: copy blocked.certs orig.blocked.certs

 

3. Download the replacement file for your platform:

Platform

Download

Linux x64, 64-bit-enabled AIX,
Solaris SPARC, or Solaris x64

emudhra-block-unix.certs

Windows 32-bit or Windows 64-bit

emudhra-block-windows.certs

 

4. Save the downloaded file in the SAS Private JRE security directory:

Linux/UNIX: <SASHome>/SASPrivateJavaRuntimeEnvironment/9.4/jre/lib/security

Windows: <SASHome>\SASPrivateJavaRuntimeEnvironment\9.4\jre\lib\security
 

5. Rename the downloaded file to "blocked.certs" and preserve proper file permissions:

Linux/UNIX: mv emudhra-block-unix.certs blocked.certs

              chmod 644 blocked.certs

Windows: rename emudhra-block-windows.certs blocked.certs

Result: The SAS Private JRE blocks the eight compromised eMudhra intermediate certificates. Valid root certificates remain available for other, uncompromised certification paths.

Related SAS Documentation