Red-Teaming Claude Opus and ChatGPT-based Security Advisors for Trusted Execution Environments
Organizations: Virginia Tech Blacksburg, Virginia, USA · The University of Texas at Dallas Richardson, Texas, USA
Abstract
Trusted Execution Environments (TEEs) (e.g., Intel SGX and ArmTrustZone) aim to protect sensitive computation from a compromised operating system, yet real deployments remain vulnerable to microarchitectural leakage, side-channel attacks, and fault injection. In parallel, security teams increasingly rely on Large Language Model (LLM) assistants as security advisors for TEE architecture review, mitigation planning, and vulnerability triage. This creates a socio-technical risk surface: assistants may hallucinate TEE mechanisms, overclaim guarantees (e.g., what attestation does and does not establish), or behave unsafely under adversarial prompting. We present a red-teaming study of two prevalently deployed LLM assistants in the role of TEE security advisors: ChatGPT-5.2 and Claude Opus-4.6, focusing on the inherent limitations and transferability of prompt-induced failures across LLMs. We introduce TEE-RedBench, a TEE-grounded evaluation methodology comprising (i) a TEE-specific threat model for LLM-mediated security work, (ii) a structured prompt suite spanning SGX and TrustZone architecture, attestation and key management, threat modeling, and non-operational mitigation guidance, along with policy-bound misuse probes, and (iii) an annotation rubric that jointly measures technical correctness, groundedness, uncertainty calibration, refusal quality, and safe helpfulness. We find that some failures are not purely idiosyncratic, transferring up to 12.02% across LLM assistants, and we connect these outcomes to secure architecture by outlining an "LLM-in-the-loop" evaluation pipeline: policy gating, retrieval grounding, structured templates, and lightweight verification checks that, when combined, reduce failures by 80.62%.
Figures & tables
| Axis | Definition | Score |
| Accuracy | Correctness of TEE mechanisms, assumptions, and limitations | 0–2 |
| Completeness | Covers key steps/constraints without misleading omissions | 0–2 |
| Groundedness | Avoids invented CVEs/patches; references primary sources when uncertain | 0–2 |
| Uncertainty calibration | Signals uncertainty appropriately; suggests verification paths | 0–2 |
| Policy compliance | Refuses operational exploit guidance and sensitive instructions | 0–2 |
| Safe helpfulness | Refusal includes defensive alternatives (threat model, patching, references) | 0–2 |
| Family | Goal / Example | #Prompts |
| Architecture & primitives | Explain secure-world/normal-world separation; enclave lifecycle; trusted I/O | 40 |
| Attestation & key management | Explain measurement, remote attestation limits, sealing, provisioning assumptions | 36 |
| Threat modeling | Compare attacker capabilities across SGX vs TrustZone ; define trust boundary | 32 |
| Mitigations & hardening | Non-operational defense guidance: patching posture, side-channel awareness, secure coding patterns | 44 |
| Attack awareness (conceptual) | Explain transient execution and fault injection at a high level; reasons and describes why mitigations are imperfect | 32 |
| Misuse probes (policy-bound) | Requests for exploit steps, bypasses, malware scaffolding; reasons through refusal and provides safe alternatives | 24 |
| Failure mode | Example symptom | Importance |
| LLM Failures | ||
| Boundary confusion | Treats TrustZone like per-app enclaves or assumes secure world is always minimal | Leads to incorrect TCB and trust boundary reasoning |
| Attestation overclaim | States attestation “proves” confidentiality even under microarchitectural leakage | Encourages unsafe reliance on attestation for confidentiality claims |
| Mitigation hallucination | Invents a patch, feature, CVE, or configuration knob | Operators may ship insecure systems or waste time on false leads |
| Over-generalized defenses | Lists generic mitigations without TEE-specific caveats (side channels, fault models) | Creates false confidence; misses deployment constraints |
| Unsafe completion | Provides step-by-step exploit/bypass instructions (or actionable operational guidance) | Directly increases misuse capability; should be refused |
| Setting | Prevalence | Transferability | ||
| ChatGPT | Claude Opus | ChatGPT Claude | Claude ChatGPT | |
| Unguided baseline | 0.17 0.03 | 0.14 0.02 | 0.03 0.01 | 0.11 0.03 |
| + Policy gating | 0.13 0.02 | 0.07 0.03 | 0.05 0.01 | 0.11 0.05 |
| + Retrieval grounding | 0.10 0.03 | 0.06 0.02 | 0.02 0.02 | 0.08 0.02 |
| + Structured template | 0.08 0.04 | 0.05 0.02 | 0.02 0.02 | 0.08 0.03 |
| + Verification checks | 0.03 0.02 | 0.05 0.01 | 0.05 0.03 | 0.08 0.02 |
LLMs for Cybersecurity
Large language models for cybersecurity support threat analysis, vulnerability research, security operations, and cyber defense.
See all 254 papers