Introduction
Machine learning classifiers are increasingly deployed in security systems to detect malicious content. To defend against adversarial attacks, these systems are often designed as "total blackboxes" that provide only a binary (Accept/Reject) decision, withholding internal confidence scores. This paper investigates the effectiveness of this "security through obscurity" approach, demonstrating that even minimal binary feedback can be exploited to guide automated malware evasion.
The EvadeHC Algorithm
The authors propose EvadeHC, a hill-climbing algorithm that treats evasion as an optimization problem. In a "dark" environment where the detector provides no score, EvadeHC generates its own guidance signal by measuring "flipping distances."
As illustrated in Figure 1, the algorithm tracks two critical metrics for any candidate file:
- Malice-flipping distance ($m_x$): The number of random morphs required for a file to lose its malicious functionality.
- Reject-flipping distance ($r_x$): The number of morphs required for the detector to flip its decision from "Reject" to "Accept."
The resulting scoring function, $Score = m_x - r_x$, provides a gradient for the search. A higher score indicates a sample that is approaching the detector's acceptance boundary while remaining safely distant from losing its functional malicious payload. This allows the algorithm to navigate the "gap" between the detector's classification boundary and the malware's functional limits.
Experimental Evaluation
The researchers evaluated EvadeHC using a dataset of 500 malicious PDF seeds from the Contagio archive. They targeted two state-of-the-art PDF malware detectors: PDFrate and Hidost. To simulate a realistic blackbox scenario, both detectors were modified to output only binary decisions. A Cuckoo Sandbox was employed as a functional tester to verify that every morphed file retained its intended malicious behavior.
Results and Performance
EvadeHC achieved a 100% evasion rate against both PDFrate and Hidost. Beyond its effectiveness, the algorithm proved remarkably efficient compared to baseline random search methods.
As shown in Figure 6, the number of iterations (queries) required to find a successful evasion is relatively low. Against Hidost, while a baseline random search took an average of 6.7 hours, EvadeHC found a bypass in just 5 minutes. Furthermore, EvadeHC demonstrated robustness against "hardened" detectors; even when detector thresholds were set aggressively to favor rejection, EvadeHC maintained high evasion rates (e.g., 62% on a hardened Hidost model where the baseline achieved only 8%).
Conclusion
This research demonstrates that binary feedback is not a sufficient barrier to automated evasion. By probing the decision boundary to estimate the "depth" of a sample within a classification region, attackers can effectively guide blackbox morphing tools. The results suggest that future defenses must incorporate more robust strategies, such as stateful detection of probing patterns or the introduction of randomized decision boundaries, to counter these highly efficient hill-climbing attacks.
Summary updated