Improving Discovery of Known Software Vulnerability For Enhanced Cybersecurity

Devesh Sawant, Manjesh K. Hanawal, Atul Kabra · 2024

Read Improving Discovery of Known Software Vulnerability For Enhanced Cybersecurity by Devesh Sawant, Manjesh K. Hanawal, Atul Kabra (2024) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2412-16607.txt.

Introduction

Finding known flaws in software setups is improved by Devesh Sawant, Manjesh K. Hanawal, and Atul Kabra in a 2024 paper. Attackers often exploit known flaws, so early detection matters. Detection depends on standard identifiers called Common Platform Enumeration strings, but vendors often issue those strings in non-standard forms that do not match database records.

The team presents a method that cleans up such strings in layers and then applies fuzzy matching. Data are gathered with Osquery, and a union query with priority weights ranks which attribute pairs matter most. A threshold on similarity then decides matches. A comparison with the open-source tool FleetDM is included. The aim is faster, surer patching before attackers can use the gap.

Catalog record

CREATORDevesh Sawant, Manjesh K. Hanawal, Atul Kabra
YEAR2024
COLLECTIONPAPERS
FORMATTXT
FILE SIZE30 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2412-16607

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Improving Discovery of Known Software Vulnerability For Enhanced Cybersecurity Devesh Sawant, Manjesh K. Hanawal, Atul Kabra Abstract Software vulnerabilities are commonly exploited as attack vectors in cyberattacks. Hence, it is crucial to identify vulnerable software configurations early to apply preventive measures. Effective vulnerability detection relies on identifying software vulnerabilities through standardized identifiers such as Common Platform Enumeration (CPE) strings. However, non-standardized CPE strings issued by software vendors create a significant challenge. Inconsistent formats, naming conventions, and versioning practices lead to mismatches when querying databases like the National Vulnerability Database (NVD), hindering accurate vulnerability detection. Failure to properly identify and prioritize vulnerable software complicates the patching process and causes delays in updating the vulnerable software, thereby giving attackers a window of opportunity. To address this, we present a method to enhance CPE string consistency by implementing a multi-layered sanitization process combined with a fuzzy matching algorithm on data collected using Osquery. Our method includes a union query with priority weighting, which assigns relevance to various attribute combinations, followed by a fuzzy matching process with threshold-based similarity scoring, yielding higher confidence in accurate matches. Comparative analysis with open-source tools such as FleetDM demonstrates that our approach improves detection accuracy by 40%. I Introduction Software vulnerabilities are a pervasive issue in the modern digital landscape, posing significant security risks to organizations across industries. Vulnerabilities are typically defined as weaknesses or flaws in software code that, if exploited by an attacker, can compromise the confidentiality, integrity, and availability of data. Exploitable vulnerabilities are highly sought after by malicious actors aiming to infiltrate systems, steal sensitive data, disrupt operations, or install malware. High-profile incidents of cyberattacks exploiting known vulnerabilities, such as Heartbleed [ 1 ] and Log4j [ 2 ] , demonstrate the necessity of a robust vulnerability management process to safeguard systems and reduce the risk of breaches. Vulnerabilities are frequently leveraged in attacks mapped to MITRE ATT&CK [ 3 ] TTPs. For instance, tactics such as Initial Access (TA0001) , Execution (TA0002) , and Privilege Escalation (TA0004) often exploit unpatched vulnerabilities. Techniques like Exploitation of Remote Services (T1210) , Valid Accounts (T1078) , and Vulnerability Scanning (T1595.002) highlight the critical role of vulnerabilities in the early stages of cyberattacks. By mapping these techniques, organizations can better understand how vulnerabilities serve as key enablers for sophisticated threat actors. Organizations that depend on complex, interconnected software systems are particularly vulnerable, as a single unpatched vulnerability can serve as an entry point for widespread compromise. Consequently, efficient detection of vulnerabilities is crucial for risk management, allowing security teams to address weaknesses before they are exploited. Vulnerability detection tools frequently use standardized identifiers known as Common Platform Enumeration (CPE) [ 4 ] strings to map software and hardware to known vulnerabilities cataloged in resources such as the National Vulnerability Database (NVD) [ 5 ] . Each vulnerability in the NVD is associated with a Common Vulnerability and Exposure (CVE) identifier, which links it to affected software configurations through CPE strings. I-A Motivation and Problem Statement The motivation behind this study is rooted in the gap between the idea of CPE string standardization and the reality of software vendor’s inconsistent implementations. Many vendors follow proprietary naming and versioning practices, leading to significant variations in datasets used for vulnerability detection. This lack of consistency becomes a barrier to effective vulnerability management, as security teams may miss vulnerabilities when exact CPE string matches are required. Open-source platforms, including FleetDM, rely on exact or near-exact string matching methods. While FleetDM is effective for software monitoring, it lacks advanced mechanisms to accommodate CPE string variations, which can result in missed detections and potential risks for organizations. I-B Objectives and Contributions In this work, we aim to improve the detection of software vulnerabilities by addressing the challenges posed by non-standardized CPE strings. Our primary contributions include: • We develop a scalable system architecture that integrates data collection, sanitization, query processing, and fuzzy matching into a seamless pipeline for real-time vulnerability management. • We perform a multi-step sanitization process to standardize software names, versions, and vendor information, thereby addressing common discrepancies that arise in real-world datasets • To retrieve a list of potential matches, we employ a union query that assigns weights based on the parameters matched (e.g., title, vendor, version). These weights prioritize entries and help establish thresholds for subsequent fuzzy matching, enhancing detection accuracy by focusing on highly relevant candidates. • We develop a fuzzy matching algorithm capable of tolerating minor variations in naming conventions and develop a scoring mechanism that indicates confidence in the matching outcomes. • We demonstrate improvement in vulnerability detection rates over standard methods, using FleetDM [ 6 ] as a benchmark for comparison. Our approach significantly enhances the accuracy of vulnerability detection and provides a proactive tool for organizations to manage software risks. II Related Work Accurate discovery software with known vulnerability relies on the precise identification of software components using standardized identifiers, such as CPE strings. Existing solutions, including FleetDM [ 6 ] , utilize basic string matching and sanitization techniques to link software products with vulnerabilities in databases such as NVD. However, these methods often fall short due to variations in software names, versions, and vendor details that lead to mismatches. In the following, we review approaches used in the open-source project FleetDM, its limitations, and the motivations for our enhanced methodology. The primary reason to focus on FleetDM is that full details are available, and we could reproduce the outcomes for a fair comparison. Though several proprietary solutions are available for software vulnerability detection, such as Tenable Nessus [ 7 ] and CrowdStrike Falcon Spotlight [ 8 ] , they are proprietary, and full details about their mechanism are not available. II-A FleetDM’s Approach to Vulnerability Detection FleetDM [ 6 ] is an open-source endpoint security platform that provides an elementary solution to software vulnerability detection by matching software installed on client systems against known vulnerabilities in the NVD. FleetDM’s approach focuses on basic sanitization techniques to normalize software names, vendor information, and versions to improve the accuracy of database lookups. II-A 1 Basic Sanitization in FleetDM FleetDM’s method centers on standardizing software names by removing common suffixes, such as ”Inc.” or ”LLC,” and normalizing cases to lowercase. It also simplifies version numbers by trimming trailing zeros, while removing platform-specific tags and unnecessary metadata where possible. For example: • The software name ”OpenVPN Technologies, Inc.” is reduced to ”openvpn” by removing extraneous terms and standardizing capitalization. II-A 2 SQL Union-Based Query Matching FleetDM employs union-based SQL queries to match software records against NVD data. These queries rely on different combinations of attributes, such as software name, vendor, and version, with priority weighting to increase matching accuracy. For instance: • Priority is given to queries matching the title , vendor , and version fields. • Lower-weighted queries might match only the software name and version, providing a fallback if the full title or vendor information does not match. II-B Limitations of FleetDM’s Approach While FleetDM’s methodology provides a functional baseline, it encounters limitations when handling non-standardized CPE strings or complex versioning schemes. These limitations hinder its ability to accurately detect vulnerabilities in cases where software vendors use inconsistent or abbreviated naming conventions. The main limitations

Read the complete text