|
1 | | -# Rule version v1.0.0 |
| 1 | +# Rule version v1.0.1 |
2 | 2 |
|
3 | 3 | dataTypes: |
4 | 4 | - linux |
@@ -27,32 +27,6 @@ description: | |
27 | 27 | 7. Analyze network connections for command and control communications |
28 | 28 | 8. Update security tools and perform full system scan |
29 | 29 | where: | |
30 | | - (contains("log.file_path", "/usr/bin/passwd") && |
31 | | - equals("log.event_type", "file_modify") && |
32 | | - !equals("log.process_name", "dpkg")) || |
33 | | - (contains("log.file_path", "/etc/ld.so.preload") && |
34 | | - oneOf("log.event_type", ["file_create", "file_modify"])) || |
35 | | - (oneOf("log.process_name", ["reptile", "bdvl", "azazel", "jynx", "xorddos"]) || |
36 | | - contains("log.file_path", "reptile") || |
37 | | - contains("log.file_path", "bdvl")) || |
38 | | - (contains("log.command_line", "insmod") && |
39 | | - (contains("log.command_line", "rootkit") || |
40 | | - contains("log.command_line", "hide") || |
41 | | - contains("log.command_line", "backdoor"))) || |
42 | | - (contains("log.file_path", "/proc/") && |
43 | | - contains("log.file_path", "/maps") && |
44 | | - contains("log.message", "deleted")) || |
45 | | - (oneOf("log.network_port", [31337, 12345, 6666]) && |
46 | | - equals("log.event_type", "network_listen")) || |
47 | | - (contains("log.file_path", "/dev/ptmx") && |
48 | | - equals("log.event_type", "file_create") && |
49 | | - !equals("log.user", "root")) || |
50 | | - (contains("log.message", "LKM") && |
51 | | - (contains("log.message", "rootkit") || |
52 | | - contains("log.message", "hiding"))) || |
53 | | - (regexMatch("log.file_path", "/lib/modules/.*/.*\\.ko") && |
54 | | - equals("log.event_type", "file_create") && |
55 | | - !equals("log.process_name", "dpkg")) |
56 | | -groupBy: |
57 | | - - lastEvent.log.process_name |
58 | | - - origin.host |
| 30 | + regexMatch("origin.process", "/(reptile|bdvl|azazel|jynx|xorddos)") || (contains("origin.command", "insmod") && regexMatch("origin.command", "(rootkit|hide|backdoor)")) || (contains("origin.command", "ld.so.preload") && regexMatch("origin.command", "(>>|tee|echo)")) |
| 31 | +deduplicateBy: |
| 32 | + - dataSource |
0 commit comments