-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address CRITICAL ELF false-positives in trino, rust, and eza (#718)
* Linux ELF rule adjustments * rule tuning * Add Linux tests * sbcl tuning
- Loading branch information
1 parent
e6d7f01
commit ff9ea83
Showing
13 changed files
with
475 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
rule trino_upx_override: override { | ||
meta: | ||
description = "https://trino.io/ - UPX encrypted and crazy" | ||
upx = "medium" | ||
high_entropy_header = "medium" | ||
normal_elf_high_entropy_7_4 = "medium" | ||
obfuscated_elf = "medium" | ||
|
||
strings: | ||
$ = "Go buildinf" | ||
$ = "p\tgiNub.com/fdih/" | ||
$ = "kTixuOsFBOtGYSTLRLWK6G" | ||
$ = "wnwmwkwbqc" | ||
$ = "zYna%i%qj%" | ||
$ = "kUNKNOWN:$" | ||
$ = "q\tcCuXMaxlebo" | ||
$ = "lmRnTEOIt" | ||
condition: | ||
filesize > 1MB and filesize < 3MB and 85 % of them | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# linux/2024.sbcl.market/sbcl.clean: medium | ||
c2/addr/url: low | ||
c2/tool_transfer/arch: low | ||
crypto/rc4: low | ||
data/compression/zstd: low | ||
discover/user/HOME: low | ||
discover/user/USER: low | ||
evasion/file/location/var_tmp: medium | ||
exec/dylib/address_check: low | ||
exec/dylib/symbol_address: medium | ||
exec/program: medium | ||
exec/program/background: low | ||
exec/shell/echo: medium | ||
fs/file/delete: low | ||
fs/file/truncate: low | ||
fs/link_read: low | ||
fs/path/dev: medium | ||
fs/path/tmp: medium | ||
fs/path/var: low | ||
fs/permission/modify: low | ||
fs/proc/self_exe: medium | ||
fs/symlink_resolve: low | ||
fs/tempdir/TEMP: low | ||
net/url/embedded: low |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# linux/clean/eza: medium | ||
anti-static/elf/multiple: medium | ||
c2/addr/url: low | ||
c2/tool_transfer/arch: low | ||
c2/tool_transfer/os: medium | ||
credential/server/htpasswd: medium | ||
credential/shell/bash_history: medium | ||
credential/ssh/authorized_hosts: medium | ||
crypto/ed25519: low | ||
crypto/rc4: low | ||
data/encoding/base64: low | ||
discover/user/HOME: low | ||
evasion/file/prefix: medium | ||
exec/dylib/iterate: low | ||
exec/dylib/symbol_address: medium | ||
fs/link_read: low | ||
fs/mount: low | ||
fs/path/etc: low | ||
fs/path/home_config: low | ||
fs/proc/self_cgroup: medium | ||
fs/proc/self_exe: medium | ||
fs/proc/self_mountinfo: medium | ||
fs/symlink_resolve: low | ||
fs/tempdir/TEMP: low | ||
net/url/embedded: low | ||
persist/shell/bash: medium | ||
persist/shell/zsh: medium | ||
process/multithreaded: low |
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,126 @@ | ||
# linux/clean/kolide/launcher: medium | ||
c2/addr/http_dynamic: medium | ||
c2/addr/ip: medium | ||
c2/addr/url: low | ||
c2/tool_transfer/arch: low | ||
c2/tool_transfer/os: medium | ||
collect/archives/zip: medium | ||
collect/databases/mysql: medium | ||
collect/databases/postgresql: medium | ||
collect/databases/sqlite: medium | ||
credential/keychain: medium | ||
credential/password: low | ||
credential/ssl/private_key: low | ||
crypto/aes: low | ||
crypto/cipher: medium | ||
crypto/decrypt: low | ||
crypto/ecdsa: low | ||
crypto/ed25519: low | ||
crypto/public_key: low | ||
crypto/tls: low | ||
data/compression/gzip: low | ||
data/compression/zlib: low | ||
data/embedded/base64_terms: medium | ||
data/embedded/base64_url: medium | ||
data/embedded/html: medium | ||
data/embedded/pem_certificate: low | ||
data/encoding/base64: low | ||
data/encoding/json: low | ||
data/encoding/json_decode: low | ||
data/hash/blake2b: low | ||
data/hash/md5: low | ||
discover/network/netstat: medium | ||
discover/processes/list: medium | ||
discover/system/cpu: low | ||
discover/system/hostname: low | ||
discover/system/platform: medium | ||
discover/user/USER: low | ||
evasion/file/prefix: medium | ||
evasion/logging/acct: low | ||
exec/cmd: medium | ||
exec/plugin: low | ||
exec/program: medium | ||
exec/shell/TERM: low | ||
exec/shell/command: medium | ||
exec/system_controls/systemd: medium | ||
exfil/upload: medium | ||
fs/directory/create: low | ||
fs/directory/list: low | ||
fs/directory/remove: low | ||
fs/file/create: medium | ||
fs/file/delete: low | ||
fs/file/open: low | ||
fs/file/read: low | ||
fs/file/rename: low | ||
fs/file/stat: low | ||
fs/file/truncate: low | ||
fs/file/write: low | ||
fs/link_read: low | ||
fs/lock_update: low | ||
fs/mount: low | ||
fs/path/boot: medium | ||
fs/path/etc: low | ||
fs/path/etc_hosts: medium | ||
fs/path/etc_resolv.conf: low | ||
fs/path/home_config: low | ||
fs/path/tmp: medium | ||
fs/path/usr_bin: low | ||
fs/path/usr_local: medium | ||
fs/path/usr_sbin: low | ||
fs/path/var: low | ||
fs/path/var_log: medium | ||
fs/permission/chown: medium | ||
fs/permission/modify: medium | ||
fs/proc/self_mountinfo: medium | ||
fs/tempdir: low | ||
fs/tempdir/TEMP: low | ||
fs/tempdir/TMPDIR: low | ||
fs/tempdir/create: low | ||
fs/tempfile: low | ||
hw/dev/block_ice: medium | ||
impact/remote_access/net_term: medium | ||
net/dns: low | ||
net/dns/reverse: medium | ||
net/dns/servers: low | ||
net/dns/txt: low | ||
net/download: medium | ||
net/http/2: low | ||
net/http/accept: medium | ||
net/http/accept_encoding: low | ||
net/http/auth: low | ||
net/http/content_length: medium | ||
net/http/cookies: medium | ||
net/http/form_upload: medium | ||
net/http/post: medium | ||
net/http/proxy: low | ||
net/http/request: low | ||
net/ip/host_port: medium | ||
net/ip/icmp: medium | ||
net/ip/parse: medium | ||
net/ip/tcp_state_tracker: medium | ||
net/resolve/hostname: low | ||
net/resolve/hostport_parse: low | ||
net/socket/listen: medium | ||
net/socket/local_addr: low | ||
net/socket/peer_address: low | ||
net/socket/receive: low | ||
net/socket/send: low | ||
net/tcp/connect: medium | ||
net/tcp/grpc: low | ||
net/tcp/sftp: medium | ||
net/tcp/ssh: medium | ||
net/udp/receive: low | ||
net/udp/send: low | ||
net/url/embedded: low | ||
net/url/encode: medium | ||
net/url/parse: low | ||
net/url/request: medium | ||
os/fd/sendfile: low | ||
os/kernel/key_management: low | ||
os/kernel/netlink: low | ||
persist/pid_file: medium | ||
privesc/setuid: low | ||
privesc/sudo: medium | ||
process/groupid_set: low | ||
process/groups_set: low | ||
process/multithreaded: low |
Oops, something went wrong.