{
  "id": "2025/1251",
  "url": "https://opencryptology.org/2025/1251",
  "original_url": "https://eprint.iacr.org/2025/1251",
  "title": "Black Box to Blueprint: Visualizing Leakage Propagation in Deep Learning Models for SCA",
  "authors": [
    "Suvadeep Hajra",
    "Debdeep Mukhopadhyay"
  ],
  "affiliations": null,
  "abstract": "Deep learning (DL)-based side-channel analysis (SCA) has emerged as a powerful approach for extracting secret information from cryptographic devices. However, its performance often deteriorates when targeting implementations protected by masking and desynchronization-based countermeasures, or when analyzing long side-channel traces. In earlier work, we proposed EstraNet, a Transformer Network (TN)-based model designed to address these challenges by capturing long-distance dependencies and incorporating shift-invariant attention mechanisms.\n\nIn this work, we perform an in-depth analysis of the internal behavior of EstraNet and propose methods to further enhance its effectiveness. First, we introduce {\\bf DL-ProVe} (Deep Learning Leakage Propagation Vector Visualization), a novel technique for visualizing how leakage from secret shares in a masked implementation propagates and recombines into the unmasked secret through the layers of a DL model trained for SCA. We then apply DL-ProVe to EstraNet, providing the first detailed explanation of how leakage is accumulated and combined within such an architecture.\n\nOur analysis reveals a critical limitation in EstraNet’s multi-head GaussiP attention mechanism when applied to long traces. Based on this insights, we identify a new architectural hyperparameter which enables fine-grained control over the initialization of the attention heads. Our experimental results demonstrate that tuning this hyperparameter significantly improves EstraNet’s performance on long traces (with upto 250K features), allowing it to reach the guessing entropy 1 using only 3 attack traces while the original EstraNet model fails to do so even with 5K traces.\n\nThese findings not only deepen our understanding of EstraNet’s internal workings but also introduce a robust methodology for interpreting, diagnosing, and improving DL models for SCA.",
  "category": "Attacks and cryptanalysis",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Black Box to Blueprint: Visualizing Leakage Propagation in Deep Learning Models for SCA” by Suvadeep Hajra, Debdeep Mukhopadhyay, Cryptology ePrint Archive, Paper 2025/1251, https://eprint.iacr.org/2025/1251. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2025-07-07T13:48:30Z",
    "updated": "2025-07-22T06:32:17Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2025/1251.pdf",
    "sha256": "30ce4dafb4c56f13b813ecbdb30bdd5a0c98be9c180f0435c5b122c4e3b7f031",
    "size": 507492,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2025/1251/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/1251.pdf",
      "size": 507492,
      "sha256": "30ce4dafb4c56f13b813ecbdb30bdd5a0c98be9c180f0435c5b122c4e3b7f031",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2025/1251/versions/20250712T002705Z.pdf",
      "captured_at": "2025-07-12T00:27:05Z",
      "label": "copy captured 2025-07-12",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250712002705id_/https://eprint.iacr.org/2025/1251.pdf",
      "size": 507528,
      "sha256": "25b87d208e33772439f7dc3c17f54cfe9c297b2d2582cacbb914873bbb6a3e94",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2025/1251.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 507492
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260104122624id_/https://eprint.iacr.org/2025/1251.pdf",
      "captured_at": "2026-01-04T12:26:24Z",
      "size": 486624
    }
  ],
  "bibtex": "@misc{cryptoeprint:2025/1251,\n      author = {Suvadeep Hajra and Debdeep Mukhopadhyay},\n      title = {Black Box to Blueprint: Visualizing Leakage Propagation in Deep Learning Models for SCA},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1251},\n      year = {2025},\n      url = {https://eprint.iacr.org/2025/1251}\n}"
}
