Skip to main content
QUICK REVIEW

[Paper Review] Processor-Dependent Malware... and codes

Anthony Desnos, Robert Erra|arXiv (Cornell University)|Nov 7, 2010
Cellular Automata and ApplicationsComputer Science10 references4 citations
TL;DR

This paper proposes a novel approach to processor-dependent malware by exploiting floating-point arithmetic (FPA) inconsistencies across different CPU architectures. By executing carefully crafted numerical computations—such as trigonometric functions and summations—it demonstrates that distinct processors produce divergent results, enabling malware to identify and target specific hardware with high precision, even across diverse operating systems and software environments.

ABSTRACT

Malware usually target computers according to their operating system. Thus we have Windows malwares, Linux malwares and so on ... In this paper, we consider a different approach and show on a technical basis how easily malware can recognize and target systems selectively, according to the onboard processor chip. This technology is very easy to build since it does not rely on deep analysis of chip logical gates architecture. Floating Point Arithmetic (FPA) looks promising to define a set of tests to identify the processor or, more precisely, a subset of possible processors. We give results for different families of processors: AMD, Intel (Dual Core, Atom), Sparc, Digital Alpha, Cell, Atom ... As a conclusion, we propose two {\it open problems} that are new, to the authors' knowledge.

Motivation & Objective

  • To investigate whether malware can be designed to target specific processors based on hardware-level arithmetic differences, independent of operating system or application.
  • To explore the feasibility of using floating-point arithmetic (FPA) as a reliable fingerprinting mechanism for processor identification.
  • To demonstrate that FPA-based tests can distinguish between different processor families (e.g., Intel, AMD, ARM, MIPS) with high accuracy.
  • To identify new attack surfaces in cyber warfare by enabling 'surgical' malware that selectively activates only on specific hardware.
  • To propose two open problems: (1) designing a linear-complexity FPA algorithm for precise processor identification, and (2) creating processor-dependent hash functions based on FPA behavior.

Proposed method

  • Leverages floating-point arithmetic (FPA) as a side-channel to detect processor-specific numerical behavior, exploiting inherent precision and rounding differences.
  • Employs numerical expressions such as sin(10^37 * π) and summations like ∑(10^N) to generate unique output signatures per processor.
  • Uses multiple approximations of π (e.g., Pi1 to Pi4) to amplify differences in floating-point computation across architectures.
  • Executes test programs on various processors (Intel, AMD, ARM iPhone, MIPS, dsPIC) and logs results in hexadecimal and decimal formats.
  • Analyzes the influence of compilers and optimization flags on FPA results, showing that compiler choice further increases fingerprinting granularity.
  • Proposes the Proc Scope Tool as a future framework to automate processor identification via FPA-based tests.

Experimental results

Research questions

  • RQ1Can floating-point arithmetic differences across processors be reliably exploited to distinguish between distinct CPU architectures?
  • RQ2To what extent do compiler versions and optimization settings affect the outcome of floating-point computations, and can this be used to refine hardware fingerprinting?
  • RQ3Is it possible to design a linear-time, linear-space numerical algorithm that uniquely identifies a processor through FPA behavior?
  • RQ4Can processor-dependent hash functions be constructed using FPA operations, such that the same input produces different outputs on different processors?

Key findings

  • Different processors, including Intel, AMD, ARM iPhone, MIPS, and dsPIC, produced distinct results when computing sin(10^37 * π), enabling reliable identification.
  • The dsPIC33FJ21 microcontroller produced identical results (0xbee5) across all π approximations, while other processors showed clear divergence.
  • The test 0.1 + 0.1 + 0.1 == 0.3 returned false on all processors except VAX 750, demonstrating architecture-dependent floating-point behavior.
  • Compiler and optimization settings significantly affect FPA results, as shown in the generalized sum s(N) − N*10^N, where values varied widely with N and toolchain.
  • The computation of sin(10^10 * π1) produced consistent results across AMD, Intel, and ARM processors, but diverged at higher powers, indicating a detectable pattern.
  • The authors observed four distinct subclasses of processors based on FPA behavior in sin(10^37 * π) computations, highlighting the potential for fine-grained hardware fingerprinting.

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.