/usr/share/scap-security-guide/Debian/8/ansible-remediations.xml is in ssg-debian 0.1.31-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 | <fix-content system="urn:xccdf:fix:script:sh" xmlns="http://checklists.nist.gov/xccdf/1.1">
<fix-group id="ansible" system="urn:xccdf:fix:script:ansible" xmlns="http://checklists.nist.gov/xccdf/1.1">
<fix rule="package_rsh_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure rsh is removed
package:
name="{{item}}"
state=absent
with_items:
- rsh
</fix>
<fix rule="package_httpd_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure httpd is removed
package:
name="{{item}}"
state=absent
with_items:
- httpd
</fix>
<fix rule="package_samba-common_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure samba-common is installed
package:
name="{{item}}"
state=present
with_items:
- samba-common
</fix>
<fix rule="package_talk_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure talk is removed
package:
name="{{item}}"
state=absent
with_items:
- talk
</fix>
<fix rule="package_talk-server_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure talk-server is removed
package:
name="{{item}}"
state=absent
with_items:
- talk-server
</fix>
<fix rule="package_dovecot_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure dovecot is removed
package:
name="{{item}}"
state=absent
with_items:
- dovecot
</fix>
<fix rule="package_rsh-server_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure rsh-server is removed
package:
name="{{item}}"
state=absent
with_items:
- rsh-server
</fix>
<fix rule="package_vsftpd_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure vsftpd is installed
package:
name="{{item}}"
state=present
with_items:
- vsftpd
</fix>
<fix rule="package_audit_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure audit is installed
package:
name="{{item}}"
state=present
with_items:
- audit
</fix>
<fix rule="package_ypbind_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure ypbind is removed
package:
name="{{item}}"
state=absent
with_items:
- ypbind
</fix>
<fix rule="package_telnet_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure telnet is removed
package:
name="{{item}}"
state=absent
with_items:
- telnet
</fix>
<fix rule="package_net-snmp_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure net-snmp is removed
package:
name="{{item}}"
state=absent
with_items:
- net-snmp
</fix>
<fix rule="package_aide_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure aide is installed
package:
name="{{item}}"
state=present
with_items:
- aide
</fix>
<fix rule="file_permissions_etc_gshadow" complexity="low" disruption="low" reboot="false" strategy="configure">- name: Ensure permission 0640 on /etc/gshadow
file:
path="{{item}}"
mode=0640
with_items:
- /etc/gshadow
</fix>
<fix rule="package_ntp_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure ntp is installed
package:
name="{{item}}"
state=present
with_items:
- ntp
</fix>
<fix rule="file_permissions_etc_group" complexity="low" disruption="low" reboot="false" strategy="configure">- name: Ensure permission 0644 on /etc/group
file:
path="{{item}}"
mode=0644
with_items:
- /etc/group
</fix>
<fix rule="file_permissions_etc_passwd" complexity="low" disruption="low" reboot="false" strategy="configure">- name: Ensure permission 0644 on /etc/passwd
file:
path="{{item}}"
mode=0644
with_items:
- /etc/passwd
</fix>
<fix rule="service_rsyslog_enabled" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Enable service rsyslog
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- rsyslog
</fix>
<fix rule="package_telnetd_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure telnetd is removed
package:
name="{{item}}"
state=absent
with_items:
- telnetd
</fix>
<fix rule="package_cron_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure cron is installed
package:
name="{{item}}"
state=present
with_items:
- cron
</fix>
<fix rule="service_ntpd_enabled" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Enable service ntpd
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- ntpd
</fix>
<fix rule="file_permissions_etc_shadow" complexity="low" disruption="low" reboot="false" strategy="configure">- name: Ensure permission 0640 on /etc/shadow
file:
path="{{item}}"
mode=0640
with_items:
- /etc/shadow
</fix>
<fix rule="service_auditd_enabled" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Enable service auditd
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- auditd
</fix>
<fix rule="package_ntpdate_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure ntpdate is removed
package:
name="{{item}}"
state=absent
with_items:
- ntpdate
</fix>
<fix rule="package_inetutils-telnetd_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure inetutils-telnetd is removed
package:
name="{{item}}"
state=absent
with_items:
- inetutils-telnetd
</fix>
<fix rule="service_sshd_disabled" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Disable service sshd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- sshd
</fix>
<fix rule="package_rsyslog_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure rsyslog is installed
package:
name="{{item}}"
state=present
with_items:
- rsyslog
</fix>
<fix rule="package_telnetd-ssl_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure telnetd-ssl is removed
package:
name="{{item}}"
state=absent
with_items:
- telnetd-ssl
</fix>
<fix rule="package_nis_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure nis is removed
package:
name="{{item}}"
state=absent
with_items:
- nis
</fix>
<fix rule="package_auditd_installed" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Ensure auditd is installed
package:
name="{{item}}"
state=present
with_items:
- auditd
</fix>
<fix rule="service_cron_enabled" complexity="low" disruption="low" reboot="false" strategy="enable">- name: Enable service cron
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- cron
</fix>
<fix rule="package_openssh-server_removed" complexity="low" disruption="low" reboot="false" strategy="disable">- name: Ensure openssh-server is removed
package:
name="{{item}}"
state=absent
with_items:
- openssh-server
</fix>
</fix-group>
</fix-content>
|