Identify OpenSSL 3.0.X with Tanium SBOM
It takes a village to make a community. A special thanks goes out to Melissa Bischoping, James Lively, Eric Hanlon, Jim Kelly, Roland Diaz, Forrest Craigen, Jason Wasser, Tom Goings, Dan Belcher, Cameron Will, Garreth Jeremiah, Aaron Margosis, and the Tanium Cyber Threat Intelligence Team for their contributions to this article.
Overview
OpenSSL issued OpenSSL version 3.0.7 on Tuesday, November 1. While this release includes several fixes and features, it also includes two noteworthy “High” vulnerabilities that affect all versions of OpenSSL 3.0.0 up to 3.0.6. The fix is in OpenSSL 3.0.7.
Given the prevalence of OpenSSL in everything from IOT devices to common enterprise apps and default operating system configurations, there is guaranteed widespread prevalence of the vulnerability.
While we do not trade in speculation, the potential significance of this vulnerability and impact to the industry has led to the decision to proactively publish this article and associated content so organizations can begin identifying their exposure today.This article will be updated with additional details as they are available.
Prioritization
Industry researchers and experts are advising that users of OpenSSL 3.0.0 - 3.0.6 to upgrade to 3.0.7 as soon as possible. Organizations should be prepared to address their public-facing web infrastructure as a priority. The content in this post helps empower your organization to identify your public facing web servers, build reporting for versions, OpenSSL implementations, and proactively plan for hardening, mitigation, or remediation.
Finding It
OpenSSL, like many shared library/dependency vulnerabilities, can be installed as its own service, as well as a dependency repackaged in other software. Complete identification in your environment requires a multi-prong approach.
Tanium SBOM
In October of 2022, Tanium released new capabilities for Tanium Asset called Software Bill of Materials (SBOM). SBOM was developed to aid in understanding third party libraries associated with software packages. Like a list of ingredients on a package of cookies, one can see what makes up the total. The list of ingredients is what comes from the factory. Tanium is looking at specific files on your endpoints and determining their ingredients without having the information from the vendor. Tanium currently supports parsing the ecosystems: Java, JavaScript, Python, PHP, Ruby, GoLang-Binaries and Windows Binaries.Tanium SBOM is an add-on to Tanium Asset. We encourage customers without Asset & SBOM to request a temporary license from your account team for Asset & SBOM to perform a complete inventory.
-
Review the video for installation and configuration for SBOM.
-
Review the following screenshots for step-by-step depictions of adding the SBOM attributes to Asset for OpenSSL.
Once Asset / SBOM has been configured, the following question in interact will help identify where OpenSSL exists in your environment:
For affected 3.x version use--
Get SBOM Package Information Filtered By["",*openssl*,"^3\.0\.[0-6]*",""] from all machines with SBOM Package Information Filtered By["",*openssl*,"^3\.0\.[0-6]*",""]:Vendor contains openssl
For All openssl regardless of version use--
Get SBOM Package Information Filtered By["",*openssl*,"",""] from all machines with SBOM Package Information Filtered By["",*openssl*,"",""]:Vendor contains openssl
There are a number of available SBOM Interact Dashboards, in this case, there is a specifically named SBOM Report: openssl report. This will give a view of all OpenSSL Shared Libraries (not just v3.X) discovered on your systems.
Tanium Threat Response and Yara
While more limited than the solution SBOM offers, Tanium Threat Response can be utilized to run Yara rules to detect loaded binaries that may contain vulnerable versions of OpenSSL. While it is not feasible to run a Yara rule across the entire disk of a system, a rule can be targeted against memory (windows only) or live files (binaries on disk that have been loaded into memory). This will allow for the detection of potentially active executing vulnerable versions of OpenSSL. This will not find any binaries at rest which SBOM will provide a more comprehensive view of.
The following rule checks for specifically the vulnerable versions of OpenSSL.
rule vuln_openssl { strings: $reg = /openssl\s(3\.0\.[0-6])/i condition: $reg }
YARA Rules
Tanium Threat Response can import YARA rules. Always test intelligence, especially YARA rules and IOCs (Indicators of Compromise), especially during an emergency.
Review the article Deploying Signals into Production Environments Safely, Efficiently, and Effectively for guidance and best practices for rolling out intelligence in production.To import YARA rules:
-
Open the Threat Response module and select Intel > Documents.
-
Click Add and select Upload IOC(s).
-
Provide the .yara file that contains the rules.
Notes:
-
Ensure YARA content has a .yara file extension.
-
Properly scope the intel document
To properly target YARA rules for this issue, you should work with your system owners to understand your organization’s log file locations. A common location to scan may be LOCATION.See Configure YARA files in the Tanium documentation for more information.
FAQ
The Big Question – Do We Have Another Log4Shell Coming?
The simple answer is no this is not as widespread and critical of a vulnerability as Log4shell was. Based on the details provided by the OpenSSL team the circumstances required for the email address buffer overflows to be exploited are less likely to occur than originally thought. Both CVE-2022-3786 and CVE-2022-3602 should still be patched even though they have been downgraded to High from Critical.
Why Is the Industry Concerned?
This was announced as a Critical vulnerability coming in OpenSSL but after the disclosure it has been downgraded to High and has been determined to be much less likely to occur than originally expected. The OpenSSL blog post still recommends patching this vulnerability which they still believe is serious, thought likely not as widespread.
Is this Expected to be Widespread?
While we do not have specific numbers, specific compilers as well as the less common OpenSSL 3.x versions need to both be present based on the details released by the OpenSSL team. Due to these necessities as well as the fact some systems buffer overflow preventions prevent these vulnerabilities, we do not expect exploitation of these vulnerabilities as they currently exist to be widespread.
Why is this Challenging to Find?
Open SSL is a library, and not frequently deployed as a binary. From the developers:
Some applications that use OpenSSL are distributed in binary form. When using such an application, you do not need to install OpenSSL yourself; the application will include the required parts (e.g., DLLs).
Because of this, OpenSSL can appear in NUMEROUS applications as dependencies and DLLs that we cannot easily scan for, even with things like Index. Custom implementations can be renamed, modified (changing hashes), and may or may not include signatures or versioning information.
What Should Tanium Customers Do?
-
Scope your environment for critical, high-risk servers and infrastructure like webservers, admin portals, and network appliances
-
Inventory critical business applications and reach out to the vendors to determine if they are impacted by this OpenSSL vulnerability.
-
Prepare for patching/hardening of systems identified as vulnerable. Proactively identify change windows as soon as possible.
-
Prepare a plan to take systems offline if required
-
Ensure endpoint security tooling, monitoring, and log collection is properly configured to monitor those public-facing endpoints
Is Tanium Affected?
We have confirmed with product security that Tanium is not impacted by the critical vulnerability that is addressed in OpenSSL version 3.0.7.
References
Forthcoming OpenSSL Releases Prepare Now for Critical Flaw in OpenSSL, Security Experts Warn OpenSSL Critical Vulnerability: Should You Be Spooked? CVE-2022-3786 and CVE-2022-3602: X.509 Email Address Buffer Overflows - OpenSSL Blog
Versions
|
Date |
Information |
|---|---|
|
10/27/2022 |
Initial Publication |
|
10/28/2022 |
Added clarification around limitations of current guidance |
|
10/31/2022 |
Updated sensor and SBOM guidance |
|
11/1/2022 |
Updated SBOM guidance, Interact guidance, and FAQUpdating with new vendor and cve guidance |