Detecting Tofsee Malware Communication without False Positives

The Tofsee malware family attempts to evade detection by using a custom encryption protocol. Nonetheless, that protocol can be identified efficiently. This post describes the detector that I developed and implemented in mercury. Why develop a detector for Tofsee, despite the fact that it is neither the newest nor nastiest malware? Because it is still … Continue reading Detecting Tofsee Malware Communication without False Positives

RC4 keystream bias, or parallel processing made easy with for_each/accumulate

RC4 is an obsolete cipher that was widely used just a decade ago, despite the fact that it has an exploitable statistical bias. This post shows how to compute the bias, using the neat modern C++ trick of parallel execution policies for the algorithms library, or for_each(std::execution::par). Complete code is available on GitHub. std::for_each() applies … Continue reading RC4 keystream bias, or parallel processing made easy with for_each/accumulate