You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Pivot on the SNI sent in the ClientHello even when you cannot decrypt the payload
74
+
-`tls.handshake.extensions_alpn_str == "h2" or tls.handshake.extensions_alpn_str == "h3"`
75
+
- Split classic HTTPS, HTTP/2 and HTTP/3 capable sessions quickly
76
+
-`quic or http3`
77
+
- Find modern UDP/443 traffic that will be missed if you only review TCP conversations
71
78
72
79
### Search
73
80
74
81
If you want to **search** for **content** inside the **packets** of the sessions press _CTRL+f_. You can add new layers to the main information bar (No., Time, Source, etc.) by pressing the right button and then the edit column.
75
82
83
+
### Following multiplexed streams
84
+
85
+
Recent Wireshark versions can follow `TLS`, `HTTP/2` and `QUIC` streams directly. On noisy captures this is usually faster than only using `Follow TCP Stream`, especially when several requests share the same connection.
86
+
76
87
### Free pcap labs
77
88
78
89
**Practice with the free challenges of:**[**https://www.malware-traffic-analysis.net/**](https://www.malware-traffic-analysis.net)
@@ -83,10 +94,27 @@ You can add a column that shows the Host HTTP header:
83
94
84
95
.png>)
85
96
86
-
And a column that add the Server name from an initiating HTTPS connection (**ssl.handshake.type == 1**):
97
+
And a column that add the Server name from an initiating HTTPS connection (**tls.handshake.type == 1**):
87
98
88
99
 (1).png>)
89
100
101
+
If the capture is mostly encrypted, adding these fields as columns will speed up triage a lot:
102
+
103
+
-`tls.handshake.extensions_server_name`
104
+
-`tls.handshake.extensions_alpn_str`
105
+
-`tls.handshake.ja3`
106
+
-`tls.handshake.ja4` (Wireshark 4.2+)
107
+
108
+
This lets you cluster sessions by hostname, ALPN (`http/1.1`, `h2`, `h3`, etc.) and client fingerprint even when the payload itself stays encrypted. For decrypted HTTP/2 and HTTP/3 captures, it is also useful to add `http2.header.value` or `http3.headers.header.value` as columns and pivot on paths, authorities and other interesting metadata.
@@ -103,23 +131,31 @@ In current Wireshark instead of `bootp` you need to search for `DHCP`
103
131
104
132
### Decrypting https traffic with server private key
105
133
106
-
_edit>preference>protocol>ssl>_
134
+
_edit > preferences > protocols > tls >_
107
135
108
136
.png>)
109
137
110
138
Press _Edit_ and add all the data of the server and the private key (_IP, Port, Protocol, Key file and password_)
111
139
140
+
This method only works in a limited number of cases. For current TLS 1.3 / ECDHE traffic, the session key log method below is usually the practical option.
141
+
112
142
### Decrypting https traffic with symmetric session keys
113
143
114
-
Both Firefox and Chrome have the capability to log TLS session keys, which can be used with Wireshark to decrypt TLS traffic. This allows for in-depth analysis of secure communications. More details on how to perform this decryption can be found in a guide at [Red Flag Security](https://redflagsecurity.net/2019/03/10/decrypting-tls-wireshark/).
144
+
Both Firefox and Chrome have the capability to log TLS session keys, which can be used with Wireshark to decrypt TLS traffic. This allows for in-depth analysis of secure communications. More details on how to perform this decryption can be found in a guide at [Red Flag Security](https://redflagsecurity.net/2019/03/10/decrypting-tls-wireshark/). This is also the normal route for decrypting modern TLS 1.3 and QUIC/HTTP/3 captures.
115
145
116
-
To detect this search inside the environment for to variable `SSLKEYLOGFILE`
146
+
To detect this search inside the environment for the variable `SSLKEYLOGFILE`
117
147
118
148
A file of shared keys will look like this:
119
149
120
150
.png>)
121
151
122
-
To import this in wireshark go to \_edit > preference > protocol > ssl > and import it in (Pre)-Master-Secret log filename:
152
+
If the capture is `pcapng`, check whether it already contains embedded decryption secrets before hunting the host filesystem:
0 commit comments