Runtime Detection of Adversarial Attacks in AI Accelerators Using Performance Counters

Habibur Rahaman, Atri Chatterjee, Swarup Bhunia
3/10/2025
cs.CRcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Rapid adoption of AI technologies raises several major security concerns, including the risks of adversarial perturbations, which threaten the confidentiality and integrity of AI applications. Protecting AI hardware from misuse and diverse security threats is a challenging task. To address this challenge, we propose SAMURAI, a novel framework for safeguarding against malicious usage of AI hardware and its resilience to attacks. SAMURAI introduces an AI Performance Counter (APC) for tracking dynamic behavior of an AI model coupled with an on-chip Machine Learning (ML) analysis engine, known as TANTO (Trained Anomaly Inspection Through Trace Observation). APC records the runtime profile of the low-level hardware events of different AI operations. Subsequently, the summary information recorded by the APC is processed by TANTO to efficiently identify potential security breaches and ensure secure, responsible use of AI. SAMURAI enables real-time detection of security threats and misuse without relying on traditional software-based solutions that require model integration. Experimental results demonstrate that SAMURAI achieves up to 97% accuracy in detecting adversarial attacks with moderate overhead on various AI models, significantly outperforming conventional software-based approaches. It enhances security and regulatory compliance, providing a comprehensive solution for safeguarding AI against emergent threats.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{rahaman2025runtime,
  title  = {Runtime Detection of Adversarial Attacks in AI Accelerators Using Performance Counters},
  author = {Habibur Rahaman and Atri Chatterjee and Swarup Bhunia},
  year   = {2025},
  eprint = {2503.07568},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.07568v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.07568.svg)](https://codeofpaper.com/paper/2503.07568)

Discussion