-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into malcontent-version-bump-v1.3.0
- Loading branch information
Showing
92 changed files
with
1,230 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
|
||
rule kmod : high { | ||
rule kmod : medium linux { | ||
meta: | ||
description = "includes Linux kernel module source code" | ||
description = "Linux kernel module source code" | ||
hash_2024_enumeration_deepce = "76b0bcdf0ea0b62cee1c42537ff00d2100c54e40223bbcb8a4135a71582dfa5d" | ||
filetypes = "c,h" | ||
strings: | ||
$ref = "<linux/kmod.h>" | ||
$not_define_linux = "#define _LINUX_MODULE_H" | ||
condition: | ||
any of them | ||
$ref and none of ($not*) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
|
||
rule linux_critical_system_paths : medium { | ||
meta: | ||
description = "accesses multiple critical Linux paths" | ||
strings: | ||
$p_etc_crontab = "/etc/crontab" | ||
$p_etc_sysctl_conf = "/etc/sysctl.conf" | ||
$p_etc_init_d = /\/etc\/init.d[\w\/\.\-]{0,32}/ | ||
$p_etc_cron_d = /\/etc\/cron.d[\w\/\.\-]{0,32}/ | ||
$p_etc_selinux = /\/etc\/selinux[\w\/\.\-]{0,32}/ | ||
$p_etc_systemd = /\/etc\/systemd[\w\/\.\-]{0,32}/ | ||
$p_etc_preload = "/etc/ld.so.preload" | ||
$p_ld_so_cache = "/etc/ld.so.cache" | ||
$p_var_run = /\/var\/run[\w\/\.\-]{0,32}/ | ||
$p_var_log = /\/var\/log[\w\/\.\-]{0,32}/ | ||
$p_usr_libexec = /\/usr\/libexec[\w\/\.\-]{0,32}/ | ||
$p_tmp = /\/tmp\/[\w\/\.\-]{0,32}/ | ||
$p_sbin = /\/sbin\/[\w\/\.\-]{0,32}/ | ||
$p_lib_systemd = /\/lib\/systemd[\w\/\.\-]{0,32}/ | ||
$p_boot = /\/boot\/[\w\/\.\-]{0,32}/ | ||
$proc_self_cmdline = "/proc/self/cmdline" | ||
$proc_self_cgroup = "/proc/self/cgroup" | ||
$p_lib = "/usr/lib/x86_64-linux-gnu/" | ||
$p_lib_ld = "/lib64/ld-linux-x86-64.so.2" | ||
$p_sys = /\/sys\/(devices|class)[\w\/\.\-]{0,32}/ | ||
$p_sysctl = /sysctl[ -a-z]{0,32}/ | ||
$p_dev_watchdog = "/dev/watchdog" | ||
$p_ps = "/usr/bin/ps" | ||
$p_ss = "/usr/bin/lsof" | ||
$p_ssh = "/usr/bin/ssh" | ||
$p_dev_shm = "/dev/shm" | ||
condition: | ||
filesize < 120MB and any of ($p_etc*) and 5 of ($p*) | ||
} | ||
|
||
rule linux_critical_system_paths_small_elf : high { | ||
meta: | ||
description = "ELF accesses multiple critical Linux paths" | ||
strings: | ||
$not_vim = "VIMRUNTIME" fullword | ||
condition: | ||
filesize < 10MB and uint32(0) == 1179403647 and linux_critical_system_paths and none of ($not*) | ||
} | ||
|
||
rule linux_critical_system_paths_small_shell : high { | ||
meta: | ||
description = "script accesses multiple critical Linux paths" | ||
strings: | ||
$hash_bang = "#!" | ||
condition: | ||
filesize < 64KB and $hash_bang in (0..2) and linux_critical_system_paths | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.