-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathcreate-udp-socket.yml
More file actions
31 lines (31 loc) · 956 Bytes
/
create-udp-socket.yml
File metadata and controls
31 lines (31 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
rule:
meta:
name: create UDP socket
namespace: communication/socket/udp/send
authors:
- moritz.raabe@mandiant.com
- joakim@intezer.com
- michael.hunhoff@mandiant.com
scopes:
static: basic block
dynamic: call
mbc:
- Communication::Socket Communication::Create UDP Socket [C0001.010]
references:
- https://learn.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-socket
- https://man7.org/linux/man-pages/man2/socket.2.html
features:
- or:
- and:
- number: 2 = AF_INET
- number: 2 = SOCK_DGRAM
- number: 17 = IPPROTO_UDP
- or:
- api: socket
- api: ws2_32.socket
- api: ws2_32.#23 = socket
- api: ws2_32.WSASocket
- api: ws2_32.#82 = WSASocketA
- api: ws2_32.#83 = WSASocketW
- api: System.Net.Sockets.Socket::ctor
- api: System.Net.Sockets.UdpClient::ctor