← Latest papers
💻 computer science

Static Detection of Post-Quantum Cryptographic Algorithms in Stripped Binaries for Digital Forensic Examination and Migration Assurance

This paper introduces Kestrel, a static analysis tool that reliably detects standardized post-quantum cryptographic algorithms (ML-KEM and ML-DSA) in stripped and optimized binaries by identifying unique number-theoretic transform constant tables, thereby enabling effective forensic examination, supply chain inspection, and migration assurance even when traditional detection signals are obscured.

Original authors: Muhammad Shaheer Bin Junaid

Published 2026-08-27
📖 6 min read🧠 Deep dive

Original authors: Muhammad Shaheer Bin Junaid

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

In the world of digital security, a quiet revolution is underway. For decades, the locks protecting our most sensitive data—banking records, state secrets, private messages—have relied on mathematical puzzles that are easy to create but nearly impossible to solve without a specific key. These puzzles, known as public-key cryptography, are the foundation of trust on the internet. However, scientists have long predicted that a new type of computer, one that harnesses the strange laws of quantum physics, will eventually be powerful enough to break these locks instantly. When that happens, the old locks will become useless. To prepare, experts are designing new locks based on different mathematics that even a quantum computer cannot easily crack. These new systems are called post-quantum cryptography. The challenge now is not just building these new locks, but finding them. As organizations rush to replace their old systems, they need to know exactly where the new ones are hiding inside the complex software that runs their world. But there is a problem: once software is compiled into a final program for use, the labels and names that usually tell us what is inside are often stripped away to make the program smaller and faster. Without those names, finding a specific new lock inside a pile of code has been like trying to find a specific grain of sand on a beach without knowing what the sand looks like.

A researcher named Muhammad Shaheer Bin Junaid has developed a new way to solve this problem. He created a tool called Kestrel that can identify these new, quantum-safe locks inside stripped software, even when all the usual clues have been removed. The method relies on a simple but powerful observation: while the names of the code can be erased, the raw numbers the code needs to work cannot. The new cryptographic systems, specifically those based on a structure called a lattice, must use a fixed set of pre-calculated numbers to perform their calculations. These numbers act like a permanent fingerprint. No matter how much the software is optimized, compressed, or renamed, these specific numbers must remain in the file for the program to function. If the numbers are missing, the program simply will not work. Kestrel scans the raw data of a program, looking for these specific patterns of numbers. It does not care about the names of the functions or the libraries the program uses; it only cares about the presence of these essential mathematical constants.

The researcher tested this approach on a wide variety of software, including programs built with different tools and subjected to every kind of standard processing that makes them harder to analyze. They found that the tool worked perfectly. In tests involving 128 different versions of the software, Kestrel identified the new cryptographic algorithms in every single case, even when the programs had been stripped of all their names and linked together in complex ways. Crucially, the tool did not make any mistakes. When the researcher scanned over 6,000 real-world programs from a standard computer system, the tool found no false alarms. It did not mistake ordinary software for the new cryptographic systems. This level of accuracy is vital for digital forensics, where an expert must be absolutely certain about what they find before presenting it in a legal setting.

Perhaps the most surprising discovery came when the tool was applied to a live computer system. The scan revealed twelve different programs that contained these new quantum-safe locks, yet no one knew they were there. These included the software that manages internet connections for secure logins and the systems that run containerized applications. In many cases, the new cryptography had entered these programs automatically through the programming languages used to build them, without the developers of those programs even realizing it. This finding highlights a significant gap in current security practices: organizations might believe they are using old, vulnerable systems, or they might think they have upgraded, but without a way to inspect the actual code, they cannot be sure. Kestrel provides that certainty. It can distinguish between a program that genuinely uses the new locks and one that merely claims to do so. In one test, a program claimed to have quantum-safe protection, but the tool found no evidence of it, correctly identifying the claim as false.

The tool also proved its value in a forensic setting, simulating the recovery of data from a damaged or deleted file. When a file is deleted, the operating system often marks the space as available for new data, but the old data remains on the disk until it is overwritten. Standard recovery tools try to rebuild the file structure, which often fails if the file header is damaged. However, because Kestrel looks for the specific numbers inside the data rather than the file structure, it was able to find the cryptographic fingerprint even in the raw, unorganized space of the disk image. It successfully identified the presence of the new algorithm in a file that other tools could not recover. This capability means that investigators can confirm the use of specific cryptographic methods even when the original files are gone or corrupted.

The research also clarified what the tool cannot do. It is designed to find the specific types of new locks that rely on these fixed number tables. It cannot find other types of new locks that do not use this method, nor can it find a program that calculates these numbers on the fly every time it runs, rather than storing them. However, the researcher noted that no known software currently uses this "on-the-fly" method because it is inefficient and unnecessary. The tool is built for the reality of how software is actually made and distributed today. By focusing on the immutable numbers that the code requires to function, Kestrel offers a reliable way to verify the presence of these new security systems. It turns the invisible into the visible, allowing auditors and investigators to see exactly what is inside a program, ensuring that the transition to a quantum-safe future is based on facts rather than assumptions.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →