Empirical Analysis of Evasion and Poisoning Against Malware Data Drift Detection
This paper investigates how evasion and poisoning attacks, typically designed to compromise malware classifiers, uniquely affect the combined operation of data drift detectors and malware classifiers, revealing that the distinct characteristics of drift detectors alter the efficacy and behavior of these adversarial attacks.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are the security guard at a massive, high-tech nightclub. Your job is to spot troublemakers (malware) and keep them out, while letting the good guests (benign software) in. For a long time, you've used a list of known troublemakers' faces to do this. But troublemakers are sneaky; they change their hair, wear disguises, or grow beards to look like regular people. To keep up, you've hired a smart AI to help you recognize the vibe of a troublemaker, even if they look different.
However, there's a catch. Over time, the crowd changes. The "vibe" of the neighborhood shifts, and the AI starts getting confused because the people walking in don't look like the people it learned from years ago. This is called concept drift. To fix this, the club hires a second AI, a "Drift Detector." This second AI doesn't care if someone is a troublemaker or a good guest; it just watches for anyone who looks weirdly different from the usual crowd. If someone looks too strange, the Drift Detector flags them for a human guard to check. The idea is that if a troublemaker tries to disguise themselves, they might look so weird that the Drift Detector catches them anyway.
But here is the twist: What if the troublemakers know about both guards? What if they can trick the main AI into thinking they are good guests, and trick the Drift Detector into thinking they look normal? This paper asks exactly that question. The researchers wanted to see if bad actors could pull off a double-cross: fooling the system that catches the bad guys, while also fooling the system that catches the weirdos. They tested this by trying to sneak in "poisoned" guests (who sneak into the training list) and "disguised" guests (who try to slip past the door).
The Double-Blind Heist
The researchers set up a digital heist to see how well these two security systems work together against an attacker. They used real-world data from two different "neighborhoods" (datasets called Bodmas and Androzoo) containing thousands of software samples. The victim (the club owner) had two main tools: a Malware Classifier (the main bouncer) and a Drift Detector (the weirdness watcher). The attacker's goal was simple but tricky: make a piece of malware look like a harmless app to the bouncer, and make sure it doesn't look "weird" enough to get flagged by the weirdness watcher.
The attacker had some rules to follow, just like a real criminal trying to stay under the radar. They couldn't break the malware's functionality (the app still had to work) or change its file format. They could only tweak certain features, like adding extra space or changing some numbers, but they couldn't delete things that made the file work. They also didn't have full access to the club's security cameras; they only knew about 10% of the guests and had to build their own "surrogate" models (fake security systems) to practice their tricks before trying them on the real thing.
The Surprising Results
The researchers tried two main types of attacks: Evasion (slipping a disguised malware past the guards) and Poisoning (sneaking fake "good" guests into the training list so the guards learn the wrong lessons).
The Evasion Surprise:
When the researchers tried to sneak malware past the system by adding small "perturbations" (tiny changes) to the files, they found something counterintuitive. Usually, in the world of AI, bigger changes make it easier to fool a classifier. If you change a face enough, the AI stops recognizing it. But here, the Drift Detector acted like a strict bouncer who hates any change.
When the attackers made the malware look too different to fool the main bouncer, the Drift Detector got suspicious. It saw these heavily modified files as "out of distribution"—meaning they looked nothing like the normal crowd. The Drift Detector flagged them as weird, and the human guard caught them. The paper found that for systems using a specific type of Drift Detector called CADE (which uses a "contrastive autoencoder"), making the perturbation larger actually hurt the attack. The bigger the disguise, the more likely the Drift Detector was to spot it. The attackers had to be incredibly precise, finding a "sweet spot" where the malware looked normal enough to the Drift Detector but still fooled the main classifier.
The Poisoning Paradox:
The poisoning attack was even more interesting. The attacker tried to sneak in "backdoor" malware disguised as harmless apps. The idea was that if the club owner retrained their security system using these fake guests, the new system would let the real malware in later.
However, the researchers discovered that adding more poisoned guests didn't always help. In fact, for the CADE-based Drift Detector, adding too many poisoned samples made the attack fail. Why? Because the Drift Detector's internal "map" (embedding space) has limited room. When too many poisoned samples were crammed into the "good guest" area of the map, the system got confused. To make sense of all these new, slightly different samples, the Drift Detector started pushing them away from the center of the "good guest" crowd to keep them organized. This made the poisoned samples look weird again, causing the Drift Detector to flag them. The paper suggests that the more you try to stuff into the system, the more the system pushes the bad stuff out.
What This Means for the Future
The paper concludes that attacking a system with both a classifier and a drift detector is a delicate balancing act. It's not just about making the malware look like a good guy; it's about making sure it doesn't look too different from the crowd.
The researchers found that the type of Drift Detector matters a lot. Systems like Transcendent (which uses a different method based on statistical confidence) were easier to fool with big changes than CADE. But for CADE, the attackers had to be very careful. If they pushed the malware too far toward the "benign" side, it drifted too far from the "center" of the benign crowd and got caught.
Ultimately, the paper shows that while attackers can be very clever, the unique way these Drift Detectors work creates a new kind of defense. The very mechanism that helps the system adapt to new threats (by noticing when things look different) also makes it harder for attackers to hide in plain sight. The study suggests that to break this defense, an attacker would need to choose their tools (surrogate models) and their tricks (loss functions) with extreme precision, aligning perfectly with how the Drift Detector sees the world. It's a cat-and-mouse game where the mouse has to be just weird enough to be invisible, but not so weird that it gets caught.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.