Hybrid Cryptographic Monitoring System for Side-Channel Attack Detection on PYNQ SoCs Conference: International Conference for High Performance Computing, Networking, Storage, and Analysis (SC25); November 16–21, 2025; St. Louis, MO

Nishant Chinnasami, Rasha Karakchi (Advisor) · 2025

Read Hybrid Cryptographic Monitoring System for Side-Channel Attack Detection on PYNQ SoCs Conference: International Conference for High Performance Computing, Networking, Storage, and Analysis (SC25); November 16–21, 2025; St. Louis, MO by Nishant Chinnasami, Rasha Karakchi (Advisor) (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-21606.txt.

Introduction

Nishant Chinnasami, with advisor Rasha Karakchi, builds a guard against sneaky attacks on encryption hardware in a 2025 paper. Standard encryption is mathematically sound, but on real chips attackers can pry secrets out through timing glitches or injected faults. Their monitoring system watches an encryption chip on a low cost programmable board for anomalies in real time.

Two detectors run together: a simple timing threshold and a machine learning classifier trained on corrupted blocks. Faults were simulated with delays and scrambled outputs to gather training data. The learning approach proved more accurate than fixed thresholds while staying fast enough for small devices. The design needs no changes inside the encryption itself and no special hardware counters, suiting low power systems.

Catalog record

CREATORNishant Chinnasami, Rasha Karakchi (Advisor)
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE10 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2508-21606

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

Hybrid Cryptographic Monitoring System for Side-Channel Attack Detection on PYNQ SoCs Conference: International Conference for High Performance Computing, Networking, Storage, and Analysis (SC25); November 16–21, 2025; St. Louis, MO Nishant Chinnasami, Rasha Karakchi (Advisor) Abstract . AES-128 encryption is theoretically secure but vulnerable in practical deployments due to timing and fault injection attacks on embedded systems. This work presents a lightweight dual-detection framework combining statistical thresholding and machine learning (ML) for real-time anomaly detection. By simulating anomalies via delays and ciphertext corruption, we collect timing and data features to evaluate two strategies: (1) a statistical threshold method based on execution time and (2) a Random Forest classifier trained on block-level anomalies. Implemented on CPU and FPGA (PYNQ-Z1), our results show that the ML approach outperforms static thresholds in accuracy, while maintaining real-time feasibility on embedded platforms. The framework operates without modifying AES internals or relying on hardware performance counters. This makes it especially suitable for low-power, resource-constrained systems where detection accuracy and computational efficiency must be balanced. 1. Introduction The Advanced Encryption Standard (AES) has become the cornerstone for securing data across diverse platforms, from cloud data centers to embedded IoT devices ( karakchi2025toward ) . Among its variants, AES-128 remains widely adopted for its optimal balance between performance and security. However, despite its cryptographic soundness, real-world implementations often leak unintended information on the side channel ( kocher1996timing ; bernstein2005cache ) , opening the door to physical attacks or timing-based attacks. Timing attacks exploit variations in encryption latency to infer secret keys. Kocher’s seminal work ( kocher1996timing ) exposed how control flow and cache behavior can leak timing differences. Bernstein extended this by showing that even remote attacks could succeed on shared systems ( bernstein2005cache ) , highlighting how software-only observations can defeat theoretically secure algorithms. Fault injection attacks, such as differential fault analysis (DFA) ( biham1997differential ) , manipulate the computation process, potentially revealing internal state values or leading to predictable ciphertext corruption. Countermeasures such as constant-time coding and masking ( cryptoeprint:2017:106 ; choi2020advanced ) mitigate some risks but often require hardware modifications or introduce runtime overhead, which is infeasible in low-power or embedded systems. Some defenses rely on hardware duplication or error-detection codes, but these are impractical for widespread deployment in low-cost systems. Recently, machine learning-based anomaly detection has gained traction, analyzing traces like power or execution time to detect malicious behavior ( wang2021machine ; yu2023ml ; zhang2020random ; abdellatif2021ml ; liu2023deep ) . Although promising, such approaches typically require large labeled datasets and computationally heavy models, making real-time deployment on embedded devices difficult. In this work, we develop a lightweight threshold-based timing anomaly detector Figure 1 that flags encryption anomalies using only execution time. This method is non-intrusive, requires no access to internal AES logic, and avoids external sensors, making it ideal for embedded deployments. To further enhance granularity, we complement this with a supervised machine learning approach that uses timing and ciphertext features. We evaluated both methods on a multicore CPU and the Xilinx PYNQ-Z1 FPGA SoC ( xilinxpynqz1 ) , comparing performance, accuracy, and feasibility. Our results provide insight into how statistical and ML-based detectors behave under controlled anomaly injection and serve as a foundation for future hybrid cryptographic monitoring systems. Figure 1. Proposed Detection Framework 2. Methodology In this work, we develop and evaluate a statistical timing-based anomaly detection framework to enhance the security of AES-128 encryption. Our methodology consists of anomaly injection, parallel encryption execution, timing measurement, and threshold-based anomaly detection. We evaluated this methodology on both a standard multi-core CPU (8 logical cores and 3.2 GHz) environment and a Xilinx PYNQ Z1 platform, which is equipped with a dual-core ARM Cortex-A9 processor. 2.1. Anomaly Injection Mechanism To simulate potential threats, we inject two types of anomalies into selected encryption blocks: • Timing Delay Injection: A short delay (5–20 ms) is added before encryption to simulate cache contention or intentional software slowdowns, mimicking timing-based side-channel behavior. • Fault Injection (Bit Flip): The first byte of the plaintext block is XORed with 0xFF before encryption, simulating data corruption from voltage glitches or electromagnetic interference. Each anomaly-injected block is labeled malicious. The injection ratio r determines the percentage of blocks modified (typically 10%–30%). These modifications ensure that both latency- and content-based deviations are present in the data set. The complete procedure is described in Algorithm 1 . Input: Number of blocks n , CPU cores c , Anomaly ratio r Output: Encrypted blocks, anomaly detection report Generate n random plaintext blocks; For each block: With probability r , inject anomaly (delay or fault); Parallelize using c cores: For each block: if anomaly == delay then Sleep for a short random time; end if if anomaly == fault then Flip first byte of block; end if Pad/truncate block to 16 bytes; Encrypt block with AES-128 in ECB mode; Record encryption time; Compute time threshold for anomaly detection; For each result: if encryption_time > threshold then Mark as malicious; end if Compute detection metrics (accuracy, false positives, etc.); Save results to Excel and display sample outputs; Algorithm 1 AES Encryption and Timing-Based Anomaly Detection AES-128 encryption is implemented in Electronic Code Book (ECB) mode using the PyCryptodome library ( pycryptodome ) . Each plaintext input is a 16-byte randomly generated block. We deploy the encryption framework on the PYNQ Z1 platform, which enables parallel processing using Python’s multiprocessing module. This setup mimics real-time cryptographic execution under multi-core embedded environments. 2.2. Timing-Based Anomaly Detection The threshold-based detection uses the following statistical rule: T=\mu+3\times\frac{\max-\min}{n} where \mu is the mean encryption time, \max and \min are the observed maximum and minimum times, and n is the total number of blocks. This rule is inspired by the empirical "3-sigma" rule used in statistical outlier detection ( hand2001idiot ) . Any block whose execution time exceeds T is flagged as potentially malicious. 2.3. Machine Learning-Based Detection To overcome the limitations of timing-only detection, we implement a supervised machine learning method using a Random Forest classifier. Features extracted from each block include encryption time and ciphertext bytes. The classifier is trained to detect anomalies such as fault-injected or delay-affected blocks. Algorithm 2 describes the ML-based anomaly detection procedure. Input: N : number of plaintext blocks, p : malicious percentage, c : CPU cores Output: Encrypted blocks, ML detection report Step 1: Generate Blocks for i\leftarrow 1 to N do Generate random 16-byte block B_{i} ; Inject anomaly with probability p/100 ; end for Step 2: Encrypt in Parallel foreach ( B_{i} , i , anomaly) in parallel with c cores do if anomaly then Randomly select anomaly type \in {delay, fault}; if delay then Sleep for short random time; end if else if fault then Flip first byte of B_{i} ; end if end if Pad/trim B_{i} to 16 bytes; Encrypt B_{i} using AES-128-ECB; Record encryption time t_{i} ; end foreach Step 3: Extract Features Create dataset with timing t_{i} and original block bytes; Step 4: Train ML Classifier Split dataset into train/test sets; Train Random Forest classifier; Predict labels on test set; Step 5: Evaluate and Report Calculate TP, FP, FN, Accuracy; Compute threshold T=\mu+3\times\frac{\max-\min}{N} ; Save results to Excel; Algorithm 2 AES Encryption with ML-Based Anomaly Detection 2.4. Experimental Setup The

Read the complete text