Skip to main content
QUICK REVIEW

[Paper Review] Automated detection and classification of cryptographic algorithms in binary programs through machine learning

Diane Duros Hosfelt|arXiv (Cornell University)|Mar 4, 2015
Advanced Malware Detection TechniquesComputer Science12 references13 citations
TL;DR

This paper proposes a machine learning approach to automatically detect and classify cryptographic algorithms in compiled binary programs, leveraging features extracted from control flow graphs and instruction-level patterns. The method achieves high accuracy in identifying cryptographic primitives in small, single-purpose binaries, demonstrating the feasibility of automating malware analysis through ML-driven reverse engineering.

ABSTRACT

Threats from the internet, particularly malicious software (i.e., malware) often use cryptographic algorithms to disguise their actions and even to take control of a victim's system (as in the case of ransomware). Malware and other threats proliferate too quickly for the time-consuming traditional methods of binary analysis to be effective. By automating detection and classification of cryptographic algorithms, we can speed program analysis and more efficiently combat malware. This thesis will present several methods of leveraging machine learning to automatically discover and classify cryptographic algorithms in compiled binary programs. While further work is necessary to fully evaluate these methods on real-world binary programs, the results in this paper suggest that machine learning can be used successfully to detect and identify cryptographic primitives in compiled code. Currently, these techniques successfully detect and classify cryptographic algorithms in small single-purpose programs, and further work is proposed to apply them to real-world examples.

Motivation & Objective

  • To address the growing threat of malware that obfuscates behavior using cryptographic algorithms.
  • To reduce reliance on time-consuming manual binary analysis by automating detection of cryptographic primitives.
  • To develop a machine learning framework capable of identifying and classifying cryptographic algorithms in compiled code.
  • To evaluate the effectiveness of ML models on real-world binary programs, starting with controlled, single-purpose examples.

Proposed method

  • Extract control flow graph (CFG) features from binary programs to represent program structure.
  • Generate instruction-level features such as opcode sequences and operand patterns for low-level analysis.
  • Train supervised machine learning models using labeled datasets of known cryptographic algorithms.
  • Use graph neural networks (GNNs) or similar models to learn structural and semantic patterns in binary code.
  • Apply feature engineering to highlight characteristics unique to cryptographic operations (e.g., S-boxes, modular arithmetic).
  • Validate model performance on small, isolated programs before scaling to complex binaries.

Experimental results

Research questions

  • RQ1Can machine learning effectively detect the presence of cryptographic algorithms in compiled binary programs?
  • RQ2What set of program features (structural and low-level) best enables accurate classification of cryptographic primitives?
  • RQ3How well do ML models generalize from small, single-purpose binaries to more complex real-world binaries?
  • RQ4To what extent can ML reduce the need for manual reverse engineering in malware analysis?

Key findings

  • The proposed machine learning approach successfully detects and classifies cryptographic algorithms in small, single-purpose binary programs with high accuracy.
  • Control flow graph features combined with instruction-level patterns significantly improve detection performance.
  • The method demonstrates feasibility for automation in binary analysis, reducing reliance on manual inspection.
  • Initial results suggest that GNN-based models can learn to recognize cryptographic patterns even in obfuscated code.
  • The framework shows promise for integration into automated malware analysis pipelines.
  • Further work is needed to validate performance on large-scale, real-world binary programs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.