Cunning With CNG: Soliciting Secrets From Schannel
summary
Demonstrates that Schannel/CNG leaks decryptable secrets from memory so TLS sessions that use ephemeral ECDHE are recoverable by extract master keys and related blobs from LSASS and process memory; uses WinDbg, Volatility/Recall plugins, mimikatz/BCrypt artifacts, Jesse Kornblum’s scanner and a modified RDP‑replay to dump keys into Wireshark and successfully replay RDP session. Cache holds entries for 10 hours default cache and up to 20,000 entries per client/server, and DPAPI master keys are recoverable in memory so persistent private keys and session tickets can be decrypted.
AI-written summary · about
chapters (27)
- 0:00Intro
- 2:08Black Hat Sound Bytes
- 3:06Disclaimer
- 4:00The infamous TLS Handshake
- 7:29Perfect Forward Secrecy
- 10:13Schannel & CNG
- 11:32Schannel Prefered Cipher Suites
- 12:31Microsoft's TLS/SSL Docs
- 13:16Schannel Ops
- 14:01CNG Key Isolation
- 14:26Background Summary
- 14:37What are we trying to accomplish?
- 15:53The keys? What do they get us?
- 17:44Session Keys
- 20:53The Norypt SSL Provider (ncryptsslp.dll)
- 21:48Pre-Master Secret (PMS)
- 23:12Master Secret Mapped to Unique Identifier
- 23:58Ephemeral & Persistent Private keys
- 24:489 Ephemeral Private Key
- 26:271 Persistent Private key
- 27:337 Decrypting Persistent Key - DPAPI
- 29:59Session Ticket key
- 31:13Decrypting Session Tickets
- 33:13Inherent Metadata TLS Provides
- 35:13Schannel Caching Parameters
- 37:21This is your Schannel Cache (x64)
- 39:49Limitations
related talks
01h 02mCQTools: The New Ultimate Hacking Toolkit
54mAdventures in the Underland: The CQForensic Toolkit as a Unique Weapon Against Hackers
32mExplore Adventures in the Underland: Forensic Techniques against Hackers
54mDPAPI and DPAPI-NG Decrypting All Users’ Secrets and PFX Passwords
47mFinding a Needle in an Encrypted Haystack
39mI Watched You Roll the Die: Unparalleled RDP Monitoring Reveal Attackers' Tradecraft
40mExploiting Windows Hello for Business
52mAdventures in Underland: Hacker Tricks to Stay Under the...
