A Stealer Meets Its Bait
When a program that harvests saved passwords opens a file named passwords.txt, the moment it reaches the open() call the tool’s kernel hook intervenes. The fanotify subsystem pauses the process inside the system call, preventing any byte from being read. The program is then frozen in a cgroup that only root can control, so the malware cannot unfreeze itself. The frozen process’s network sockets are closed, and in strict mode the entire machine is isolated with a packet filter while an alert still reaches the user’s phone. The result is a credential‑stealer stopped before it can exfiltrate a single character.
Why Decoys Work
The trick relies on planting files that legitimate software never touches—fake password lists, wallet seeds, and two‑factor backup codes. Only malicious code that indiscriminately scans for credentials will open them. Because the decoys are indistinguishable from real user data, a stealer that reads them triggers the behavior monitor.…