By Shane Fry
Within industrial control systems (ICS), the number of memory safety vulnerabilities has seen a steady rise over the last 10 years, from less than 1,000 CVEs in 2014 to nearing 3,000 in 2023 alone.
ICS systems primarily use C/C++ programming languages, which are not inherently memory-safe. As more software adds into ICS environments, the number of vulnerabilities will only continue to increase.
The trend is concerning because memory safety vulnerabilities are often severe. Of CVEs listed in the NVD for ICS systems, 70 percent scored high or critical and a successful exploit can lead to remote execution, takeover of systems, information leaks, and system crashes.
For example, CVE-2023-3595 allows for Remote Code Execution (RCE) in Rockwell Automation ControlLogix systems, allowing for out of bounds writes and arbitrary code execution with no user interaction required. ControlLogix is used in multiple industries, including manufacturing, electric, oil and gas, and liquified natural gas. The software running within ICS needs protection and resilience against these forms of attack.
Making Memory Safety a Priority
Citing the threat to national security, the economy, and public health, the Cybersecurity and Infrastructure Agency (CISA), the NSA, and the White House, have been pushing for memory safety to be a top priority for manufacturers of software as well as software buyers.
ICS manufacturers can focus on several key strategies to protect vulnerable systems that are increasingly the target of attack by nation state actors.
Common strategies for mitigating vulnerabilities in ICS systems include patching and performing SAST, DAST, and IAST during CI/CD pipelines. Performing patching is inherently difficult in ICS systems, however, and on average it takes 140 days for vendors to release a patch. It takes even longer for that patch to be implemented across devices in an ICS environment, leaving a large window for attackers. Analysis techniques are also falling short, as memory safety vulnerabilities continue to increase and end up exploited by attackers.
Adhering to secure coding practices and Secure by Design principles is an important step toward mitigating memory safety vulnerabilities.
One of the key tenets is to write new code and rewrite existing code into memory safe languages like Rust and Go, which can drastically reduce the risk of memory-related bugs. However, transitioning entire codebases to these languages takes time and developer resources that many organizations do not yet have in place.
SBOMs a Solid Strategy
A third strategy is identifying memory safety vulnerabilities across assets in an ICS environment. One approach that is becoming best practice is to generate a Software Bill of Materials, or SBOM, which provides visibility into software components to reveal potential vulnerabilities coming from a device’s software supply chain. SBOMs provide essential visibility, but ICS systems still need solutions for fast and effective mitigation.
While each of the above strategies provide a layer of defense, new solutions, like Runtime Application Self Protection (RASP), defend ICS by protecting code from memory based vulnerabilities at runtime. RASP builds directly into devices with the goal of enabling a device to defend itself against attacks in real time.
RASP is able to do so by hardening software binaries directly, cutting down reliance on patching, scanning, and detection by external network and endpoint protection such as firewalls. One form of RASP, called Load-time Function Randomization (LFR), accomplishes this by dynamically relocating software functions in memory every time the software ends up loaded. Each instance of the software has a unique memory layout, making it extremely difficult for attackers to predict the location of specific functions and execute a memory-based attack.
RASP is a promising solution for ICS, and is a key component in ICS Defense in Depth and Secure by Design implementations. By deploying RASP, ICS can reverse the upward trend of memory safety CVEs, eradicating an entire class of vulnerabilities and defending critical systems at the core.
Shane Fry is the chief technology officer at RunSafe Security.

