osquery-defense-kit/net/unexpected-icmp-socket.sql

8 lines
191 B
MySQL
Raw Normal View History

2022-09-11 19:07:54 +00:00
SELECT pop.pid,
p.path,
p.cmdline
FROM process_open_sockets pop
JOIN processes p ON pop.pid = p.pid
WHERE family = 2 -- PF_INET
AND protocol = 1 -- ICMP
AND p.name NOT IN ('ping')