Wednesday, March 26, 2025
Homecyber securityCleanStack: Dual-Stack Solution to Defend Against Memory Corruption Attacks

CleanStack: Dual-Stack Solution to Defend Against Memory Corruption Attacks

Published on

SIEM as a Service

Follow Us on Google News

CleanStack is a novel stack protection mechanism designed to combat memory corruption attacks, which have long been a significant threat to software systems.

These attacks exploit vulnerabilities in low-level languages like C/C++ to execute arbitrary code or manipulate memory operations.

CleanStack addresses these issues by introducing a dual-stack system that isolates and randomizes stack objects influenced by external inputs, thereby preventing attackers from modifying return addresses or predicting stack layouts.

Introduction to CleanStack

CleanStack’s approach is based on the Tainted Stack Object Separation (TSOS) theory, which involves identifying and isolating stack objects that may be tainted by external inputs.

This is crucial because attackers often exploit such vulnerabilities to launch control-flow hijacking attacks or non-control data attacks.

By separating tainted stack objects into a distinct stack, CleanStack ensures that these objects cannot interfere with the return addresses or other safe stack objects.

Additionally, CleanStack randomizes the placement of tainted stack objects within the Unclean Stack, making it difficult for attackers to predict the stack layout and exploit non-control data attacks.

Implementation and Evaluation

CleanStack is implemented within the LLVM compiler framework, allowing it to be applied to a wide range of applications.

The implementation involves static analysis to identify tainted stack objects, which are then relocated to a separate tainted stack.

The layout of this tainted stack undergoes static randomization to disrupt predictable memory layouts.

CleanStack also incorporates canary values and runtime checks to enhance security further.

The performance and security of CleanStack were evaluated using the SPEC CPU2017 benchmark suite and real-world applications like the Apache HTTP server.

The results show that CleanStack incurs a minimal execution overhead of only 1.73% and a memory overhead of 0.04%.

According to the Report, this makes CleanStack an efficient and highly compatible solution compared to existing stack protection techniques.

It effectively mitigates both control-flow hijacking attacks and non-control data attacks, including Return-Oriented Programming (ROP) and Data-Oriented Programming (DOP) attacks.

CleanStack’s dual-stack architecture and randomization techniques provide comprehensive protection against stack-based memory vulnerabilities.

Its ability to balance protection coverage, runtime overhead, and deployability makes it one of the most effective stack security solutions available today.

By addressing the limitations of current defense mechanisms, CleanStack offers a robust and efficient way to secure software systems against memory corruption attacks.

Investigate Real-World Malicious Links & Phishing Attacks With Threat Intelligence Lookup – Try for Free

Aman Mishra
Aman Mishra
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Latest articles

Threat Actors Use “Atlantis AIO” Tool to Automate Credential Stuffing Attacks

In a concerning development for cybersecurity professionals, threat actors are increasingly utilizing a powerful...

Hackers Exploit COM Objects for Fileless Malware and Lateral Movement

Security researchers Dylan Tran and Jimmy Bayne have unveiled a new fileless lateral movement...

B1ack’s Stash Marketplace Actors Set to Release 4 Million Stolen Credit Card Records for Free

In a significant escalation of illicit activities, B1ack’s Stash, a notorious dark web carding...

Pakistan APT Hackers Weaponize malicious IndiaPost Site to Target Windows and Android Users

A Pakistan-based Advanced Persistent Threat (APT) group, likely APT36, has launched a multi-platform cyberattack...

Supply Chain Attack Prevention

Free Webinar - Supply Chain Attack Prevention

Recent attacks like Polyfill[.]io show how compromised third-party components become backdoors for hackers. PCI DSS 4.0’s Requirement 6.4.3 mandates stricter browser script controls, while Requirement 12.8 focuses on securing third-party providers.

Join Vivekanand Gopalan (VP of Products – Indusface) and Phani Deepak Akella (VP of Marketing – Indusface) as they break down these compliance requirements and share strategies to protect your applications from supply chain attacks.

Discussion points

Meeting PCI DSS 4.0 mandates.
Blocking malicious components and unauthorized JavaScript execution.
PIdentifying attack surfaces from third-party dependencies.
Preventing man-in-the-browser attacks with proactive monitoring.

More like this

Threat Actors Use “Atlantis AIO” Tool to Automate Credential Stuffing Attacks

In a concerning development for cybersecurity professionals, threat actors are increasingly utilizing a powerful...

Hackers Exploit COM Objects for Fileless Malware and Lateral Movement

Security researchers Dylan Tran and Jimmy Bayne have unveiled a new fileless lateral movement...

B1ack’s Stash Marketplace Actors Set to Release 4 Million Stolen Credit Card Records for Free

In a significant escalation of illicit activities, B1ack’s Stash, a notorious dark web carding...