Published June 26, 2026 | Version v1

Real-time Instruction-Level Anomaly Detection for Embedded Applications using AI

  • 1. ROR icon Laboratoire des Sciences et Techniques de l'Information de la Communication et de la Connaissance
  • 2. ROR icon IMT Atlantique

Description

Bare-metal embedded systems, such as ARM Cortex-M4-based devices, are vulnerable to attacks such as buffer overflows due to the lack of operating system protection. This paper presents a novel approach for detecting standard C library functions -such as memcpy, memset, strncat-that are susceptible to such vulnerabilities by analyzing micro-architectural instruction traces.

We propose machine learning pipelines, including CNN-, LSTM-, and autoencoder-based detectors. Our approach uses data pre-processing techniques, such as sliding windows with varying stride are employed to optimize classification accuracy.

Evaluating the algorithm with 25 custom workloads simulating common weaknesses (e.g., CWE-120, CWE-126) shows 93.89% TPR, 73.19% TNR, 26.81% FPR, and 6.11% FNR.

This work advances IoT security by enabling online and real-time vulnerable function identification supporting zero-day attack detection. This goes beyond existing techniques targeting only higher-level platforms.

Files

Real-time Instruction-Level Anomaly Detection for Embedded Applications using AI.pdf