Hardware Security in Spin-Based Computing-In-Memory: Analysis, Exploits, and Mitigation Techniques

Xueyan Wang, Jianlei Yang, Yinglin Zhao, Xiaotao Jia, Gang Qu, Weisheng Zhao

Introduction: The Memory Wall and the Rise of CIM

Traditional Von-Neumann architectures are increasingly constrained by the "memory wall," a performance bottleneck where the energy and time required to move data between the processor and memory far exceed the costs of the computation itself. Computing-In-Memory (CIM) has emerged as a promising solution, performing logic operations directly within the memory array to minimize data movement. Among various CIM technologies, Spin-based Computing-In-Memory (SpinCIM), utilizing Spin-Transfer Torque Magnetic RAM (STT-MRAM), offers non-volatility, high density, and low power consumption. However, as these architectures move toward mainstream adoption, their security implications remain largely unexplored.

The Dual Nature of SpinCIM Security

This research provides a comprehensive security analysis of SpinCIM, characterizing it as a double-edged sword for hardware security. While the architecture inherently mitigates several traditional attack vectors, it simultaneously introduces novel vulnerabilities rooted in the physical properties of magnetic tunnel junctions (MTJs).

The security landscape of SpinCIM, illustrating its role in mitigating traditional attacks while introducing new vulnerabilities.

Security Advantages: Natural Obfuscation and Side-Channel Resilience

One of the primary security benefits of SpinCIM is its inherent resistance to physical reverse engineering. In traditional CMOS-based logic, the function of a circuit (e.g., a NAND or XOR gate) is identifiable through its physical layout and netlist. In SpinCIM, however, the hardware layout is a uniform memory array. The specific logic function is determined at runtime by control signals, effectively hiding the logic within the memory structure.

Comparison of reverse engineering outcomes between standard arithmetic units and SpinCIM-enhanced memory arrays.

Furthermore, SpinCIM enhances resilience against Side-Channel Attacks (SCA). Traditional memory systems typically exhibit distinct power signatures for simple read and write operations. SpinCIM introduces a wider variety of operations (e.g., CimAND, CimOR, CimXOR) with overlapping power profiles. This increased complexity, combined with reduced data transfer over the system bus, significantly complicates an attacker's ability to extract sensitive information, such as cryptographic keys, through power analysis.

New Vulnerabilities: Thermal Exploits and Read Margins

Despite these gains, the transition to "circuit-less" logic introduces critical reliability and security gaps. To perform logic, SpinCIM relies on sensing the accumulated current from multiple memory cells. This mechanism significantly reduces the "read margin"—the current differential used to distinguish between logic states. Simulations using a 45nm Process Development Kit (PDK) show that the read margin drops from approximately 5.5 $\mu$A in standard memory mode to as low as 2.5 $\mu$A in computing mode.

This narrowed margin makes the system highly susceptible to environmental stressors. Because the resistance of STT-MRAM is temperature-dependent, the researchers demonstrated that an attacker could use localized heat (such as from a laser) to intentionally flip logic gates. In a simulated authentication case study, applying 100°C of heat increased the failure rate of a CimAND operation by 8.8x. This allows an attacker to potentially bypass security checks by forcing a logic gate to misinterpret inputs—for instance, effectively changing an AND condition in a password check to an OR condition.

Conclusion and Future Directions

SpinCIM represents a significant shift in hardware architecture that requires a parallel shift in security modeling. While it offers robust protection against traditional reverse engineering and side-channel analysis, its reliance on sensitive analog current summation creates new opportunities for environmental exploits. Future research must focus on developing "disturbance-aware" sense amplifiers and specialized Error Correction Codes (ECC) capable of handling the unique summed-current errors inherent in CIM operations to ensure these high-performance systems are also secure.

Summary updated

BibTeX
@article{wang2020hardware,
  author = {Xueyan Wang and Jianlei Yang and Yinglin Zhao and Xiaotao Jia and Gang Qu and Weisheng Zhao},
  title = {{Hardware Security in Spin-Based Computing-In-Memory: Analysis, Exploits, and Mitigation Techniques}},
  journal = {ACM J. Emerg. Technol. Comput. Syst.},
  year = {2020},
  doi = {10.1145/3397513},
}
Figure