Skip to main navigation Skip to search Skip to main content

Do Programs Dream of Electromagnetic Signals? Towards GAN-based Code-to-Signal Synthesis

  • INL Author Affiliation
  • , Kurt A. Vedros
  • , Constantinos Kolias
  • , Robert C. Ivans

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution › peer-review

3 Scopus citations

Abstract

The analysis of EM signals has become a popular approach as a means for achieving non-intrusive and external anomaly detection, particularly in the realm of embedded devices. Previous efforts have shown huge potential in terms of discriminative precision between those signals that correspond to normal versus anomalous operations. However, virtually all research in the area neglects the challenge of gathering high-quality signals for the purpose of fingerprinting all possible execution paths of a program. Today, such efforts are mainly human-driven and because there may be hundreds of alternative paths even in simple programs, EM-based anomaly detection approaches exhibit poor scalability. In this work, we introduce a set of methods for the generation of EM signals directly from code. To the best of our knowledge, this is the first effort that aims to address code-to-signal synthesis for purposes of side-channel analysis. The proposed framework is based on Generative Adversarial Networks (GAN) that receive the corresponding assembly (ASM) code of a program as input and in turn produce artificial signals which bear near-identical morphological characteristics as the corresponding real EM signals. Although the proposed method pertains across a wide range of applications we have evaluated our approach specifically for the task of training anomaly detection models. We experimentally showed that synthetic signals can train models that can then detect even stealthy code injection attacks i.e., very challenging minimal code alterations with great accuracy. More specifically, synthetically trained anomaly detection models achieve a near-perfect AUC score of 0.993 for the detection of four malicious instructions and 0.981 for the detection of two malicious instructions. Interestingly, applying rudimentary feature engineering i.e., considering the maximum amplitude of the signal per cycle as opposed to the entire raw signal leads to perfect detection accuracy.

Original languageEnglish
Title of host publicationMILCOM 2023 - 2023 IEEE Military Communications Conference: Communications Supporting Military Operations in a Contested Environment
Subtitle of host publicationCommunications Supporting Military Operations in a Contested Environment
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages716-721
Number of pages6
ISBN (Electronic)9798350321814
ISBN (Print)9798350321814
DOIs
StatePublished - Dec 25 2023
Event2023 IEEE Military Communications Conference, MILCOM 2023 - Boston, United States
Duration: Oct 30 2023 → Nov 3 2023

Publication series

NameMILCOM 2023 - 2023 IEEE Military Communications Conference (MILCOM)

Conference

Conference2023 IEEE Military Communications Conference, MILCOM 2023
Country/TerritoryUnited States
CityBoston
Period10/30/23 → 11/3/23

Keywords

  • Side channel analysis
  • anomaly detection
  • electromagnetic signals
  • generative adversarial networks

INL Publication Number

  • INL/CON-24-79663
  • 182165

Fingerprint

Dive into the research topics of 'Do Programs Dream of Electromagnetic Signals? Towards GAN-based Code-to-Signal Synthesis'. Together they form a unique fingerprint.

Cite this