CyberChef icon indicating copy to clipboard operation
CyberChef copied to clipboard

Feature request: Add Static PCAP Credential and NTLM/Kerberos Hash Extraction Operations

Open solcoteh opened this issue 6 months ago • 0 comments

Hello CyberChef team,

I hope you are doing well.

I would like to respectfully suggest a new feature for CyberChef related to static PCAP analysis, especially for small forensic, DFIR, SOC, and CTF-style packet captures.

Recently, while working on a TryHackMe room called “Block”, I noticed that CyberChef is already very helpful for many decoding and transformation tasks, but there is still a gap when the input is a small PCAP file that contains authentication material such as NTLMv2, SMB, Kerberos, or other credential-related protocol data.

A very useful addition would be a static PCAP credential and hash extraction operation or recipe group, inspired by tools such as PCredz.

The idea is not to add live capture, offensive automation, or password cracking into CyberChef. Instead, the feature would focus only on safely parsing a user-provided PCAP/PCAPNG file in the browser and extracting useful authentication artifacts for authorized analysis.

For example, an analyst could drag a small PCAP file into CyberChef and use operations such as:

  • Extract NTLMv1 hashes from PCAP
  • Extract NTLMv2 hashes from PCAP
  • Extract Kerberos AS-REQ / etype 23 hashes from PCAP
  • Extract SMB/NTLMSSP authentication fields
  • Extract authentication-related indicators from HTTP, LDAP, SMB, DCE/RPC, MSSQL, FTP, SMTP, IMAP, POP3, etc.
  • Output Hashcat-compatible and John-compatible formats where possible
  • Output structured JSON / table format for easier analysis
  • Deduplicate repeated credentials or repeated authentication attempts
  • Show packet metadata such as source IP, destination IP, protocol, timestamp, username, domain, and extracted hash material

For NTLMv2 specifically, it would be very helpful if CyberChef could extract and display fields such as:

  • Username
  • Domain
  • Workstation
  • NTLM Server Challenge
  • NTProofStr
  • NTLMv2 Blob
  • NTLMv2 Response
  • Encrypted Session Key, if present
  • SMB Session ID, if available
  • Hashcat mode 5600 compatible line, for example: USER::DOMAIN:SERVER_CHALLENGE:NTPROOFSTR:BLOB

This would make CyberChef much more useful in situations where the analyst only has a small network capture and wants to quickly understand what authentication data is present.

A possible workflow could look like this:

  1. Drop a small PCAP/PCAPNG file into CyberChef
  2. Run “Extract NTLMv2 from PCAP”
  3. CyberChef displays:
    • Username
    • Domain
    • Server challenge
    • NTProofStr
    • Blob
    • Encrypted session key
    • Hashcat-compatible NTLMv2 hash
  4. The analyst can copy the hash to Hashcat/John if they are working in an authorized lab, CTF, or DFIR environment

This could be especially useful for:

  • Blue team analysts
  • DFIR investigators
  • SOC teams
  • Malware analysts
  • CTF players
  • Students learning Windows authentication
  • People who want quick static analysis without installing a full toolchain

Important safety boundaries:

  • No live packet capture
  • No network sniffing
  • No password cracking inside CyberChef
  • No credential reuse or login automation
  • Local/static parsing only
  • Clear warning that the feature must only be used on authorized captures
  • Optional file-size limits to avoid performance issues in the browser
  • Optional “safe mode” that only extracts hashes and protocol metadata, not plaintext credentials

This feature could start small and grow step by step. Even an initial implementation that only supports NTLMSSP over SMB/HTTP and outputs NTLMv2 Hashcat-compatible lines would already be very useful.

Later improvements could add more protocols and better output formatting.

References:

  • PCredz: https://github.com/lgandx/PCredz

  • TryHackMe Block room: https://tryhackme.com/room/blockroom

  • NTLMv1 vs NTLMv2 background: https://www.praetorian.com/blog/ntlmv1-vs-ntlmv2/

  • Wireshark NTLMSSP notes: https://wiki.wireshark.org/NTLMSSP

Thank you very much for maintaining CyberChef. I think this would be a very practical feature for safe, static, browser-based network forensic analysis.

solcoteh avatar May 29 '26 23:05 solcoteh