|
28 | 28 | end |
29 | 29 | blacklist = attribute( |
30 | 30 | 'blacklist', |
31 | | - default: [ |
32 | | - # blacklist as provided by NSA |
33 | | - '/usr/bin/rcp', '/usr/bin/rlogin', '/usr/bin/rsh', |
34 | | - # sshd must not use host-based authentication (see ssh cookbook) |
35 | | - '/usr/libexec/openssh/ssh-keysign', |
36 | | - '/usr/lib/openssh/ssh-keysign', |
37 | | - # misc others |
38 | | - '/sbin/netreport', # not normally required for user |
39 | | - '/usr/sbin/usernetctl', # modify interfaces via functional accounts |
40 | | - # connecting to ... |
41 | | - '/usr/sbin/userisdnctl', # no isdn... |
42 | | - '/usr/sbin/pppd', # no ppp / dsl ... |
43 | | - # lockfile |
44 | | - '/usr/bin/lockfile', |
45 | | - '/usr/bin/mail-lock', |
46 | | - '/usr/bin/mail-unlock', |
47 | | - '/usr/bin/mail-touchlock', |
48 | | - '/usr/bin/dotlockfile', |
49 | | - # need more investigation, blacklist for now |
50 | | - '/usr/bin/arping', |
51 | | - '/usr/sbin/arping', |
52 | | - '/usr/sbin/uuidd', |
53 | | - '/usr/bin/mtr', # investigate current state... |
54 | | - '/usr/lib/evolution/camel-lock-helper-1.2', # investigate current state... |
55 | | - '/usr/lib/pt_chown', # pseudo-tty, needed? |
56 | | - '/usr/lib/eject/dmcrypt-get-device', |
57 | | - '/usr/lib/mc/cons.saver' # midnight commander screensaver |
58 | | - # from Ubuntu xenial, need to investigate |
59 | | - # '/sbin/unix_chkpwd', |
60 | | - # '/sbin/pam_extrausers_chkpwd', |
61 | | - # '/usr/lib/x86_64-linux-gnu/utempter/utempter', |
62 | | - # '/usr/sbin/postdrop', |
63 | | - # '/usr/sbin/postqueue', |
64 | | - # '/usr/bin/ssh-agent', |
65 | | - # '/usr/bin/mlocate', |
66 | | - # '/usr/bin/crontab', |
67 | | - # '/usr/bin/screen', |
68 | | - # '/usr/bin/expiry', |
69 | | - # '/usr/bin/wall', |
70 | | - # '/usr/bin/chage', |
71 | | - # '/usr/bin/bsd-write' |
72 | | - ], |
73 | | - description: 'blacklist of suid/sgid program on system' |
74 | | - ) |
| 31 | + default: [ |
| 32 | + # blacklist as provided by NSA |
| 33 | + '/usr/bin/rcp', '/usr/bin/rlogin', '/usr/bin/rsh', |
| 34 | + # sshd must not use host-based authentication (see ssh cookbook) |
| 35 | + '/usr/libexec/openssh/ssh-keysign', |
| 36 | + '/usr/lib/openssh/ssh-keysign', |
| 37 | + # misc others |
| 38 | + '/sbin/netreport', # not normally required for user |
| 39 | + '/usr/sbin/usernetctl', # modify interfaces via functional accounts |
| 40 | + # connecting to ... |
| 41 | + '/usr/sbin/userisdnctl', # no isdn... |
| 42 | + '/usr/sbin/pppd', # no ppp / dsl ... |
| 43 | + # lockfile |
| 44 | + '/usr/bin/lockfile', |
| 45 | + '/usr/bin/mail-lock', |
| 46 | + '/usr/bin/mail-unlock', |
| 47 | + '/usr/bin/mail-touchlock', |
| 48 | + '/usr/bin/dotlockfile', |
| 49 | + # need more investigation, blacklist for now |
| 50 | + '/usr/bin/arping', |
| 51 | + '/usr/sbin/arping', |
| 52 | + '/usr/sbin/uuidd', |
| 53 | + '/usr/bin/mtr', # investigate current state... |
| 54 | + '/usr/lib/evolution/camel-lock-helper-1.2', # investigate current state... |
| 55 | + '/usr/lib/pt_chown', # pseudo-tty, needed? |
| 56 | + '/usr/lib/eject/dmcrypt-get-device', |
| 57 | + '/usr/lib/mc/cons.saver' # midnight commander screensaver |
| 58 | + # from Ubuntu xenial, need to investigate |
| 59 | + # '/sbin/unix_chkpwd', |
| 60 | + # '/sbin/pam_extrausers_chkpwd', |
| 61 | + # '/usr/lib/x86_64-linux-gnu/utempter/utempter', |
| 62 | + # '/usr/sbin/postdrop', |
| 63 | + # '/usr/sbin/postqueue', |
| 64 | + # '/usr/bin/ssh-agent', |
| 65 | + # '/usr/bin/mlocate', |
| 66 | + # '/usr/bin/crontab', |
| 67 | + # '/usr/bin/screen', |
| 68 | + # '/usr/bin/expiry', |
| 69 | + # '/usr/bin/wall', |
| 70 | + # '/usr/bin/chage', |
| 71 | + # '/usr/bin/bsd-write' |
| 72 | + ], |
| 73 | + description: 'blacklist of suid/sgid program on system' |
| 74 | +) |
75 | 75 |
|
76 | 76 | control 'os-01' do |
77 | 77 | impact 1.0 |
|
0 commit comments