forked from chainguard-dev/malcontent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmasscan.yara
45 lines (37 loc) · 1.54 KB
/
masscan.yara
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
rule masscan: high {
meta:
hash_2023_Linux_Malware_Samples_1d28 = "1d2800352e15175ae5fa916b48a96b26f0199d9f8a9036648b3e44aa60ed2897"
hash_2023_Linux_Malware_Samples_5a62 = "5a628dc26dae0309941d70021cfbb4281189f85b074bf3e696058d73c4609101"
hash_2023_Linux_Malware_Samples_d13f = "d13fd21514f7ee5e58343aa99bf551c6a56486731c50daefcce233fdb162def8"
description = "references 'masscan', an asynchronous TCP port scanner"
strings:
$ref = "masscan" fullword
condition:
$ref
}
rule masscan_elf: high linux {
meta:
hash_2023_Linux_Malware_Samples_1d28 = "1d2800352e15175ae5fa916b48a96b26f0199d9f8a9036648b3e44aa60ed2897"
hash_2023_Linux_Malware_Samples_5a62 = "5a628dc26dae0309941d70021cfbb4281189f85b074bf3e696058d73c4609101"
hash_2023_Linux_Malware_Samples_d13f = "d13fd21514f7ee5e58343aa99bf551c6a56486731c50daefcce233fdb162def8"
description = "executes 'masscan', an asynchronous TCP port scanner"
strings:
$ref = "masscan" fullword
$run_exec = "execve" fullword
$run_system = "system" fullword
$run_go = "exec.(*Cmd).Run"
$not_nmap = "nmap" fullword
condition:
filesize < 10MB and uint32(0) == 1179403647 and $ref and any of ($run*) and none of ($not*)
}
rule masscan_config {
meta:
ref = "https://cert.gov.ua/article/6123309"
strings:
$adapter_ip = "adapter-ip"
$nocapture = "nocapture"
$output_format = "output-format"
$randomize_hosts = "randomize-hosts"
condition:
75 % of them
}