Scope
This guide explores how automated, LLM-driven side-channel analysis (SCA) impacts teams involved in building, certifying, or operating payment hardware. Using DKG, a dual-layer knowledge graph and LLM-driven key-recovery framework, as a case study, we'll examine what's changed, what to reassess, and where risks lie.
Note: In this guide, SCA refers to side-channel analysis, not Software Composition Analysis.
Key Concepts and Definitions
Side-channel analysis involves measuring physical leakage, like power consumption or electromagnetic emissions, from a cryptographic implementation to recover a Data Encryption Key (DEK).
Non-profiled SCA means the attacker doesn't have an identical device to study in advance. Key recovery relies on statistical analysis of captured traces against hypotheses about intermediate values. DKG's authors highlight that running it end-to-end still requires expertise.
Dual-layer knowledge graph is DKG's graph schema, designed specifically for SCA. The upper layer contains configuration components, while the lower layer includes diagnostic strategies. Cross-layer relationships connect them, mapping symptoms to configuration changes.
Three-step extraction pipeline involves an LLM building the graph from raw technical documents without manual annotation: Locate & Rewrite, Triple Extraction, and Knowledge Fusion.
Closed-loop autonomous workflow means that at runtime, retrieved graph knowledge drives the attack, adjusting configuration based on diagnostics without waiting for a human analyst.
Requirements Breakdown
No PCI standard specifically names LLM-driven SCA. The relevant obligations are existing ones, and the research changes how defensible your evidence is.
| Obligation | Why automated SCA matters |
|---|---|
| FIPS 140-3 | Cryptographic module validation includes non-invasive attack mitigation. Reassess assumptions about attacker skill costs. |
| PCI PTS POI | Covers tamper resistance and side-channel protections for payment terminals. Vendor evaluations are only as current as the attack methods they modeled. |
| PCI DSS Requirement 3 | Protects stored account data and cryptographic keys. Key compromise at the hardware layer undermines the controls built on top. |
| PCI DSS Requirement 12.3.1 | Targeted risk analysis for flexible-frequency activities. Attacker capability is an input to that analysis. |
| NIST CSF (Identify/Protect) | Threat modeling inputs should reflect lowered attacker skill barriers. |
DKG reports a 97.5% end-to-end key-recovery success rate with DeepSeek-V3.2 across eight datasets covering AES, DES, and SM4 on smartcards, FPGAs, and MCUs. A text-retrieval-augmented baseline (ReAct-RAG) reached 68.8%. Across the open-weights backbones DeepSeek-V3.2, GLM-5, and Qwen3.5, the average was 93.3%.
These numbers describe research datasets, not production payment terminals. They show that structured knowledge, not model size alone, closes the gap between a generic agent and a working attack.
Implementation Guidance
1. Update your attacker model.
Many threat models assume key recovery needs a scarce specialist. The graph holds 1,334 entities and 1,813 relationships distilled from 166 technical documents. Treat expertise as a decreasing barrier, not a fixed one.
2. Ask vendors specific questions.
For HSMs, terminals, and secure elements, ask which SCA methods were evaluated, when, and whether evaluation covered automated or adaptive attack workflows. Inquire how often leakage testing is repeated after firmware changes.
3. Verify countermeasures empirically.
Masking, shuffling, and noise injection are only as good as their measured resistance. Request leakage assessment results on the exact implementation and algorithm you deploy, including DES and AES variants.
4. Reduce the value of a single recovered key.
Assume some device keys will eventually leak. Use unique per-device keys, derive keys using NIST SP 800-108 constructions, and keep any Key Encryption Key (KEK) out of field devices. Compromise of one device shouldn't expose the population.
5. Use the same tooling defensively.
The graph structure suits pre-deployment testing, where a closed-loop agent can probe your implementation before an attacker does. Your evaluation lab may scale testing the way attackers will.
6. Scope Point-to-Point Encryption (P2PE) assumptions.
A validated P2PE solution depends on device-resident keys. Confirm your solution provider's device lifecycle and key-injection controls account for physical-attack risk.
Common Pitfalls
- Treating the 97.5% figure as a field success rate. It was measured on research datasets. Real-world results depend on measurement access, noise, and countermeasures.
- Assuming algorithm strength equals implementation strength. AES, DES, and SM4 are mathematically sound. The attack targets the physical implementation.
- Ignoring attacker access requirements. SCA needs physical or near-physical access to capture traces. Your risk rating should weight device exposure: unattended terminals differ from rack-mounted HSMs in controlled data centers.
- Over-trusting automation on the defensive side. Automated frameworks inherit the gaps in their source literature and extraction accuracy. A clean automated result isn't proof of resistance. Pair it with expert review.
- Conflating SCA terms internally. Side-channel analysis and Software Composition Analysis share an acronym. Spell it out in policies and audit evidence.
- Waiting for a standards update. Requirements will lag the research. Your targeted risk analysis can account for it now.
Quick Reference Table
| Item | Detail |
|---|---|
| Framework | DKG: dual-layer knowledge graph plus LLM agent |
| Publisher | IACR ePrint report |
| Graph layers | Upper: configuration components; lower: diagnostic strategies |
| Extraction steps | Locate & Rewrite; Triple Extraction; Knowledge Fusion |
| Corpus | 166 technical documents |
| Graph size | 1,334 entities; 1,813 relationships |
| Targets tested | AES, DES, SM4 on smartcards, FPGAs, MCUs |
| Datasets | Eight |
| DKG + DeepSeek-V3.2 | 97.5% end-to-end key-recovery success |
| ReAct-RAG baseline | 68.8% |
| Open-weights average | 93.3% (DeepSeek-V3.2, GLM-5, Qwen3.5) |
| Relevant standards | FIPS 140-3; PCI PTS POI; PCI DSS Req. 3 and 12.3.1; NIST SP 800-108; NIST CSF |
| Primary action | Revisit attacker skill assumptions; demand current leakage evidence from vendors |
| Key limitation | Research datasets; physical access required; results not equal to field performance |
Bottom line: The research shows that organizing expert knowledge as a structured graph lets an LLM agent do work that previously needed specialists. Your countermeasures haven't weakened. The cost of testing them just dropped, for attackers and for you.





