Kaveh Shamsi

Dr. Kaveh Shamsi


Research Focus & Metrics

Academic Career Length

6Years (2021-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
3 November 2021 in IEEE Transactions on Information Forensics and Security
Verified
Journal Article
Closed access
KSKaveh Shamsi
Kaveh Shamsi
YJYier Jin
Yier Jin
Many logic locking schemes have been proposed and subsequently broken in recent years most notably by oracle-guided SAT-solver-based attacks. This has in part been due to a lack of formal definitions of security. Recent work has however taken the first steps towards this by defining some notions of security. One such notion, exact-functional-secrecy (EFS) is satisfied as soon as the attacker is not able to learn the precise functionality of the original circuit. This is less stringent than the approximate-functional-secrecy (AFS) notion of security which captures approximation-resiliency. This paper focuses on EFS. We present first a novel SAT-based attack that can automatically divide the deobfuscation of a locked circuit into two different processes: a) deobfuscating high-activity/entropy nets which contribute to AFS and are best handled by a few queries and heavy SAT-solving, and b) deobfuscating low-activity nets which require many useless queries in search of a few rare informative queries. The attack, called the rare-fast-querying (RFQ) SAT attack, guarantees key-correctness for logic outside of low-activity cones, and is not exclusive to a specific low-activity locking scheme. We show how the RFQ attack can under some conditions, avoid exponential querying altogether. Given the insight from this attack, we then present a deeper look into EFS and discuss simple techniques to achieve always-exponential EFS with bearable overhead. We show how one can take advantage of the abundance of comparator logic at the RT-level of control-oriented designs to achieve EFS with even less overhead via absorbing existing structures.

13 December 2024 in ACM Transactions on Design Automation of Electronic Systems
Verified
Journal Article
Open access
GZGuangwei Zhao
Guangwei Zhao
KSKaveh Shamsi
Kaveh Shamsi
Recent work has shown that graph neural networks (GNNs) can be used to recover high-level word operators and their boundaries in gate-level netlists. Unlike formal methods, however, the GNN does not prove functional equivalence. As such, there is a question of whether structural transforms like circuit rewrites that preserve the functionality of the circuit can diminish the performance of GNN-based operator detection. In this work, we explore this problem by performing simple rewrites on benchmark circuits and showing that indeed there is a performance degradation. We propose new features and learning strategies that can alleviate this. Finally, we develop a rewriting framework that aims to optimize GNN accuracy degradation, which translates to a fine-grained adversarial circuit rewriting of sorts. This can have applications in circuit obfuscation or further improving reverse engineering by providing synthetic training data. We show how this methodology beats non-adversarial rewriting under the same area overhead.

5 June 2023
Verified
Conference Paper
Open access
KSKaveh Shamsi
Kaveh Shamsi
GZGuangwei Zhao
Guangwei Zhao
Generic side-channel attacks, unlike traditional CPA/DPA which are specialized to individual cryptographic circuits, can take in an arbitrary circuit or its power model and try to learn user-designated secrets from its side-channel traces. In this paper, we explore the use of machine learning in the context of such generic attacks. We discuss and demonstrate the challenges of using end-to-end (trace-to-key) learning on generic circuits with larger key sizes. We instead propose a couple of ways to use machine learning to assist recent pseudo-Boolean solver-based generic attacks and report their effectiveness on FPGA power traces.

22 August 2022 in Cryptography
Verified
Journal Article
Open access
PDF file
RDRajesh Kumar Datta
Rajesh Kumar Datta
GZGuangwei Zhao
Guangwei Zhao
KBKanad Basu
Kanad Basu
KSKaveh Shamsi
Kaveh Shamsi
Key-based circuit obfuscation or logic-locking is a technique that can be used to hide the full design of an integrated circuit from an untrusted foundry or end-user. The technique is based on creating ambiguity in the original circuit by inserting “key” input bits into the circuit such that the circuit is unintelligible absent a correct secret key. Clock signals have traditionally been avoided in locking in order to not corrupt the timing behavior of the locked circuit. In this paper, we explore the case where the clock signal itself may be obfuscated by ambiguating its frequency or pattern. Along with discussing formal notions of security in this context, we present practical ways to deobfuscate such designs using techniques from multi-rate model-checking. We present experimental data on deobfuscation runtime on a set of sequential benchmark circuits. Our results show that naive random clock obfuscation may not provide more security per overhead than traditional random keyed-gate insertion. We discuss how clock obfuscation may be a more attractive choice for special circuit designs that are inherently multi-clock/asynchronous.

12 June 2024
Verified
Conference Paper
Open access
RDRajesh Kumar Datta
Rajesh Kumar Datta
GZGuangwei Zhao
Guangwei Zhao
DJDipali Jain
Dipali Jain
KSKaveh Shamsi
Kaveh Shamsi

20 January 2025
Verified
Conference Paper
Open access
DJDipali Deepak Jain
Dipali Deepak Jain
GZGuangwei Zhao
Guangwei Zhao
RDRajesh Kumar Datta
Rajesh Kumar Datta
KSKaveh Shamsi
Kaveh Shamsi
Oracle-guided circuit deobfuscation (or learning) is the problem of disambiguating an obfuscated (partially hidden) circuit given black-box access to it. This has applications in various hardware security areas such as analyzing the security of circuit obfuscation defense schemes, side-channel analysis, reverse engineering, and hardware Trojan detection. Generic deobfuscation of analog circuits has received less attention than the digital counterpart with existing methods relying on manual expert work to extract closed-form equations from the circuit. In this work, we move towards a significantly more automated process by using a combination of machine learning and Newton-method-based analog circuit optimization. We showcase how this hybrid scheme is superior to either standalone approach in terms of runtime and accuracy on a set of analog circuits that include amplifiers, filters, and oscillators. We achieve >98% average accuracy without any manual expert equation extraction in addition to demonstrating a superior resilience to process variation.