re-tls

Analyzes TLS traffic via JA3/JA4 fingerprinting, certificate inspection, and SSLKEYLOG decryption.

64|9|Updated Aug 17, 2026
One-click install
npx skills add https://github.com/dslsdzc/rev-skills --skill re-tls-dslsdzc
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: re-tls
Source: https://github.com/dslsdzc/rev-skills/tree/main/.claude/skills/re-tls
Command: npx skills add https://github.com/dslsdzc/rev-skills --skill re-tls-dslsdzc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Encrypted TLS traffic hides the plaintext needed for malware C2 analysis, firmware callback inspection, and protocol reverse engineering, and analysts need a structured way to fingerprint clients, inspect certificates, and decrypt sessions when keys are available. ## Core Features & Use Cases - Client Fingerprinting: Extract JA3/JA4 fingerprints from ClientHello messages with tshark and cluster sessions to identify suspicious client stacks. - Certificate Analysis: Parse certificate chains with openssl x509 to detect self-signed certs, short validity periods, and certificate reuse across C2 domains. - Traffic Decryption: Decrypt TLS 1.2 and 1.3 sessions using SSLKEYLOGFILE keylogs in Wireshark/tshark, or apply mitmproxy with Frida-based certificate pinning bypasses. - Use Case: Given a pcap of suspected malware beaconing, cluster JA3 fingerprints to isolate the malicious client, extract and inspect its server certificate, then decrypt the session with a captured keylog to recover the C2 commands. ## Quick Start Analyze the attached capture file out.pcap to fingerprint TLS clients, inspect the server certificate, and decrypt the traffic using my keys.log file.

Frequently Asked Questions about re-tls

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decrypt TLS traffic with Wireshark or tshark?▼

Decrypt TLS traffic by setting the SSLKEYLOGFILE environment variable before launching Chrome or Firefox, then point Wireshark or tshark to the keylog file. Use tshark -r capture.pcap -o tls.keylog_file:keys.log to re-parse and view plaintext HTTP fields.

How to extract JA3 and JA4 fingerprints from a pcap file?▼

Extract JA3 fingerprints with tshark -r out.pcap -Y 'tls.handshake.type == 1' -T fields -e tls.handshake.ja3. JA4 requires Wireshark 4.2 or later and uses the tls.handshake.ja4 field; cluster results with sort and uniq to group client stacks.

Why can't I decrypt TLS 1.3 traffic with a master secret?▼

TLS 1.3 has no master secret; it uses per-session traffic secrets recorded in the keylog as CLIENT_HANDSHAKE_TRAFFIC_SECRET and similar entries. Hand the keylog file directly to Wireshark or tshark, which automatically derives record keys for both TLS 1.2 and 1.3.

What tools can bypass certificate pinning for traffic analysis?▼

Bypass certificate pinning by using Frida to hook validation functions like SSL_CTX_set_verify or X509_verify_cert so they return success, then route traffic through mitmproxy. Perform this in a sandboxed environment and document the bypass method and target version.

When is TLS traffic impossible to decrypt?▼

Decryption is impossible when only a pcap exists without session keys, because ECDHE forward secrecy keeps session keys in endpoint memory only. In that case, fall back to metadata analysis of SNI, certificates, packet lengths, and timing patterns.