mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-02-15 08:57:20 +00:00
Add events-based detector for ICMP sockets
This commit is contained in:
parent
6d535ddc37
commit
ec1a5b6c17
19
detection/c2/unexpected-icmp-socket-events.sql
Normal file
19
detection/c2/unexpected-icmp-socket-events.sql
Normal file
@ -0,0 +1,19 @@
|
||||
-- Unexpected programs speaking over ICMP (event-based)
|
||||
--
|
||||
-- references:
|
||||
-- *https://attack.mitre.org/techniques/T1095/ (C2: Non-Application Layer Protocol)
|
||||
--
|
||||
-- interval: 30
|
||||
-- tags: transient events net
|
||||
SELECT
|
||||
se.*,
|
||||
p.path,
|
||||
p.cmdline
|
||||
FROM
|
||||
socket_events se
|
||||
LEFT JOIN processes p ON se.pid = p.pid
|
||||
WHERE
|
||||
se.time > (strftime('%s', 'now') -30)
|
||||
AND family = 2 -- PF_INET
|
||||
AND protocol = 1 -- ICMP
|
||||
AND p.name NOT IN ('ping')
|
Loading…
Reference in New Issue
Block a user