osquery-defense-kit/incident_response/suid_bin.sql

9 lines
303 B
SQL

-- Retrieves all the files in the target system that are setuid enabled.
--
-- interval: 3600
-- platform: posix
-- value: Detect backdoor binaries (attacker may drop a copy of /bin/sh). Find potential elevation points / vulnerabilities in the standard build.
-- version: 1.4.5
select * from suid_bin;