Skip to content
#edge computing Open access

Lightweight Security-by-Design for TinyML Models in Constrained Embedded Environments

Sep 2026 · Italian National Conference on Sensors · 0 citations · 12 references

TL;DR

This paper proposes a three-layer security-by-design architecture that reaches 94.3% accuracy, the highest of the models tested, while cutting attack success rate from over 60–84% down to 38.9% and raising the query cost for model extraction more than five times over the weakest baseline.

Abstract

TinyML models now run inference directly on microcontrollers with only kilobytes of memory, inside sensors, wearables, and industrial devices that often have no cloud link and no way to receive a patch once deployed. This makes them an easy target, since compressed models resist adversarial and extraction attacks less than full-precision models, but most TinyML research still treats security as a step added after compression rather than during it. This paper proposes a three-layer security-by-design architecture built to close that gap. The first layer scores candidate compressed models on a joint fitness function that combines clean accuracy, adversarial robustness, and model size before the final architecture is fixed. The second layer signs and verifies model weights with the lightweight ASCON cipher at boot and during over-the-air updates. The third layer is a runtime monitor that computes a live distribution-drift score on incoming queries and raises local defense strength once that score crosses a fixed threshold, without needing a cloud round trip. The full pipeline was validated on real microcontroller hardware, not simulation, and stays inside a 62 KB RAM budget with inference latency under 10 ms. Against real baseline models on Edge-IIoTset, the proposed method reaches 94.3% accuracy, the highest of the models tested, while cutting attack success rate from over 60–84% down to 38.9% and raising the query cost for model extraction more than five times over the weakest baseline. An ablation study and a five-seed statistical test confirm the gain holds and comes from the combination of all three layers, not from any single part.

Read PDF

Similar papers

Open access Oct 2026

Adversarial attack detection in resource-constrained environments: a stable and sequential federated learning architecture with TinyLlama-1.1B

Large language models (LLMs) create significant training bottlenecks on resource-constrained edge devices because of their massive size. Existing federated learning architectures typically require clients to train simultaneously; however, this leads to system crashes due to the high amount of VRAM required by LLMs. Whi...

Sevim Ceylan Böcekçi, Kazım Yıldız · 0 citations
Preprint Sep 2026

Understanding the Security Boundary of Obfuscation-based On-Device LLM Protection

This paper formalizes a set of obfuscation primitives, defined as dual-tuples of linear computations satisfying specific algebraic properties, and demonstrates that the matrix-level weight transformations of several representative efficient TSLP frameworks can be expressed as compositions of these primitives.

Han-Yi Zhou, Chen-Yang Li, Yuan-Zhe Pang et al. · 0 citations
#artificial intelligence Preprint Sep 2026

TERMon: Detecting Persistent Behavioral Threats in Edge AI via Hardware-Native Ternary Runtime Monitor

TERMon is a lightweight hardware runtime monitor that detects anomalies by observing inference behavior rather than re-executing or formally verifying the model, and represents class-conditional trusted behavior as hardware-efficient ternary patterns that are matched in parallel against a thermometer-encoded fingerprin...

Arish Sateesan, Edlira Dushku · 0 citations
Preprint Sep 2026

Your Model Is Leaking: Covert Information Transfer through LLM Residual Streams

A residual-stream covert-channel attack is introduced that maps messages to codewords and injects them into an intermediate residual stream through a compromised runtime hook and is scaled with the local residual norm using the signal-to-residual-norm ratio.

Ming-Yuan Li, Yan-Na Jiang, Guang-Sheng Yu et al. · 0 citations
Preprint Aug 2026

From Fleet to Lab: Revisiting the Security and Complexity of Industrial Rowhammer Mitigation

This paper studies efficient and secure Rowhammer mitigation at the Memory-Controller (MC). Rowhammer mitigation faces a fundamental tradeoff between tracking storage and mitigation rate: precise trackers (such as Misra-Gries) avoid unnecessary mitigations but require large CAM structures, whereas sampling-based scheme...

Hritvik Taneja, Moinuddin K. Qureshi · 1 citation

Related blog posts

Microsoft Research Blog Oct 6, 2026

What AI gets wrong and what failure teaches us

Jennifer Neville did not want to go into computer science—but that’s exactly where she landed. Neville discusses the starts and stops that led to her professional sweet spot and her work identifying “surprising failures” making it hard for AI to handle complexity.  The post What AI gets wrong and what failure teaches us appeared first on Microsoft Research.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.