Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce false positives on Ubuntu + Lima #320

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions detection/credentials/unexpected-dev-opener-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ WHERE
'/dev/fb,Xorg',
'/dev/hidraw,chrome',
'/dev/hwrng,rngd',
'/dev/hvc,agetty',
'/dev/input/event,thermald',
'/dev/input/event,touchegg',
'/dev/input/event,Xorg',
Expand Down
21 changes: 11 additions & 10 deletions detection/credentials/yara-mounted-stealer.sql
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,18 @@ WHERE
AND yara.sigrule = '
rule stealer {
strings:
$ds = "data_stealers" ascii
$lk = "/Library/Keychains" ascii
$cs = "cookies.sqlite" ascii
$mc = "moz_cookies" ascii
$og = "OperaGX" ascii
$bs = "BraveSoftware" ascii
$os = "osascript" ascii
$fgp = "find-generic-password" ascii
$data_stealers = "data_stealers" ascii
$library_keychains = "/Library/Keychains" ascii
$cookies_sqlite = "cookies.sqlite" ascii
$moz_cookies = "moz_cookies" ascii
$operagx = "OperaGX" ascii
$brave_software = "BraveSoftware" ascii
$osascript = "osascript" ascii
$find_generic_password = "find-generic-password" ascii

condition:
2 of them
}'
AND yara.count > 0
GROUP BY file.path
AND yara.count > 0
GROUP BY
file.path
1 change: 1 addition & 0 deletions detection/evasion/name_path_mismatch.sql
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ WHERE
'0,udevadm,systemd-udevd',
'0,udevadm,(udev-worker)',
'500,netcat,nc',
'500,nc.openbsd,nc',
'500,busybox,sh',
'500,coreutils,tail',
'500,gjs-console,gnome-character',
Expand Down
2 changes: 1 addition & 1 deletion detection/evasion/touched-executable-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ WHERE
AND f.path NOT LIKE '/usr/local/aws-cli/%/dist/aws'
AND f.path NOT LIKE '/usr/local/kolide-k2/bin/%-updates/%'
AND f.path NOT LIKE '/tmp/go-build%'
AND p.name != 'osqtool'
AND p.name NOT LIKE 'osqtool%'
GROUP by
p.pid
1 change: 1 addition & 0 deletions detection/evasion/unexpected-etc-executables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ WHERE
'/etc/alternatives',
'/etc/apcupsd',
'/etc/apm/resume.d',
'/etc/vmware-tools/scripts/vmware',
'/etc/apm/scripts.d',
'/etc/apm/suspend.d',
'/etc/avahi',
Expand Down
6 changes: 6 additions & 0 deletions detection/evasion/unexpected-var-run-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ WHERE
'apcupsd.pid',
'apport.lock',
'atd.pid',
'adduser',
'lima-boot-done',
'lima-ssh-ready',
'machine-id',
'motd.dynamic',
'multipathd.pid',
'auditd.pid',
'cron.reboot',
'crond.pid',
Expand Down
2 changes: 2 additions & 0 deletions detection/exfil/yara-unexpected-go-crypt-exec-process.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ WHERE
'kubectl',
'go',
'docker',
'lima-guestagent',
'containerd-star',
'gopls',
'launcher',
'tflint',
Expand Down
4 changes: 4 additions & 0 deletions detection/persistence/unexpected-active-systemd-units.sql
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ WHERE
'accounts-daemon.service,Accounts Service,',
'acpid.path,ACPI Events Check,',
'acpid.service,ACPI Daemon,',
'[email protected],Serial Getty on hvc0,',
'ssh.socket,OpenBSD Secure Shell server socket,',
'launcher,/usr/local/kolide-k2/bin/launcher,0,system.slice,launcher.kolide-k2.service,0755',
'systemd-machine-id-commit.service,Commit a transient machine-id on disk,',
'acpid.service,ACPI event daemon,',
'acpid.socket,ACPID Listen Socket,',
'akmods.service,Builds and install new kmods from akmod packages,',
Expand Down
2 changes: 2 additions & 0 deletions detection/persistence/unexpected-device.sql
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ WHERE
'/dev/loop',
'/dev/loop-control',
'/dev/lp',
'/dev/hvc',
'/dev/vportp',
'/dev/mapper/',
'/dev/mapper/control',
'/dev/mcelog',
Expand Down
3 changes: 3 additions & 0 deletions detection/persistence/unexpected-listening-port-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ WHERE
) IN (
'10250,6,0,kubelet',
'10250,6,500,kubelet',
'22,6,0,systemd',
'58,255,500,systemd-network',
'68,17,500,systemd-network',
'10254,6,101,nginx-ingress-c',
'10256,6,0,kube-proxy',
'10256,6,500,kube-proxy',
Expand Down
2 changes: 2 additions & 0 deletions detection/persistence/unexpected-uid0-daemon-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ WHERE
AND p0.start_time < (strftime('%s', 'now') - 1200)
AND exception_key NOT IN (
'(sd-pam),/usr/lib/systemd/systemd,0,user.slice,user-0.slice,0755',
'sshd,/usr/sbin/sshd,0,user.slice,user-501.slice,0755',
'launcher,/usr/local/kolide-k2/bin/launcher,0,system.slice,launcher.kolide-k2.service,0755',
'.tailscaled-wra,/nix/store/__VERSION__/bin/.tailscaled-wrapped,0,system.slice,tailscaled.service,0555',
'/usr/bin/monito,/usr/bin/perl,0,system.slice,monitorix.service,0755',
'ModemManager,/usr/sbin/ModemManager,0,system.slice,ModemManager.service,0755',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ WHERE
'/usr/bin/gnome-software',
'/usr/bin/gpg-agent',
'/usr/bin/ibus-daemon',
'/usr/bin/make',
'/usr/bin/NetworkManager',
'/usr/bin/nvidia-persistenced',
'/usr/bin/pulseaudio',
Expand Down
Loading