mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2024-12-12 09:04:35 +00:00
28 lines
528 B
SQL
28 lines
528 B
SQL
SELECT
|
|
*
|
|
FROM
|
|
etc_hosts
|
|
WHERE
|
|
hostnames NOT IN (
|
|
"localhost",
|
|
"localhost ip6-localhost ip6-loopback",
|
|
"ip6-allnodes",
|
|
"ip6-allrouters",
|
|
"kubernetes"
|
|
)
|
|
AND address NOT IN (
|
|
"127.0.1.1",
|
|
"::1",
|
|
"ff02::1",
|
|
"ff02::2",
|
|
"255.255.255.255",
|
|
"fe00::0",
|
|
"ff00::0"
|
|
)
|
|
AND hostnames NOT LIKE 'localhost.%'
|
|
AND hostnames NOT LIKE '%.svc'
|
|
AND hostnames NOT LIKE '%.test'
|
|
AND hostnames NOT LIKE '%.internal'
|
|
AND hostnames NOT LIKE '%.local'
|
|
AND hostnames NOT LIKE 'ip6-%'
|