-
Notifications
You must be signed in to change notification settings - Fork 5
/
spicy-noise.evt
13 lines (11 loc) · 964 Bytes
/
spicy-noise.evt
1
2
3
4
5
6
7
8
9
10
11
12
13
# This Spicy EVT file defines events which will be passed to Zeek.
#
# Copyright 2020, Verizon Media
# Licensed under the terms of the Apache 2.0 license. See LICENSE file in github.com/theparanoids/spicy-noise root directory for terms
protocol analyzer spicy::WireGuard over UDP:
parse with WireGuard::WG_MSG;
on WireGuard::WG_MSG -> event WireGuard::wg_msg($conn, self.msg_type, self.reserved_zero);
on WireGuard::INITIATION -> event WireGuard::initiation($conn, self.sender_index, self.unenc_ephemeral, self.enc_static, self.enc_timestamp, self.mac1, self.mac2 );
on WireGuard::RESPONSE -> event WireGuard::response($conn, self.sender_index, self.receiver_index, self.unenc_ephemeral, self.enc_nothing, self.mac1, self.mac2 );
on WireGuard::COOKIE -> event WireGuard::cookie($conn, self.receiver_index, self.nonce, self.encrypted_cookie );
on WireGuard::TRANSPORT -> event WireGuard::transport($conn, self.receiver_index, self.counter, self.enc_packet );