2022-10-14 18:19:13 +00:00
|
|
|
-- Unexpected crontab entries
|
|
|
|
--
|
|
|
|
-- references:
|
|
|
|
-- * https://attack.mitre.org/techniques/T1053/003/
|
|
|
|
--
|
|
|
|
-- false positives:
|
|
|
|
-- * crontab entries added by the user
|
|
|
|
--
|
2022-10-14 18:26:49 +00:00
|
|
|
-- tags: persistent filesystem state
|
2022-10-14 18:19:13 +00:00
|
|
|
-- platform: posix
|
2022-09-24 15:12:23 +00:00
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
crontab
|
|
|
|
WHERE
|
2022-10-13 18:59:32 +00:00
|
|
|
command NOT LIKE 'root%run-parts%'
|
|
|
|
AND command NOT LIKE '%freshclam%'
|
|
|
|
AND command NOT LIKE '%clamscan%'
|
|
|
|
AND command NOT LIKE '%e2scrub%'
|
|
|
|
AND command NOT LIKE '%zfs-linux%'
|
|
|
|
AND command NOT LIKE '%anacron start%'
|
|
|
|
AND command NOT LIKE '%/usr/lib/php/sessionclean%'
|