2024/10/07 11:13:32 WARN skipping pid 3637: dbus-broker: unable to stat "/proc/3637/exe"
2024/10/07 11:13:32 WARN skipping pid 3652: avahi-daemon: unable to stat "/proc/3652/exe"
2024/10/07 11:13:32 WARN skipping pid 3664: elastic-agent[3664]: unable to stat "/proc/3664/exe" or "/opt/Elastic/Agent/elastic-agent"
2024/10/07 11:13:32 WARN skipping pid 3790: avahi-daemon: unable to stat "/proc/3790/exe"
2024/10/07 11:13:32 WARN skipping pid 5304: agentbeat[5304]: unable to stat "/proc/5304/exe" or "/var/opt/Elastic/Agent/data/elastic-agent-8.15.1-ecab0c/components/agentbeat"
2024/10/07 11:13:32 WARN skipping pid 5497: agentbeat[5497]: unable to stat "/proc/5497/exe" or "/var/opt/Elastic/Agent/data/elastic-agent-8.15.1-ecab0c/components/agentbeat"
2024/10/07 11:13:32 WARN skipping pid 5732: agentbeat[5732]: unable to stat "/proc/5732/exe" or "/var/opt/Elastic/Agent/data/elastic-agent-8.15.1-ecab0c/components/agentbeat"
2024/10/07 11:13:32 WARN skipping pid 6747: gdm-session-wor: unable to stat "/proc/6747/exe"
2024/10/07 11:13:32 WARN skipping pid 7075: (sd-pam): unable to stat "/proc/7075/exe"
2024/10/07 11:13:32 WARN skipping pid 8086: fusermount3: unable to stat "/proc/8086/exe"
2024/10/07 11:13:32 WARN skipping pid 8791: agentbeat[8791]: unable to stat "/proc/8791/exe" or "/var/opt/Elastic/Agent/data/elastic-agent-8.15.1-ecab0c/components/agentbeat"
2024/10/07 11:13:32 WARN skipping pid 13637: zypak-sandbox: unable to stat "/proc/13637/exe"
2024/10/07 11:13:32 WARN skipping pid 32178: dbus-launch: unable to stat "/proc/32178/exe"
2024/10/07 11:13:32 WARN skipping pid 32920: zypak-sandbox: unable to stat "/proc/32920/exe"
2024/10/07 11:13:32 WARN skipping pid 107942: zypak-sandbox: unable to stat "/proc/107942/exe"
2024/10/07 11:13:32 WARN skipping pid 110940: systemd-userwork: waiting...: unable to stat "/proc/110940/exe"
2024/10/07 11:13:32 WARN skipping pid 110956: systemd-userwork: waiting...: unable to stat "/proc/110956/exe"
2024/10/07 11:13:32 WARN skipping pid 111769: systemd-userwork: waiting...: unable to stat "/proc/111769/exe"
π Scanning "/opt/Elastic/Endpoint/elastic-endpoint"
time=2024-10-07T11:13:32.419-04:00 level=ERROR source=/var/home/t/src/malcontent/pkg/action/programkind.go:82 msg=os.Open path=/var/opt/Elastic/Endpoint/elastic-endpoint error="open /var/opt/Elastic/Endpoint/elastic-endpoint: permission denied"
π Scanning "/opt/kolide-k2/bin/launcher"
βββ π /usr/lib/opt/kolide-k2/bin/launcher [HIGH]
β π₯ ref/path/hidden: hidden path in a system directory
π Scanning "/opt/kolide-k2/bin/osqueryd"
βββ π /usr/lib/opt/kolide-k2/bin/osqueryd [HIGH]
β π₯ kernel/dev/mem: access raw system memory
β π₯ kernel/symbol/lookup: access unexported kernel symbols
β π₯ secrets/bash_history: access .bash_history file
β π₯ combo/degrader/selinux_firewall: selinux firewall
β π₯ combo/stealer/browser: Uses HTTP, archives, and references multiple browsers
π Scanning "/proc/107917/exe"
βββ π /proc/107917/exe [HIGH]
β π₯ evasion/int_to_char: converts strings into integers
π Scanning "/proc/107933/exe"
π Scanning "/proc/107935/exe"
π Scanning "/proc/107940/exe"
βββ π /proc/107940/exe [HIGH]
β π₯ evasion/int_to_char: converts strings into integers
π Scanning "/proc/107959/exe"
βββ π /proc/107959/exe [HIGH]
β π₯ evasion/int_to_char: converts strings into integers
π Scanning "/proc/107986/exe"
One future improvement to make is plumbing the name of the process into the scan output, which avoids the weird /proc/XXX/exe scan paths we see here. That's why this code now returns a richer ProcessInfo object, even if we're throwing away most of the detail.
scan --processes
doesn't work well on Linux today:This addresses both of those items by:
cmdline
as an alternativeOld Behavior
New Behavior
One future improvement to make is plumbing the name of the process into the scan output, which avoids the weird
/proc/XXX/exe
scan paths we see here. That's why this code now returns a richer ProcessInfo object, even if we're throwing away most of the detail.