File: localhost.pol

package info (click to toggle)
stealth 1.45-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 716 kB
  • ctags: 175
  • sloc: cpp: 1,612; makefile: 88; sh: 70
file content (23 lines) | stat: -rw-r--r-- 702 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# create several DEFINEs
    DEFINE CLIENT   localhost
    DEFINE SETUID -xdev -type f -perm +u+s,g+s \( -user root -or -group root \)

# set up the non-default USE variables 
    USE BASE        /root/stealth/${CLIENT}

    USE EMAIL       root@${CLIENT}
#    USE MAILER      /usr/local/sbin/stealthmail
    USE MAILER      /usr/bin/mail
    USE MAILARGS    "${CLIENT} STEALTH report"

    USE SSH         /usr/bin/ssh rootbash@${CLIENT} -q


LABEL \nroot setuid/setgid files
CHECK LOG = remote/setuid \
        /usr/bin/find / ${SETUID} -exec /usr/bin/md5sum {} \;


LABEL \nfiles in /usr/local/etc
CHECK remote/etcmd5 \
        /usr/bin/find /usr/local/etc -type f -xdev -exec /usr/bin/md5sum {} \;