23 lines
560 B
SQL
23 lines
560 B
SQL
-- Unexpected crontab entries
|
|
--
|
|
-- references:
|
|
-- * https://attack.mitre.org/techniques/T1053/003/ (Scheduled Task/Job: Cron)
|
|
--
|
|
-- false positives:
|
|
-- * crontab entries added by the user
|
|
--
|
|
-- tags: persistent filesystem state
|
|
-- platform: posix
|
|
SELECT
|
|
*
|
|
FROM
|
|
crontab
|
|
WHERE
|
|
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%'
|