| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<xccdf:Benchmark xmlns:xccdf="http://checklists.nist.gov/xccdf/1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="xccdf_cdf_benchmark_scap-fedora14-xccdf.xml" resolved="1" style="SCAP_1.2" xml:lang="en" xsi:schemaLocation="http://checklists.nist.gov/xccdf/1.2 http://scap.nist.gov/schema/xccdf/1.2/xccdf_1.2.xsd http://cpe.mitre.org/dictionary/2.0 http://scap.nist.gov/schema/cpe/2.3/cpe-dictionary_2.3.xsd"> |
| 3 |
<xccdf:status date="2011-10-12">draft</xccdf:status> |
| 4 |
<xccdf:title>Example of SCAP Security Guidance</xccdf:title> |
| 5 |
<xccdf:description>This example security guidance has been created to demonstrate SCAP functionality |
| 6 |
on Linux.</xccdf:description> |
| 7 |
<xccdf:version>0.1</xccdf:version> |
| 8 |
<xccdf:model system="urn:xccdf:scoring:default"/> |
| 9 |
<xccdf:model system="urn:xccdf:scoring:flat"/> |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
<xccdf:Profile abstract="false" id="xccdf_cdf_profile_F14-Default"> |
| 19 |
<xccdf:title xml:lang="en">Default install settings</xccdf:title> |
| 20 |
<xccdf:description xml:lang="en">This profile is an example policy that simply checks if some of Fedora 14 default |
| 21 |
install settings have been modified. It is not comprehensive nor checks security hardening. It is just for testing |
| 22 |
purposes.</xccdf:description> |
| 23 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.1.a" selected="false"/> |
| 24 |
|
| 25 |
|
| 26 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.1.b" selected="false"/> |
| 27 |
|
| 28 |
|
| 29 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.2.a" selected="false"/> |
| 30 |
|
| 31 |
|
| 32 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.2.b" selected="false"/> |
| 33 |
|
| 34 |
|
| 35 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.3.a" selected="false"/> |
| 36 |
|
| 37 |
|
| 38 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.4.a" selected="false"/> |
| 39 |
|
| 40 |
|
| 41 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.1.1.5.a" selected="false"/> |
| 42 |
|
| 43 |
|
| 44 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.1.1.a" selected="true"/> |
| 45 |
|
| 46 |
|
| 47 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.2.a" selected="false"/> |
| 48 |
|
| 49 |
|
| 50 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.2.b" selected="false"/> |
| 51 |
|
| 52 |
|
| 53 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.3.a" selected="true"/> |
| 54 |
|
| 55 |
|
| 56 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.4.a" selected="true"/> |
| 57 |
|
| 58 |
|
| 59 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.5.a" selected="false"/> |
| 60 |
|
| 61 |
|
| 62 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.2.3.6.a" selected="true"/> |
| 63 |
|
| 64 |
|
| 65 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.3.1.1.a" selected="false"/> |
| 66 |
|
| 67 |
|
| 68 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.3.1.4.a" selected="false"/> |
| 69 |
|
| 70 |
|
| 71 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.1.3.2.a" selected="false"/> |
| 72 |
|
| 73 |
|
| 74 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.1.1.a" selected="false"/> |
| 75 |
|
| 76 |
|
| 77 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.1.2.a" selected="false"/> |
| 78 |
|
| 79 |
|
| 80 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.1.2.b" selected="false"/> |
| 81 |
|
| 82 |
|
| 83 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.1.2.c" selected="false"/> |
| 84 |
|
| 85 |
|
| 86 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.1.1.a" selected="false"/> |
| 87 |
|
| 88 |
|
| 89 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.1.2.a" selected="false"/> |
| 90 |
|
| 91 |
|
| 92 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.1.3.a" selected="false"/> |
| 93 |
|
| 94 |
|
| 95 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.1.4.a" selected="false"/> |
| 96 |
|
| 97 |
|
| 98 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.2.a" selected="false"/> |
| 99 |
|
| 100 |
|
| 101 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.3.a" selected="false"/> |
| 102 |
|
| 103 |
|
| 104 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.a" selected="false"/> |
| 105 |
|
| 106 |
|
| 107 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.b" selected="false"/> |
| 108 |
|
| 109 |
|
| 110 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.c" selected="false"/> |
| 111 |
|
| 112 |
|
| 113 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.d" selected="false"/> |
| 114 |
|
| 115 |
|
| 116 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.e" selected="false"/> |
| 117 |
|
| 118 |
|
| 119 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.f" selected="false"/> |
| 120 |
|
| 121 |
|
| 122 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.2.4.g" selected="false"/> |
| 123 |
|
| 124 |
|
| 125 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.a" selected="true"/> |
| 126 |
|
| 127 |
|
| 128 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.b" selected="true"/> |
| 129 |
|
| 130 |
|
| 131 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.c" selected="true"/> |
| 132 |
|
| 133 |
|
| 134 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.d" selected="true"/> |
| 135 |
|
| 136 |
|
| 137 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.e" selected="true"/> |
| 138 |
|
| 139 |
|
| 140 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.f" selected="true"/> |
| 141 |
|
| 142 |
|
| 143 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.g" selected="true"/> |
| 144 |
|
| 145 |
|
| 146 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.h" selected="true"/> |
| 147 |
|
| 148 |
|
| 149 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.i" selected="true"/> |
| 150 |
|
| 151 |
|
| 152 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.j" selected="true"/> |
| 153 |
|
| 154 |
|
| 155 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.k" selected="true"/> |
| 156 |
|
| 157 |
|
| 158 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.1.l" selected="true"/> |
| 159 |
|
| 160 |
|
| 161 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.2.a" selected="true"/> |
| 162 |
|
| 163 |
|
| 164 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.3.a" selected="true"/> |
| 165 |
|
| 166 |
|
| 167 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.4.a" selected="true"/> |
| 168 |
|
| 169 |
|
| 170 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.4.b" selected="true"/> |
| 171 |
|
| 172 |
|
| 173 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.5.a" selected="true"/> |
| 174 |
|
| 175 |
|
| 176 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.5.b" selected="true"/> |
| 177 |
|
| 178 |
|
| 179 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.3.6.a" selected="true"/> |
| 180 |
|
| 181 |
|
| 182 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.1.a" selected="true"/> |
| 183 |
|
| 184 |
|
| 185 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.2.a" selected="false"/> |
| 186 |
|
| 187 |
|
| 188 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.2.b" selected="true"/> |
| 189 |
|
| 190 |
|
| 191 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.3.a" selected="true"/> |
| 192 |
|
| 193 |
|
| 194 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.3.b" selected="true"/> |
| 195 |
|
| 196 |
|
| 197 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.2.4.4.2.a" selected="false"/> |
| 198 |
|
| 199 |
|
| 200 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.1.a" selected="false"/> |
| 201 |
|
| 202 |
|
| 203 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.1.b" selected="false"/> |
| 204 |
|
| 205 |
|
| 206 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.1.c" selected="false"/> |
| 207 |
|
| 208 |
|
| 209 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.1.d" selected="true"/> |
| 210 |
|
| 211 |
|
| 212 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.2.a" selected="false"/> |
| 213 |
|
| 214 |
|
| 215 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.2.b" selected="false"/> |
| 216 |
|
| 217 |
|
| 218 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.3.a" selected="false"/> |
| 219 |
|
| 220 |
|
| 221 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.4.a" selected="false"/> |
| 222 |
|
| 223 |
|
| 224 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.5.1.a" selected="true"/> |
| 225 |
|
| 226 |
|
| 227 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.5.2.a" selected="true"/> |
| 228 |
|
| 229 |
|
| 230 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.6.a" selected="true"/> |
| 231 |
|
| 232 |
|
| 233 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.7.a" selected="true"/> |
| 234 |
|
| 235 |
|
| 236 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.7.b" selected="false"/> |
| 237 |
|
| 238 |
|
| 239 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.7.c" selected="false"/> |
| 240 |
|
| 241 |
|
| 242 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.7.d" selected="true"/> |
| 243 |
|
| 244 |
|
| 245 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.8.a" selected="false"/> |
| 246 |
|
| 247 |
|
| 248 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.8.b" selected="false"/> |
| 249 |
|
| 250 |
|
| 251 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.1.8.c" selected="false"/> |
| 252 |
|
| 253 |
|
| 254 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.1.1.a" selected="false"/> |
| 255 |
|
| 256 |
|
| 257 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.1.2.a" selected="false"/> |
| 258 |
|
| 259 |
|
| 260 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.2.a" selected="false"/> |
| 261 |
|
| 262 |
|
| 263 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.2.b" selected="false"/> |
| 264 |
|
| 265 |
|
| 266 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.4.a" selected="false"/> |
| 267 |
|
| 268 |
|
| 269 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.4.b" selected="false"/> |
| 270 |
|
| 271 |
|
| 272 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.5.a" selected="true"/> |
| 273 |
|
| 274 |
|
| 275 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.3.6.a" selected="false"/> |
| 276 |
|
| 277 |
|
| 278 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.1.a" selected="true"/> |
| 279 |
|
| 280 |
|
| 281 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.1.b" selected="true"/> |
| 282 |
|
| 283 |
|
| 284 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.2.a" selected="true"/> |
| 285 |
|
| 286 |
|
| 287 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.4.a" selected="true"/> |
| 288 |
|
| 289 |
|
| 290 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.4.b" selected="true"/> |
| 291 |
|
| 292 |
|
| 293 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.4.5.a" selected="false"/> |
| 294 |
|
| 295 |
|
| 296 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.2.a" selected="true"/> |
| 297 |
|
| 298 |
|
| 299 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.2.b" selected="true"/> |
| 300 |
|
| 301 |
|
| 302 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.2.c" selected="true"/> |
| 303 |
|
| 304 |
|
| 305 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.2.d" selected="false"/> |
| 306 |
|
| 307 |
|
| 308 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.3.a" selected="false"/> |
| 309 |
|
| 310 |
|
| 311 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.4.a" selected="false"/> |
| 312 |
|
| 313 |
|
| 314 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.5.a" selected="false"/> |
| 315 |
|
| 316 |
|
| 317 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.5.b" selected="false"/> |
| 318 |
|
| 319 |
|
| 320 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.6.1.a" selected="false"/> |
| 321 |
|
| 322 |
|
| 323 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.6.1.b" selected="false"/> |
| 324 |
|
| 325 |
|
| 326 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.6.1.c" selected="false"/> |
| 327 |
|
| 328 |
|
| 329 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.6.1.d" selected="false"/> |
| 330 |
|
| 331 |
|
| 332 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.5.6.2.a" selected="false"/> |
| 333 |
|
| 334 |
|
| 335 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.7.1.a" selected="false"/> |
| 336 |
|
| 337 |
|
| 338 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.3.7.2.a" selected="false"/> |
| 339 |
|
| 340 |
|
| 341 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.2.a" selected="true"/> |
| 342 |
|
| 343 |
|
| 344 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.2.b" selected="false"/> |
| 345 |
|
| 346 |
|
| 347 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.2.c" selected="true"/> |
| 348 |
|
| 349 |
|
| 350 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.2.d" selected="true"/> |
| 351 |
|
| 352 |
|
| 353 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.2.1.a" selected="false"/> |
| 354 |
|
| 355 |
|
| 356 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.3.2.a" selected="false"/> |
| 357 |
|
| 358 |
|
| 359 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.3.3.a" selected="false"/> |
| 360 |
|
| 361 |
|
| 362 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.4.5.a" selected="false"/> |
| 363 |
|
| 364 |
|
| 365 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.1.a" selected="false"/> |
| 366 |
|
| 367 |
|
| 368 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.1.b" selected="false"/> |
| 369 |
|
| 370 |
|
| 371 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.1.c" selected="false"/> |
| 372 |
|
| 373 |
|
| 374 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.a" selected="false"/> |
| 375 |
|
| 376 |
|
| 377 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.b" selected="false"/> |
| 378 |
|
| 379 |
|
| 380 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.c" selected="false"/> |
| 381 |
|
| 382 |
|
| 383 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.d" selected="false"/> |
| 384 |
|
| 385 |
|
| 386 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.e" selected="false"/> |
| 387 |
|
| 388 |
|
| 389 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.f" selected="false"/> |
| 390 |
|
| 391 |
|
| 392 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.g" selected="false"/> |
| 393 |
|
| 394 |
|
| 395 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.h" selected="false"/> |
| 396 |
|
| 397 |
|
| 398 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.i" selected="false"/> |
| 399 |
|
| 400 |
|
| 401 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.j" selected="false"/> |
| 402 |
|
| 403 |
|
| 404 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.k" selected="false"/> |
| 405 |
|
| 406 |
|
| 407 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.1.2.l" selected="false"/> |
| 408 |
|
| 409 |
|
| 410 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.2.2.1.a" selected="false"/> |
| 411 |
|
| 412 |
|
| 413 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.2.2.2.a" selected="false"/> |
| 414 |
|
| 415 |
|
| 416 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.2.2.3.a" selected="false"/> |
| 417 |
|
| 418 |
|
| 419 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.1.1.a" selected="false"/> |
| 420 |
|
| 421 |
|
| 422 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.1.2.a" selected="false"/> |
| 423 |
|
| 424 |
|
| 425 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.1.2.b" selected="false"/> |
| 426 |
|
| 427 |
|
| 428 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.1.2.c" selected="false"/> |
| 429 |
|
| 430 |
|
| 431 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.1.a" selected="false"/> |
| 432 |
|
| 433 |
|
| 434 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.1.b" selected="false"/> |
| 435 |
|
| 436 |
|
| 437 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.1.c" selected="false"/> |
| 438 |
|
| 439 |
|
| 440 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.1.d" selected="false"/> |
| 441 |
|
| 442 |
|
| 443 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.3.a" selected="false"/> |
| 444 |
|
| 445 |
|
| 446 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.a" selected="false"/> |
| 447 |
|
| 448 |
|
| 449 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.b" selected="false"/> |
| 450 |
|
| 451 |
|
| 452 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.c" selected="false"/> |
| 453 |
|
| 454 |
|
| 455 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.d" selected="false"/> |
| 456 |
|
| 457 |
|
| 458 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.e" selected="false"/> |
| 459 |
|
| 460 |
|
| 461 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.f" selected="false"/> |
| 462 |
|
| 463 |
|
| 464 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.3.2.5.g" selected="false"/> |
| 465 |
|
| 466 |
|
| 467 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.5.1.a" selected="true"/> |
| 468 |
|
| 469 |
|
| 470 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.5.1.b" selected="true"/> |
| 471 |
|
| 472 |
|
| 473 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.5.3.1.a" selected="false"/> |
| 474 |
|
| 475 |
|
| 476 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.5.3.1.b" selected="false"/> |
| 477 |
|
| 478 |
|
| 479 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.7.1.a" selected="false"/> |
| 480 |
|
| 481 |
|
| 482 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.7.2.a" selected="false"/> |
| 483 |
|
| 484 |
|
| 485 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.7.3.a" selected="false"/> |
| 486 |
|
| 487 |
|
| 488 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.5.7.4.a" selected="false"/> |
| 489 |
|
| 490 |
|
| 491 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.a" selected="true"/> |
| 492 |
|
| 493 |
|
| 494 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.2.a" selected="true"/> |
| 495 |
|
| 496 |
|
| 497 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.2.b" selected="true"/> |
| 498 |
|
| 499 |
|
| 500 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.2.c" selected="true"/> |
| 501 |
|
| 502 |
|
| 503 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.3.a" selected="false"/> |
| 504 |
|
| 505 |
|
| 506 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.4.a" selected="false"/> |
| 507 |
|
| 508 |
|
| 509 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.5.a" selected="false"/> |
| 510 |
|
| 511 |
|
| 512 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.1.6.a" selected="false"/> |
| 513 |
|
| 514 |
|
| 515 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.1.a" selected="true"/> |
| 516 |
|
| 517 |
|
| 518 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.3.a" selected="false"/> |
| 519 |
|
| 520 |
|
| 521 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.1.a" selected="false"/> |
| 522 |
|
| 523 |
|
| 524 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.2.a" selected="false"/> |
| 525 |
|
| 526 |
|
| 527 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.3.a" selected="false"/> |
| 528 |
|
| 529 |
-> |
| 530 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.4.a" selected="false"/> |
| 531 |
|
| 532 |
-> |
| 533 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.5.a" selected="false"/> |
| 534 |
|
| 535 |
|
| 536 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.6.a" selected="false"/> |
| 537 |
|
| 538 |
|
| 539 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.7.a" selected="false"/> |
| 540 |
|
| 541 |
-> |
| 542 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.8.a" selected="false"/> |
| 543 |
|
| 544 |
|
| 545 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.9.a" selected="false"/> |
| 546 |
|
| 547 |
|
| 548 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.10.a" selected="false"/> |
| 549 |
|
| 550 |
|
| 551 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.11.a" selected="false"/> |
| 552 |
|
| 553 |
|
| 554 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.12.a" selected="false"/> |
| 555 |
|
| 556 |
|
| 557 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.13.a" selected="false"/> |
| 558 |
|
| 559 |
|
| 560 |
<xccdf:select idref="xccdf_cdf_rule_rule-2.6.2.4.14.a" selected="false"/> |
| 561 |
|
| 562 |
-> |
| 563 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.1.a" selected="false"/> |
| 564 |
|
| 565 |
|
| 566 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.1.b" selected="false"/> |
| 567 |
|
| 568 |
|
| 569 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.1.c" selected="false"/> |
| 570 |
|
| 571 |
|
| 572 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.1.d" selected="false"/> |
| 573 |
|
| 574 |
|
| 575 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.2.a" selected="false"/> |
| 576 |
|
| 577 |
|
| 578 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.2.b" selected="false"/> |
| 579 |
|
| 580 |
|
| 581 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.2.1.a" selected="false"/> |
| 582 |
|
| 583 |
|
| 584 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.2.1.b" selected="false"/> |
| 585 |
|
| 586 |
|
| 587 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.1.a" selected="false"/> |
| 588 |
|
| 589 |
|
| 590 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.1.b" selected="false"/> |
| 591 |
|
| 592 |
|
| 593 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.1.c" selected="false"/> |
| 594 |
|
| 595 |
|
| 596 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.1.d" selected="false"/> |
| 597 |
|
| 598 |
|
| 599 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.2.a" selected="false"/> |
| 600 |
|
| 601 |
|
| 602 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.3.3.a" selected="false"/> |
| 603 |
|
| 604 |
|
| 605 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.4.a" selected="false"/> |
| 606 |
|
| 607 |
|
| 608 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.4.b" selected="false"/> |
| 609 |
|
| 610 |
|
| 611 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.5.a" selected="false"/> |
| 612 |
|
| 613 |
|
| 614 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.2.5.b" selected="false"/> |
| 615 |
|
| 616 |
|
| 617 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.1.a" selected="false"/> |
| 618 |
|
| 619 |
|
| 620 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.2.a" selected="false"/> |
| 621 |
|
| 622 |
|
| 623 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.3.a" selected="false"/> |
| 624 |
|
| 625 |
|
| 626 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.4.a" selected="false"/> |
| 627 |
|
| 628 |
|
| 629 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.5.a" selected="false"/> |
| 630 |
|
| 631 |
|
| 632 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.6.a" selected="false"/> |
| 633 |
|
| 634 |
|
| 635 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.7.a" selected="false"/> |
| 636 |
|
| 637 |
|
| 638 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.8.a" selected="false"/> |
| 639 |
|
| 640 |
|
| 641 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.9.1.a" selected="false"/> |
| 642 |
|
| 643 |
|
| 644 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.9.2.a" selected="false"/> |
| 645 |
|
| 646 |
|
| 647 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.9.3.a" selected="false"/> |
| 648 |
|
| 649 |
|
| 650 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.10.a" selected="false"/> |
| 651 |
|
| 652 |
|
| 653 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.11.a" selected="false"/> |
| 654 |
|
| 655 |
|
| 656 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.12.a" selected="false"/> |
| 657 |
|
| 658 |
|
| 659 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.12.b" selected="false"/> |
| 660 |
|
| 661 |
|
| 662 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.13.1.a" selected="false"/> |
| 663 |
|
| 664 |
|
| 665 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.13.2.a" selected="false"/> |
| 666 |
|
| 667 |
|
| 668 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.14.1.a" selected="false"/> |
| 669 |
|
| 670 |
|
| 671 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.14.2.a" selected="false"/> |
| 672 |
|
| 673 |
|
| 674 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.14.3.a" selected="false"/> |
| 675 |
|
| 676 |
|
| 677 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.15.1.a" selected="false"/> |
| 678 |
|
| 679 |
|
| 680 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.15.2.a" selected="false"/> |
| 681 |
|
| 682 |
|
| 683 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.3.15.3.a" selected="false"/> |
| 684 |
|
| 685 |
|
| 686 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.a" selected="false"/> |
| 687 |
|
| 688 |
|
| 689 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.1.a" selected="false"/> |
| 690 |
|
| 691 |
|
| 692 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.1.b" selected="false"/> |
| 693 |
|
| 694 |
|
| 695 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.1.a" selected="true"/> |
| 696 |
|
| 697 |
|
| 698 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.1.b" selected="true"/> |
| 699 |
|
| 700 |
|
| 701 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.1.c" selected="true"/> |
| 702 |
|
| 703 |
|
| 704 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.2.a" selected="true"/> |
| 705 |
|
| 706 |
|
| 707 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.2.b" selected="true"/> |
| 708 |
|
| 709 |
|
| 710 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.2.c" selected="true"/> |
| 711 |
|
| 712 |
|
| 713 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.a" selected="true"/> |
| 714 |
|
| 715 |
|
| 716 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.b" selected="true"/> |
| 717 |
|
| 718 |
|
| 719 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.c" selected="true"/> |
| 720 |
|
| 721 |
|
| 722 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.d" selected="true"/> |
| 723 |
|
| 724 |
|
| 725 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.e" selected="true"/> |
| 726 |
|
| 727 |
|
| 728 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.f" selected="true"/> |
| 729 |
|
| 730 |
|
| 731 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.g" selected="true"/> |
| 732 |
|
| 733 |
|
| 734 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.h" selected="true"/> |
| 735 |
|
| 736 |
|
| 737 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.i" selected="true"/> |
| 738 |
|
| 739 |
|
| 740 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.j" selected="true"/> |
| 741 |
|
| 742 |
|
| 743 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.k" selected="true"/> |
| 744 |
|
| 745 |
|
| 746 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.l" selected="true"/> |
| 747 |
|
| 748 |
|
| 749 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.m" selected="true"/> |
| 750 |
|
| 751 |
|
| 752 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.n" selected="true"/> |
| 753 |
|
| 754 |
|
| 755 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.3.o" selected="true"/> |
| 756 |
|
| 757 |
|
| 758 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.4.a" selected="true"/> |
| 759 |
|
| 760 |
|
| 761 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.4.b" selected="true"/> |
| 762 |
|
| 763 |
|
| 764 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.2.4.c" selected="true"/> |
| 765 |
|
| 766 |
|
| 767 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.3.a" selected="false"/> |
| 768 |
|
| 769 |
|
| 770 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.3.b" selected="false"/> |
| 771 |
|
| 772 |
|
| 773 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.4.a" selected="false"/> |
| 774 |
|
| 775 |
|
| 776 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.4.4.b" selected="false"/> |
| 777 |
|
| 778 |
|
| 779 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.1.1.a" selected="false"/> |
| 780 |
|
| 781 |
|
| 782 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.1.1.b" selected="false"/> |
| 783 |
|
| 784 |
|
| 785 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.1.2.a" selected="false"/> |
| 786 |
|
| 787 |
|
| 788 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.1.2.b" selected="false"/> |
| 789 |
|
| 790 |
|
| 791 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.1.a" selected="false"/> |
| 792 |
|
| 793 |
|
| 794 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.3.a" selected="false"/> |
| 795 |
|
| 796 |
|
| 797 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.3.b" selected="false"/> |
| 798 |
|
| 799 |
|
| 800 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.4.a" selected="false"/> |
| 801 |
|
| 802 |
|
| 803 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.5.a" selected="false"/> |
| 804 |
|
| 805 |
|
| 806 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.6.a" selected="false"/> |
| 807 |
|
| 808 |
|
| 809 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.7.a" selected="false"/> |
| 810 |
|
| 811 |
|
| 812 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.8.a" selected="false"/> |
| 813 |
|
| 814 |
|
| 815 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.9.a" selected="false"/> |
| 816 |
|
| 817 |
|
| 818 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.5.2.10.a" selected="false"/> |
| 819 |
|
| 820 |
|
| 821 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.6.1.1.a" selected="false"/> |
| 822 |
|
| 823 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.6.1.2.a" selected="false"/> |
| 824 |
|
| 825 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.6.1.3.2.a" selected="false"/> |
| 826 |
|
| 827 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.6.2.1.a" selected="false"/> |
| 828 |
|
| 829 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.1.1.a" selected="false"/> |
| 830 |
|
| 831 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.1.a" selected="false"/> |
| 832 |
|
| 833 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.1.b" selected="false"/> |
| 834 |
|
| 835 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.2.a" selected="false"/> |
| 836 |
|
| 837 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.3.a" selected="false"/> |
| 838 |
|
| 839 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.4.a" selected="false"/> |
| 840 |
|
| 841 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.5.a" selected="false"/> |
| 842 |
|
| 843 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.5.b" selected="false"/> |
| 844 |
|
| 845 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.5.c" selected="false"/> |
| 846 |
|
| 847 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.5.d" selected="false"/> |
| 848 |
|
| 849 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.7.2.5.e" selected="false"/> |
| 850 |
|
| 851 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.1.a" selected="false"/> |
| 852 |
|
| 853 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.2.a" selected="false"/> |
| 854 |
|
| 855 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.2.b" selected="false"/> |
| 856 |
|
| 857 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.3.1.1.a" selected="false"/> |
| 858 |
|
| 859 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.3.1.1.b" selected="false"/> |
| 860 |
|
| 861 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.8.4.1.a" selected="false"/> |
| 862 |
|
| 863 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.1.a" selected="false"/> |
| 864 |
|
| 865 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.3.a" selected="false"/> |
| 866 |
|
| 867 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.3.b" selected="false"/> |
| 868 |
|
| 869 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.1.a" selected="false"/> |
| 870 |
|
| 871 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.2.a" selected="false"/> |
| 872 |
|
| 873 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.3.a" selected="false"/> |
| 874 |
|
| 875 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.a" selected="false"/> |
| 876 |
|
| 877 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.b" selected="false"/> |
| 878 |
|
| 879 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.c" selected="false"/> |
| 880 |
|
| 881 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.d" selected="false"/> |
| 882 |
|
| 883 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.e" selected="false"/> |
| 884 |
|
| 885 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.f" selected="false"/> |
| 886 |
|
| 887 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.4.g" selected="false"/> |
| 888 |
|
| 889 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.9.4.5.a" selected="false"/> |
| 890 |
|
| 891 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.2.2.1.a" selected="false"/> |
| 892 |
|
| 893 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.2.2.2.a" selected="false"/> |
| 894 |
|
| 895 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.2.2.3.a" selected="false"/> |
| 896 |
|
| 897 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.3.1.a" selected="false"/> |
| 898 |
|
| 899 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.3.2.1.a" selected="false"/> |
| 900 |
|
| 901 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.10.3.2.2.a" selected="false"/> |
| 902 |
|
| 903 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.11.2.1.a" selected="false"/> |
| 904 |
|
| 905 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.12.2.2.a" selected="false"/> |
| 906 |
|
| 907 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.12.3.1.a" selected="false"/> |
| 908 |
|
| 909 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.1.1.a" selected="false"/> |
| 910 |
|
| 911 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.1.1.b" selected="false"/> |
| 912 |
|
| 913 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.1.1.c" selected="false"/> |
| 914 |
|
| 915 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.1.2.a" selected="false"/> |
| 916 |
|
| 917 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.a" selected="false"/> |
| 918 |
|
| 919 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.b" selected="false"/> |
| 920 |
|
| 921 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.c" selected="false"/> |
| 922 |
|
| 923 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.d" selected="false"/> |
| 924 |
|
| 925 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.e" selected="false"/> |
| 926 |
|
| 927 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.2.3.f" selected="false"/> |
| 928 |
|
| 929 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.3.1.a" selected="false"/> |
| 930 |
|
| 931 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.3.1.b" selected="false"/> |
| 932 |
|
| 933 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.3.2.a" selected="false"/> |
| 934 |
|
| 935 |
|
| 936 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.3.2.b" selected="false"/> |
| 937 |
|
| 938 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.3.2.c" selected="false"/> |
| 939 |
|
| 940 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.4.1.2.a" selected="false"/> |
| 941 |
|
| 942 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.4.1.3.a" selected="false"/> |
| 943 |
|
| 944 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.13.4.1.4.a" selected="false"/> |
| 945 |
|
| 946 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.1.a" selected="false"/> |
| 947 |
|
| 948 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.1.b" selected="false"/> |
| 949 |
|
| 950 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.3.2.a" selected="false"/> |
| 951 |
|
| 952 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.3.2.b" selected="false"/> |
| 953 |
|
| 954 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.3.2.c" selected="false"/> |
| 955 |
|
| 956 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.14.4.5.a" selected="false"/> |
| 957 |
|
| 958 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.1.a" selected="false"/> |
| 959 |
|
| 960 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.1.b" selected="false"/> |
| 961 |
|
| 962 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.3.1.a" selected="false"/> |
| 963 |
|
| 964 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.3.2.a" selected="false"/> |
| 965 |
|
| 966 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.3.3.1.a" selected="false"/> |
| 967 |
|
| 968 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.15.3.4.a" selected="false"/> |
| 969 |
|
| 970 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.1.a" selected="false"/> |
| 971 |
|
| 972 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.1.b" selected="false"/> |
| 973 |
|
| 974 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.3.1.a" selected="false"/> |
| 975 |
|
| 976 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.3.1.b" selected="false"/> |
| 977 |
|
| 978 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.5.1.a" selected="false"/> |
| 979 |
|
| 980 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.5.1.b" selected="false"/> |
| 981 |
|
| 982 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.5.1.c" selected="false"/> |
| 983 |
|
| 984 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.5.1.d" selected="false"/> |
| 985 |
|
| 986 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.16.5.1.e" selected="false"/> |
| 987 |
|
| 988 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.1.a" selected="false"/> |
| 989 |
|
| 990 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.1.b" selected="false"/> |
| 991 |
|
| 992 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.1.a" selected="false"/> |
| 993 |
|
| 994 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.1.b" selected="false"/> |
| 995 |
|
| 996 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.1.c" selected="false"/> |
| 997 |
|
| 998 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.1.d" selected="false"/> |
| 999 |
|
| 1000 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.2.4.a" selected="false"/> |
| 1001 |
|
| 1002 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.3.a" selected="false"/> |
| 1003 |
|
| 1004 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.17.2.3.b" selected="false"/> |
| 1005 |
|
| 1006 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.18.1.a" selected="false"/> |
| 1007 |
|
| 1008 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.18.2.3.a" selected="false"/> |
| 1009 |
|
| 1010 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.18.2.10.a" selected="false"/> |
| 1011 |
|
| 1012 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.18.2.11.a" selected="false"/> |
| 1013 |
|
| 1014 |
|
| 1015 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.1.a" selected="false"/> |
| 1016 |
|
| 1017 |
|
| 1018 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.1.b" selected="false"/> |
| 1019 |
|
| 1020 |
|
| 1021 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.a" selected="false"/> |
| 1022 |
|
| 1023 |
|
| 1024 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.b" selected="false"/> |
| 1025 |
|
| 1026 |
|
| 1027 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.c" selected="false"/> |
| 1028 |
|
| 1029 |
|
| 1030 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.d" selected="false"/> |
| 1031 |
|
| 1032 |
|
| 1033 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.e" selected="false"/> |
| 1034 |
|
| 1035 |
|
| 1036 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.f" selected="false"/> |
| 1037 |
|
| 1038 |
|
| 1039 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.g" selected="false"/> |
| 1040 |
|
| 1041 |
|
| 1042 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.2.h" selected="false"/> |
| 1043 |
|
| 1044 |
|
| 1045 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.3.a" selected="false"/> |
| 1046 |
|
| 1047 |
|
| 1048 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.3.b" selected="false"/> |
| 1049 |
|
| 1050 |
|
| 1051 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.3.c" selected="false"/> |
| 1052 |
|
| 1053 |
|
| 1054 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.3.d" selected="false"/> |
| 1055 |
|
| 1056 |
|
| 1057 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.a" selected="false"/> |
| 1058 |
|
| 1059 |
|
| 1060 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.b" selected="false"/> |
| 1061 |
|
| 1062 |
|
| 1063 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.c" selected="false"/> |
| 1064 |
|
| 1065 |
|
| 1066 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.d" selected="false"/> |
| 1067 |
|
| 1068 |
|
| 1069 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.e" selected="false"/> |
| 1070 |
|
| 1071 |
|
| 1072 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.f" selected="false"/> |
| 1073 |
|
| 1074 |
|
| 1075 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.g" selected="false"/> |
| 1076 |
|
| 1077 |
|
| 1078 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.h" selected="false"/> |
| 1079 |
|
| 1080 |
|
| 1081 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.i" selected="false"/> |
| 1082 |
|
| 1083 |
|
| 1084 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.19.2.5.j" selected="false"/> |
| 1085 |
|
| 1086 |
|
| 1087 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.20.1.a" selected="false"/> |
| 1088 |
|
| 1089 |
|
| 1090 |
<xccdf:select idref="xccdf_cdf_rule_rule-3.20.1.b" selected="false"/> |
| 1091 |
|
| 1092 |
|
| 1093 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.2.3.1.i" selector="000"/> |
| 1094 |
|
| 1095 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.2.3.1.j" selector="644"/> |
| 1096 |
|
| 1097 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.2.3.1.k" selector="000"/> |
| 1098 |
|
| 1099 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.2.3.1.l" selector="644"/> |
| 1100 |
|
| 1101 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.2.4.1.a" selector="022"/> |
| 1102 |
|
| 1103 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.1.7.a" selector="5"/> |
| 1104 |
|
| 1105 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.1.7.b" selector="1_day"/> |
| 1106 |
|
| 1107 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.1.7.c" selector="60_days"/> |
| 1108 |
|
| 1109 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.1.7.d" selector="7_days"/> |
| 1110 |
|
| 1111 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.retry" selector="3"/> |
| 1112 |
|
| 1113 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.minlen" selector="14"/> |
| 1114 |
|
| 1115 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.dcredit" selector="2"/> |
| 1116 |
|
| 1117 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.ucredit" selector="2"/> |
| 1118 |
|
| 1119 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.ocredit" selector="2"/> |
| 1120 |
|
| 1121 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.lcredit" selector="2"/> |
| 1122 |
|
| 1123 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.1.1.a.difok" selector="3"/> |
| 1124 |
|
| 1125 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.2.a.deny" selector="3"/> |
| 1126 |
|
| 1127 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.2.a.lock_time" selector="3"/> |
| 1128 |
|
| 1129 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.2.a.unlock_time" selector="none"/> |
| 1130 |
|
| 1131 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.4.a" selector="usergroup"/> |
| 1132 |
|
| 1133 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.4.b" selector="4710"/> |
| 1134 |
|
| 1135 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.5.a" selector="SHA-512"/> |
| 1136 |
|
| 1137 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.3.6.a" selector="5"/> |
| 1138 |
|
| 1139 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.4.4" selector="002"/> |
| 1140 |
|
| 1141 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.5.2.a" selector="root"/> |
| 1142 |
|
| 1143 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.5.2.b" selector="root"/> |
| 1144 |
|
| 1145 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.5.2.c" selector="600"/> |
| 1146 |
|
| 1147 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.5.5" selector="15_minutes"/> |
| 1148 |
|
| 1149 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.3.7" selector="Empty_text"/> |
| 1150 |
|
| 1151 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.4.2.c" selector="enforcing"/> |
| 1152 |
|
| 1153 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.4.2.d" selector="targeted"/> |
| 1154 |
|
| 1155 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.a" selector="disabled"/> |
| 1156 |
|
| 1157 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.b" selector="disabled"/> |
| 1158 |
|
| 1159 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.c" selector="disabled"/> |
| 1160 |
|
| 1161 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.d" selector="enabled"/> |
| 1162 |
|
| 1163 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.e" selector="disabled"/> |
| 1164 |
|
| 1165 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.f" selector="disabled"/> |
| 1166 |
|
| 1167 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.g" selector="disabled"/> |
| 1168 |
|
| 1169 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.h" selector="enabled"/> |
| 1170 |
|
| 1171 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.i" selector="enabled"/> |
| 1172 |
|
| 1173 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.j" selector="enabled"/> |
| 1174 |
|
| 1175 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.k" selector="enabled"/> |
| 1176 |
|
| 1177 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.3.2.1.b" selector="disabled"/> |
| 1178 |
|
| 1179 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.3.2.1.c" selector="disabled"/> |
| 1180 |
|
| 1181 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.5.1.2.l" selector="enabled"/> |
| 1182 |
|
| 1183 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.6.1.2.a" selector="root"/> |
| 1184 |
|
| 1185 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.6.1.2.b" selector="root"/> |
| 1186 |
|
| 1187 |
<xccdf:refine-value idref="xccdf_cdf_value_var-2.6.1.2.c" selector="600"/> |
| 1188 |
|
| 1189 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.primary.group" selector="root"/> |
| 1190 |
|
| 1191 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.primary.user" selector="root"/> |
| 1192 |
|
| 1193 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.primary.permissions" selector="644"/> |
| 1194 |
|
| 1195 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.anacrontab.group" selector="root"/> |
| 1196 |
|
| 1197 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.anacrontab.user" selector="root"/> |
| 1198 |
|
| 1199 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.anacrontab.permissions" selector="644"/> |
| 1200 |
|
| 1201 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group" selector="root"/> |
| 1202 |
|
| 1203 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user" selector="root"/> |
| 1204 |
|
| 1205 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions" selector="755"/> |
| 1206 |
|
| 1207 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.5.2.3.a" selector="5_minutes"/> |
| 1208 |
|
| 1209 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.5.2.3.b" selector="0"/> |
| 1210 |
|
| 1211 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.spool.directory.group" selector="root"/> |
| 1212 |
|
| 1213 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.spool.directory.user" selector="root"/> |
| 1214 |
|
| 1215 |
<xccdf:refine-value idref="xccdf_cdf_value_var-3.4.2.spool.directory.permissions" selector="700"/> |
| 1216 |
|
| 1217 |
</xccdf:Profile> |
| 1218 |
|
| 1219 |
|
| 1220 |
|
| 1221 |
|
| 1222 |
|
| 1223 |
|
| 1224 |
|
| 1225 |
|
| 1226 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1"> |
| 1227 |
<xccdf:title xml:lang="en">Introduction</xccdf:title> |
| 1228 |
<xccdf:description xml:lang="en"> |
| 1229 |
The purpose of this guide is to provide security configuration |
| 1230 |
recommendations for Fedora Linux. Recommended settings for the basic |
| 1231 |
operating system are provided, as well as for many commonly-used services |
| 1232 |
that the system can host in a network environment.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1233 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1234 |
The guide is intended for system administrators. Readers are |
| 1235 |
assumed to possess basic system administration skills for Unix-like systems, as well as some |
| 1236 |
familiarity with Red Hat's documentation and administration conventions. Some instructions |
| 1237 |
within this guide are complex. All directions should be followed completely and with |
| 1238 |
understanding of their effects in order to avoid serious adverse effects on the system and its |
| 1239 |
security. |
| 1240 |
</xccdf:description> |
| 1241 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1"> |
| 1242 |
<xccdf:title xml:lang="en">General Principles</xccdf:title> |
| 1243 |
<xccdf:description xml:lang="en"> |
| 1244 |
The following general principles motivate much of the advice in |
| 1245 |
this guide and should also influence any configuration decisions that are not explicitly |
| 1246 |
covered.</xccdf:description> |
| 1247 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1.1" weight="1.0"> |
| 1248 |
<xccdf:title xml:lang="en">Encrypt Transmitted Data Whenever Possible</xccdf:title> |
| 1249 |
<xccdf:description xml:lang="en"> |
| 1250 |
Data transmitted over a network, whether wired or wireless, is |
| 1251 |
susceptible to passive monitoring. Whenever practical solutions for encrypting such data |
| 1252 |
exist, they should be applied. Even if data is expected to be transmitted only over a |
| 1253 |
local network, it should still be encrypted. Encrypting authentication data, such as |
| 1254 |
passwords, is particularly important. Networks of machines can and should be |
| 1255 |
configured so that no unencrypted authentication data is ever transmitted between |
| 1256 |
machines.</xccdf:description> |
| 1257 |
</xccdf:Group> |
| 1258 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1.2"> |
| 1259 |
<xccdf:title xml:lang="en">Minimize Software to Minimize Vulnerability</xccdf:title> |
| 1260 |
<xccdf:description xml:lang="en"> |
| 1261 |
The simplest way to avoid vulnerabilities in software is to avoid |
| 1262 |
installing that software. The RPM Package Manager allows for careful management of the |
| 1263 |
set of software packages installed on a system. Installed software contributes to system |
| 1264 |
vulnerability in several ways. Packages that include setuid programs may provide local |
| 1265 |
attackers a potential path to privilege escalation. Packages that include network services |
| 1266 |
may give this opportunity to network-based attackers. Packages that include programs |
| 1267 |
which are predictably executed by local users (e.g. after graphical login) may provide |
| 1268 |
opportunities for trojan horses or other attack code to be run undetected. The number of |
| 1269 |
software packages installed on a system can almost always be significantly pruned to include only |
| 1270 |
the software for which there is an environmental or operational need.</xccdf:description> |
| 1271 |
</xccdf:Group> |
| 1272 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1.3"> |
| 1273 |
<xccdf:title xml:lang="en">Run Different Network Services on Separate Systems</xccdf:title> |
| 1274 |
<xccdf:description xml:lang="en"> |
| 1275 |
Whenever possible, a server should be dedicated to serving |
| 1276 |
exactly one network service. This limits the number of other services that can be |
| 1277 |
compromised in the event that an attacker is able to successfully exploit a software flaw |
| 1278 |
in one network service.</xccdf:description> |
| 1279 |
</xccdf:Group> |
| 1280 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1.4"> |
| 1281 |
<xccdf:title xml:lang="en">Configure Security Tools to Improve System Robustness</xccdf:title> |
| 1282 |
<xccdf:description xml:lang="en"> |
| 1283 |
Several tools exist which can be effectively used to improve a |
| 1284 |
system's resistance to and detection of unknown attacks. These tools can improve |
| 1285 |
robustness against attack at the cost of relatively little configuration effort. In |
| 1286 |
particular, this guide recommends and discusses the use of Iptables for host-based |
| 1287 |
firewalling, SELinux for protection against vulnerable services, and a logging and |
| 1288 |
auditing infrastructure for detection of problems.</xccdf:description> |
| 1289 |
</xccdf:Group> |
| 1290 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.1.5"> |
| 1291 |
<xccdf:title xml:lang="en">Least Privilege</xccdf:title> |
| 1292 |
<xccdf:description xml:lang="en"> |
| 1293 |
Grant the least privilege necessary for user accounts and |
| 1294 |
software to perform tasks. For example, do not allow users except those that need |
| 1295 |
administrator access to use sudo. Another example is to limit logins on server |
| 1296 |
systems to only those administrators who need to log into them in order to perform |
| 1297 |
administration tasks. Using SELinux also follows the principle of least privilege: |
| 1298 |
SELinux policy can confine software to perform only actions on the system that are |
| 1299 |
specifically allowed. This can be far more restrictive than the actions permissible |
| 1300 |
by the traditional Unix permissions model.</xccdf:description> |
| 1301 |
</xccdf:Group> |
| 1302 |
</xccdf:Group> |
| 1303 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2"> |
| 1304 |
<xccdf:title xml:lang="en">How to Use This Guide</xccdf:title> |
| 1305 |
<xccdf:description xml:lang="en">Readers should heed the following points when using the guide.</xccdf:description> |
| 1306 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2.1"> |
| 1307 |
<xccdf:title xml:lang="en">Read Sections Completely and in Order</xccdf:title> |
| 1308 |
<xccdf:description xml:lang="en"> |
| 1309 |
Each section may build on information and recommendations |
| 1310 |
discussed in prior sections. Each section should be read and understood completely; |
| 1311 |
instructions should never be blindly applied. Relevant discussion will occur after |
| 1312 |
instructions for an action. The system-level configuration guidance in Chapter 2 must be |
| 1313 |
applied to all machines. The guidance for individual services in Chapter 3 must be |
| 1314 |
considered for all machines as well: apply the guidance if the machine is either a server |
| 1315 |
or a client for that service, and ensure that the service is disabled according to the |
| 1316 |
instructions provided if the machine is neither a server nor a client.</xccdf:description> |
| 1317 |
</xccdf:Group> |
| 1318 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2.2"> |
| 1319 |
<xccdf:title xml:lang="en">Test in Non-Production Environment</xccdf:title> |
| 1320 |
<xccdf:description xml:lang="en"> |
| 1321 |
This guidance should always be tested in a non-production |
| 1322 |
environment before deployment. This test environment should simulate the setup in which |
| 1323 |
the system will be deployed as closely as possible.</xccdf:description> |
| 1324 |
</xccdf:Group> |
| 1325 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2.3"> |
| 1326 |
<xccdf:title xml:lang="en">Root Shell Environment Assumed</xccdf:title> |
| 1327 |
<xccdf:description xml:lang="en"> |
| 1328 |
Most of the actions listed in this document are written with the |
| 1329 |
assumption that they will be executed by the root user running the /bin/bash shell. Any |
| 1330 |
commands preceded with a hash mark (#) assume that the administrator will execute the |
| 1331 |
commands as root, i.e. apply the command via sudo whenever possible, or use su to gain |
| 1332 |
root privileges if sudo cannot be used.</xccdf:description> |
| 1333 |
</xccdf:Group> |
| 1334 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2.4"> |
| 1335 |
<xccdf:title xml:lang="en">Formatting Conventions</xccdf:title> |
| 1336 |
<xccdf:description xml:lang="en"> |
| 1337 |
Commands intended for shell execution, as well as configuration |
| 1338 |
file text, are featured in a monospace font. Italics are used to indicate instances where |
| 1339 |
the system administrator must substitute the appropriate information into a command or |
| 1340 |
configuration file.</xccdf:description> |
| 1341 |
</xccdf:Group> |
| 1342 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-1.2.5"> |
| 1343 |
<xccdf:title xml:lang="en">Reboot Required</xccdf:title> |
| 1344 |
<xccdf:description xml:lang="en"> |
| 1345 |
A system reboot is implicitly required after some actions in |
| 1346 |
order to complete the reconfiguration of the system. In many cases, the changes will not |
| 1347 |
take effect until a reboot is performed. In order to ensure that changes are applied |
| 1348 |
properly and to test functionality, always reboot the system after applying a set of |
| 1349 |
recommendations from this guide.</xccdf:description> |
| 1350 |
</xccdf:Group> |
| 1351 |
</xccdf:Group> |
| 1352 |
</xccdf:Group> |
| 1353 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2"> |
| 1354 |
<xccdf:title xml:lang="en">System-wide Configuration</xccdf:title> |
| 1355 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1"> |
| 1356 |
<xccdf:title xml:lang="en">Installing and Maintaining Software</xccdf:title> |
| 1357 |
<xccdf:description xml:lang="en"> |
| 1358 |
The following sections contain information on security-relevant |
| 1359 |
choices during the initial operating system installation process and the setup of software |
| 1360 |
updates.</xccdf:description> |
| 1361 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1"> |
| 1362 |
<xccdf:title xml:lang="en">Initial Installation Recommendations</xccdf:title> |
| 1363 |
<xccdf:description xml:lang="en"> |
| 1364 |
The recommendations here apply to a clean installation of the |
| 1365 |
system, where any previous installations are wiped out. The sections presented here are in |
| 1366 |
the same order that the installer presents, but only installation choices with security |
| 1367 |
implications are covered. Many of the configuration choices presented here can also be |
| 1368 |
applied after the system is installed. The choices can also be automatically applied via |
| 1369 |
Kickstart files.</xccdf:description> |
| 1370 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1"> |
| 1371 |
<xccdf:title xml:lang="en">Disk Partitioning</xccdf:title> |
| 1372 |
<xccdf:description xml:lang="en"> |
| 1373 |
Some system directories should be placed on their own partitions |
| 1374 |
(or logical volumes). This allows for better separation and protection of data. |
| 1375 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1376 |
The installer’s default partitioning scheme creates separate partitions (or logical volumes) |
| 1377 |
for /, /boot, and swap.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1378 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 1379 |
<xhtml:li>If starting with any of the default layouts, check the box to “Review and modify |
| 1380 |
partitioning.” This allows for the easy creation of additional logical volumes inside |
| 1381 |
the volume group already created, though it may require making /’s logical volume smaller |
| 1382 |
to create space. In general, using logical volumes is preferable to using partitions |
| 1383 |
because they can be more easily adjusted later.</xhtml:li> |
| 1384 |
<xhtml:li>If creating a custom layout, create the partitions mentioned in the previous paragraph |
| 1385 |
(which the installer will require anyway), as well as separate ones described in the |
| 1386 |
following sections.</xhtml:li> |
| 1387 |
</xhtml:ul> |
| 1388 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1389 |
If a system has already been installed, and the default partitioning scheme was |
| 1390 |
used, it is possible but nontrivial to modify it to create separate logical volumes for the |
| 1391 |
directories listed above. The Logical Volume Manager (LVM) makes this possible. See the LVM |
| 1392 |
HOWTO at http://tldp.org/HOWTO/LVM-HOWTO/ for more detailed information on LVM. |
| 1393 |
</xccdf:description> |
| 1394 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.1"> |
| 1395 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /tmp</xccdf:title> |
| 1396 |
<xccdf:description xml:lang="en"> |
| 1397 |
The /tmp directory is a world-writable directory used for |
| 1398 |
temporary file storage. Ensure that it has its own partition or logical volume.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1399 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1400 |
Because software may need to use /tmp to temporarily store large files, ensure |
| 1401 |
that it is of adequate size. For a modern, general-purpose system, 10GB should be adequate. Smaller or larger sizes could be used, depending on |
| 1402 |
the availability of space on the drive and the system’s operating requirements |
| 1403 |
</xccdf:description> |
| 1404 |
<xccdf:Value id="xccdf_cdf_value_var-2.1.1.1.1.b" operator="equals" type="string"> |
| 1405 |
<xccdf:title>Minimum size for /tmp</xccdf:title> |
| 1406 |
<xccdf:question xml:lang="en">Choose minimum size of /tmp</xccdf:question> |
| 1407 |
<xccdf:value>2G</xccdf:value> |
| 1408 |
<xccdf:value selector="125M">125M</xccdf:value> |
| 1409 |
<xccdf:value selector="500M">500M</xccdf:value> |
| 1410 |
<xccdf:value selector="2G">2G</xccdf:value> |
| 1411 |
<xccdf:value selector="10G">10G</xccdf:value> |
| 1412 |
<xccdf:value selector="40G">40G</xccdf:value> |
| 1413 |
<xccdf:match>^[\d]+[KMGkmg]?$</xccdf:match> |
| 1414 |
</xccdf:Value> |
| 1415 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.1.a" selected="false" weight="10.0"> |
| 1416 |
<xccdf:title xml:lang="en">Ensure that /tmp has its own partition or logical volume</xccdf:title> |
| 1417 |
<xccdf:description xml:lang="en">The /tmp directory is a world-writable directory used for temporary file storage. Ensure that it has its own partition or logical volume.</xccdf:description> |
| 1418 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1419 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20000"/> |
| 1420 |
</xccdf:check> |
| 1421 |
</xccdf:Rule> |
| 1422 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.1.b" selected="false" weight="2.0"> |
| 1423 |
<xccdf:title xml:lang="en">Ensure that /tmp is of adequate size</xccdf:title> |
| 1424 |
<xccdf:description xml:lang="en">Because software may need to use /tmp to temporarily store large files, ensure that it is of adequate size.</xccdf:description> |
| 1425 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1426 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20001"/> |
| 1427 |
</xccdf:check> |
| 1428 |
</xccdf:Rule> |
| 1429 |
</xccdf:Group> |
| 1430 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.2"> |
| 1431 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /var</xccdf:title> |
| 1432 |
<xccdf:description xml:lang="en"> |
| 1433 |
The /var directory is used by daemons and other system |
| 1434 |
services to store frequently-changing data. It is not uncommon for the /var directory |
| 1435 |
to contain world-writable directories, installed by other software packages. |
| 1436 |
Ensure that /var has its own partition or logical volume.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1437 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1438 |
Because the yum package manager and other software uses /var to temporarily store |
| 1439 |
large files, ensure that it is of adequate size. For a modern, general-purpose system, |
| 1440 |
10GB should be adequate. |
| 1441 |
</xccdf:description> |
| 1442 |
<xccdf:Value id="xccdf_cdf_value_var-2.1.1.1.2.b" operator="equals" type="string"> |
| 1443 |
<xccdf:title>Minimum size of /var</xccdf:title> |
| 1444 |
<xccdf:description>Choose minimum size of /var</xccdf:description> |
| 1445 |
<xccdf:question xml:lang="en">Choose minimum size of /var</xccdf:question> |
| 1446 |
<xccdf:value>5G</xccdf:value> |
| 1447 |
<xccdf:value selector="500k">500K</xccdf:value> |
| 1448 |
<xccdf:value selector="1G">1G</xccdf:value> |
| 1449 |
<xccdf:value selector="5G">5G</xccdf:value> |
| 1450 |
<xccdf:value selector="10G">10G</xccdf:value> |
| 1451 |
<xccdf:value selector="15G">15G</xccdf:value> |
| 1452 |
<xccdf:value selector="20G">20G</xccdf:value> |
| 1453 |
<xccdf:match>^[\d]+[KMGkmg]?$</xccdf:match> |
| 1454 |
</xccdf:Value> |
| 1455 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.2.a" selected="false" severity="low" weight="10.0"> |
| 1456 |
<xccdf:title xml:lang="en">Ensure that /var has its own partition or logical volume</xccdf:title> |
| 1457 |
<xccdf:description xml:lang="en">The /var directory is used by daemons and other system services to store frequently-changing data. It is not uncommon for the /var directory to contain world-writable directories, installed by other software packages. Ensure that /var has its own partition or logical volume.</xccdf:description> |
| 1458 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1459 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20002"/> |
| 1460 |
</xccdf:check> |
| 1461 |
</xccdf:Rule> |
| 1462 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.2.b" selected="false" weight="10.0"> |
| 1463 |
<xccdf:title xml:lang="en">Ensure that /var is of adequate size</xccdf:title> |
| 1464 |
<xccdf:description xml:lang="en">Because the yum package manager and other software uses /var to temporarily store large files, ensure that it is of adequate size. For a modern, general-purpose system, 10GB should be adequate.</xccdf:description> |
| 1465 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1466 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20003" value-id="xccdf_cdf_value_var-2.1.1.1.2.b"/> |
| 1467 |
|
| 1468 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20003"/> |
| 1469 |
</xccdf:check> |
| 1470 |
</xccdf:Rule> |
| 1471 |
</xccdf:Group> |
| 1472 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.3"> |
| 1473 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /var/log</xccdf:title> |
| 1474 |
<xccdf:description xml:lang="en"> |
| 1475 |
System logs are stored in the /var/log directory. |
| 1476 |
Ensure that it has its own partition or logical volume. |
| 1477 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1478 |
See 2.6 for more information about logging and auditing.</xccdf:description> |
| 1479 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.3.a" selected="false" weight="10.0"> |
| 1480 |
<xccdf:title xml:lang="en">Ensure that /var/log has its own partition or logical volume</xccdf:title> |
| 1481 |
<xccdf:description xml:lang="en"> |
| 1482 |
System logs are stored in the /var/log directory. |
| 1483 |
Ensure that it has its own partition or logical volume.</xccdf:description> |
| 1484 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1485 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20004"/> |
| 1486 |
</xccdf:check> |
| 1487 |
</xccdf:Rule> |
| 1488 |
</xccdf:Group> |
| 1489 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.4"> |
| 1490 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /var/log/audit</xccdf:title> |
| 1491 |
<xccdf:description xml:lang="en"> |
| 1492 |
Audit logs are stored in the /var/log/audit directory. |
| 1493 |
Ensure that it has its own partition or logical volume. Make absolutely certain |
| 1494 |
that it is large enough to store all audit logs that will be created by the auditing |
| 1495 |
daemon.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1496 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1497 |
See 2.6.2.2 for discussion on deciding on an appropriate size for the volume.</xccdf:description> |
| 1498 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.4.a" selected="false" weight="10.0"> |
| 1499 |
<xccdf:title xml:lang="en">Ensure that /var/log/audit has its own partition or logical volume</xccdf:title> |
| 1500 |
<xccdf:description xml:lang="en"> |
| 1501 |
Audit logs are stored in the /var/log/audit directory. |
| 1502 |
Ensure that it has its own partition or logical volume. |
| 1503 |
Make absolutely certain that it is large enough to store |
| 1504 |
all audit logs that will be created by the auditing daemon.</xccdf:description> |
| 1505 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1506 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20005"/> |
| 1507 |
</xccdf:check> |
| 1508 |
</xccdf:Rule> |
| 1509 |
</xccdf:Group> |
| 1510 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.1.5"> |
| 1511 |
<xccdf:title xml:lang="en">Create Separate Partition or Logical Volume for /home if Using Local Home Directories</xccdf:title> |
| 1512 |
<xccdf:description xml:lang="en"> |
| 1513 |
If user home directories will be stored locally, create a separate |
| 1514 |
partition for /home. If /home will be mounted from another system such as an NFS server, then |
| 1515 |
creating a separate partition is not necessary at this time, and the mountpoint can |
| 1516 |
instead be configured later.</xccdf:description> |
| 1517 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.1.1.5.a" selected="false" severity="low" weight="10.0"> |
| 1518 |
<xccdf:title xml:lang="en">Ensure that /home has its own partition or logical volume</xccdf:title> |
| 1519 |
<xccdf:description xml:lang="en"> |
| 1520 |
If user home directories will be stored locally, create a separate partition for /home. |
| 1521 |
If /home will be mounted from another system such as an NFS server, then creating a |
| 1522 |
separate partition is not necessary at this time, and the mountpoint can instead be |
| 1523 |
configured later.</xccdf:description> |
| 1524 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1525 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20006"/> |
| 1526 |
</xccdf:check> |
| 1527 |
</xccdf:Rule> |
| 1528 |
</xccdf:Group> |
| 1529 |
</xccdf:Group> |
| 1530 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.2"> |
| 1531 |
<xccdf:title xml:lang="en">Boot Loader Configuration</xccdf:title> |
| 1532 |
<xccdf:description xml:lang="en"> |
| 1533 |
Check the box to "Use a boot loader password" and create a |
| 1534 |
password. Once this password is set, anyone who wishes to change the boot loader |
| 1535 |
configuration will need to enter it. More information is available in Section |
| 1536 |
2.3.5.2.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1537 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1538 |
Assigning a boot loader password prevents a local user |
| 1539 |
with physical access from altering the boot loader configuration at system startup. |
| 1540 |
</xccdf:description> |
| 1541 |
</xccdf:Group> |
| 1542 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.3"> |
| 1543 |
<xccdf:title xml:lang="en">Network Devices</xccdf:title> |
| 1544 |
<xccdf:description xml:lang="en"> |
| 1545 |
The default network device configuration uses DHCP, which is |
| 1546 |
not recommended.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1547 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1548 |
Unless use of DHCP is absolutely necessary, click |
| 1549 |
the "Edit" button and: |
| 1550 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 1551 |
<xhtml:li> |
| 1552 |
Uncheck "Use Dynamic IP configuration |
| 1553 |
(DHCP)".Uncheck "Enable IPv4 Support" if the system does not require IPv4. (This is |
| 1554 |
uncommon.) |
| 1555 |
</xhtml:li> |
| 1556 |
<xhtml:li> |
| 1557 |
Uncheck "Enable IPv6 Support" if the system does not require |
| 1558 |
IPv6. |
| 1559 |
</xhtml:li> |
| 1560 |
<xhtml:li> |
| 1561 |
Enter appropriate IPv4 and IPv6 addresses and prefixes as |
| 1562 |
required. |
| 1563 |
</xhtml:li> |
| 1564 |
</xhtml:ul> |
| 1565 |
With the DHCP setting disabled, the hostname, gateway, and DNS |
| 1566 |
servers should then be assigned on the main screen.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1567 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1568 |
Sections 3.9.1 |
| 1569 |
and 3.9.2 contain more information on network configuration and the use of DHCP. |
| 1570 |
</xccdf:description> |
| 1571 |
</xccdf:Group> |
| 1572 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.4"> |
| 1573 |
<xccdf:title xml:lang="en">Root Password</xccdf:title> |
| 1574 |
<xccdf:description xml:lang="en"> |
| 1575 |
The security of the entire system depends on the strength of |
| 1576 |
the root password. The password should be at least 12 characters long, and should |
| 1577 |
include a mix of capitalized and lowercase letters, special characters, and numbers. It |
| 1578 |
should also not be based on any dictionary word.</xccdf:description> |
| 1579 |
</xccdf:Group> |
| 1580 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.5"> |
| 1581 |
<xccdf:title xml:lang="en">Software Packages</xccdf:title> |
| 1582 |
<xccdf:description xml:lang="en"> |
| 1583 |
Uncheck all package groups, including the package groups |
| 1584 |
"Software Development" and "Web Server", unless there is a specific requirement to |
| 1585 |
install software using the system installer. If the machine will be used as a web |
| 1586 |
server, it is preferable to manually install the necessary RPMs instead of installing |
| 1587 |
the full "Web Server" package group. See Section 3.16 for installation and configuration |
| 1588 |
details.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1589 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1590 |
Use the "Customize now" radio box to prune package groups |
| 1591 |
as much as possible. This brings up a two-column view of categories and package groups. |
| 1592 |
If appropriate, uncheck "X Window System" in the "Base System" category to avoid |
| 1593 |
installing X entirely. Any other package groups not necessary for system operation |
| 1594 |
should also be unchecked. |
| 1595 |
</xccdf:description> |
| 1596 |
</xccdf:Group> |
| 1597 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.1.6"> |
| 1598 |
<xccdf:title xml:lang="en">First-boot Configuration</xccdf:title> |
| 1599 |
<xccdf:description xml:lang="en"> |
| 1600 |
The system presents more configuration options during the first |
| 1601 |
boot after installation. For the screens listed, implement the security-related |
| 1602 |
recommendations:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1603 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1604 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 1605 |
<xhtml:li> |
| 1606 |
Firewall - Leave set to |
| 1607 |
'Enabled.' Only check the 'Trusted Services' that this system needs to serve. Uncheck |
| 1608 |
the default selection of SSH if the system does not need to serve |
| 1609 |
SSH. |
| 1610 |
</xhtml:li> |
| 1611 |
<xhtml:li> |
| 1612 |
SELinux - Leave SELinux set to 'Enforcing' mode. |
| 1613 |
</xhtml:li> |
| 1614 |
<xhtml:li> |
| 1615 |
Kdump - |
| 1616 |
Leave Kdump off unless the feature is required, such as for kernel development and |
| 1617 |
testing. |
| 1618 |
</xhtml:li> |
| 1619 |
<xhtml:li> |
| 1620 |
Set Up Software Updates - If the system is connected to the |
| 1621 |
Internet now, click 'Yes, I'd like to register now.' This will require a connection to |
| 1622 |
either the Red Hat Network servers or their proxies or satellites. This can also be |
| 1623 |
configured later as described in Section 2.1.2.1. |
| 1624 |
</xhtml:li> |
| 1625 |
<xhtml:li> |
| 1626 |
Create User - If the |
| 1627 |
system will require a local user account, it can be created here. Even if the system |
| 1628 |
will be using a network-wide authentication system as described in Section 2.3.6, do |
| 1629 |
not click on the 'Use Network Login...' button. Manually applying configuration later |
| 1630 |
is preferable. |
| 1631 |
</xhtml:li> |
| 1632 |
</xhtml:ul> |
| 1633 |
</xccdf:description> |
| 1634 |
</xccdf:Group> |
| 1635 |
</xccdf:Group> |
| 1636 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2"> |
| 1637 |
<xccdf:title xml:lang="en">Security Updates</xccdf:title> |
| 1638 |
<xccdf:description xml:lang="en"> |
| 1639 |
As security vulnerabilities are discovered, the affected software must be updated in order |
| 1640 |
to limit any potential security risks. If the software is part of a package within a Fedora |
| 1641 |
distribution that is currently supported, Fedora is committed to releasing updated packages |
| 1642 |
that fix the vulnerability as soon as is possible. Often, announcements about a given |
| 1643 |
security exploit are accompanied with a patch (or source code that fixes the problem). |
| 1644 |
This patch is then applied to the Fedora package and tested and released as an errata update. |
| 1645 |
However, if an announcement does not include a patch, a developer first works with the maintainer |
| 1646 |
of the software to fix the problem. Once the problem is fixed, the package is tested |
| 1647 |
and released as an errata update. |
| 1648 |
</xccdf:description> |
| 1649 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.1"> |
| 1650 |
<xccdf:title xml:lang="en">Updating Software</xccdf:title> |
| 1651 |
<xccdf:description xml:lang="en"> |
| 1652 |
The yum command line tool is used to install and update software |
| 1653 |
packages. The system also provides package management service called PackageKit |
| 1654 |
that allows the session users to manage packages in a secure way. There are several |
| 1655 |
graphical utilities designed for installing, updating and removing packages on your |
| 1656 |
system that use PackageKit API. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1657 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1658 |
It is recommended to use these mechanisms to keep systems up to date with the latest |
| 1659 |
security patches. |
| 1660 |
</xccdf:description> |
| 1661 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.1.1"> |
| 1662 |
<xccdf:title xml:lang="en">Ensure Fedora GPG Key is Installed</xccdf:title> |
| 1663 |
<xccdf:description xml:lang="en"> |
| 1664 |
To ensure that the system can cryptographically verify update packages run the following command to verify |
| 1665 |
that the system has the Fedora GPG properly installed:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1666 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1667 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ rpm -q --queryformat "%{SUMMARY}\n" gpg-pubkey</xhtml:code><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1668 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1669 |
The command should return the string:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1670 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1671 |
gpg(Fedora (14) <[email protected]>)</xccdf:description> |
| 1672 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.1.1.a" selected="false" weight="10"> |
| 1673 |
<xccdf:title xml:lang="en">Ensure Fedora GPG Key is Installed</xccdf:title> |
| 1674 |
<xccdf:description>The GPG key should be installed.</xccdf:description> |
| 1675 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1676 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200065"/> |
| 1677 |
</xccdf:check> |
| 1678 |
</xccdf:Rule> |
| 1679 |
</xccdf:Group> |
| 1680 |
</xccdf:Group> |
| 1681 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3"> |
| 1682 |
<xccdf:title xml:lang="en">Obtain Software Package Updates with yum</xccdf:title> |
| 1683 |
<xccdf:description xml:lang="en"> |
| 1684 |
The yum update utility can be run by hand from the command |
| 1685 |
line, called through one of the provided front-end tools, or configured to run |
| 1686 |
automatically at specified intervals.</xccdf:description> |
| 1687 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3.2"> |
| 1688 |
<xccdf:title xml:lang="en">Configure Automatic Update Retrieval and Installation with Cron</xccdf:title> |
| 1689 |
<xccdf:description xml:lang="en"> |
| 1690 |
The yum-updatesd service is not mature enough for an |
| 1691 |
enterprise environment, and the service may introduce unnecessary overhead. When |
| 1692 |
possible, replace this service with a cron job that calls yum |
| 1693 |
directly.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1694 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1695 |
Create the file yum.cron, make it executable, and place it in |
| 1696 |
/etc/cron.daily:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1697 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1698 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#!/bin/sh<xhtml:br/> |
| 1699 |
<xhtml:br/> |
| 1700 |
/usr/bin/yum -R 120 -e 0 -d 0 -y update yum |
| 1701 |
<xhtml:br/> |
| 1702 |
/usr/bin/yum -R 10 -e 0 -d 0 -y update<xhtml:br/></xhtml:code> |
| 1703 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1704 |
This particular script instructs yum to update any |
| 1705 |
packages it finds. Placing the script in /etc/cron.daily ensures its daily execution. |
| 1706 |
To only apply updates once a week, place the script in /etc/cron.weekly instead. |
| 1707 |
</xccdf:description> |
| 1708 |
<xccdf:Value id="xccdf_cdf_value_var-2.1.2.3.2.b" operator="equals" type="string"> |
| 1709 |
<xccdf:title>Schedule yum update using cron</xccdf:title> |
| 1710 |
<xccdf:description>Enter frequency of with which to invoke yum update</xccdf:description> |
| 1711 |
<xccdf:question xml:lang="en">Select frequency of yum update</xccdf:question> |
| 1712 |
<xccdf:value>daily</xccdf:value> |
| 1713 |
<xccdf:value selector="hourly">hourly</xccdf:value> |
| 1714 |
<xccdf:value selector="daily">daily</xccdf:value> |
| 1715 |
<xccdf:value selector="weekly">weekly</xccdf:value> |
| 1716 |
<xccdf:value selector="monthly">monthly</xccdf:value> |
| 1717 |
<xccdf:match>hourly|daily|weekly|monthly</xccdf:match> |
| 1718 |
<xccdf:choices mustMatch="1"> |
| 1719 |
<xccdf:choice>hourly</xccdf:choice> |
| 1720 |
<xccdf:choice>daily</xccdf:choice> |
| 1721 |
<xccdf:choice>weekly</xccdf:choice> |
| 1722 |
<xccdf:choice>monthly</xccdf:choice> |
| 1723 |
</xccdf:choices> |
| 1724 |
</xccdf:Value> |
| 1725 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.2.a" selected="false" severity="low" weight="10.0"> |
| 1726 |
<xccdf:title>yum-updatesd service should be disabled</xccdf:title> |
| 1727 |
<xccdf:description>The yum-updatesd service should be disabled</xccdf:description> |
| 1728 |
<xccdf:ident system="http://cce.mitre.org">CCE-4218-4</xccdf:ident> |
| 1729 |
<xccdf:fix># chkconfig yum-updatesd off</xccdf:fix> |
| 1730 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1731 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20008"/> |
| 1732 |
</xccdf:check> |
| 1733 |
</xccdf:Rule> |
| 1734 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.2.b" selected="false" severity="medium" weight="10.0"> |
| 1735 |
<xccdf:title>Automatic Update Retrieval should be scheduled with Cron</xccdf:title> |
| 1736 |
<xccdf:description>Place the yum.cron script somewhere in /etc/cron.*/</xccdf:description> |
| 1737 |
<xccdf:fix>echo -e "/usr/bin/yum -R 120 -e 0 -d 0 -y update yum\n/usr/bin/yum -R 10 -e 0 -d 0 -y update" > /etc/cron.weekly/yum.cron</xccdf:fix> |
| 1738 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1739 |
<xccdf:check-export export-name="oval:org.open-scap.f14.dcb:var:20009" value-id="xccdf_cdf_value_var-2.1.2.3.2.b"/> |
| 1740 |
|
| 1741 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20009"/> |
| 1742 |
</xccdf:check> |
| 1743 |
</xccdf:Rule> |
| 1744 |
</xccdf:Group> |
| 1745 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3.3"> |
| 1746 |
<xccdf:title xml:lang="en">Ensure Package Signature Checking is Globally Activated</xccdf:title> |
| 1747 |
<xccdf:description xml:lang="en"> |
| 1748 |
The gpgcheck option should be used to ensure that checking of an RPM package’s signature always occurs prior |
| 1749 |
to its installation.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1750 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1751 |
To force yum to check package signatures before installing them, ensure that the following line appears in |
| 1752 |
/etc/yum.conf in the [main] section:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1753 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1754 |
gpgcheck=1 |
| 1755 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1756 |
</xccdf:description> |
| 1757 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.3.a" selected="false" weight="10.0"> |
| 1758 |
<xccdf:title>Ensure gpgcheck is Globally Activated</xccdf:title> |
| 1759 |
<xccdf:description> |
| 1760 |
The gpgcheck option should be used to ensure that checking of an RPM package’s signature always occurs prior to its installation.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1761 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>To force yum to check package signatures before installing them, ensure that the following line appears in /etc/yum.conf in the [main] section: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1762 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1763 |
gpgcheck=1</xccdf:description> |
| 1764 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1765 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20010"/> |
| 1766 |
</xccdf:check> |
| 1767 |
</xccdf:Rule> |
| 1768 |
</xccdf:Group> |
| 1769 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3.4"> |
| 1770 |
<xccdf:title xml:lang="en">Ensure Package Signature Checking is Not Disabled For Any Repos</xccdf:title> |
| 1771 |
<xccdf:description xml:lang="en"> |
| 1772 |
To ensure that signature checking is not disabled for any repos, ensure that the following line DOES NOT |
| 1773 |
appear in any repo configuration files in /etc/yum.repos.d or elsewhere:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1774 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1775 |
gpgcheck=0 |
| 1776 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1777 |
</xccdf:description> |
| 1778 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.4.a" selected="false" weight="10.0"> |
| 1779 |
<xccdf:title>Ensure Package Signature Checking is Not Disabled For Any Repos</xccdf:title> |
| 1780 |
<xccdf:description> |
| 1781 |
To ensure that signature checking is not disabled for any repos, ensure that the following line DOES NOT appear in any repo configuration files in /etc/yum.repos.d or elsewhere:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1782 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>gpgcheck=0</xccdf:description> |
| 1783 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1784 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20011"/> |
| 1785 |
</xccdf:check> |
| 1786 |
</xccdf:Rule> |
| 1787 |
</xccdf:Group> |
| 1788 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3.5"> |
| 1789 |
<xccdf:title xml:lang="en">Ensure Repodata Signature Checking is Globally Activated</xccdf:title> |
| 1790 |
<xccdf:description xml:lang="en"> |
| 1791 |
The repo_gpgcheck option should be used to ensure that checking of a signature on repodata is performed prior |
| 1792 |
to using it.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1793 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1794 |
To force yum to check the signature on repodata sent by a repository prior to using it, ensure that the |
| 1795 |
following line appears in /etc/yum.conf in the [main] section:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1796 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1797 |
repo_gpgcheck=1 |
| 1798 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1799 |
</xccdf:description> |
| 1800 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.5.a" selected="false" weight="10.0"> |
| 1801 |
<xccdf:title>Ensure Repodata Signature Checking is Globally Activated</xccdf:title> |
| 1802 |
<xccdf:description> |
| 1803 |
The repo_gpgcheck option should be used to ensure that checking of a signature on repodata is performed prior to using it.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1804 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>To force yum to check the signature on repodata sent by a repository prior to using it, ensure that the following line appears in /etc/yum.conf in the [main] section:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1805 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>repo_gpgcheck=1</xccdf:description> |
| 1806 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1807 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20012"/> |
| 1808 |
</xccdf:check> |
| 1809 |
</xccdf:Rule> |
| 1810 |
</xccdf:Group> |
| 1811 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.2.3.6"> |
| 1812 |
<xccdf:title xml:lang="en">Ensure Repodata Signature Checking is Not Disabled For Any Repos</xccdf:title> |
| 1813 |
<xccdf:description xml:lang="en"> |
| 1814 |
To ensure that signature checking is not disabled for any repos, ensure that the following line DOES NOT |
| 1815 |
appear in any repo configuration files in /etc/yum.repos.d or elsewhere:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1816 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1817 |
gpgcheck=0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1818 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1819 |
Note: Red Hat’s repositories support signatures on repodata, but some public repositories do not. If a repository |
| 1820 |
does not support signature checking on repodata, then this risk must be weighed against the value of using the |
| 1821 |
repository. |
| 1822 |
</xccdf:description> |
| 1823 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.2.3.6.a" selected="false" weight="10.0"> |
| 1824 |
<xccdf:title>Ensure Repodata Signature Checking is Not Disabled For Any Repos</xccdf:title> |
| 1825 |
<xccdf:description> |
| 1826 |
To ensure that signature checking is not disabled for any repos, ensure that the following line DOES NOT appear in any repo configuration files in /etc/yum.repos.d or elsewhere: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1827 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>gpgcheck=0</xccdf:description> |
| 1828 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1829 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20013"/> |
| 1830 |
</xccdf:check> |
| 1831 |
</xccdf:Rule> |
| 1832 |
</xccdf:Group> |
| 1833 |
</xccdf:Group> |
| 1834 |
</xccdf:Group> |
| 1835 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3"> |
| 1836 |
<xccdf:title xml:lang="en">Software Integrity Checking</xccdf:title> |
| 1837 |
<xccdf:description xml:lang="en"> |
| 1838 |
The AIDE (Advanced Intrusion Detection Environment) software is |
| 1839 |
included with the system to provide software integrity checking. It is designed to be a |
| 1840 |
replacement for the well-known Tripwire integrity checker. Integrity checking cannot |
| 1841 |
<xhtml:em xmlns:xhtml="http://www.w3.org/1999/xhtml">prevent</xhtml:em> |
| 1842 |
intrusions into your system, but can detect that they have occurred.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1843 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1844 |
Any integrity checking software should be configured before |
| 1845 |
the system is deployed and able to provides services to users. Ideally, the integrity |
| 1846 |
checking database would be built before the system is connected to any network, though |
| 1847 |
this may prove impractical due to registration and software updates. |
| 1848 |
</xccdf:description> |
| 1849 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1"> |
| 1850 |
<xccdf:title xml:lang="en">Configure AIDE</xccdf:title> |
| 1851 |
<xccdf:description xml:lang="en"> |
| 1852 |
Requirements for software integrity checking should be defined |
| 1853 |
by policy, and this is highly dependent on the environment in which the system will be |
| 1854 |
used. As such, a general strategy for implementing integrity checking is provided, but |
| 1855 |
precise recommendations (such as to check a particular file) cannot be. Documentation |
| 1856 |
for AIDE, including the quick-start on which this advice is based, is available in |
| 1857 |
/usr/share/doc/aide-0.12.</xccdf:description> |
| 1858 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1.1"> |
| 1859 |
<xccdf:title xml:lang="en">Install AIDE</xccdf:title> |
| 1860 |
<xccdf:description xml:lang="en">AIDE is not installed by default.</xccdf:description> |
| 1861 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.3.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 1862 |
<xccdf:title>Install AIDE</xccdf:title> |
| 1863 |
<xccdf:description>The AIDE package should be installed</xccdf:description> |
| 1864 |
<xccdf:ident system="http://cce.mitre.org">CCE-4209-3</xccdf:ident> |
| 1865 |
<xccdf:fix>yum install aide</xccdf:fix> |
| 1866 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1867 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20014"/> |
| 1868 |
</xccdf:check> |
| 1869 |
</xccdf:Rule> |
| 1870 |
</xccdf:Group> |
| 1871 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1.2"> |
| 1872 |
<xccdf:title xml:lang="en">Customize Configuration File</xccdf:title> |
| 1873 |
<xccdf:description xml:lang="en"> |
| 1874 |
Customize /etc/aide.conf to meet your requirements. The |
| 1875 |
default configuration is acceptable for many environments. |
| 1876 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1877 |
The man page aide.conf(5) |
| 1878 |
provides detailed information about the configuration file format. |
| 1879 |
</xccdf:description> |
| 1880 |
</xccdf:Group> |
| 1881 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1.3"> |
| 1882 |
<xccdf:title xml:lang="en">Build, Store, and Test Database</xccdf:title> |
| 1883 |
<xccdf:description xml:lang="en"> |
| 1884 |
Generate a new database:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1885 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1886 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># /usr/sbin/aide --init<xhtml:br/></xhtml:code> |
| 1887 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1888 |
By default, the database will be written to |
| 1889 |
the file /var/lib/aide/aide.db.new.gz. The database, as well as the configuration file |
| 1890 |
/etc/aide.conf and the binary /usr/sbin/aide (or hashes of these files) should be |
| 1891 |
copied and stored in a secure location. Storing these copies or hashes on read-only |
| 1892 |
media may provide further confidence that they will not be |
| 1893 |
altered.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1894 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1895 |
Install the newly-generated database:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1896 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1897 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz<xhtml:br/></xhtml:code> |
| 1898 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1899 |
Run a manual check: |
| 1900 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1901 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1902 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># /usr/sbin/aide --check<xhtml:br/></xhtml:code> |
| 1903 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1904 |
If this check produces any unexpected output, investigate. |
| 1905 |
</xccdf:description> |
| 1906 |
</xccdf:Group> |
| 1907 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1.4"> |
| 1908 |
<xccdf:title xml:lang="en">Implement Periodic Execution of Integrity Checking</xccdf:title> |
| 1909 |
<xccdf:description xml:lang="en"> |
| 1910 |
By default, AIDE does not install itself for periodic execution.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1911 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1912 |
Implement checking with whatever frequency is required |
| 1913 |
by your security policy. A once-daily check may be suitable for many environments. For |
| 1914 |
example, to implement a daily execution of AIDE at 4:05am, add the following line to |
| 1915 |
/etc/crontab:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1916 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1917 |
05 4 * * * root /usr/sbin/aide --check<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1918 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1919 |
AIDE output may be an indication of an attack against |
| 1920 |
your system, or it may be the result of something innocuous such as an administrator's |
| 1921 |
configuration change or a software update. The steps in Section 2.1.3.1.3 should be |
| 1922 |
repeated when configuration changes or software updates necessitate. This will |
| 1923 |
certainly be necessary after applying guidance later in this guide. |
| 1924 |
</xccdf:description> |
| 1925 |
<xccdf:Value id="xccdf_cdf_value_var-2.1.3.1.4.a" operator="equals" type="string"> |
| 1926 |
<xccdf:title>Schedule AIDE check using cron</xccdf:title> |
| 1927 |
<xccdf:description>Frequency with which to run AIDE check</xccdf:description> |
| 1928 |
<xccdf:question xml:lang="en">Select frequency with which to run AIDE check</xccdf:question> |
| 1929 |
<xccdf:value>daily</xccdf:value> |
| 1930 |
<xccdf:value selector="hourly">hourly</xccdf:value> |
| 1931 |
<xccdf:value selector="daily">daily</xccdf:value> |
| 1932 |
<xccdf:value selector="weekly">weekly</xccdf:value> |
| 1933 |
<xccdf:value selector="monthly">monthly</xccdf:value> |
| 1934 |
<xccdf:match>hourly|daily|weekly|monthly</xccdf:match> |
| 1935 |
<xccdf:choices mustMatch="1"> |
| 1936 |
<xccdf:choice>hourly</xccdf:choice> |
| 1937 |
<xccdf:choice>daily</xccdf:choice> |
| 1938 |
<xccdf:choice>weekly</xccdf:choice> |
| 1939 |
<xccdf:choice>monthly</xccdf:choice> |
| 1940 |
</xccdf:choices> |
| 1941 |
</xccdf:Value> |
| 1942 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.3.1.4.a" role="full" selected="false" severity="medium" weight="10.0"> |
| 1943 |
<xccdf:title>Run AIDE periodically</xccdf:title> |
| 1944 |
<xccdf:description>Setup cron to run AIDE periodically using cron.</xccdf:description> |
| 1945 |
|
| 1946 |
<xccdf:fix>echo -e "/usr/sbin/aide --check" > /etc/cron.daily/aide.cron</xccdf:fix> |
| 1947 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 1948 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20015" value-id="xccdf_cdf_value_var-2.1.3.1.4.a"/> |
| 1949 |
|
| 1950 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20015"/> |
| 1951 |
</xccdf:check> |
| 1952 |
</xccdf:Rule> |
| 1953 |
</xccdf:Group> |
| 1954 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.1.5"> |
| 1955 |
<xccdf:title xml:lang="en">Manually Verify Integrity of AIDE</xccdf:title> |
| 1956 |
<xccdf:description xml:lang="en"> |
| 1957 |
Because integrity checking is a means of intrusion detection |
| 1958 |
and not intrusion prevention, it cannot be guaranteed that the AIDE binaries, |
| 1959 |
configuration files, or database have not been tampered with. An attacker could |
| 1960 |
disable or alter these files after a successful intrusion. Because of this, manual and |
| 1961 |
frequent checks on these files is recommended. The safely stored copies (or hashes) of |
| 1962 |
the database, binary, and configuration file were created earlier for this |
| 1963 |
purpose.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1964 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1965 |
Manually verify the integrity of the AIDE binaries, |
| 1966 |
configuration file, and database. Possibilities for doing so include: |
| 1967 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 1968 |
<xhtml:li>Use sha1sum or md5sum to generate checksums on the |
| 1969 |
files and then visually compare them to those generated from the safely stored |
| 1970 |
versions. This does not, of course, preclude the possibility that such output could |
| 1971 |
also be faked.</xhtml:li> |
| 1972 |
<xhtml:li>Mount the stored versions on read-only media and run |
| 1973 |
/bin/diff to verify that there are no differences between the |
| 1974 |
files.</xhtml:li> |
| 1975 |
<xhtml:li>Copying the files to another system and performing the hash or file |
| 1976 |
comparisons there may impart additional confidence that the manual verification |
| 1977 |
process is not being interfered with.</xhtml:li> |
| 1978 |
</xhtml:ol> |
| 1979 |
</xccdf:description> |
| 1980 |
</xccdf:Group> |
| 1981 |
</xccdf:Group> |
| 1982 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.1.3.2"> |
| 1983 |
<xccdf:title xml:lang="en">Verify Package Integrity Using RPM</xccdf:title> |
| 1984 |
<xccdf:description xml:lang="en"> |
| 1985 |
The RPM package management system includes the ability to |
| 1986 |
verify the integrity of installed packages by comparing the installed files with |
| 1987 |
information about the files taken from the package metadata stored in the RPM |
| 1988 |
database. Although an attacker could corrupt the RPM database (analogous to |
| 1989 |
attacking the AIDE database as described above), this check can still reveal |
| 1990 |
modification of important files.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1991 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1992 |
To determine which files on the system differ from what is expected by the RPM |
| 1993 |
database:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1994 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1995 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rpm -qVa<xhtml:br/></xhtml:code> |
| 1996 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 1997 |
A “c” in the second column indicates that a file is a configuration file (and may be |
| 1998 |
expected to change). In order to exclude configuration files from this list, run: |
| 1999 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2000 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rpm -qVa | awk '$2!="c" {print $0}'<xhtml:br/></xhtml:code> |
| 2001 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2002 |
The man page rpm(8) describes the format of the output. Any files that do not |
| 2003 |
match the expected output demand further investigation if the system is being |
| 2004 |
seriously examined. This check could also be run as a cron job. |
| 2005 |
</xccdf:description> |
| 2006 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.1.3.2.a" selected="false" weight="10.0"> |
| 2007 |
<xccdf:title>Verify Package Integrity Using RPM</xccdf:title> |
| 2008 |
<xccdf:description>Verify the integrity of installed packages by comparing the installed files with information about the files taken from the package metadata stored in the RPM database.</xccdf:description> |
| 2009 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2010 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200155"/> |
| 2011 |
</xccdf:check> |
| 2012 |
</xccdf:Rule> |
| 2013 |
</xccdf:Group> |
| 2014 |
</xccdf:Group> |
| 2015 |
</xccdf:Group> |
| 2016 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2"> |
| 2017 |
<xccdf:title xml:lang="en">File Permissions and Masks</xccdf:title> |
| 2018 |
<xccdf:description xml:lang="en"> |
| 2019 |
Traditional Unix security relies heavily on file and directory |
| 2020 |
permissions to prevent unauthorized users from reading or modifying files to which they |
| 2021 |
should not have access. Adhere to the principle of least privilege — configure each file, |
| 2022 |
directory, and filesystem to allow only the access needed in order for that file to serve |
| 2023 |
its purpose.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2024 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2025 |
However, Linux systems contain a large number of files, so |
| 2026 |
it is often prohibitively time-consuming to ensure that every file on a machine has exactly |
| 2027 |
the permissions needed. This section introduces several permission restrictions which are |
| 2028 |
almost always appropriate for system security, and which are easy to test and |
| 2029 |
correct. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2030 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2031 |
Note: Several of the commands in this section search |
| 2032 |
filesystems for files or directories with certain characteristics, and are intended to be |
| 2033 |
run on every local ext2, ext3 and ext4 partition on a given machine. When the variable |
| 2034 |
<xhtml:em xmlns:xhtml="http://www.w3.org/1999/xhtml">PART</xhtml:em> |
| 2035 |
appears in one of the commands below, it means that the command |
| 2036 |
is intended to be run repeatedly, with the name of each local partition substituted for |
| 2037 |
<xhtml:em xmlns:xhtml="http://www.w3.org/1999/xhtml">PART</xhtml:em> |
| 2038 |
in turn.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2039 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2040 |
The following command prints a |
| 2041 |
list of ext2, ext3 and ext4 partitions on a given machine:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2042 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2043 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ mount -t ext2,ext3,ext4 | awk '{print $3}'<xhtml:br/></xhtml:code> |
| 2044 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2045 |
If your site uses a local filesystem type other than ext{234}, you will need to modify |
| 2046 |
this command. |
| 2047 |
</xccdf:description> |
| 2048 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.1"> |
| 2049 |
<xccdf:title xml:lang="en">Restrict Partition Mount Options</xccdf:title> |
| 2050 |
<xccdf:description xml:lang="en"> |
| 2051 |
System partitions can be mounted with certain options which limit |
| 2052 |
what files on those partitions can do. These options are set in the file /etc/fstab, and |
| 2053 |
can be used to make certain types of malicious behavior more difficult.</xccdf:description> |
| 2054 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.1.1" weight="1.0"> |
| 2055 |
<xccdf:title xml:lang="en">Add nodev Option to Non-Root Local Partitions</xccdf:title> |
| 2056 |
<xccdf:description xml:lang="en"> |
| 2057 |
The nodev option prevents users from mounting unauthorized |
| 2058 |
devices on any partition which is known not to contain any authorized devices. The root |
| 2059 |
partition typically contains the /dev partition, which is the primary location for |
| 2060 |
authorized devices, so this option should not be set on /. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2061 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2062 |
However, if system programs are being run in chroot jails, this advice may need to be |
| 2063 |
modified further, since it is often necessary to create device files inside the chroot |
| 2064 |
directory for use by the restricted program. |
| 2065 |
</xccdf:description> |
| 2066 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.1.1.a" role="full" selected="false" severity="unknown" weight="10.0"> |
| 2067 |
<xccdf:title>Add nodev Option to Non-Root Local Partitions</xccdf:title> |
| 2068 |
<xccdf:description>The nodev option should be disabled as appropriate for all non-root partitions.</xccdf:description> |
| 2069 |
<xccdf:ident system="http://cce.mitre.org">CCE-4249-9</xccdf:ident> |
| 2070 |
<xccdf:fixtext> |
| 2071 |
Edit the file /etc/fstab. The important columns for purposes of |
| 2072 |
this section are column 2 (mount point), column 3 (filesystem type), and column 4 (mount |
| 2073 |
options). For any line which satisfies all of the conditions: |
| 2074 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 2075 |
<xhtml:li>The filesystem type is ext2, ext3 or ext4</xhtml:li> |
| 2076 |
<xhtml:li>The mount point is not /</xhtml:li> |
| 2077 |
</xhtml:ul> |
| 2078 |
add the text “,nodev” to the list of mount options in column 4. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2079 |
</xccdf:fixtext> |
| 2080 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2081 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20016"/> |
| 2082 |
</xccdf:check> |
| 2083 |
</xccdf:Rule> |
| 2084 |
</xccdf:Group> |
| 2085 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.1.2"> |
| 2086 |
<xccdf:title xml:lang="en">Add nodev, nosuid, and noexec Options to Removable Media Partitions</xccdf:title> |
| 2087 |
<xccdf:description xml:lang="en"> |
| 2088 |
Users should not be allowed to introduce arbitrary devices or |
| 2089 |
setuid programs to a system. These options are used to prevent that. In addition, while |
| 2090 |
users are usually allowed to add executable programs to a system, the noexec option |
| 2091 |
prevents code from being executed directly from the media itself, and may therefore |
| 2092 |
provide a line of defense against certain types of worms or malicious code.</xccdf:description> |
| 2093 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.1.2.a" selected="false" weight="10.0"> |
| 2094 |
<xccdf:title>Add nodev Option to Removable Media Partitions</xccdf:title> |
| 2095 |
<xccdf:description>The nodev option should be disabled for all removable media.</xccdf:description> |
| 2096 |
<xccdf:ident system="http://cce.mitre.org">CCE-3522-0</xccdf:ident> |
| 2097 |
<xccdf:fixtext>Edit the file /etc/fstab. Filesystems which represent removable media can be |
| 2098 |
located by finding lines whose mount points contain strings like floppy or cdrom, or |
| 2099 |
whose types are iso9660, vfat, or msdos. For each line representing a removable media |
| 2100 |
mountpoint, add the text ',nodev' to the list of mount options in column 4.</xccdf:fixtext> |
| 2101 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2102 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20017"/> |
| 2103 |
</xccdf:check> |
| 2104 |
</xccdf:Rule> |
| 2105 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.1.2.b" selected="false" weight="10.0"> |
| 2106 |
<xccdf:title>Add noexec Option to Removable Media Partitions</xccdf:title> |
| 2107 |
<xccdf:description>The noexec option should be disabled for all removable media.</xccdf:description> |
| 2108 |
<xccdf:ident system="http://cce.mitre.org">CCE-4275-4</xccdf:ident> |
| 2109 |
<xccdf:fixtext>Edit the file /etc/fstab. Filesystems which represent removable media can be |
| 2110 |
located by finding lines whose mount points contain strings like floppy or cdrom, or |
| 2111 |
whose types are iso9660, vfat, or msdos. For each line representing a removable media |
| 2112 |
mountpoint, add the text ',noexec' to the list of mount options in column 4.</xccdf:fixtext> |
| 2113 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2114 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20018"/> |
| 2115 |
</xccdf:check> |
| 2116 |
</xccdf:Rule> |
| 2117 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.1.2.c" selected="false" severity="medium" weight="10.0"> |
| 2118 |
<xccdf:title>Add nosuid Option to Removable Media Partitions</xccdf:title> |
| 2119 |
<xccdf:description>The nosuid option should be disabled for all removable media.</xccdf:description> |
| 2120 |
<xccdf:ident system="http://cce.mitre.org">CCE-4042-8</xccdf:ident> |
| 2121 |
<xccdf:fixtext>Edit the file /etc/fstab. Filesystems which represent removable media can be |
| 2122 |
located by finding lines whose mount points contain strings like floppy or cdrom, or |
| 2123 |
whose types are iso9660, vfat, or msdos. For each line representing a removable media |
| 2124 |
mountpoint, add the text ',nosuid' to the list of mount options in column 4.</xccdf:fixtext> |
| 2125 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2126 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20019"/> |
| 2127 |
</xccdf:check> |
| 2128 |
</xccdf:Rule> |
| 2129 |
</xccdf:Group> |
| 2130 |
</xccdf:Group> |
| 2131 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2"> |
| 2132 |
<xccdf:title xml:lang="en">Restrict Dynamic Mounting and Unmounting of Filesystems</xccdf:title> |
| 2133 |
<xccdf:description xml:lang="en"> |
| 2134 |
Linux includes a number of facilities for the automated addition |
| 2135 |
and removal of filesystems on a running system. These facilities may increase convenience, |
| 2136 |
but they all bring some risk, whether direct risk from allowing unprivileged users to |
| 2137 |
introduce arbitrary filesystems to a machine, or risk that software flaws in the automated |
| 2138 |
mount facility itself will allow an attacker to compromise the |
| 2139 |
system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2140 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2141 |
Use caution when enabling any such facility, and find out |
| 2142 |
whether better configuration management or user education might solve the same problem |
| 2143 |
with less risk. |
| 2144 |
</xccdf:description> |
| 2145 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.1"> |
| 2146 |
<xccdf:title xml:lang="en">Disable USB Device Support</xccdf:title> |
| 2147 |
<xccdf:description xml:lang="en">USB flash or hard drives allow an attacker with physical access to a system to quickly copy an enormous amount of data from it.</xccdf:description> |
| 2148 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.1.1"> |
| 2149 |
<xccdf:title xml:lang="en">Disable Modprobe Loading of USB Storage Driver</xccdf:title> |
| 2150 |
<xccdf:description xml:lang="en"> |
| 2151 |
If USB storage devices should not be used, the modprobe |
| 2152 |
program used for automatic kernel module loading should be configured to not load the |
| 2153 |
USB storage driver upon demand. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2154 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2155 |
This will prevent the modprobe program from loading the usb-storage module, but will |
| 2156 |
not prevent an administrator (or another program) from using the insmod program to |
| 2157 |
load the module manually. |
| 2158 |
</xccdf:description> |
| 2159 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.1.1.a" selected="false" weight="10.0"> |
| 2160 |
<xccdf:title>Disable Modprobe Loading of USB Storage Driver</xccdf:title> |
| 2161 |
<xccdf:description>The USB device support module should not be loaded</xccdf:description> |
| 2162 |
<xccdf:ident system="http://cce.mitre.org">CCE-4187-1</xccdf:ident> |
| 2163 |
<xccdf:fix>echo -e "\ndenylist usb_storage" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2164 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2165 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20021"/> |
| 2166 |
</xccdf:check> |
| 2167 |
</xccdf:Rule> |
| 2168 |
</xccdf:Group> |
| 2169 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.1.2"> |
| 2170 |
<xccdf:title xml:lang="en">Remove USB Storage Driver</xccdf:title> |
| 2171 |
<xccdf:description xml:lang="en"> |
| 2172 |
If your system never requires the use of USB storage devices, |
| 2173 |
then the supporting driver can be removed. Though more effective (as USB storage |
| 2174 |
certainly cannot be used if the driver is not available at all), this is less elegant |
| 2175 |
than the method described in Section 2.2.2.1.1. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2176 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2177 |
Note that this guidance will not prevent USB storage devices from being mounted if a |
| 2178 |
custom kernel (i.e., not the one supplied with the system) with built-in USB support |
| 2179 |
is used. |
| 2180 |
</xccdf:description> |
| 2181 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.1.2.a" selected="false" weight="10.0"> |
| 2182 |
<xccdf:title>Remove USB Storage Driver</xccdf:title> |
| 2183 |
<xccdf:description> |
| 2184 |
The USB device support module should not be installed. The command in |
| 2185 |
the FIX will need to be repeated every time the kernel is updated. This command |
| 2186 |
will also cause the command rpm -q --verify kernel to fail, which may be an |
| 2187 |
undesirable side effect.</xccdf:description> |
| 2188 |
<xccdf:ident system="http://cce.mitre.org">CCE-4006-3</xccdf:ident> |
| 2189 |
<xccdf:fix>rm /lib/modules/2.6.*/kernel/drivers/usb/storage/usb-storage.ko</xccdf:fix> |
| 2190 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2191 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20022"/> |
| 2192 |
</xccdf:check> |
| 2193 |
</xccdf:Rule> |
| 2194 |
</xccdf:Group> |
| 2195 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.1.3"> |
| 2196 |
<xccdf:title xml:lang="en">Disable Kernel Support for USB via Bootloader Configuration</xccdf:title> |
| 2197 |
<xccdf:description xml:lang="en"> |
| 2198 |
Another means of disabling USB storage is to disable all USB |
| 2199 |
support provided by the operating system. This can be accomplished by adding the |
| 2200 |
'nousb' argument to the kernel's boot loader configuration. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2201 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2202 |
NOTE |
| 2203 |
- Disabling all kernel support for USB will cause problems for systems with USB-based |
| 2204 |
keyboards, mice, or printers. This guidance is inappropriate for systems which require |
| 2205 |
USB connectivity. |
| 2206 |
</xccdf:description> |
| 2207 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.1.3.a" selected="false" weight="10.0"> |
| 2208 |
<xccdf:title>Disable Kernel Support for USB via Bootloader Configuration</xccdf:title> |
| 2209 |
<xccdf:description>USB kernel support should be disabled.</xccdf:description> |
| 2210 |
<xccdf:ident system="http://cce.mitre.org">CCE-4173-1</xccdf:ident> |
| 2211 |
<xccdf:fixtext>To disable kernel support for USB, append 'nousb' to the kernel line in |
| 2212 |
/etc/grub.conf as follows: kernel /vmlinuz-version ro vga=ext |
| 2213 |
root=/dev/VolGroup00/LogVol00 rhgb quiet nousb</xccdf:fixtext> |
| 2214 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2215 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20023"/> |
| 2216 |
</xccdf:check> |
| 2217 |
</xccdf:Rule> |
| 2218 |
</xccdf:Group> |
| 2219 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.1.4"> |
| 2220 |
<xccdf:title xml:lang="en">Disable Booting from USB Devices</xccdf:title> |
| 2221 |
<xccdf:description xml:lang="en"> |
| 2222 |
An attacker with physical access could try to boot the system |
| 2223 |
from a USB flash drive and then access any data on the system's hard drive, |
| 2224 |
circumventing the normal operating system's access controls. To prevent this, |
| 2225 |
configure the BIOS to disallow booting from USB drives. Also configure the BIOS or |
| 2226 |
firmware password as described in Section 2.3.5.1 to prevent unauthorized |
| 2227 |
configuration changes.</xccdf:description> |
| 2228 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.1.4.a" selected="false" severity="high" weight="10.0"> |
| 2229 |
<xccdf:title>Disable Booting from USB Devices in the BIOS</xccdf:title> |
| 2230 |
<xccdf:description>The ability to boot from USB devices should be disabled</xccdf:description> |
| 2231 |
<xccdf:ident system="http://cce.mitre.org">CCE-3944-6</xccdf:ident> |
| 2232 |
<xccdf:fixtext>BIOS settings</xccdf:fixtext> |
| 2233 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2234 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20024"/> |
| 2235 |
</xccdf:check> |
| 2236 |
</xccdf:Rule> |
| 2237 |
</xccdf:Group> |
| 2238 |
</xccdf:Group> |
| 2239 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.2"> |
| 2240 |
<xccdf:title xml:lang="en">Disable the Automounter if Possible</xccdf:title> |
| 2241 |
<xccdf:description xml:lang="en"> |
| 2242 |
If the autofs service is not needed to dynamically mount NFS |
| 2243 |
filesystems or removable media, disable the service. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2244 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2245 |
The autofs daemon mounts and unmounts filesystems, such as user home directories shared |
| 2246 |
via NFS, on demand. In addition, autofs can be used to handle removable media, and the |
| 2247 |
default configuration provides the cdrom device as /misc/cd. However, this method of |
| 2248 |
providing access to removable media is not common, so autofs can almost always be |
| 2249 |
disabled if NFS is not in use. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2250 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2251 |
Even if NFS is required, it is almost always |
| 2252 |
possible to configure filesystem mounts statically by editing /etc/fstab rather than |
| 2253 |
relying on the automounter. |
| 2254 |
</xccdf:description> |
| 2255 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.2.a" selected="false" severity="medium" weight="10.0"> |
| 2256 |
<xccdf:title>Disable the Automounter if Possible</xccdf:title> |
| 2257 |
<xccdf:description>The autofs service should be disabled.</xccdf:description> |
| 2258 |
<xccdf:ident system="http://cce.mitre.org">CCE-4072-5</xccdf:ident> |
| 2259 |
<xccdf:fix>chkconfig autofs off</xccdf:fix> |
| 2260 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2261 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20025"/> |
| 2262 |
</xccdf:check> |
| 2263 |
</xccdf:Rule> |
| 2264 |
</xccdf:Group> |
| 2265 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.3"> |
| 2266 |
<xccdf:title xml:lang="en">Disable GNOME Automounting if Possible</xccdf:title> |
| 2267 |
<xccdf:description xml:lang="en"> |
| 2268 |
The system's default desktop environment, GNOME, runs the |
| 2269 |
program gnome-volume-manager to mount devices and removable media (such as DVDs, CDs and |
| 2270 |
USB flash drives) whenever they are inserted into the system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2271 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2272 |
The system's capabilities for automatic mounting should be configured to match whatever |
| 2273 |
is defined by security policy. Disabling USB storage as described in Section 2.2.2.2.1 |
| 2274 |
will prevent the use of USB storage devices, but this step can also be taken as an |
| 2275 |
additional layer of prevention and to prevent automatic mounting of CDs and DVDs if |
| 2276 |
required. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2277 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2278 |
Particularly for kiosk-style systems, where users should |
| 2279 |
have extremely limited access to the system, more detailed information can be found in |
| 2280 |
Red Hat Desktop: Deployment Guide. The gconf-editor program, available in an RPM of the |
| 2281 |
same name, can be used to explore other settings available in the GNOME environment. |
| 2282 |
</xccdf:description> |
| 2283 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.3.a" selected="false" severity="medium" weight="10.0"> |
| 2284 |
<xccdf:title>Disable GNOME Automounting if Possible</xccdf:title> |
| 2285 |
<xccdf:description>The GNOME automounter (gnome-volume-manager) should be disabled if possible</xccdf:description> |
| 2286 |
<xccdf:ident system="http://cce.mitre.org">CCE-4231-7</xccdf:ident> |
| 2287 |
<xccdf:fixtext>Execute the following commands to prevent gnome-volume-manager from automatically |
| 2288 |
mounting devices and media: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2289 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2290 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 2291 |
# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory |
| 2292 |
--type bool --set /desktop/gnome/volume_manager/automount_media false |
| 2293 |
<xhtml:br/> <xhtml:br/> |
| 2294 |
# gconftool-2 --direct |
| 2295 |
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory |
| 2296 |
--type bool |
| 2297 |
--set /desktop/gnome/volume_manager/automount_drives false |
| 2298 |
</xhtml:code> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2299 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2300 |
Verify the changes by executing |
| 2301 |
the following command, which should return a list of settings: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2302 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2303 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># gconftool-2 -R /desktop/gnome/volume_manager <xhtml:br/></xhtml:code> |
| 2304 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2305 |
The automount drives and automount media settings should |
| 2306 |
be set to false. Survey the list for any other options that should be adjusted.</xccdf:fixtext> |
| 2307 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2308 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20026"/> |
| 2309 |
</xccdf:check> |
| 2310 |
</xccdf:Rule> |
| 2311 |
</xccdf:Group> |
| 2312 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.2.4"> |
| 2313 |
<xccdf:title xml:lang="en">Disable Mounting of Uncommon Filesystem Types</xccdf:title> |
| 2314 |
<xccdf:description xml:lang="en"> |
| 2315 |
Specifying kernel module in /etc/modprobe.d/denylist.conf will prevent |
| 2316 |
kernel module loading system from inserting the modele into the kernel. |
| 2317 |
This mechanism effectively prevents usage of these uncommon filesystems.</xccdf:description> |
| 2318 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.a" selected="false" weight="10.0"> |
| 2319 |
<xccdf:title>Disable Mounting of cramfs</xccdf:title> |
| 2320 |
<xccdf:description>cramfs is uncommon filesystems</xccdf:description> |
| 2321 |
<xccdf:fix>echo "denylist cramfs" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2322 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2323 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20027"/> |
| 2324 |
</xccdf:check> |
| 2325 |
</xccdf:Rule> |
| 2326 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.b" selected="false" weight="10.0"> |
| 2327 |
<xccdf:title>Disable Mounting of freevxfs</xccdf:title> |
| 2328 |
<xccdf:description>freevxfs is uncommon filesystems</xccdf:description> |
| 2329 |
<xccdf:fix>echo "denylist freevxfs" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2330 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2331 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20028"/> |
| 2332 |
</xccdf:check> |
| 2333 |
</xccdf:Rule> |
| 2334 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.c" selected="false" weight="10.0"> |
| 2335 |
<xccdf:title>Disable Mounting of jffs2</xccdf:title> |
| 2336 |
<xccdf:description>jffs2 is uncommon filesystems</xccdf:description> |
| 2337 |
<xccdf:fix>echo "denylist jffs2" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2338 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2339 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20029"/> |
| 2340 |
</xccdf:check> |
| 2341 |
</xccdf:Rule> |
| 2342 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.d" selected="false" weight="10.0"> |
| 2343 |
<xccdf:title>Disable Mounting of hfs</xccdf:title> |
| 2344 |
<xccdf:description>hfs is uncommon filesystems</xccdf:description> |
| 2345 |
<xccdf:fix>echo "denylist hfs" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2346 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2347 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20030"/> |
| 2348 |
</xccdf:check> |
| 2349 |
</xccdf:Rule> |
| 2350 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.e" selected="false" weight="10.0"> |
| 2351 |
<xccdf:title>Disable Mounting of hfsplus</xccdf:title> |
| 2352 |
<xccdf:description>hfsplus is uncommon filesystems</xccdf:description> |
| 2353 |
<xccdf:fix>echo "denylist hfsplus" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2354 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2355 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20031"/> |
| 2356 |
</xccdf:check> |
| 2357 |
</xccdf:Rule> |
| 2358 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.f" selected="false" weight="10.0"> |
| 2359 |
<xccdf:title>Disable Mounting of squashfs</xccdf:title> |
| 2360 |
<xccdf:description>squashfs is uncommon filesystems</xccdf:description> |
| 2361 |
<xccdf:fix>echo "denylist squashfs" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2362 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2363 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20032"/> |
| 2364 |
</xccdf:check> |
| 2365 |
</xccdf:Rule> |
| 2366 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.2.4.g" selected="false" weight="10.0"> |
| 2367 |
<xccdf:title>Disable Mounting of udf</xccdf:title> |
| 2368 |
<xccdf:description>udf is uncommon filesystems</xccdf:description> |
| 2369 |
<xccdf:fix>echo "denylist udf" >> /etc/modprobe.d/denylist.conf</xccdf:fix> |
| 2370 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2371 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20033"/> |
| 2372 |
</xccdf:check> |
| 2373 |
</xccdf:Rule> |
| 2374 |
</xccdf:Group> |
| 2375 |
</xccdf:Group> |
| 2376 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3"> |
| 2377 |
<xccdf:title xml:lang="en">Verify Permissions on Important Files and Directories</xccdf:title> |
| 2378 |
<xccdf:description xml:lang="en"> |
| 2379 |
Permissions for many files on a system should be set to conform |
| 2380 |
to system policy. This section discusses important permission restrictions which |
| 2381 |
should be checked on a regular basis to ensure that no harmful discrepancies have arisen. |
| 2382 |
</xccdf:description> |
| 2383 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.1"> |
| 2384 |
<xccdf:title xml:lang="en">Verify Permissions on passwd, shadow, group and gshadow Files</xccdf:title> |
| 2385 |
<xccdf:description xml:lang="en"> |
| 2386 |
These are the default permissions for these files. Many |
| 2387 |
utilities need read access to the passwd file in order to function properly, but read |
| 2388 |
access to the shadow file allows malicious attacks against system passwords, and should |
| 2389 |
never be enabled.</xccdf:description> |
| 2390 |
<xccdf:Value id="xccdf_cdf_value_var-2.2.3.1.i" operator="equals" type="string"> |
| 2391 |
<xccdf:title>Permissions for shadow</xccdf:title> |
| 2392 |
<xccdf:description>File permissions for /etc/shadow</xccdf:description> |
| 2393 |
<xccdf:question xml:lang="en">Select permissions for /etc/shadow</xccdf:question> |
| 2394 |
<xccdf:value>000000000</xccdf:value> |
| 2395 |
<xccdf:value selector="000">000000000</xccdf:value> |
| 2396 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 2397 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 2398 |
<xccdf:match>^[10]+$</xccdf:match> |
| 2399 |
</xccdf:Value> |
| 2400 |
<xccdf:Value id="xccdf_cdf_value_var-2.2.3.1.j" operator="equals" type="string"> |
| 2401 |
<xccdf:title>Permissions for group</xccdf:title> |
| 2402 |
<xccdf:description>File permissions for /etc/group</xccdf:description> |
| 2403 |
<xccdf:question xml:lang="en">Select permissions for /etc/group</xccdf:question> |
| 2404 |
<xccdf:value>110100100</xccdf:value> |
| 2405 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 2406 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 2407 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 2408 |
<xccdf:match>^[10]+$</xccdf:match> |
| 2409 |
</xccdf:Value> |
| 2410 |
<xccdf:Value id="xccdf_cdf_value_var-2.2.3.1.k" operator="equals" type="string"> |
| 2411 |
<xccdf:title>Permissions for gshadow</xccdf:title> |
| 2412 |
<xccdf:description>File permissions for /etc/gshadow</xccdf:description> |
| 2413 |
<xccdf:question xml:lang="en">Select permissions for /etc/gshadow</xccdf:question> |
| 2414 |
<xccdf:value>000000000</xccdf:value> |
| 2415 |
<xccdf:value selector="000">000000000</xccdf:value> |
| 2416 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 2417 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 2418 |
<xccdf:match>^[10]+$</xccdf:match> |
| 2419 |
</xccdf:Value> |
| 2420 |
<xccdf:Value id="xccdf_cdf_value_var-2.2.3.1.l" operator="equals" type="string"> |
| 2421 |
<xccdf:title>Permissions for passwd</xccdf:title> |
| 2422 |
<xccdf:description>File permissions for /etc/password</xccdf:description> |
| 2423 |
<xccdf:question xml:lang="en">Select permissions for /etc/password</xccdf:question> |
| 2424 |
<xccdf:value>110100100</xccdf:value> |
| 2425 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 2426 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 2427 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 2428 |
<xccdf:match>^[10]+$</xccdf:match> |
| 2429 |
</xccdf:Value> |
| 2430 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.a" selected="false" severity="medium" weight="10.0"> |
| 2431 |
<xccdf:title>Verify user who owns 'shadow' file</xccdf:title> |
| 2432 |
<xccdf:description>The /etc/shadow file should be owned by root.</xccdf:description> |
| 2433 |
<xccdf:ident system="http://cce.mitre.org">CCE-3918-0</xccdf:ident> |
| 2434 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2435 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20034"/> |
| 2436 |
</xccdf:check> |
| 2437 |
</xccdf:Rule> |
| 2438 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.b" selected="false" severity="medium" weight="10.0"> |
| 2439 |
<xccdf:title>Verify group who owns 'shadow' file</xccdf:title> |
| 2440 |
<xccdf:description>The /etc/shadow file should be owned by root.</xccdf:description> |
| 2441 |
<xccdf:ident system="http://cce.mitre.org">CCE-3988-3</xccdf:ident> |
| 2442 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2443 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20035"/> |
| 2444 |
</xccdf:check> |
| 2445 |
</xccdf:Rule> |
| 2446 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.c" selected="false" severity="medium" weight="10.0"> |
| 2447 |
<xccdf:title>Verify user who owns 'group' file</xccdf:title> |
| 2448 |
<xccdf:description>The /etc/group file should be owned by root.</xccdf:description> |
| 2449 |
<xccdf:ident system="http://cce.mitre.org">CCE-3276-3</xccdf:ident> |
| 2450 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2451 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20036"/> |
| 2452 |
</xccdf:check> |
| 2453 |
</xccdf:Rule> |
| 2454 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.d" selected="false" severity="medium" weight="10.0"> |
| 2455 |
<xccdf:title>Verify group who owns 'group' file</xccdf:title> |
| 2456 |
<xccdf:description>The /etc/group file should be owned by root.</xccdf:description> |
| 2457 |
<xccdf:ident system="http://cce.mitre.org">CCE-3883-6</xccdf:ident> |
| 2458 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2459 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20037"/> |
| 2460 |
</xccdf:check> |
| 2461 |
</xccdf:Rule> |
| 2462 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.e" selected="false" severity="medium" weight="10.0"> |
| 2463 |
<xccdf:title>Verify user who owns 'gshadow' file</xccdf:title> |
| 2464 |
<xccdf:description>The /etc/gshadow file should be owned by root.</xccdf:description> |
| 2465 |
<xccdf:ident system="http://cce.mitre.org">CCE-4210-1</xccdf:ident> |
| 2466 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2467 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20038"/> |
| 2468 |
</xccdf:check> |
| 2469 |
</xccdf:Rule> |
| 2470 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.f" selected="false" severity="medium" weight="10.0"> |
| 2471 |
<xccdf:title>Verify group who owns 'gshadow' file</xccdf:title> |
| 2472 |
<xccdf:description>The /etc/gshadow file should be owned by root.</xccdf:description> |
| 2473 |
<xccdf:ident system="http://cce.mitre.org">CCE-4064-2</xccdf:ident> |
| 2474 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2475 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20039"/> |
| 2476 |
</xccdf:check> |
| 2477 |
</xccdf:Rule> |
| 2478 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.g" selected="false" severity="medium" weight="10.0"> |
| 2479 |
<xccdf:title>Verify user who owns 'passwd' file</xccdf:title> |
| 2480 |
<xccdf:description>The /etc/passwd file should be owned by root.</xccdf:description> |
| 2481 |
<xccdf:ident system="http://cce.mitre.org">CCE-3958-6</xccdf:ident> |
| 2482 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2483 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20040"/> |
| 2484 |
</xccdf:check> |
| 2485 |
</xccdf:Rule> |
| 2486 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.h" selected="false" severity="medium" weight="10.0"> |
| 2487 |
<xccdf:title>Verify group who owns 'passwd' file</xccdf:title> |
| 2488 |
<xccdf:description>The /etc/passwd file should be owned by root.</xccdf:description> |
| 2489 |
<xccdf:ident system="http://cce.mitre.org">CCE-3495-9</xccdf:ident> |
| 2490 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2491 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20041"/> |
| 2492 |
</xccdf:check> |
| 2493 |
</xccdf:Rule> |
| 2494 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.i" selected="false" severity="medium" weight="10.0"> |
| 2495 |
<xccdf:title>Verify permissions on 'shadow' file</xccdf:title> |
| 2496 |
<xccdf:description>File permissions for /etc/shadow should be set correctly.</xccdf:description> |
| 2497 |
<xccdf:ident system="http://cce.mitre.org">CCE-4130-1</xccdf:ident> |
| 2498 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2499 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20042" value-id="xccdf_cdf_value_var-2.2.3.1.i"/> |
| 2500 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20042"/> |
| 2501 |
</xccdf:check> |
| 2502 |
</xccdf:Rule> |
| 2503 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.j" selected="false" severity="medium" weight="10.0"> |
| 2504 |
<xccdf:title>Verify permissions on 'group' file</xccdf:title> |
| 2505 |
<xccdf:description>File permissions for /etc/group should be set correctly.</xccdf:description> |
| 2506 |
<xccdf:ident system="http://cce.mitre.org">CCE-3967-7</xccdf:ident> |
| 2507 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2508 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20043" value-id="xccdf_cdf_value_var-2.2.3.1.j"/> |
| 2509 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20043"/> |
| 2510 |
</xccdf:check> |
| 2511 |
</xccdf:Rule> |
| 2512 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.k" selected="false" severity="medium" weight="10.0"> |
| 2513 |
<xccdf:title>Verify permissions on 'gshadow' file</xccdf:title> |
| 2514 |
<xccdf:description>File permissions for /etc/gshadow should be set correctly.</xccdf:description> |
| 2515 |
<xccdf:ident system="http://cce.mitre.org">CCE-3932-1</xccdf:ident> |
| 2516 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2517 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20044" value-id="xccdf_cdf_value_var-2.2.3.1.k"/> |
| 2518 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20044"/> |
| 2519 |
</xccdf:check> |
| 2520 |
</xccdf:Rule> |
| 2521 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.1.l" selected="false" severity="medium" weight="10.0"> |
| 2522 |
<xccdf:title>Verify permissions on 'passwd' file</xccdf:title> |
| 2523 |
<xccdf:description>File permissions for /etc/passwd should be set correctly.</xccdf:description> |
| 2524 |
<xccdf:ident system="http://cce.mitre.org">CCE-3566-7</xccdf:ident> |
| 2525 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2526 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20045" value-id="xccdf_cdf_value_var-2.2.3.1.l"/> |
| 2527 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20045"/> |
| 2528 |
</xccdf:check> |
| 2529 |
</xccdf:Rule> |
| 2530 |
</xccdf:Group> |
| 2531 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.2"> |
| 2532 |
<xccdf:title xml:lang="en">Verify that All World-Writable Directories Have Sticky Bits Set</xccdf:title> |
| 2533 |
<xccdf:description xml:lang="en"> |
| 2534 |
When the so-called 'sticky bit' is set on a directory, only the |
| 2535 |
owner of a given file may remove that file from the directory. Without the sticky bit, |
| 2536 |
any user with write access to a directory may remove any file in the directory. Setting |
| 2537 |
the sticky bit prevents users from removing each other's files. In cases where there is |
| 2538 |
no reason for a directory to be world-writable, a better solution is to remove that |
| 2539 |
permission rather than to set the sticky bit. However, if a directory is used by a |
| 2540 |
particular application, consult that application's documentation instead of blindly |
| 2541 |
changing modes.</xccdf:description> |
| 2542 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.2.a" selected="false" severity="low" weight="10.0"> |
| 2543 |
<xccdf:title>Verify that All World-Writable Directories Have Sticky Bits Set</xccdf:title> |
| 2544 |
<xccdf:description>The sticky bit should be set for all world-writable directories.</xccdf:description> |
| 2545 |
<xccdf:ident system="http://cce.mitre.org">CCE-3399-3</xccdf:ident> |
| 2546 |
<xccdf:fixtext>Locate any directories in local partitions which are world-writable and do not have |
| 2547 |
their sticky bits set. The following command will discover and print these. Run it |
| 2548 |
once for each local partition PART: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2549 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> <xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># find PART -xdev -type d \( -perm -0002 -a ! |
| 2550 |
-perm -1000 \) -print </xhtml:code><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2551 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2552 |
If this command produces any output, fix each reported directory |
| 2553 |
/dir using the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2554 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2555 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chmod +t /dir</xhtml:code></xccdf:fixtext> |
| 2556 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2557 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20046"/> |
| 2558 |
</xccdf:check> |
| 2559 |
</xccdf:Rule> |
| 2560 |
</xccdf:Group> |
| 2561 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.3"> |
| 2562 |
<xccdf:title xml:lang="en">Find Unauthorized World-Writable Files</xccdf:title> |
| 2563 |
<xccdf:description xml:lang="en"> |
| 2564 |
Data in world-writable files can be modified by any user on the |
| 2565 |
system. In almost all circumstances, files can be configured using a combination of user |
| 2566 |
and group permissions to support whatever legitimate access is needed without the risk |
| 2567 |
caused by world-writable files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2568 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2569 |
It is generally a good idea to |
| 2570 |
remove global (other) write access to a file when it is discovered. However, check with |
| 2571 |
documentation for specific applications before making changes. Also, monitor for |
| 2572 |
recurring world-writable files, as these may be symptoms of a misconfigured application |
| 2573 |
or user account. |
| 2574 |
</xccdf:description> |
| 2575 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.3.a" selected="false" severity="medium" weight="10.0"> |
| 2576 |
<xccdf:title>Find Unauthorized World-Writable Files</xccdf:title> |
| 2577 |
<xccdf:description>The world-write permission should be disabled for all files.</xccdf:description> |
| 2578 |
<xccdf:ident system="http://cce.mitre.org">CCE-3795-2</xccdf:ident> |
| 2579 |
<xccdf:fixtext>The following command discovers and prints any world-writable files in local |
| 2580 |
partitions. Run it once for each local partition PART: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2581 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2582 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">find PART -xdev -type f -perm -0002 -print | xargs chmod o-w</xhtml:code></xccdf:fixtext> |
| 2583 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2584 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20047"/> |
| 2585 |
</xccdf:check> |
| 2586 |
</xccdf:Rule> |
| 2587 |
</xccdf:Group> |
| 2588 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.4"> |
| 2589 |
<xccdf:title xml:lang="en">Find Unauthorized SUID/SGID System Executables</xccdf:title> |
| 2590 |
<xccdf:description xml:lang="en"> |
| 2591 |
The following command discovers and prints any setuid or setgid |
| 2592 |
files on local partitions. Run it once for each local partition : <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2593 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2594 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"> # for PART in `mount -t ext2,ext3,ext4 | awk '{print $3}'`; |
| 2595 |
do find $PART -xdev \( -perm -4000 -o -perm -2000 \) -type f -print; |
| 2596 |
done </xhtml:code> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2597 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2598 |
If the file does not require a setuid or |
| 2599 |
setgid bit as discussed below, then these bits can be removed with the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2600 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2601 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"> # chmod -s file </xhtml:code> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2602 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2603 |
The following table contains all setuid and setgid files which are expected to |
| 2604 |
be on a stock system. The setuid or setgid bit on these files may be disabled to reduce |
| 2605 |
system risk if only an administrator requires their functionality. The table indicates |
| 2606 |
those files which may not be needed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2607 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2608 |
Note: Several of these files are used for applications which are unlikely to be |
| 2609 |
relevant to most production environments, such as ISDN networking, SSH hostbased |
| 2610 |
authentication, or modification of network interfaces by unprivileged users. It is |
| 2611 |
extremely likely that your site can disable a subset of these files with no loss of |
| 2612 |
functionality. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2613 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2614 |
Any files found by the above command which are not in the table should be examined. |
| 2615 |
If the files are not authorized, they should have permissions removed, and further |
| 2616 |
investigation may be warranted. |
| 2617 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2618 |
<xhtml:table xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 2619 |
<xhtml:tr> |
| 2620 |
<xhtml:td>File</xhtml:td><xhtml:td>Set-ID</xhtml:td><xhtml:td>Package</xhtml:td> |
| 2621 |
</xhtml:tr> |
| 2622 |
<xhtml:tr> |
| 2623 |
<xhtml:td>/bin/mount</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>util-linux-ng</xhtml:td> |
| 2624 |
</xhtml:tr> |
| 2625 |
<xhtml:tr> |
| 2626 |
<xhtml:td>/bin/ping</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>iputils</xhtml:td> |
| 2627 |
</xhtml:tr> |
| 2628 |
<xhtml:tr> |
| 2629 |
<xhtml:td>/bin/ping6</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>iputils</xhtml:td> |
| 2630 |
</xhtml:tr> |
| 2631 |
<xhtml:tr> |
| 2632 |
<xhtml:td>/bin/su</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>coreutils</xhtml:td> |
| 2633 |
</xhtml:tr> |
| 2634 |
<xhtml:tr> |
| 2635 |
<xhtml:td>/bin/umount</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>util-linux-ng</xhtml:td> |
| 2636 |
</xhtml:tr> |
| 2637 |
<xhtml:tr> |
| 2638 |
<xhtml:td>/bin/fusermount</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>fuse</xhtml:td> |
| 2639 |
</xhtml:tr> |
| 2640 |
<xhtml:tr> |
| 2641 |
<xhtml:td>/bin/cgexec</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>libcgroup</xhtml:td> |
| 2642 |
</xhtml:tr> |
| 2643 |
<xhtml:tr> |
| 2644 |
<xhtml:td>/sbin/mount.nfs</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>nfs-utils</xhtml:td> |
| 2645 |
</xhtml:tr> |
| 2646 |
<xhtml:tr> |
| 2647 |
<xhtml:td>/sbin/umount.nfs</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>nfs-utils</xhtml:td> |
| 2648 |
</xhtml:tr> |
| 2649 |
<xhtml:tr> |
| 2650 |
<xhtml:td>/sbin/netreport</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>initscripts</xhtml:td> |
| 2651 |
</xhtml:tr> |
| 2652 |
<xhtml:tr> |
| 2653 |
<xhtml:td>/sbin/pam_timestamp_check</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>pam</xhtml:td> |
| 2654 |
</xhtml:tr> |
| 2655 |
<xhtml:tr> |
| 2656 |
<xhtml:td>/sbin/unix_chkpwd</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>pam</xhtml:td> |
| 2657 |
</xhtml:tr> |
| 2658 |
<xhtml:tr> |
| 2659 |
<xhtml:td>/usr/bin/at</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>at</xhtml:td> |
| 2660 |
</xhtml:tr> |
| 2661 |
<xhtml:tr> |
| 2662 |
<xhtml:td>/usr/bin/chage</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>shadow-utils</xhtml:td> |
| 2663 |
</xhtml:tr> |
| 2664 |
<xhtml:tr> |
| 2665 |
<xhtml:td>/usr/bin/chfn</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>util-linux-ng</xhtml:td> |
| 2666 |
</xhtml:tr> |
| 2667 |
<xhtml:tr> |
| 2668 |
<xhtml:td>/usr/bin/chsh</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>util-linux-ng</xhtml:td> |
| 2669 |
</xhtml:tr> |
| 2670 |
<xhtml:tr> |
| 2671 |
<xhtml:td>/usr/bin/crontab</xhtml:td><xhtml:td>uid/gid root</xhtml:td><xhtml:td>cronie</xhtml:td> |
| 2672 |
</xhtml:tr> |
| 2673 |
<xhtml:tr> |
| 2674 |
<xhtml:td>/usr/bin/gpasswd</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>shadow-utils</xhtml:td> |
| 2675 |
</xhtml:tr> |
| 2676 |
<xhtml:tr> |
| 2677 |
<xhtml:td>/usr/bin/locate</xhtml:td><xhtml:td>gid slocate</xhtml:td><xhtml:td>mlocate</xhtml:td> |
| 2678 |
</xhtml:tr> |
| 2679 |
<xhtml:tr> |
| 2680 |
<xhtml:td>/usr/bin/lockfile</xhtml:td><xhtml:td>gid mail</xhtml:td><xhtml:td>procmail</xhtml:td> |
| 2681 |
</xhtml:tr> |
| 2682 |
<xhtml:tr> |
| 2683 |
<xhtml:td>/usr/bin/gnomine</xhtml:td><xhtml:td>gid games</xhtml:td><xhtml:td>gnome-games</xhtml:td> |
| 2684 |
</xhtml:tr> |
| 2685 |
<xhtml:tr> |
| 2686 |
<xhtml:td>/usr/bin/iagno</xhtml:td><xhtml:td>gid games</xhtml:td><xhtml:td>gnome-games</xhtml:td> |
| 2687 |
</xhtml:tr> |
| 2688 |
<xhtml:tr> |
| 2689 |
<xhtml:td>/usr/bin/newgrp</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>shadow-utils</xhtml:td> |
| 2690 |
</xhtml:tr> |
| 2691 |
<xhtml:tr> |
| 2692 |
<xhtml:td>/usr/bin/passwd</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>passwd</xhtml:td> |
| 2693 |
</xhtml:tr> |
| 2694 |
<xhtml:tr> |
| 2695 |
<xhtml:td>/usr/bin/pkexec</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>polkit</xhtml:td> |
| 2696 |
</xhtml:tr> |
| 2697 |
<xhtml:tr> |
| 2698 |
<xhtml:td>/usr/bin/rcp</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>rsh</xhtml:td> |
| 2699 |
</xhtml:tr> |
| 2700 |
<xhtml:tr> |
| 2701 |
<xhtml:td>/usr/bin/rlogin</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>rsh</xhtml:td> |
| 2702 |
</xhtml:tr> |
| 2703 |
<xhtml:tr> |
| 2704 |
<xhtml:td>/usr/bin/rsh</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>rsh</xhtml:td> |
| 2705 |
</xhtml:tr> |
| 2706 |
<xhtml:tr> |
| 2707 |
<xhtml:td>/usr/bin/staprun</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>systemtap-runtime</xhtml:td> |
| 2708 |
</xhtml:tr> |
| 2709 |
<xhtml:tr> |
| 2710 |
<xhtml:td>/usr/bin/ssh-agent</xhtml:td><xhtml:td>gid nobody</xhtml:td><xhtml:td>openssh-clients</xhtml:td> |
| 2711 |
</xhtml:tr> |
| 2712 |
<xhtml:tr> |
| 2713 |
<xhtml:td>/usr/bin/sudo</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>sudo</xhtml:td> |
| 2714 |
</xhtml:tr> |
| 2715 |
<xhtml:tr> |
| 2716 |
<xhtml:td>/usr/bin/sudoedit</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>sudo</xhtml:td> |
| 2717 |
</xhtml:tr> |
| 2718 |
<xhtml:tr> |
| 2719 |
<xhtml:td>/usr/bin/wall</xhtml:td><xhtml:td>gid tty</xhtml:td><xhtml:td>sysvinit-tools</xhtml:td> |
| 2720 |
</xhtml:tr> |
| 2721 |
<xhtml:tr> |
| 2722 |
<xhtml:td>/usr/bin/write</xhtml:td><xhtml:td>gid tty</xhtml:td><xhtml:td>util-linux-ng</xhtml:td> |
| 2723 |
</xhtml:tr> |
| 2724 |
<xhtml:tr> |
| 2725 |
<xhtml:td>/usr/bin/screen</xhtml:td><xhtml:td>gid screen</xhtml:td><xhtml:td>screen</xhtml:td> |
| 2726 |
</xhtml:tr> |
| 2727 |
<xhtml:tr> |
| 2728 |
<xhtml:td>/usr/bin/jwhois</xhtml:td><xhtml:td>gid jwhois</xhtml:td><xhtml:td>jwhois</xhtml:td> |
| 2729 |
</xhtml:tr> |
| 2730 |
<xhtml:tr> |
| 2731 |
<xhtml:td>/usr/bin/Xorg</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>xorg-x11-server-Xorg</xhtml:td> |
| 2732 |
</xhtml:tr> |
| 2733 |
<xhtml:tr> |
| 2734 |
<xhtml:td>/usr/bin/ksu</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>krb5-workstation</xhtml:td> |
| 2735 |
</xhtml:tr> |
| 2736 |
<xhtml:tr> |
| 2737 |
<xhtml:td>/usr/sbin/lockdev</xhtml:td><xhtml:td>gid lock</xhtml:td><xhtml:td>lockdev</xhtml:td> |
| 2738 |
</xhtml:tr> |
| 2739 |
<xhtml:tr> |
| 2740 |
<xhtml:td>/usr/sbin/sendmail.sendmail</xhtml:td><xhtml:td>gid smmsp</xhtml:td><xhtml:td>sendmail</xhtml:td> |
| 2741 |
</xhtml:tr> |
| 2742 |
<xhtml:tr> |
| 2743 |
<xhtml:td>/usr/sbin/suexec</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>httpd</xhtml:td> |
| 2744 |
</xhtml:tr> |
| 2745 |
<xhtml:tr> |
| 2746 |
<xhtml:td>/usr/sbin/seunshare</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>policycoreutils</xhtml:td> |
| 2747 |
</xhtml:tr> |
| 2748 |
<xhtml:tr> |
| 2749 |
<xhtml:td>/usr/sbin/userhelper</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>usermode</xhtml:td> |
| 2750 |
</xhtml:tr> |
| 2751 |
<xhtml:tr> |
| 2752 |
<xhtml:td>/usr/sbin/userisdnctl</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>isdn4k-utils</xhtml:td> |
| 2753 |
</xhtml:tr> |
| 2754 |
<xhtml:tr> |
| 2755 |
<xhtml:td>/usr/sbin/mtr</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>mtr</xhtml:td> |
| 2756 |
</xhtml:tr> |
| 2757 |
<xhtml:tr> |
| 2758 |
<xhtml:td>/usr/sbin/usernetctl</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>initscripts</xhtml:td> |
| 2759 |
</xhtml:tr> |
| 2760 |
<xhtml:tr> |
| 2761 |
<xhtml:td>/usr/sbin/ccreds_chkpwd</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>pam_ccreds</xhtml:td> |
| 2762 |
</xhtml:tr> |
| 2763 |
<xhtml:tr> |
| 2764 |
<xhtml:td>/usr/libexec/openssh/ssh-keysign</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>ssh</xhtml:td> |
| 2765 |
</xhtml:tr> |
| 2766 |
<xhtml:tr> |
| 2767 |
<xhtml:td>/usr/libexec/kde4/kpac_dhcp_helper</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>kdelibs</xhtml:td> |
| 2768 |
</xhtml:tr> |
| 2769 |
<xhtml:tr> |
| 2770 |
<xhtml:td>/usr/libexec/polkit-1/polkit-agent-helper-1</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>polkit</xhtml:td> |
| 2771 |
</xhtml:tr> |
| 2772 |
<xhtml:tr> |
| 2773 |
<xhtml:td>/usr/libexec/pt_chown</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>glibc-common</xhtml:td> |
| 2774 |
</xhtml:tr> |
| 2775 |
<xhtml:tr> |
| 2776 |
<xhtml:td>/usr/libexec/pulse/proximity-helper</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>pulseaudio-module-bluetooth</xhtml:td> |
| 2777 |
</xhtml:tr> |
| 2778 |
<xhtml:tr> |
| 2779 |
<xhtml:td>/usr/libexec/news/innbind</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>inn</xhtml:td> |
| 2780 |
</xhtml:tr> |
| 2781 |
<xhtml:tr> |
| 2782 |
<xhtml:td>/usr/libexec/news/rnews</xhtml:td><xhtml:td>uid uucp</xhtml:td><xhtml:td>inn</xhtml:td> |
| 2783 |
</xhtml:tr> |
| 2784 |
<xhtml:tr> |
| 2785 |
<xhtml:td>/usr/libexec/utempter/utempter</xhtml:td><xhtml:td>gid utmp</xhtml:td><xhtml:td>libutempter</xhtml:td> |
| 2786 |
</xhtml:tr> |
| 2787 |
<xhtml:tr> |
| 2788 |
<xhtml:td>/usr/lib/nspluginwrapper/plugin-config</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>nspluginwrapper</xhtml:td> |
| 2789 |
</xhtml:tr> |
| 2790 |
<xhtml:tr> |
| 2791 |
<xhtml:td>/usr/lib/vte/gnome-pty-helper</xhtml:td><xhtml:td>gid utmp</xhtml:td><xhtml:td>vte</xhtml:td> |
| 2792 |
</xhtml:tr> |
| 2793 |
<xhtml:tr> |
| 2794 |
<xhtml:td>/usr/share/BackupPC/sbin/BackupPC_Admin</xhtml:td><xhtml:td>uid backuppc</xhtml:td><xhtml:td>BackupPC</xhtml:td> |
| 2795 |
</xhtml:tr> |
| 2796 |
<xhtml:tr> |
| 2797 |
<xhtml:td>/var/cache/jwhois/jwhois.db</xhtml:td><xhtml:td>gid jwhois</xhtml:td><xhtml:td>jwhois</xhtml:td> |
| 2798 |
</xhtml:tr> |
| 2799 |
<xhtml:tr> |
| 2800 |
<xhtml:td>/lib/dbus-1/dbus-daemon-launch-helper</xhtml:td><xhtml:td>uid root</xhtml:td><xhtml:td>dbus</xhtml:td> |
| 2801 |
</xhtml:tr> |
| 2802 |
</xhtml:table> |
| 2803 |
</xccdf:description> |
| 2804 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.4.a" selected="false" severity="medium" weight="10.0"> |
| 2805 |
<xccdf:title>Find Unauthorized SGID System Executables</xccdf:title> |
| 2806 |
<xccdf:description>The sgid bit should not be set for all files.</xccdf:description> |
| 2807 |
<xccdf:ident system="http://cce.mitre.org">CCE-4178-0</xccdf:ident> |
| 2808 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2809 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20048"/> |
| 2810 |
</xccdf:check> |
| 2811 |
</xccdf:Rule> |
| 2812 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.4.b" selected="false" severity="high" weight="10.0"> |
| 2813 |
<xccdf:title>Find Unauthorized SUID System Executables</xccdf:title> |
| 2814 |
<xccdf:description>The suid bit should not be set for all files.</xccdf:description> |
| 2815 |
<xccdf:ident system="http://cce.mitre.org">CCE-3324-1</xccdf:ident> |
| 2816 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2817 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20049"/> |
| 2818 |
</xccdf:check> |
| 2819 |
</xccdf:Rule> |
| 2820 |
</xccdf:Group> |
| 2821 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.5"> |
| 2822 |
<xccdf:title xml:lang="en">Find and Repair Unowned Files</xccdf:title> |
| 2823 |
<xccdf:description xml:lang="en"> |
| 2824 |
The following command will discover and print any files on |
| 2825 |
local partitions which do not belong to a valid user and a valid group. Run it once for |
| 2826 |
each local partition PART: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2827 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2828 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># find PART -xdev \( -nouser -o -nogroup \) -print </xhtml:code> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2829 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2830 |
If this command prints any results, investigate each reported file and either assign it to an |
| 2831 |
appropriate user and group or remove it. Unowned files are not directly exploitable, but |
| 2832 |
they are generally a sign that something is wrong with some system process. They may be |
| 2833 |
caused by an intruder, by incorrect software installation or incomplete software |
| 2834 |
removal, or by failure to remove all files belonging to a deleted account. The files |
| 2835 |
should be repaired so that they will not cause problems when accounts are created in the |
| 2836 |
future, and the problem which led to unowned files should be discovered and addressed.</xccdf:description> |
| 2837 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.5.a" selected="false" severity="medium" weight="10.0"> |
| 2838 |
<xccdf:title>Find files unowned by a user</xccdf:title> |
| 2839 |
<xccdf:description>All files should be owned by a user</xccdf:description> |
| 2840 |
<xccdf:ident system="http://cce.mitre.org">CCE-4223-4</xccdf:ident> |
| 2841 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2842 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20050"/> |
| 2843 |
</xccdf:check> |
| 2844 |
</xccdf:Rule> |
| 2845 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.5.b" selected="false" severity="medium" weight="10.0"> |
| 2846 |
<xccdf:title>Find files unowned by a group</xccdf:title> |
| 2847 |
<xccdf:description>All files should be owned by a group</xccdf:description> |
| 2848 |
<xccdf:ident system="http://cce.mitre.org">CCE-3573-3</xccdf:ident> |
| 2849 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2850 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20051"/> |
| 2851 |
</xccdf:check> |
| 2852 |
</xccdf:Rule> |
| 2853 |
</xccdf:Group> |
| 2854 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.3.6"> |
| 2855 |
<xccdf:title xml:lang="en">Verify that All World-Writable Directories Have Proper Ownership</xccdf:title> |
| 2856 |
<xccdf:description xml:lang="en"> |
| 2857 |
Locate any directories in local partitions which are world-writable and |
| 2858 |
ensure that they are owned by root or another system account. The following command will discover |
| 2859 |
and print these (assuming only system accounts have a uid lower than 500). Run it once for each |
| 2860 |
local partition PART:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2861 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2862 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># find PART -xdev -type d -perm -0002 -uid +500 -print<xhtml:br/></xhtml:code> |
| 2863 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2864 |
If this command produces any output, investigate why the current owner is not root or another |
| 2865 |
system account.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2866 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2867 |
Allowing a user account to own a world-writeable directory is undesirable because it allows the |
| 2868 |
owner of that directory to remove or replace any files that may be placed in the directory by |
| 2869 |
other users.</xccdf:description> |
| 2870 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.3.6.a" selected="false" severity="medium" weight="10.0"> |
| 2871 |
<xccdf:title>Find world writable directories not owned by a system account</xccdf:title> |
| 2872 |
<xccdf:description>All world writable directories should be owned by a system user</xccdf:description> |
| 2873 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2874 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20052"/> |
| 2875 |
</xccdf:check> |
| 2876 |
</xccdf:Rule> |
| 2877 |
</xccdf:Group> |
| 2878 |
</xccdf:Group> |
| 2879 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4"> |
| 2880 |
<xccdf:title xml:lang="en">Restrict Programs from Dangerous Execution Patterns</xccdf:title> |
| 2881 |
<xccdf:description xml:lang="en"> |
| 2882 |
The recommendations in this section provide broad protection |
| 2883 |
against information disclosure or other misbehavior. These protections are applied at the |
| 2884 |
system initialization or kernel level, and defend against certain types of |
| 2885 |
badly-configured or compromised programs.</xccdf:description> |
| 2886 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.1"> |
| 2887 |
<xccdf:title xml:lang="en">Set Daemon umask</xccdf:title> |
| 2888 |
<xccdf:description xml:lang="en"> |
| 2889 |
The system umask for scripts in /etc/init.d must be set to at least 022, or daemon |
| 2890 |
processes may create world-writable files. The more restrictive setting |
| 2891 |
027 protects files, including temporary files and log files, from unauthorized reading |
| 2892 |
by unprivileged users on the system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2893 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2894 |
If a particular daemon needs a |
| 2895 |
less restrictive umask, consider editing the startup script or sysconfig file of that |
| 2896 |
daemon to make a specific exception. |
| 2897 |
</xccdf:description> |
| 2898 |
<xccdf:Value id="xccdf_cdf_value_var-2.2.4.1.a" operator="equals" type="string"> |
| 2899 |
<xccdf:title>daemon umask</xccdf:title> |
| 2900 |
<xccdf:description>Enter umask for daemons</xccdf:description> |
| 2901 |
<xccdf:question xml:lang="en">Enter umask which will be used for new files created by daemons</xccdf:question> |
| 2902 |
<xccdf:value>022</xccdf:value> |
| 2903 |
<xccdf:value selector="022">022</xccdf:value> |
| 2904 |
<xccdf:value selector="027">027</xccdf:value> |
| 2905 |
<xccdf:match>^0?[0-7][0-7][0-7]?$</xccdf:match> |
| 2906 |
</xccdf:Value> |
| 2907 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.1.a" selected="false" severity="medium" weight="10.0"> |
| 2908 |
<xccdf:title>Set Daemon umask</xccdf:title> |
| 2909 |
<xccdf:description>The daemon umask should be set to profile value</xccdf:description> |
| 2910 |
<xccdf:ident system="http://cce.mitre.org">CCE-4220-0</xccdf:ident> |
| 2911 |
<xccdf:fixtext>Edit the file /etc/rc.d/init.d/functions, and add or correct the following line: umask |
| 2912 |
<xccdf:sub idref="xccdf_cdf_value_var-2.2.4.1.a"/></xccdf:fixtext> |
| 2913 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2914 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20053" value-id="xccdf_cdf_value_var-2.2.4.1.a"/> |
| 2915 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20053"/> |
| 2916 |
</xccdf:check> |
| 2917 |
</xccdf:Rule> |
| 2918 |
</xccdf:Group> |
| 2919 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.2"> |
| 2920 |
<xccdf:title xml:lang="en">Disable Core Dumps</xccdf:title> |
| 2921 |
<xccdf:description xml:lang="en"> |
| 2922 |
A core dump file is the memory image of an executable program |
| 2923 |
when it was terminated by the operating system due to errant behavior. In most cases, |
| 2924 |
only software developers would legitimately need to access these files. The core dump |
| 2925 |
files may also contain sensitive information, or unnecessarily occupy large amounts of |
| 2926 |
disk space. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2927 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2928 |
By default, the system sets a soft limit to stop the |
| 2929 |
creation of core dump files for all users. This is accomplished in /etc/profile with the |
| 2930 |
line: ulimit -S -c 0 > /dev/null 2>&1 However, compliance with this |
| 2931 |
limit is voluntary; it is a default intended only to protect users from the annoyance of |
| 2932 |
generating unwanted core files. Users can increase the allowed core file size up to the |
| 2933 |
hard limit, which is unlimited by default. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2934 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2935 |
Once a hard limit is set |
| 2936 |
in /etc/security/limits.conf, the user cannot increase that limit within his own |
| 2937 |
session. If access to core dumps is required, consider restricting them to only certain |
| 2938 |
users or groups. See the limits.conf man page for more |
| 2939 |
information. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2940 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2941 |
The core dumps of setuid programs are further |
| 2942 |
protected. The sysctl variable fs.suid_dumpable controls whether the kernel allows core |
| 2943 |
dumps from these programs at all. The default value of 0 is recommended. |
| 2944 |
</xccdf:description> |
| 2945 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.2.a" selected="false" severity="low" weight="10.0"> |
| 2946 |
<xccdf:title>Disable Core Dumps for all users</xccdf:title> |
| 2947 |
<xccdf:description>Core dumps for all users should be disabled</xccdf:description> |
| 2948 |
<xccdf:ident system="http://cce.mitre.org">CCE-4225-9</xccdf:ident> |
| 2949 |
<xccdf:fixtext>To disable core dumps for all users, add or correct the following line in |
| 2950 |
/etc/security/limits.conf: * hard core 0</xccdf:fixtext> |
| 2951 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2952 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20055"/> |
| 2953 |
</xccdf:check> |
| 2954 |
</xccdf:Rule> |
| 2955 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.2.b" selected="false" severity="low" weight="10.0"> |
| 2956 |
<xccdf:title>Disable Core Dumps for SUID programs</xccdf:title> |
| 2957 |
<xccdf:description>Core dumps for setuid programs should be disabled</xccdf:description> |
| 2958 |
<xccdf:ident system="http://cce.mitre.org">CCE-4247-3</xccdf:ident> |
| 2959 |
<xccdf:fixtext>To ensure that core dumps can never be made by setuid programs, edit |
| 2960 |
/etc/sysctl.conf and add or correct the line: fs.suid_dumpable = 0</xccdf:fixtext> |
| 2961 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2962 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20056"/> |
| 2963 |
</xccdf:check> |
| 2964 |
</xccdf:Rule> |
| 2965 |
</xccdf:Group> |
| 2966 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.3"> |
| 2967 |
<xccdf:title xml:lang="en">Enable ExecShield</xccdf:title> |
| 2968 |
<xccdf:description xml:lang="en"> |
| 2969 |
ExecShield comprises a number of kernel features to provide |
| 2970 |
protection against buffer overflows. These features include random placement of the |
| 2971 |
stack and other memory regions, prevention of execution in memory that should only hold |
| 2972 |
data, and special handling of text buffers. This protection is enabled by default, but |
| 2973 |
the sysctl variables kernel.exec-shield and kernel.randomize va space should be checked |
| 2974 |
to ensure that it has not been disabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2975 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 2976 |
ExecShield uses the |
| 2977 |
segmentation feature on all x86 systems to prevent execution in memory higher than a |
| 2978 |
certain address. It writes an address as a limit in the code segment descriptor, to |
| 2979 |
control where code can be executed, on a per-process basis. When the kernel places a |
| 2980 |
process's memory regions such as the stack and heap higher than this address, the |
| 2981 |
hardware prevents execution there. However, this cannot always be done for all memory |
| 2982 |
regions in which execution should not occur, so follow guidance in Section 2.2.4.4 to |
| 2983 |
further protect the system. |
| 2984 |
</xccdf:description> |
| 2985 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.3.a" selected="false" weight="10.0"> |
| 2986 |
<xccdf:title>Enable ExecShield</xccdf:title> |
| 2987 |
<xccdf:description>ExecShield should be enabled</xccdf:description> |
| 2988 |
<xccdf:ident system="http://cce.mitre.org">CCE-4168-1</xccdf:ident> |
| 2989 |
<xccdf:fixtext>To ensure ExecShield (including random placement of virtual memory regions) is |
| 2990 |
activated at boot, add or correct the following settings in /etc/sysctl.conf: |
| 2991 |
kernel.exec-shield = 1</xccdf:fixtext> |
| 2992 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 2993 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20057"/> |
| 2994 |
</xccdf:check> |
| 2995 |
</xccdf:Rule> |
| 2996 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.3.b" selected="false" weight="10.0"> |
| 2997 |
<xccdf:title>Enable ExecShield randomized placement of virtual memory regions</xccdf:title> |
| 2998 |
<xccdf:description>ExecShield randomized placement of virtual memory regions should be enabled</xccdf:description> |
| 2999 |
<xccdf:ident system="http://cce.mitre.org">CCE-4146-7</xccdf:ident> |
| 3000 |
<xccdf:fixtext>To ensure ExecShield (including random placement of virtual memory regions) is |
| 3001 |
activated at boot, add or correct the following settings in /etc/sysctl.conf: |
| 3002 |
kernel.randomize_va_space = 2</xccdf:fixtext> |
| 3003 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3004 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20058"/> |
| 3005 |
</xccdf:check> |
| 3006 |
</xccdf:Rule> |
| 3007 |
</xccdf:Group> |
| 3008 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.4"> |
| 3009 |
<xccdf:title xml:lang="en">Enable Execute Disable (XD) or No Execute (NX) Support on x86 Systems</xccdf:title> |
| 3010 |
<xccdf:description xml:lang="en"> |
| 3011 |
Recent processors in the x86 family support the ability to |
| 3012 |
prevent code execution on a per memory page basis. Generically and on AMD processors, |
| 3013 |
this ability is called No Execute (NX), while on Intel processors it is called Execute |
| 3014 |
Disable (XD). This ability can help prevent exploitation of buffer overflow |
| 3015 |
vulnerabilities and should be activated whenever possible. Extra steps must be taken to |
| 3016 |
ensure that this protection is enabled, particularly on 32-bit x86 systems. Other |
| 3017 |
processors, such as Itanium and POWER, have included such support since inception and |
| 3018 |
the standard kernel for those platforms supports the feature.</xccdf:description> |
| 3019 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.4.1"> |
| 3020 |
<xccdf:title xml:lang="en">Check for Processor Support on x86 Systems</xccdf:title> |
| 3021 |
<xccdf:description xml:lang="en"> |
| 3022 |
Check to see if the processor supports the PAE and NX |
| 3023 |
features: <xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ cat /proc/cpuinfo</xhtml:code> If supported, the flags field will contain pae and nx.</xccdf:description> |
| 3024 |
</xccdf:Group> |
| 3025 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.2.4.4.2"> |
| 3026 |
<xccdf:title xml:lang="en">Enable NX or XD Support in the BIOS</xccdf:title> |
| 3027 |
<xccdf:description xml:lang="en"> |
| 3028 |
Computers with the ability to prevent this type of code |
| 3029 |
execution frequently put an option in the BIOS that will allow users to turn the |
| 3030 |
feature on or off at will. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3031 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3032 |
See Section 2.3.5.1 for information on protecting this and |
| 3033 |
other BIOS settings.</xccdf:description> |
| 3034 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.2.4.4.2.a" selected="false" weight="10.0"> |
| 3035 |
<xccdf:title>Enable NX or XD Support in the BIOS</xccdf:title> |
| 3036 |
<xccdf:description>The XD/NX processor feature should be enabled in the BIOS</xccdf:description> |
| 3037 |
<xccdf:ident system="http://cce.mitre.org">CCE-4177-2</xccdf:ident> |
| 3038 |
<xccdf:fixtext>Reboot the system and enter the BIOS or 'Setup' configuration menu. Navigate the |
| 3039 |
BIOS configuration menu and make sure that the option is enabled. The setting may be |
| 3040 |
located under a 'Security' section. Look for Execute Disable (XD) on Intel-based |
| 3041 |
systems and No Execute (NX) on AMD-based systems.</xccdf:fixtext> |
| 3042 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3043 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20060"/> |
| 3044 |
</xccdf:check> |
| 3045 |
</xccdf:Rule> |
| 3046 |
</xccdf:Group> |
| 3047 |
</xccdf:Group> |
| 3048 |
</xccdf:Group> |
| 3049 |
</xccdf:Group> |
| 3050 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3"> |
| 3051 |
<xccdf:title xml:lang="en">Account and Access Control</xccdf:title> |
| 3052 |
<xccdf:description xml:lang="en"> |
| 3053 |
In traditional Unix security, if an attacker gains shell access to |
| 3054 |
a certain login account, he can perform any action or access any file to which that account |
| 3055 |
has access. Therefore, making it more difficult for unauthorized people to gain shell access |
| 3056 |
to accounts, particularly to privileged accounts, is a necessary part of securing a system. |
| 3057 |
This section introduces mechanisms for restricting access to login accounts.</xccdf:description> |
| 3058 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1"> |
| 3059 |
<xccdf:title xml:lang="en">Protect Accounts by Restricting Password-Based Login</xccdf:title> |
| 3060 |
<xccdf:description xml:lang="en"> |
| 3061 |
Conventionally, Unix shell accounts are accessed by providing a |
| 3062 |
username and password to a login program, which tests these values for correctness using |
| 3063 |
the /etc/passwd and /etc/shadow files. Password-based login is vulnerable to guessing of |
| 3064 |
weak passwords, and to sniffing and man-in-the-middle attacks against passwords entered |
| 3065 |
over a network or at an insecure console. Therefore, mechanisms for accessing accounts by |
| 3066 |
entering usernames and passwords should be restricted to those which are operationally |
| 3067 |
necessary.</xccdf:description> |
| 3068 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.1"> |
| 3069 |
<xccdf:title xml:lang="en">Restrict Root Logins to System Console</xccdf:title> |
| 3070 |
<xccdf:description xml:lang="en"> |
| 3071 |
Edit the file /etc/securetty. Ensure that the file contains |
| 3072 |
only the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3073 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 3074 |
<xhtml:li>The primary system console device: <xhtml:br/>console</xhtml:li> |
| 3075 |
<xhtml:li>The virtual console devices: <xhtml:br/>tty1 tty2 tty3 tty4 tty5 |
| 3076 |
tty6 ... </xhtml:li> |
| 3077 |
<xhtml:li>If required by your organization, the deprecated virtual console interface |
| 3078 |
may be retained for backwards compatibility:<xhtml:br/>vc/1 vc/2 vc/3 vc/4 vc/5 |
| 3079 |
vc/6 ...</xhtml:li> |
| 3080 |
<xhtml:li>If required by your organization, the serial consoles may be added:<xhtml:br/> |
| 3081 |
ttyS0 ttyS1</xhtml:li> |
| 3082 |
</xhtml:ul> |
| 3083 |
Direct root logins should be allowed only for |
| 3084 |
emergency use. In normal situations, the administrator should access the system via a |
| 3085 |
unique unprivileged account, and use su or sudo to execute privileged commands. |
| 3086 |
Discouraging administrators from accessing the root account directly ensures an audit |
| 3087 |
trail in organizations with multiple administrators. Locking down the channels through |
| 3088 |
which root can connect directly reduces opportunities for password-guessing against the |
| 3089 |
root account. The login program uses the file /etc/securetty to determine which |
| 3090 |
interfaces should allow root logins. The virtual devices /dev/console and /dev/tty* |
| 3091 |
represent the system consoles (accessible via the Ctrl-Alt-F1 through Ctrl-Alt-F6 |
| 3092 |
keyboard sequences on a default installation). The default securetty file also contains |
| 3093 |
/dev/vc/*. These are likely to be deprecated in most environments, but may be retained |
| 3094 |
for compatibility. Root should also be prohibited from connecting via network protocols. |
| 3095 |
See Section 3.5 for instructions on preventing root from logging in via SSH.</xccdf:description> |
| 3096 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 3097 |
<xccdf:title>Restrict Root Logins to System Console</xccdf:title> |
| 3098 |
<xccdf:description>Logins through the specified virtual console interface should be disabled |
| 3099 |
</xccdf:description> |
| 3100 |
<xccdf:ident system="http://cce.mitre.org">CCE-3820-8</xccdf:ident> |
| 3101 |
<xccdf:fixtext>Edit /etc/securetty</xccdf:fixtext> |
| 3102 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3103 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20061"/> |
| 3104 |
</xccdf:check> |
| 3105 |
</xccdf:Rule> |
| 3106 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.1.b" selected="false" severity="medium" weight="10.0"> |
| 3107 |
<xccdf:title>Restrict Root Logins to System Console</xccdf:title> |
| 3108 |
<xccdf:description>Logins through the specified virtual console device should be disabled</xccdf:description> |
| 3109 |
<xccdf:ident system="http://cce.mitre.org">CCE-3485-0</xccdf:ident> |
| 3110 |
<xccdf:fixtext> Edit /etc/securetty</xccdf:fixtext> |
| 3111 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3112 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20062"/> |
| 3113 |
</xccdf:check> |
| 3114 |
</xccdf:Rule> |
| 3115 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.1.c" selected="false" severity="medium" weight="10.0"> |
| 3116 |
<xccdf:title>Restrict virtual console Root Logins</xccdf:title> |
| 3117 |
<xccdf:description>Logins through the virtual console devices should be disabled</xccdf:description> |
| 3118 |
<xccdf:ident system="http://cce.mitre.org">CCE-4111-1</xccdf:ident> |
| 3119 |
<xccdf:fixtext> Edit /etc/securetty</xccdf:fixtext> |
| 3120 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3121 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20063"/> |
| 3122 |
</xccdf:check> |
| 3123 |
</xccdf:Rule> |
| 3124 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.1.d" selected="false" severity="medium" weight="10.0"> |
| 3125 |
<xccdf:title>Restrict serial port Root Logins</xccdf:title> |
| 3126 |
<xccdf:description>Login prompts on serial ports should be disabled.</xccdf:description> |
| 3127 |
<xccdf:ident system="http://cce.mitre.org">CCE-4256-4</xccdf:ident> |
| 3128 |
<xccdf:fixtext>Edit /etc/securetty</xccdf:fixtext> |
| 3129 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3130 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20064"/> |
| 3131 |
</xccdf:check> |
| 3132 |
</xccdf:Rule> |
| 3133 |
</xccdf:Group> |
| 3134 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.2"> |
| 3135 |
<xccdf:title xml:lang="en">Limit su Access to the Root Account</xccdf:title> |
| 3136 |
<xccdf:description xml:lang="en"> |
| 3137 |
The su command allows a user to gain the privileges of another user by entering the |
| 3138 |
password for that user's account. It is desirable to restrict the root user so that only |
| 3139 |
known administrators are ever allowed to access the root account. This restricts |
| 3140 |
password-guessing against the root account by unauthorized users or by accounts which |
| 3141 |
have been compromised. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3142 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3143 |
By convention, the group wheel contains all users who are allowed to run privileged |
| 3144 |
commands. The PAM module pam_wheel.so is used to restrict root access to this set of |
| 3145 |
users.</xccdf:description> |
| 3146 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.2.a" selected="false" severity="medium" weight="10.0"> |
| 3147 |
<xccdf:title>Limit su Access to the Root Account</xccdf:title> |
| 3148 |
<xccdf:description>The wheel group should exist</xccdf:description> |
| 3149 |
<xccdf:fixtext> Ensure that the group wheel exists, and that the usernames of all administrators |
| 3150 |
who should be allowed to execute commands as root are members of that group. |
| 3151 |
</xccdf:fixtext> |
| 3152 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3153 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20065"/> |
| 3154 |
</xccdf:check> |
| 3155 |
</xccdf:Rule> |
| 3156 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.2.b" selected="false" severity="medium" weight="10.0"> |
| 3157 |
<xccdf:title>Limit su Access to the wheel group</xccdf:title> |
| 3158 |
<xccdf:description>Command access to the root account should be restricted to the wheel group.</xccdf:description> |
| 3159 |
<xccdf:fixtext> Edit the file /etc/pam.d/su. Add, uncomment, or correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3160 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3161 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">auth required pam_wheel.so use_uid</xhtml:code> |
| 3162 |
</xccdf:fixtext> |
| 3163 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3164 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20066"/> |
| 3165 |
</xccdf:check> |
| 3166 |
</xccdf:Rule> |
| 3167 |
</xccdf:Group> |
| 3168 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.3"> |
| 3169 |
<xccdf:title xml:lang="en">Configure sudo to Improve Auditing of Root Access</xccdf:title> |
| 3170 |
<xccdf:description xml:lang="en"> |
| 3171 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 3172 |
<xhtml:li>Ensure that the group wheel exists, and that the usernames |
| 3173 |
of all administrators who should be allowed to execute commands as root are members of |
| 3174 |
that group. <xhtml:br/> |
| 3175 |
<xhtml:br/> |
| 3176 |
<xhtml:code># grep ^wheel /etc/group</xhtml:code></xhtml:li> |
| 3177 |
<xhtml:li>Edit the file /etc/sudoers. Add, uncomment, or |
| 3178 |
correct the line: <xhtml:br/> |
| 3179 |
<xhtml:br/> |
| 3180 |
%wheel ALL=(ALL) ALL</xhtml:li> |
| 3181 |
</xhtml:ol> |
| 3182 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3183 |
The sudo command allows fine-grained control over |
| 3184 |
which users can execute commands using other accounts. The primary benefit of sudo when |
| 3185 |
configured as above is that it provides an audit trail of every command run by a |
| 3186 |
privileged user. It is possible for a malicious administrator to circumvent this |
| 3187 |
restriction, but, if there is an established procedure that all root commands are run |
| 3188 |
using sudo, then it is easy for an auditor to detect unusual behavior when this |
| 3189 |
procedure is not followed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3190 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3191 |
Editing /etc/sudoers by hand can be dangerous, since a configuration error may make it |
| 3192 |
impossible to access the root account remotely. The recommended means of editing this |
| 3193 |
file is using the visudo command, which checks the file's syntax for correctness before |
| 3194 |
allowing it to be saved.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3195 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3196 |
Note that sudo allows any attacker who gains access to the password of an administrator |
| 3197 |
account to run commands as root. This is a downside which must be weighed against the |
| 3198 |
benefits of increased audit capability and of being able to heavily restrict the use of |
| 3199 |
the high-value root password (which can be logistically difficult to change often). As |
| 3200 |
a basic precaution, never use the NOPASSWD directive, which would allow anyone with |
| 3201 |
access to an administrator account to execute commands as root without knowing the |
| 3202 |
administrator's password. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3203 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3204 |
The sudo command has many options which can be used to further customize its behavior. |
| 3205 |
See the sudoers(5) man page for details.</xccdf:description> |
| 3206 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.3.a" selected="false" severity="medium" weight="10.0"> |
| 3207 |
<xccdf:title>Configure sudo to Improve Auditing of Root Access</xccdf:title> |
| 3208 |
<xccdf:description>Sudo privileges should granted to the wheel group</xccdf:description> |
| 3209 |
<xccdf:ident system="http://cce.mitre.org">CCE-4044-4</xccdf:ident> |
| 3210 |
<xccdf:fix>echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers</xccdf:fix> |
| 3211 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3212 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20067"/> |
| 3213 |
</xccdf:check> |
| 3214 |
</xccdf:Rule> |
| 3215 |
</xccdf:Group> |
| 3216 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.4"> |
| 3217 |
<xccdf:title xml:lang="en">Block Shell and Login Access for Non-Root System Accounts</xccdf:title> |
| 3218 |
<xccdf:description xml:lang="en"> |
| 3219 |
Using /etc/passwd, obtain a listing of all users, their UIDs, |
| 3220 |
and their shells, for instance by running: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3221 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3222 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># awk -F: '{print $1 ":" $3 ":" $7}' /etc/passwd<xhtml:br/></xhtml:code> |
| 3223 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3224 |
Identify the system accounts from this listing. These will primarily be the accounts |
| 3225 |
with UID numbers less than 500, other than root.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3226 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3227 |
For each identified system account SYSACCT , lock the account: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3228 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3229 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># usermod -L SYSACCT <xhtml:br/></xhtml:code> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3230 |
and disable its shell: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3231 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3232 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># usermod -s /sbin/nologin SYSACCT <xhtml:br/></xhtml:code> |
| 3233 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3234 |
These are the accounts which are |
| 3235 |
not associated with a human user of the system, but which exist to perform some |
| 3236 |
administrative function. Make it more difficult for an attacker to use these accounts by |
| 3237 |
locking their passwords and by setting their shells to some non-valid shell. The Fedora |
| 3238 |
default non-valid shell is /sbin/nologin, but any command which will exit with a failure |
| 3239 |
status and disallow execution of any further commands, such as /bin/false or /dev/null, |
| 3240 |
will work.</xccdf:description> |
| 3241 |
<xccdf:warning category="functionality" xml:lang="en">Do not perform the steps in this section on the root account. |
| 3242 |
Doing so might cause the system to become inaccessible.</xccdf:warning> |
| 3243 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.4.a" selected="false" severity="medium" weight="10.0"> |
| 3244 |
<xccdf:title>Block Shell and Login Access for Non-Root System Accounts</xccdf:title> |
| 3245 |
<xccdf:description>Login access to non-root system accounts should be disabled</xccdf:description> |
| 3246 |
<xccdf:ident system="http://cce.mitre.org">CCE-3987-5</xccdf:ident> |
| 3247 |
<xccdf:fixtext>Edit /etc/passwd</xccdf:fixtext> |
| 3248 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3249 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20068"/> |
| 3250 |
</xccdf:check> |
| 3251 |
</xccdf:Rule> |
| 3252 |
</xccdf:Group> |
| 3253 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.5"> |
| 3254 |
<xccdf:title xml:lang="en">Verify Proper Storage and Existence of Password Hashes</xccdf:title> |
| 3255 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.5.1"> |
| 3256 |
<xccdf:title xml:lang="en">Verify that No Accounts Have Empty Password Fields</xccdf:title> |
| 3257 |
<xccdf:description xml:lang="en"> |
| 3258 |
Run the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3259 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3260 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># awk -F: '($2 == "") {print}' /etc/shadow <xhtml:br/></xhtml:code> |
| 3261 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3262 |
If this produces any output, fix the problem by locking each account |
| 3263 |
(see Section 2.3.1.4 above) or by setting a password. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3264 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3265 |
If an account has an empty password, anybody may log in and run commands with the |
| 3266 |
privileges of that account. Accounts with empty passwords should never be used in |
| 3267 |
operational environments.</xccdf:description> |
| 3268 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.5.1.a" selected="false" severity="medium" weight="10.0"> |
| 3269 |
<xccdf:title>Verify that No Accounts Have Empty Password Fields</xccdf:title> |
| 3270 |
<xccdf:description>Login access to accounts without passwords should be disabled</xccdf:description> |
| 3271 |
<xccdf:ident system="http://cce.mitre.org">CCE-4238-2</xccdf:ident> |
| 3272 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3273 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20069"/> |
| 3274 |
</xccdf:check> |
| 3275 |
</xccdf:Rule> |
| 3276 |
</xccdf:Group> |
| 3277 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.5.2"> |
| 3278 |
<xccdf:title xml:lang="en">Verify that All Account Password Hashes are Shadowed</xccdf:title> |
| 3279 |
<xccdf:description xml:lang="en"> |
| 3280 |
To ensure that no password hashes are stored in /etc/passwd, the following command should have no output:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3281 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3282 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># awk -F: '($2 != "x") {print}' /etc/passwd<xhtml:br/></xhtml:code> |
| 3283 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3284 |
The hashes for all user account passwords should be stored in the file /etc/shadow and never in /etc/passwd, |
| 3285 |
which is readable by all users. |
| 3286 |
</xccdf:description> |
| 3287 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.5.2.a" selected="false" severity="medium" weight="10.0"> |
| 3288 |
<xccdf:title>Verify that All Account Password Hashes are Shadowed</xccdf:title> |
| 3289 |
<xccdf:description>Check that passwords are shadowed</xccdf:description> |
| 3290 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3291 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200695"/> |
| 3292 |
</xccdf:check> |
| 3293 |
</xccdf:Rule> |
| 3294 |
</xccdf:Group> |
| 3295 |
</xccdf:Group> |
| 3296 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.6"> |
| 3297 |
<xccdf:title xml:lang="en">Verify that No Non-Root Accounts Have UID 0</xccdf:title> |
| 3298 |
<xccdf:description xml:lang="en"> |
| 3299 |
This command will print all password file entries for accounts |
| 3300 |
with UID 0: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3301 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3302 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># awk -F: '($3 == "0") {print}' /etc/passwd <xhtml:br/></xhtml:code> |
| 3303 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3304 |
This should print only one line, for the user root. If any other lines appear, ensure |
| 3305 |
that these additional UID-0 accounts are authorized, and that there is a good reason for |
| 3306 |
them to exist. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3307 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3308 |
In general, the best practice solution for auditing use of the root account is to restrict |
| 3309 |
the set of cases in which root must be accessed anonymously by requiring use of su or sudo |
| 3310 |
in almost all cases. Some sites choose to have more than one account with UID 0 in order |
| 3311 |
to differentiate between administrators, but this practice may have unexpected side |
| 3312 |
effects, and is therefore not recommended.</xccdf:description> |
| 3313 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.6.a" selected="false" severity="medium" weight="10.0"> |
| 3314 |
<xccdf:title>Verify that No Non-Root Accounts Have UID 0</xccdf:title> |
| 3315 |
<xccdf:description>Anonymous root logins should be disabled</xccdf:description> |
| 3316 |
<xccdf:ident system="http://cce.mitre.org">CCE-4009-7</xccdf:ident> |
| 3317 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3318 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20070"/> |
| 3319 |
</xccdf:check> |
| 3320 |
</xccdf:Rule> |
| 3321 |
</xccdf:Group> |
| 3322 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.7"> |
| 3323 |
<xccdf:title xml:lang="en">Set Password Expiration Parameters</xccdf:title> |
| 3324 |
<xccdf:description xml:lang="en"> |
| 3325 |
Edit the file /etc/login.defs to specify password expiration |
| 3326 |
settings for new accounts. Add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3327 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/><xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 3328 |
PASS_MAX_DAYS=180<xhtml:br/> |
| 3329 |
PASS_MIN_DAYS=7 <xhtml:br/> |
| 3330 |
PASS_MIN_LEN=8 <xhtml:br/> |
| 3331 |
PASS_WARN_AGE=7 <xhtml:br/></xhtml:code> |
| 3332 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3333 |
For each existing human user USER , modify the current expiration settings to match |
| 3334 |
these: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3335 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chage -M 180 -m 7 -W 7 USER<xhtml:br/></xhtml:code> |
| 3336 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3337 |
Users should be forced to change their passwords, in order to decrease the utility of |
| 3338 |
compromised passwords. However, the need to change passwords often should be balanced |
| 3339 |
against the risk that users will reuse or write down passwords if forced to change them |
| 3340 |
too often. Forcing password changes every 90-360 days, depending on the environment, is |
| 3341 |
recommended. Set the appropriate value as PASS_MAX_DAYS and apply it to existing |
| 3342 |
accounts with the -M flag. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3343 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3344 |
The PASS_MIN_DAYS (-m) setting prevents password changes for 7 days after the first |
| 3345 |
change, to discourage password cycling. If you use this setting, train users to contact |
| 3346 |
an administrator for an emergency password change in case a new password becomes |
| 3347 |
compromised. The PASS_WARN_AGE (-W) setting gives users 7 days of warnings at login time |
| 3348 |
that their passwords are about to expire.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3349 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3350 |
The PASS_MIN_LEN setting, which controls minimum password length, should be set to |
| 3351 |
whatever is required by your site or organization security policy. The example value of |
| 3352 |
8 provided here may be inadequate for many environments. See Section 2.3.3 for |
| 3353 |
information on how to enforce more sophisticated requirements on password length and |
| 3354 |
quality |
| 3355 |
</xccdf:description> |
| 3356 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.1.7.a" operator="equals" type="string"> |
| 3357 |
<xccdf:title xml:lang="en">minimum password length</xccdf:title> |
| 3358 |
<xccdf:description xml:lang="en">Minimum number of characters in password</xccdf:description> |
| 3359 |
<xccdf:warning>This will only check new passwords</xccdf:warning> |
| 3360 |
<xccdf:question xml:lang="en">Select minimum number of characters in password</xccdf:question> |
| 3361 |
<xccdf:value>14</xccdf:value> |
| 3362 |
<xccdf:value selector="5">5</xccdf:value> |
| 3363 |
<xccdf:value selector="6">6</xccdf:value> |
| 3364 |
|
| 3365 |
<xccdf:value selector="8">8</xccdf:value> |
| 3366 |
<xccdf:value selector="10">10</xccdf:value> |
| 3367 |
<xccdf:value selector="14">14</xccdf:value> |
| 3368 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3369 |
</xccdf:Value> |
| 3370 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.1.7.b" operator="equals" type="string"> |
| 3371 |
<xccdf:title>minimum password age</xccdf:title> |
| 3372 |
<xccdf:description xml:lang="en">Enter minimum duration before allowing a password change</xccdf:description> |
| 3373 |
<xccdf:question xml:lang="en">Select minimum duration (in days) before allowing a password change</xccdf:question> |
| 3374 |
<xccdf:value>1</xccdf:value> |
| 3375 |
<xccdf:value selector="1_day">1</xccdf:value> |
| 3376 |
<xccdf:value selector="7_days">7</xccdf:value> |
| 3377 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3378 |
</xccdf:Value> |
| 3379 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.1.7.c" operator="equals" type="string"> |
| 3380 |
<xccdf:title>maximum password age</xccdf:title> |
| 3381 |
<xccdf:description xml:lang="en">Enter age before which a password must be changed</xccdf:description> |
| 3382 |
<xccdf:question xml:lang="en">Select age (in days) before which a password must be changed</xccdf:question> |
| 3383 |
<xccdf:value>60</xccdf:value> |
| 3384 |
<xccdf:value selector="0_days">0</xccdf:value> |
| 3385 |
<xccdf:value selector="30_days">30</xccdf:value> |
| 3386 |
<xccdf:value selector="60_days">60</xccdf:value> |
| 3387 |
<xccdf:value selector="90_days">90</xccdf:value> |
| 3388 |
<xccdf:value selector="120_days">120</xccdf:value> |
| 3389 |
<xccdf:value selector="150_days">150</xccdf:value> |
| 3390 |
<xccdf:value selector="180_days">180</xccdf:value> |
| 3391 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3392 |
</xccdf:Value> |
| 3393 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.1.7.d" operator="equals" type="string"> |
| 3394 |
<xccdf:title>password warn age</xccdf:title> |
| 3395 |
<xccdf:description xml:lang="en"> |
| 3396 |
The number of days warning given before a password expires. A zero |
| 3397 |
means warning is given only upon the day of expiration, a negative |
| 3398 |
value means no warning is given. If not specified, no warning will |
| 3399 |
be provided.</xccdf:description> |
| 3400 |
<xccdf:question xml:lang="en">Select number of days warning is given before a password expires</xccdf:question> |
| 3401 |
<xccdf:value>14</xccdf:value> |
| 3402 |
<xccdf:value selector="7_days">7</xccdf:value> |
| 3403 |
<xccdf:value selector="8_days">8</xccdf:value> |
| 3404 |
<xccdf:value selector="14_days">14</xccdf:value> |
| 3405 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3406 |
</xccdf:Value> |
| 3407 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.7.a" selected="false" severity="medium" weight="10.0"> |
| 3408 |
<xccdf:title>Set password minimum length</xccdf:title> |
| 3409 |
<xccdf:description xml:lang="en">The password minimum length should be set to: |
| 3410 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.1.7.a"/></xccdf:description> |
| 3411 |
<xccdf:ident system="http://cce.mitre.org">CCE-4154-1</xccdf:ident> |
| 3412 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3413 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20071" value-id="xccdf_cdf_value_var-2.3.1.7.a"/> |
| 3414 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20071"/> |
| 3415 |
</xccdf:check> |
| 3416 |
</xccdf:Rule> |
| 3417 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.7.b" selected="false" severity="medium" weight="10.0"> |
| 3418 |
<xccdf:title>Set minimum password age</xccdf:title> |
| 3419 |
<xccdf:description>The minimum password age should be set to: |
| 3420 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.1.7.b"/></xccdf:description> |
| 3421 |
<xccdf:ident system="http://cce.mitre.org">CCE-4180-6</xccdf:ident> |
| 3422 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3423 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20072" value-id="xccdf_cdf_value_var-2.3.1.7.b"/> |
| 3424 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20072"/> |
| 3425 |
</xccdf:check> |
| 3426 |
</xccdf:Rule> |
| 3427 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.7.c" selected="false" severity="medium" weight="10.0"> |
| 3428 |
<xccdf:title>Set maximum password age</xccdf:title> |
| 3429 |
<xccdf:description>The maximum password age should be set to: |
| 3430 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.1.7.c"/></xccdf:description> |
| 3431 |
<xccdf:ident system="http://cce.mitre.org">CCE-4092-3</xccdf:ident> |
| 3432 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3433 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20073" value-id="xccdf_cdf_value_var-2.3.1.7.c"/> |
| 3434 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20073"/> |
| 3435 |
</xccdf:check> |
| 3436 |
</xccdf:Rule> |
| 3437 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.7.d" selected="false" severity="medium" weight="10.0"> |
| 3438 |
<xccdf:title>Set password warn age</xccdf:title> |
| 3439 |
<xccdf:description>The password warn age should be set to: |
| 3440 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.1.7.d"/></xccdf:description> |
| 3441 |
<xccdf:ident system="http://cce.mitre.org">CCE-4097-2</xccdf:ident> |
| 3442 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3443 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20074" value-id="xccdf_cdf_value_var-2.3.1.7.d"/> |
| 3444 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20074"/> |
| 3445 |
</xccdf:check> |
| 3446 |
</xccdf:Rule> |
| 3447 |
</xccdf:Group> |
| 3448 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.1.8"> |
| 3449 |
<xccdf:title xml:lang="en">Remove Legacy + Entries from Password Files</xccdf:title> |
| 3450 |
<xccdf:description xml:lang="en"> |
| 3451 |
The command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3452 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3453 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># grep "^+:" /etc/passwd /etc/shadow /etc/group<xhtml:br/></xhtml:code> |
| 3454 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3455 |
should produce no output. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3456 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3457 |
The + symbol was used by systems to include data from NIS maps |
| 3458 |
into existing files. However, a certain configuration error in which a NIS inclusion |
| 3459 |
line appears in /etc/passwd, but NIS is not running, could lead to anyone being able to |
| 3460 |
access the system with the username + and no password. Therefore, it is important to |
| 3461 |
verify that no such line appears in any of the relevant system files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3462 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3463 |
The correct way to |
| 3464 |
tell the local system to consult network databases such as LDAP or NIS for user |
| 3465 |
information is to make appropriate modifications to /etc/nsswitch.conf.</xccdf:description> |
| 3466 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.8.a" selected="false" severity="medium" weight="10.0"> |
| 3467 |
<xccdf:title>Remove Legacy + Entries from /etc/shadow</xccdf:title> |
| 3468 |
<xccdf:description>NIS file inclusions should be set appropriately in the /etc/shadow file</xccdf:description> |
| 3469 |
<xccdf:fixtext>(1) via /etc/shadow</xccdf:fixtext> |
| 3470 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3471 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20075"/> |
| 3472 |
</xccdf:check> |
| 3473 |
</xccdf:Rule> |
| 3474 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.8.b" selected="false" severity="medium" weight="10.0"> |
| 3475 |
<xccdf:title>Remove Legacy + Entries from /etc/group</xccdf:title> |
| 3476 |
<xccdf:description>NIS file inclusions should be set appropriately in the /etc/group file</xccdf:description> |
| 3477 |
<xccdf:fixtext>(1) via /etc/group</xccdf:fixtext> |
| 3478 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3479 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20076"/> |
| 3480 |
</xccdf:check> |
| 3481 |
</xccdf:Rule> |
| 3482 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.1.8.c" selected="false" severity="medium" weight="10.0"> |
| 3483 |
<xccdf:title>Remove Legacy + Entries from /etc/passwd</xccdf:title> |
| 3484 |
<xccdf:description>NIS file inclusions should be set appropriately in the /etc/passwd file</xccdf:description> |
| 3485 |
<xccdf:ident system="http://cce.mitre.org">CCE-4114-5</xccdf:ident> |
| 3486 |
<xccdf:fixtext>(1) via /etc/passwd</xccdf:fixtext> |
| 3487 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3488 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20077"/> |
| 3489 |
</xccdf:check> |
| 3490 |
</xccdf:Rule> |
| 3491 |
</xccdf:Group> |
| 3492 |
</xccdf:Group> |
| 3493 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.2"> |
| 3494 |
<xccdf:title xml:lang="en">Use Unix Groups to Enhance Security</xccdf:title> |
| 3495 |
<xccdf:description xml:lang="en"> |
| 3496 |
The access control policies which can be enforced by standard |
| 3497 |
Unix permissions are limited, and configuring SELinux (Section 2.4) is frequently a better |
| 3498 |
choice. However, this guide recommends that security be enhanced to the extent possible by |
| 3499 |
enforcing the Unix group policies outlined in this section.</xccdf:description> |
| 3500 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.2.1" weight="1.0"> |
| 3501 |
<xccdf:title xml:lang="en">Create a Unique Default Group for Each User</xccdf:title> |
| 3502 |
<xccdf:description xml:lang="en"> |
| 3503 |
When running useradd, do not use the -g flag or otherwise |
| 3504 |
override the default group. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3505 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3506 |
The Red Hat default is that each new user account should |
| 3507 |
have a unique primary group whose name is the same as that of the account. This default |
| 3508 |
is recommended, in order to provide additional protection against files which are |
| 3509 |
created with group write permission enabled.</xccdf:description> |
| 3510 |
</xccdf:Group> |
| 3511 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.2.2"> |
| 3512 |
<xccdf:title xml:lang="en">Create and Maintain a Group Containing All Human Users</xccdf:title> |
| 3513 |
<xccdf:description xml:lang="en"> |
| 3514 |
Identify all user accounts on the system which correspond to |
| 3515 |
human users. Depending on your system configuration, this may be all entries in |
| 3516 |
/etc/passwd with UID values of at least 500. Once, you have identified such a set of |
| 3517 |
users, create a group named usergroup (substitute some name appropriate to your |
| 3518 |
environment) and populate it with each human user: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3519 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3520 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># groupadd usergroup <xhtml:br/> |
| 3521 |
# usermod -G usergroup human1 <xhtml:br/> |
| 3522 |
# usermod -G usergroup human2 ... <xhtml:br/> |
| 3523 |
# usermod -G usergroup humanN <xhtml:br/></xhtml:code> |
| 3524 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3525 |
Then modify your procedure for creating new user accounts by adding -G usergroup to the |
| 3526 |
set of flags with which useradd is invoked, so that new human users will be placed in |
| 3527 |
the correct group by default. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3528 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3529 |
Creating a group of human users does not, by itself, enhance |
| 3530 |
system security. However, as you work on securing your system, you will often find |
| 3531 |
commands which never need to be run by system accounts, or which are only ever needed by |
| 3532 |
users logged into the graphical console (which should only ever be available to human |
| 3533 |
users, even on workstations). Once a group of users has been created, it is easy to |
| 3534 |
restrict access to a given command, for instance /path/to/graphical/command , to |
| 3535 |
authorized users: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3536 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3537 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chgrp usergroup /path/to/graphical/command <xhtml:br/> |
| 3538 |
# chmod 750 /path/graphical/command <xhtml:br/></xhtml:code> |
| 3539 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3540 |
Without a group of human users, it is necessary to restrict |
| 3541 |
access by somehow preventing each system account from running the command, which is an |
| 3542 |
error-prone process even when it is possible at all.</xccdf:description> |
| 3543 |
</xccdf:Group> |
| 3544 |
</xccdf:Group> |
| 3545 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3"> |
| 3546 |
<xccdf:title xml:lang="en">Protect Accounts by Configuring PAM</xccdf:title> |
| 3547 |
<xccdf:description xml:lang="en"> |
| 3548 |
PAM, or Pluggable Authentication Modules, is a system which |
| 3549 |
implements modular authentication for Linux programs. PAM is well-integrated into Linux's |
| 3550 |
authentication architecture, making it difficult to remove, but it can be configured to |
| 3551 |
minimize your system's exposure to unnecessary risk. This section contains guidance on how |
| 3552 |
to accomplish that, and how to ensure that the modules used by your PAM configuration do |
| 3553 |
what they are supposed to do. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3554 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3555 |
PAM is implemented as a set of shared objects which are |
| 3556 |
loaded and invoked whenever an application wishes to authenticate a user. Typically, the |
| 3557 |
application must be running as root in order to take advantage of PAM. Traditional |
| 3558 |
privileged network listeners (e.g. sshd) or SUID programs (e.g. sudo) already meet this |
| 3559 |
requirement. An SUID root application, userhelper, is provided so that programs which are |
| 3560 |
not SUID or privileged themselves can still take advantage of PAM. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3561 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3562 |
PAM looks in the |
| 3563 |
directory /etc/pam.d for application-specific configuration information. For instance, if |
| 3564 |
the program login attempts to authenticate a user, then PAM's libraries follow the |
| 3565 |
instructions in the file /etc/ pam.d/login to determine what actions should be taken. |
| 3566 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3567 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>One |
| 3568 |
very important file in /etc/pam.d is /etc/pam.d/system-auth. This file, which is included |
| 3569 |
by many other PAM configuration files, defines 'default' system authentication measures. |
| 3570 |
Modifying this file is a good way to make far-reaching authentication changes, for |
| 3571 |
instance when implementing a centralized authentication service. |
| 3572 |
</xccdf:description> |
| 3573 |
<xccdf:warning xml:lang="en"> |
| 3574 |
Be careful when making changes to PAM's configuration files. The syntax for these files |
| 3575 |
is complex, and modifications can have unexpected consequences.1 The default |
| 3576 |
configurations shipped with applications should be sufficient for most users. |
| 3577 |
</xccdf:warning> |
| 3578 |
<xccdf:warning xml:lang="en"> |
| 3579 |
Running authconfig or system-config-authentication will re-write the PAM configuration |
| 3580 |
files, destroying any manually made changes and replacing them with a series of system |
| 3581 |
defaults. 1One reference to the configuration file syntax can be found at |
| 3582 |
http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/ sag-configuration-file.html. |
| 3583 |
</xccdf:warning> |
| 3584 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.1"> |
| 3585 |
<xccdf:title xml:lang="en">Set Password Quality Requirements</xccdf:title> |
| 3586 |
<xccdf:description xml:lang="en"> |
| 3587 |
The default pam_cracklib PAM module provides strength checking |
| 3588 |
for passwords. It performs a number of checks, such as making sure passwords are not |
| 3589 |
similar to dictionary words, are of at least a certain length, are not the previous |
| 3590 |
password reversed, and are not simply a change of case from the previous password. It |
| 3591 |
can also require passwords to be in certain character classes.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3592 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3593 |
The pam_passwdqc PAM module provides the ability to enforce even more stringent |
| 3594 |
password strength requirements. It is provided in an RPM of the same name. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3595 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3596 |
The man pages pam_cracklib(8) and pam_passwdqc(8) provide information on the |
| 3597 |
capabilities and configuration of each. |
| 3598 |
</xccdf:description> |
| 3599 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.1.1"> |
| 3600 |
<xccdf:title xml:lang="en">Set Password Quality Requirements, if using pam_cracklib</xccdf:title> |
| 3601 |
<xccdf:description xml:lang="en"> |
| 3602 |
The pam_cracklib PAM module can be configured to meet |
| 3603 |
recommendations for DoD systems as stated in [12].<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3604 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3605 |
To configure pam_cracklib to require at least one uppercase character, lowercase |
| 3606 |
character, digit, and other (special) character, locate the following line in |
| 3607 |
/etc/pam.d/system-auth:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3608 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3609 |
password requisite pam_cracklib.so try_first_pass retry=3<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3610 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3611 |
and then alter it to read:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3612 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3613 |
password required pam_cracklib.so try_first_pass retry=3 minlen=14 dcredit=-1 / |
| 3614 |
ucredit=-1 ocredit=-1 lcredit=0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3615 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3616 |
If necessary, modify the arguments to ensure compliance with your organization’s |
| 3617 |
security policy. |
| 3618 |
</xccdf:description> |
| 3619 |
<xccdf:warning xml:lang="en">Note that the password quality requirements are not enforced |
| 3620 |
for the root account for some reason. |
| 3621 |
</xccdf:warning> |
| 3622 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.retry"> |
| 3623 |
<xccdf:title xml:lang="en">retry</xccdf:title> |
| 3624 |
<xccdf:description xml:lang="en">Number of retry attempts before erroring out</xccdf:description> |
| 3625 |
<xccdf:question xml:lang="en">Select number of password retry attempts before erroring out</xccdf:question> |
| 3626 |
<xccdf:value>3</xccdf:value> |
| 3627 |
<xccdf:value selector="1">1</xccdf:value> |
| 3628 |
<xccdf:value selector="2">2</xccdf:value> |
| 3629 |
<xccdf:value selector="3">3</xccdf:value> |
| 3630 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3631 |
</xccdf:Value> |
| 3632 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.difok"> |
| 3633 |
<xccdf:title xml:lang="en">difok</xccdf:title> |
| 3634 |
<xccdf:description xml:lang="en">Mininum number of characters not present in old password</xccdf:description> |
| 3635 |
<xccdf:warning xml:lang="en">Keep this high for short passwords</xccdf:warning> |
| 3636 |
<xccdf:question xml:lang="en">Select minimum number of characters not present in old password</xccdf:question> |
| 3637 |
<xccdf:value>5</xccdf:value> |
| 3638 |
<xccdf:value selector="2">2</xccdf:value> |
| 3639 |
<xccdf:value selector="3">3</xccdf:value> |
| 3640 |
<xccdf:value selector="4">4</xccdf:value> |
| 3641 |
<xccdf:value selector="5">5</xccdf:value> |
| 3642 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3643 |
</xccdf:Value> |
| 3644 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.minlen"> |
| 3645 |
<xccdf:title xml:lang="en">minlen</xccdf:title> |
| 3646 |
<xccdf:description xml:lang="en">Minimum number of characters in password</xccdf:description> |
| 3647 |
<xccdf:question xml:lang="en">Select minimum number of characters in pasword</xccdf:question> |
| 3648 |
<xccdf:value>14</xccdf:value> |
| 3649 |
<xccdf:value selector="6">6</xccdf:value> |
| 3650 |
|
| 3651 |
<xccdf:value selector="8">8</xccdf:value> |
| 3652 |
<xccdf:value selector="10">10</xccdf:value> |
| 3653 |
<xccdf:value selector="14">14</xccdf:value> |
| 3654 |
<xccdf:value selector="15">15</xccdf:value> |
| 3655 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3656 |
</xccdf:Value> |
| 3657 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.dcredit"> |
| 3658 |
<xccdf:title xml:lang="en">dcredit</xccdf:title> |
| 3659 |
<xccdf:description xml:lang="en">Mininum number of digits in password</xccdf:description> |
| 3660 |
<xccdf:question xml:lang="en">Select number of digits in password</xccdf:question> |
| 3661 |
<xccdf:value>-2</xccdf:value> |
| 3662 |
<xccdf:value selector="2">-2</xccdf:value> |
| 3663 |
<xccdf:value selector="1">-1</xccdf:value> |
| 3664 |
<xccdf:value selector="0">0</xccdf:value> |
| 3665 |
<xccdf:match>^-?[\d]+$</xccdf:match> |
| 3666 |
</xccdf:Value> |
| 3667 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.ocredit"> |
| 3668 |
<xccdf:title xml:lang="en">ocredit</xccdf:title> |
| 3669 |
<xccdf:description xml:lang="en">Mininum number of other (special characters) in password</xccdf:description> |
| 3670 |
<xccdf:question xml:lang="en">Select number of special characters in password</xccdf:question> |
| 3671 |
<xccdf:value>-2</xccdf:value> |
| 3672 |
<xccdf:value selector="2">-2</xccdf:value> |
| 3673 |
<xccdf:value selector="1">-1</xccdf:value> |
| 3674 |
<xccdf:value selector="0">0</xccdf:value> |
| 3675 |
<xccdf:match>^-?[\d]+$</xccdf:match> |
| 3676 |
</xccdf:Value> |
| 3677 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.lcredit"> |
| 3678 |
<xccdf:title xml:lang="en">lcredit</xccdf:title> |
| 3679 |
<xccdf:description xml:lang="en">Mininum number of lower case in password</xccdf:description> |
| 3680 |
<xccdf:question xml:lang="en">Select minimum number of lower case in password</xccdf:question> |
| 3681 |
<xccdf:value>-2</xccdf:value> |
| 3682 |
<xccdf:value selector="2">-2</xccdf:value> |
| 3683 |
<xccdf:value selector="1">-1</xccdf:value> |
| 3684 |
<xccdf:value selector="0">0</xccdf:value> |
| 3685 |
<xccdf:match>^-?[\d]+$</xccdf:match> |
| 3686 |
</xccdf:Value> |
| 3687 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.1.a.ucredit"> |
| 3688 |
<xccdf:title xml:lang="en">ucredit</xccdf:title> |
| 3689 |
<xccdf:description xml:lang="en">Mininum number of upper case in password</xccdf:description> |
| 3690 |
<xccdf:question xml:lang="en">Select minimum number of upper case in password</xccdf:question> |
| 3691 |
<xccdf:value>-2</xccdf:value> |
| 3692 |
<xccdf:value selector="2">-2</xccdf:value> |
| 3693 |
<xccdf:value selector="1">-1</xccdf:value> |
| 3694 |
<xccdf:value selector="0">0</xccdf:value> |
| 3695 |
<xccdf:match>^-?[\d]+$</xccdf:match> |
| 3696 |
</xccdf:Value> |
| 3697 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 3698 |
<xccdf:title>Set Password Quality Requirements</xccdf:title> |
| 3699 |
<xccdf:description>The password strength should meet minimum requirements</xccdf:description> |
| 3700 |
<xccdf:ident system="http://cce.mitre.org">CCE-3762-2</xccdf:ident> |
| 3701 |
<xccdf:fixtext>(1) via PAM</xccdf:fixtext> |
| 3702 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3703 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200781" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.retry"/> |
| 3704 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200782" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.minlen"/> |
| 3705 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200783" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.dcredit"/> |
| 3706 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200784" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.ucredit"/> |
| 3707 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200785" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.ocredit"/> |
| 3708 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200786" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.lcredit"/> |
| 3709 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200787" value-id="xccdf_cdf_value_var-2.3.3.1.1.a.difok"/> |
| 3710 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20078"/> |
| 3711 |
|
| 3712 |
</xccdf:check> |
| 3713 |
</xccdf:Rule> |
| 3714 |
</xccdf:Group> |
| 3715 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.1.2"> |
| 3716 |
<xccdf:title xml:lang="en">Set Password Quality Requirements, if using pam_passwdqc</xccdf:title> |
| 3717 |
<xccdf:description xml:lang="en"> |
| 3718 |
If password strength stronger than that guaranteed by |
| 3719 |
pam_cracklib is required, configure PAM to use pam_passwdqc.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3720 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3721 |
To activate pam_passwdqc, locate the following line in /etc/pam.d/system-auth:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3722 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3723 |
password requisite pam_cracklib.so try_first_pass retry=3<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3724 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3725 |
and then replace it with the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3726 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3727 |
password requisite pam_passwdqc.so min=disabled,disabled,16,12,8<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3728 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3729 |
If necessary, modify the arguments (min=disabled,disabled,16,12,8) to ensure |
| 3730 |
compliance with your organization’s security policy. Configuration options are |
| 3731 |
described in the man page pam_passwdqc(8) and also in /usr/share/doc/pam_passwdqc-version. |
| 3732 |
The minimum lengths provided here supercede that specified |
| 3733 |
by the argument PASS MIN LEN as described in Section 2.3.1.7.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3734 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3735 |
The options given in the example above set a minimum length for each of the |
| 3736 |
password “classes” that pam_passwdqc recognizes. Setting a particular minimum |
| 3737 |
value to disabled will stop users from choosing a password that falls into |
| 3738 |
that category alone. |
| 3739 |
</xccdf:description> |
| 3740 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.N0"> |
| 3741 |
|
| 3742 |
<xccdf:title xml:lang="en">N0</xccdf:title> |
| 3743 |
<xccdf:description xml:lang="en"> |
| 3744 |
N0 is used for passwords consisting of characters |
| 3745 |
from one character class only. The character classes are: digits, |
| 3746 |
lower-case letters, upper-case letters, and other characters. There is |
| 3747 |
also a special class for non-ASCII characters which could not be |
| 3748 |
classified, but are assumed to be non-digits. </xccdf:description> |
| 3749 |
<xccdf:value>24</xccdf:value> |
| 3750 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 3751 |
<xccdf:value selector="24">24</xccdf:value> |
| 3752 |
<xccdf:value selector="30">30</xccdf:value> |
| 3753 |
</xccdf:Value> |
| 3754 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.N1"> |
| 3755 |
|
| 3756 |
<xccdf:title xml:lang="en">N1</xccdf:title> |
| 3757 |
<xccdf:description xml:lang="en"> |
| 3758 |
N1 is used for passwords consisting of characters |
| 3759 |
from two character classes which do not meet the requirements for a |
| 3760 |
passphrase.</xccdf:description> |
| 3761 |
<xccdf:value>16</xccdf:value> |
| 3762 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 3763 |
<xccdf:value selector="18">18</xccdf:value> |
| 3764 |
<xccdf:value selector="24">24</xccdf:value> |
| 3765 |
</xccdf:Value> |
| 3766 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.N2"> |
| 3767 |
|
| 3768 |
<xccdf:title xml:lang="en">N2</xccdf:title> |
| 3769 |
<xccdf:description xml:lang="en"> |
| 3770 |
N2 is used for passphrases. Note that besides |
| 3771 |
meeting this length requirement, a passphrase must also consist of a |
| 3772 |
sufficient number of words (see the "passphrase" option below). </xccdf:description> |
| 3773 |
<xccdf:value>16</xccdf:value> |
| 3774 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 3775 |
<xccdf:value selector="16">16</xccdf:value> |
| 3776 |
<xccdf:value selector="17">17</xccdf:value> |
| 3777 |
<xccdf:value selector="18">18</xccdf:value> |
| 3778 |
</xccdf:Value> |
| 3779 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.N3"> |
| 3780 |
|
| 3781 |
<xccdf:title xml:lang="en">N3</xccdf:title> |
| 3782 |
<xccdf:description xml:lang="en">N3 is the number of characters required for a password that uses characters from 3 character classes.</xccdf:description> |
| 3783 |
<xccdf:question xml:lang="en">Select the number of characters required for a password that uses characters from 3 character classes</xccdf:question> |
| 3784 |
<xccdf:value>16</xccdf:value> |
| 3785 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 3786 |
<xccdf:value selector="14">14</xccdf:value> |
| 3787 |
<xccdf:value selector="15">15</xccdf:value> |
| 3788 |
<xccdf:value selector="16">16</xccdf:value> |
| 3789 |
</xccdf:Value> |
| 3790 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.N4"> |
| 3791 |
|
| 3792 |
<xccdf:title xml:lang="en">N4</xccdf:title> |
| 3793 |
<xccdf:description xml:lang="en">N4 is the number of characters required for a password that uses characters from 4 character classes.</xccdf:description> |
| 3794 |
<xccdf:question xml:lang="en">Select the number of characters required for a password that uses characters from 4 character classes</xccdf:question> |
| 3795 |
<xccdf:value>14</xccdf:value> |
| 3796 |
<xccdf:value selector="10">10</xccdf:value> |
| 3797 |
<xccdf:value selector="12">12</xccdf:value> |
| 3798 |
<xccdf:value selector="14">14</xccdf:value> |
| 3799 |
</xccdf:Value> |
| 3800 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.passphrase"> |
| 3801 |
|
| 3802 |
<xccdf:title xml:lang="en">passphrase</xccdf:title> |
| 3803 |
<xccdf:description xml:lang="en">The number of words required for a passphrase, or 0 to disable the support for user-chosen passphrases. </xccdf:description> |
| 3804 |
<xccdf:question xml:lang="en">Select the number of words required for a passphrase</xccdf:question> |
| 3805 |
<xccdf:value>3</xccdf:value> |
| 3806 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 3807 |
<xccdf:value selector="3">3</xccdf:value> |
| 3808 |
<xccdf:value selector="5">5</xccdf:value> |
| 3809 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3810 |
</xccdf:Value> |
| 3811 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.match"> |
| 3812 |
|
| 3813 |
<xccdf:title xml:lang="en">match</xccdf:title> |
| 3814 |
<xccdf:description xml:lang="en"> |
| 3815 |
The length of common substring required to |
| 3816 |
conclude that a password is at least partially based on information |
| 3817 |
found in a character string, or 0 to disable the substring search. |
| 3818 |
Note that the password will not be rejected once a weak substring is |
| 3819 |
found; it will instead be subjected to the usual strength requirements |
| 3820 |
with the weak substring removed.</xccdf:description> |
| 3821 |
<xccdf:question xml:lang="en">Enter the length of common substring required to conclude that a password is at least partially based on information found in a character string</xccdf:question> |
| 3822 |
<xccdf:value>5</xccdf:value> |
| 3823 |
<xccdf:value selector="disable">0</xccdf:value> |
| 3824 |
<xccdf:value selector="3">3</xccdf:value> |
| 3825 |
<xccdf:value selector="4">4</xccdf:value> |
| 3826 |
<xccdf:value selector="5">5</xccdf:value> |
| 3827 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3828 |
</xccdf:Value> |
| 3829 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.1.2.a.retry"> |
| 3830 |
|
| 3831 |
<xccdf:title xml:lang="en">retry</xccdf:title> |
| 3832 |
<xccdf:description xml:lang="en"> |
| 3833 |
The number of times the module will ask for a |
| 3834 |
new password if the user fails to provide a sufficiently strong |
| 3835 |
password and enter it twice the first time. </xccdf:description> |
| 3836 |
<xccdf:question xml:lang="en">Enter the number of times the module will ask for a new password if user fail to provide a sufficiently strong password</xccdf:question> |
| 3837 |
<xccdf:value>3</xccdf:value> |
| 3838 |
<xccdf:value selector="2">2</xccdf:value> |
| 3839 |
<xccdf:value selector="3">3</xccdf:value> |
| 3840 |
<xccdf:value selector="4">4</xccdf:value> |
| 3841 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3842 |
</xccdf:Value> |
| 3843 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.1.2.a" selected="false" weight="10.0"> |
| 3844 |
<xccdf:title>Set Password Quality Requirements using pam_passwdqc</xccdf:title> |
| 3845 |
<xccdf:description>The password strength should meet minimum requirements</xccdf:description> |
| 3846 |
<xccdf:ident system="http://cce.mitre.org">CCE-3762-2</xccdf:ident> |
| 3847 |
<xccdf:fixtext>(1) via PAM</xccdf:fixtext> |
| 3848 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3849 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200790" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.N0"/> |
| 3850 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200791" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.N1"/> |
| 3851 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200792" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.N2"/> |
| 3852 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200793" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.N3"/> |
| 3853 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200794" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.N4"/> |
| 3854 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200795" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.passphrase"/> |
| 3855 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200796" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.match"/> |
| 3856 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200797" value-id="xccdf_cdf_value_var-2.3.3.1.2.a.retry"/> |
| 3857 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20079"/> |
| 3858 |
</xccdf:check> |
| 3859 |
</xccdf:Rule> |
| 3860 |
</xccdf:Group> |
| 3861 |
</xccdf:Group> |
| 3862 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.2"> |
| 3863 |
<xccdf:title xml:lang="en">Set Lockouts for Failed Password Attempts</xccdf:title> |
| 3864 |
<xccdf:description xml:lang="en"> |
| 3865 |
The pam_tally2 PAM module provides the capability to lock out |
| 3866 |
user accounts after a number of failed login attempts. Its documentation is available in |
| 3867 |
/usr/share/doc/pam-version/txts/README.pam_tally2. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3868 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3869 |
If locking out accounts after a number of incorrect login attempts is required by your |
| 3870 |
security policy, implement use of pam_tally2.so for the relevant PAM-aware programs |
| 3871 |
such as login, sshd, and vsftpd. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3872 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3873 |
Find the following line in /etc/pam.d/system-auth: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3874 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3875 |
auth sufficient pam_unix.so nullok try_first_pass <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3876 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3877 |
and then change it so that it reads as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3878 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3879 |
auth required pam_unix.so nullok try_first_pass <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3880 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3881 |
In the same file, comment out or delete the lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3882 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3883 |
auth requisite pam_succeed_if.so uid >= 500 quiet <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3884 |
auth required pam_deny.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3885 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3886 |
To enforce password lockout, add the following to the individual programs' |
| 3887 |
configuration files in /etc/pam.d. First, add to end of the auth lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3888 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3889 |
auth required pam_tally2.so deny=5 onerr=fail <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3890 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3891 |
Second, add to the end of the account lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3892 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3893 |
account required pam_tally2.so<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3894 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3895 |
Adjust the deny argument to conform to your system security policy. The pam_tally2 |
| 3896 |
utility can be used to unlock user accounts as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3897 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3898 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># /sbin/pam_tally2 --user username --reset <xhtml:br/></xhtml:code> |
| 3899 |
</xccdf:description> |
| 3900 |
<xccdf:warning xml:lang="en"> |
| 3901 |
Locking out user accounts presents the risk of a denial-of-service attack. The security |
| 3902 |
policy regarding system lockout must weigh whether the risk of such a denial-of-service |
| 3903 |
attack outweighs the benefits of thwarting password guessing attacks. The pam_tally2 |
| 3904 |
utility can be run from a cron job on a hourly or daily basis to try and offset this |
| 3905 |
risk. |
| 3906 |
</xccdf:warning> |
| 3907 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.2.a.deny"> |
| 3908 |
|
| 3909 |
<xccdf:title xml:lang="en">deny</xccdf:title> |
| 3910 |
<xccdf:description xml:lang="en">Deny access if tally for this user exceeds n.</xccdf:description> |
| 3911 |
<xccdf:value>3</xccdf:value> |
| 3912 |
<xccdf:value selector="1">1</xccdf:value> |
| 3913 |
<xccdf:value selector="3">3</xccdf:value> |
| 3914 |
<xccdf:value selector="5">5</xccdf:value> |
| 3915 |
<xccdf:value selector="10">10</xccdf:value> |
| 3916 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3917 |
</xccdf:Value> |
| 3918 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.2.a.lock_time"> |
| 3919 |
<xccdf:title xml:lang="en">lock_time</xccdf:title> |
| 3920 |
<xccdf:description xml:lang="en">Always deny for n seconds after failed attempt.</xccdf:description> |
| 3921 |
<xccdf:value>5</xccdf:value> |
| 3922 |
<xccdf:value selector="1">1</xccdf:value> |
| 3923 |
<xccdf:value selector="3">3</xccdf:value> |
| 3924 |
<xccdf:value selector="5">5</xccdf:value> |
| 3925 |
<xccdf:value selector="10">10</xccdf:value> |
| 3926 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3927 |
</xccdf:Value> |
| 3928 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.2.a.unlock_time"> |
| 3929 |
<xccdf:title xml:lang="en">unlock_time</xccdf:title> |
| 3930 |
<xccdf:description xml:lang="en"> |
| 3931 |
Allow access after n seconds after failed attempt. If this |
| 3932 |
option is used the user will be locked out for the specified amount of time after |
| 3933 |
he exceeded his maximum allowed attempts. Otherwise the account is locked until the |
| 3934 |
lock is removed by a manual intervention of the system administrator.</xccdf:description> |
| 3935 |
<xccdf:question xml:lang="en">Select time (in seconds) user will be locked out after he exceeded his maximum allowed attempts</xccdf:question> |
| 3936 |
<xccdf:value>0</xccdf:value> |
| 3937 |
<xccdf:value selector="none">1</xccdf:value> |
| 3938 |
<xccdf:value selector="15_minutes">900</xccdf:value> |
| 3939 |
<xccdf:value selector="30_minutes">1800</xccdf:value> |
| 3940 |
<xccdf:value selector="1_hour">3600</xccdf:value> |
| 3941 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 3942 |
</xccdf:Value> |
| 3943 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.2.a" selected="false" severity="medium" weight="10.0"> |
| 3944 |
<xccdf:title>Set Lockouts for Failed Password Attempts</xccdf:title> |
| 3945 |
<xccdf:description>The "account lockout threshold" policy should meet minimum requirements.</xccdf:description> |
| 3946 |
<xccdf:ident system="http://cce.mitre.org">CCE-3410-8</xccdf:ident> |
| 3947 |
<xccdf:fixtext>(1) via PAM</xccdf:fixtext> |
| 3948 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3949 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200801" value-id="xccdf_cdf_value_var-2.3.3.2.a.deny"/> |
| 3950 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200802" value-id="xccdf_cdf_value_var-2.3.3.2.a.lock_time"/> |
| 3951 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:200803" value-id="xccdf_cdf_value_var-2.3.3.2.a.unlock_time"/> |
| 3952 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20080"/> |
| 3953 |
|
| 3954 |
</xccdf:check> |
| 3955 |
</xccdf:Rule> |
| 3956 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.2.b" selected="false" weight="10.0"> |
| 3957 |
<xccdf:title>Do not leak information on authorization failure</xccdf:title> |
| 3958 |
<xccdf:description>Authorization failures should not alert attackers as to what went wrong.</xccdf:description> |
| 3959 |
<xccdf:fixtext>(1) via /etc/pam.d/system-auth</xccdf:fixtext> |
| 3960 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3961 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200805"/> |
| 3962 |
|
| 3963 |
</xccdf:check> |
| 3964 |
</xccdf:Rule> |
| 3965 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.2.c" selected="false" severity="medium" weight="10.0"> |
| 3966 |
<xccdf:title>Do not log authorization failures and successes</xccdf:title> |
| 3967 |
<xccdf:description>Remove pam_succeed_if module with quiet option and remove auth pam_deny line.</xccdf:description> |
| 3968 |
<xccdf:fixtext>(1) via /etc/pam.d/system-auth</xccdf:fixtext> |
| 3969 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 3970 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200806"/> |
| 3971 |
|
| 3972 |
</xccdf:check> |
| 3973 |
</xccdf:Rule> |
| 3974 |
</xccdf:Group> |
| 3975 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.3"> |
| 3976 |
<xccdf:title xml:lang="en">Use pam_deny.so to Quickly Deny Access to a Service</xccdf:title> |
| 3977 |
<xccdf:description xml:lang="en"> |
| 3978 |
In order to deny access to a service SVCNAME via PAM, edit the |
| 3979 |
file /etc/pam.d/SVCNAME . Prepend this line to the beginning of the file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3980 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3981 |
auth requisite pam_deny.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3982 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3983 |
Under most circumstances, there are better ways to disable a service than to |
| 3984 |
deny access via PAM. However, this should suffice as a way to quickly make a service |
| 3985 |
unavailable to future users (existing sessions which have already been authenticated, |
| 3986 |
are not affected). The requisite tag tells PAM that, if the named module returns |
| 3987 |
failure, authentication should fail, and PAM should immediately stop processing the |
| 3988 |
configuration file. The pam_deny.so module always returns failure regardless of its |
| 3989 |
input.</xccdf:description> |
| 3990 |
</xccdf:Group> |
| 3991 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.4"> |
| 3992 |
<xccdf:title xml:lang="en">Restrict Execution of userhelper to Console Users</xccdf:title> |
| 3993 |
<xccdf:description xml:lang="en"> |
| 3994 |
If your environment has defined a group, usergroup containing |
| 3995 |
all the human users of your system, restrict execution of the userhelper program to only |
| 3996 |
that group: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3997 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 3998 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chgrp usergroup /usr/sbin/userhelper <xhtml:br/> |
| 3999 |
# chmod 4710 /usr/sbin/userhelper <xhtml:br/></xhtml:code> |
| 4000 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4001 |
The userhelper program provides authentication for graphical services which must run |
| 4002 |
with root privileges, such as the system-config- family of graphical configuration |
| 4003 |
utilities. Only human users logged into the system console are likely to ever have a |
| 4004 |
legitimate need to run these utilities. This step provides some protection against |
| 4005 |
possible flaws in userhelper's implementation, and against further privilege escalation |
| 4006 |
when system accounts are compromised. See Section 2.3.2.2 for more information on |
| 4007 |
creating a group of human users. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4008 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4009 |
The userhelper program is configured by the files in /etc/security/console.apps/. Each |
| 4010 |
file specifies, for some program, what user the program should run as, and what program |
| 4011 |
should be executed after successful authentication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4012 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4013 |
Note: The configuration in /etc/security/console.apps/ is applied in |
| 4014 |
combination with the PAM configuration of the service defined in /etc/pam.d/. First, |
| 4015 |
userhelper determines what user the service should run as. (Typically, this will be |
| 4016 |
root.) Next, userhelper uses the PAM API to allow the user who ran the program to |
| 4017 |
attempt to authenticate as the desired user. The PAM API exchange is wrapped in a GUI if |
| 4018 |
the application's configuration requests one.</xccdf:description> |
| 4019 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.4.a" operator="equals" type="string"> |
| 4020 |
<xccdf:title>Name of group containing human users</xccdf:title> |
| 4021 |
<xccdf:description xml:lang="en">Enter group to aggregate human users</xccdf:description> |
| 4022 |
<xccdf:value>usergroup</xccdf:value> |
| 4023 |
<xccdf:value selector="usergroup">usergroup</xccdf:value> |
| 4024 |
</xccdf:Value> |
| 4025 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.4.b" operator="equals" type="string"> |
| 4026 |
<xccdf:title>userhelper file permissions</xccdf:title> |
| 4027 |
<xccdf:description xml:lang="en">Enter file permissions for /usr/sbin/userhelper</xccdf:description> |
| 4028 |
<xccdf:question xml:lang="en">Enter file permission for /usr/bin/userhelper</xccdf:question> |
| 4029 |
<xccdf:value>100111001000</xccdf:value> |
| 4030 |
<xccdf:value selector="4710">100111001000</xccdf:value> |
| 4031 |
<xccdf:match>^[10]+$</xccdf:match> |
| 4032 |
</xccdf:Value> |
| 4033 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.4.a" selected="false" weight="10.0"> |
| 4034 |
<xccdf:title>Restrict Execution of userhelper to Console Users</xccdf:title> |
| 4035 |
<xccdf:description>The /usr/sbin/userhelper file should be owned by the appropriate group.</xccdf:description> |
| 4036 |
<xccdf:ident system="http://cce.mitre.org">CCE-4185-5</xccdf:ident> |
| 4037 |
<xccdf:fix># chgrp usergroup /usr/sbin/userhelper</xccdf:fix> |
| 4038 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4039 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20081" value-id="xccdf_cdf_value_var-2.3.3.4.a"/> |
| 4040 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20081"/> |
| 4041 |
</xccdf:check> |
| 4042 |
</xccdf:Rule> |
| 4043 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.4.b" selected="false" weight="10.0"> |
| 4044 |
<xccdf:title>Restrict File permissions of userhelper</xccdf:title> |
| 4045 |
<xccdf:description>File permissions for /usr/sbin/userhelper should be set correctly.</xccdf:description> |
| 4046 |
<xccdf:ident system="http://cce.mitre.org">CCE-3952-9</xccdf:ident> |
| 4047 |
<xccdf:fix># chmod 4710 /usr/sbin/userhelper</xccdf:fix> |
| 4048 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4049 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20082" value-id="xccdf_cdf_value_var-2.3.3.4.b"/> |
| 4050 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20082"/> |
| 4051 |
</xccdf:check> |
| 4052 |
</xccdf:Rule> |
| 4053 |
</xccdf:Group> |
| 4054 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.5"> |
| 4055 |
<xccdf:title xml:lang="en">Password Hashing Algorithm</xccdf:title> |
| 4056 |
<xccdf:description xml:lang="en"> |
| 4057 |
The default algorithm for storing password hashes should be SHA-512. |
| 4058 |
</xccdf:description> |
| 4059 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.5.a" operator="equals" type="string"> |
| 4060 |
<xccdf:title>Password hashing algorithm</xccdf:title> |
| 4061 |
<xccdf:description xml:lang="en">Enter /etc/shadow password hashing algorithm</xccdf:description> |
| 4062 |
<xccdf:question xml:lang="en">Enter /etc/shadow password hashing algorithm</xccdf:question> |
| 4063 |
<xccdf:value>sha512</xccdf:value> |
| 4064 |
<xccdf:value selector="MD5">md5</xccdf:value> |
| 4065 |
<xccdf:value selector="SHA-256">sha256</xccdf:value> |
| 4066 |
<xccdf:value selector="SHA-512">sha512</xccdf:value> |
| 4067 |
<xccdf:choices> |
| 4068 |
<xccdf:choice>md5</xccdf:choice> |
| 4069 |
<xccdf:choice>sha256</xccdf:choice> |
| 4070 |
<xccdf:choice>sha512</xccdf:choice> |
| 4071 |
</xccdf:choices> |
| 4072 |
</xccdf:Value> |
| 4073 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.5.a" selected="false" severity="medium" weight="10.0"> |
| 4074 |
<xccdf:title>Password hashing algorithm</xccdf:title> |
| 4075 |
<xccdf:description>The password hashing algorithm should be set to SHA-512</xccdf:description> |
| 4076 |
<xccdf:fix>/usr/sbin/authconfig --passalgo=sha512 --update</xccdf:fix> |
| 4077 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4078 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20083" value-id="xccdf_cdf_value_var-2.3.3.5.a"/> |
| 4079 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20083"/> |
| 4080 |
</xccdf:check> |
| 4081 |
</xccdf:Rule> |
| 4082 |
</xccdf:Group> |
| 4083 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.3.6"> |
| 4084 |
<xccdf:title xml:lang="en">Limit Password Reuse</xccdf:title> |
| 4085 |
<xccdf:description xml:lang="en"> |
| 4086 |
Do not allow users to reuse recent passwords. This can be |
| 4087 |
accomplished by using the remember option for the pam_unix PAM module. In order to |
| 4088 |
prevent a user from re-using any of his or her last <xccdf:sub idref="xccdf_cdf_value_var-2.3.3.6.a"/> passwords, |
| 4089 |
append remember=<xccdf:sub idref="xccdf_cdf_value_var-2.3.3.6.a"/> to the password line which uses the |
| 4090 |
pam_unix module in the file /etc/pam.d/system-auth, as shown:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4091 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4092 |
password sufficient pam_unix.so existing_options remember=<xccdf:sub idref="xccdf_cdf_value_var-2.3.3.6.a"/><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4093 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4094 |
Old (and thus no longer valid) passwords are stored in the file /etc/security/opasswd. |
| 4095 |
</xccdf:description> |
| 4096 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.3.6.a" operator="equals" type="string"> |
| 4097 |
<xccdf:title>remember</xccdf:title> |
| 4098 |
<xccdf:description xml:lang="en"> |
| 4099 |
The last n passwords for each user are saved in |
| 4100 |
/etc/security/opasswd in order to force password change history and keep the user from |
| 4101 |
alternating between the same password too frequently. </xccdf:description> |
| 4102 |
<xccdf:question xml:lang="en">Enter how many last passwords will be saved to keep the user from alternating between the same password too frequently</xccdf:question> |
| 4103 |
<xccdf:value>5</xccdf:value> |
| 4104 |
<xccdf:value selector="5">5</xccdf:value> |
| 4105 |
<xccdf:value selector="10">10</xccdf:value> |
| 4106 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 4107 |
</xccdf:Value> |
| 4108 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.3.6.a" selected="false" severity="medium" weight="10.0"> |
| 4109 |
<xccdf:title>Limit password reuse</xccdf:title> |
| 4110 |
<xccdf:description>The passwords to remember should be set to: <xccdf:sub idref="xccdf_cdf_value_var-2.3.3.6.a"/></xccdf:description> |
| 4111 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4112 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20084" value-id="xccdf_cdf_value_var-2.3.3.6.a"/> |
| 4113 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20084"/> |
| 4114 |
|
| 4115 |
</xccdf:check> |
| 4116 |
</xccdf:Rule> |
| 4117 |
</xccdf:Group> |
| 4118 |
</xccdf:Group> |
| 4119 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4"> |
| 4120 |
<xccdf:title xml:lang="en">Secure Session Configuration Files for Login Accounts</xccdf:title> |
| 4121 |
<xccdf:description xml:lang="en"> |
| 4122 |
When a user logs into a Unix account, the system configures the |
| 4123 |
user's session by reading a number of files. Many of these files are located in the user's |
| 4124 |
home directory, and may have weak permissions as a result of user error or |
| 4125 |
misconfiguration. If an attacker can modify or even read certain types of account |
| 4126 |
configuration information, he can often gain full access to the affected user's account. |
| 4127 |
Therefore, it is important to test and correct configuration file permissions for |
| 4128 |
interactive accounts, particularly those of privileged users such as root or system |
| 4129 |
administrators.</xccdf:description> |
| 4130 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4.1"> |
| 4131 |
<xccdf:title xml:lang="en">Ensure that No Dangerous Directories Exist in Roots Path '</xccdf:title> |
| 4132 |
<xccdf:description xml:lang="en"> |
| 4133 |
The active path of the root account can be obtained by starting |
| 4134 |
a new root shell and running: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4135 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4136 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># echo $PATH <xhtml:br/></xhtml:code> |
| 4137 |
This will produce a colon-separated list of directories in the path. For each directory |
| 4138 |
DIR in the path, ensure that DIR is not equal to a single . character. Also ensure that |
| 4139 |
there are no 'empty' elements in the path, such as in these examples: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4140 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4141 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">PATH=:/bin <xhtml:br/> |
| 4142 |
PATH=/bin: <xhtml:br/> |
| 4143 |
PATH=/bin::/sbin <xhtml:br/></xhtml:code> |
| 4144 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4145 |
These empty elements have the same effect as a single . character. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4146 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4147 |
For each element in the path, run: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4148 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4149 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -ld DIR <xhtml:br/></xhtml:code> |
| 4150 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4151 |
and ensure that write permissions are disabled for group and other. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4152 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4153 |
It is important to prevent root from executing unknown or untrusted programs, since such |
| 4154 |
programs could contain malicious code. Therefore, root should not run programs installed |
| 4155 |
by unprivileged users. Since root may often be working inside untrusted directories, the |
| 4156 |
. character, which represents the current directory, should never be in the root path, |
| 4157 |
nor should any directory which can be written to by an unprivileged or semi-privileged |
| 4158 |
(system) user. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4159 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4160 |
It is a good practice for administrators to always execute privileged |
| 4161 |
commands by typing the full path to the command.</xccdf:description> |
| 4162 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.1.a" selected="false" severity="medium" weight="10.0"> |
| 4163 |
<xccdf:title>Ensure that No Dangerous Directories Exist in Root's Path</xccdf:title> |
| 4164 |
<xccdf:description>The PATH variable should be set correctly for user root</xccdf:description> |
| 4165 |
<xccdf:ident system="http://cce.mitre.org">CCE-3301-9</xccdf:ident> |
| 4166 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4167 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20085"/> |
| 4168 |
</xccdf:check> |
| 4169 |
</xccdf:Rule> |
| 4170 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.1.b" selected="false" severity="medium" weight="10.0"> |
| 4171 |
<xccdf:title>Write permissions are disabled for group and other in all directories in Root's Path</xccdf:title> |
| 4172 |
<xccdf:description>Check each directory in root's path and make use it does not grant write permission to group and other</xccdf:description> |
| 4173 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4174 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:200855"/> |
| 4175 |
</xccdf:check> |
| 4176 |
</xccdf:Rule> |
| 4177 |
</xccdf:Group> |
| 4178 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4.2"> |
| 4179 |
<xccdf:title xml:lang="en">Ensure that User Home Directories are not Group-Writable or |
| 4180 |
World-Readable</xccdf:title> |
| 4181 |
<xccdf:description xml:lang="en"> |
| 4182 |
For each human user USER of the system, view the permissions of the |
| 4183 |
user's home directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4184 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4185 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -ld /home/USER <xhtml:br/></xhtml:code> |
| 4186 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4187 |
Ensure that the directory is not group-writable and that it is not world-readable. If |
| 4188 |
necessary, repair the permissions:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4189 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4190 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chmod g-w /home/USER <xhtml:br/> |
| 4191 |
# chmod o-rwx /home/USER <xhtml:br/></xhtml:code> |
| 4192 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4193 |
User home directories contain many |
| 4194 |
configuration files which affect the behavior of a user's account. No user should ever |
| 4195 |
have write permission to another user's home directory. Group shared directories can be |
| 4196 |
configured in subdirectories or elsewhere in the filesystem if they are needed. |
| 4197 |
Typically, user home directories should not be world-readable. If a subset of users need |
| 4198 |
read access to one another's home directories, this can be provided using groups.</xccdf:description> |
| 4199 |
<xccdf:warning xml:lang="en">Sections 2.3.4.2–2.3.4.5 recommend modifying user home |
| 4200 |
directories. Notify your user community, and solicit input if appropriate, before making |
| 4201 |
this type of change. </xccdf:warning> |
| 4202 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.2.a" selected="false" severity="medium" weight="10.0"> |
| 4203 |
<xccdf:title>Ensure that User Home Directories are not Group-Writable or World-Readable</xccdf:title> |
| 4204 |
<xccdf:description>File permissions should be set correctly for the home directories for all user accounts.</xccdf:description> |
| 4205 |
<xccdf:ident system="http://cce.mitre.org">CCE-4090-7</xccdf:ident> |
| 4206 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4207 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20086"/> |
| 4208 |
</xccdf:check> |
| 4209 |
</xccdf:Rule> |
| 4210 |
</xccdf:Group> |
| 4211 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4.3"> |
| 4212 |
<xccdf:title xml:lang="en">Ensure that User Dot-Files are not World-writable</xccdf:title> |
| 4213 |
<xccdf:description xml:lang="en"> |
| 4214 |
For each human user USER of the system, view the permissions of |
| 4215 |
all dot-files in the user's home directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4216 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4217 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -ld /home/USER /.[A-Za-z0-9]* <xhtml:br/></xhtml:code> |
| 4218 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4219 |
Ensure that none of these files are group- or world-writable. Correct each misconfigured file |
| 4220 |
FILE by executing: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4221 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4222 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chmod go-w /home/USER /FILE <xhtml:br/></xhtml:code> |
| 4223 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4224 |
A user who can modify another user's configuration files can likely execute commands |
| 4225 |
with the other user's privileges, including stealing data, destroying files, or |
| 4226 |
launching further attacks on the system.</xccdf:description> |
| 4227 |
</xccdf:Group> |
| 4228 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4.4"> |
| 4229 |
<xccdf:title xml:lang="en">Ensure that Users Have Sensible Umask Values</xccdf:title> |
| 4230 |
<xccdf:description xml:lang="en"> |
| 4231 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4232 |
<xhtml:li>Edit the global configuration files /etc/bashrc and /etc/csh.cshrc. |
| 4233 |
Add or correct the line: umask <xccdf:sub idref="xccdf_cdf_value_var-2.3.4.4"/></xhtml:li> |
| 4234 |
<xhtml:li>View the additional configuration files /etc/csh.login and /etc/profile.d/*, |
| 4235 |
and ensure that none of these files redefine the umask to a more permissive value |
| 4236 |
unless there is a good reason for it.</xhtml:li> |
| 4237 |
</xhtml:ol> |
| 4238 |
With a default umask setting of 077, files and directories created by users will not be |
| 4239 |
readable by any other user on the system. Users who wish to make specific files group- |
| 4240 |
or world-readable can accomplish this using the chmod command. Additionally, users can |
| 4241 |
make all their files readable to their group by default by setting a umask of 027 in |
| 4242 |
their shell configuration files. If default per-user groups exist (that is, if every |
| 4243 |
user has a default group whose name is the same as that user's username and whose only |
| 4244 |
member is the user), then it may even be safe for users to select a umask of 007, making |
| 4245 |
it very easy to intentionally share files with group s of which the user is a member. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4246 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4247 |
In addition, it may be necessary to change root's umask temporarily in order to install |
| 4248 |
software or files which must be readable by other users, or to change the default umasks |
| 4249 |
of certain service accounts such as the FTP user. However, setting a restrictive default |
| 4250 |
protects the files of users who have not taken steps to make their files more available, |
| 4251 |
and preventing files from being inadvertently shared.</xccdf:description> |
| 4252 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.4.4" operator="equals" type="string"> |
| 4253 |
<xccdf:title>Sensible umask</xccdf:title> |
| 4254 |
<xccdf:description xml:lang="en">Enter default user umask</xccdf:description> |
| 4255 |
<xccdf:question xml:lang="en">Enter default user umask</xccdf:question> |
| 4256 |
<xccdf:value>002</xccdf:value> |
| 4257 |
<xccdf:value selector="002">002</xccdf:value> |
| 4258 |
<xccdf:value selector="007">007</xccdf:value> |
| 4259 |
<xccdf:value selector="022">022</xccdf:value> |
| 4260 |
<xccdf:value selector="027">027</xccdf:value> |
| 4261 |
<xccdf:value selector="077">077</xccdf:value> |
| 4262 |
<xccdf:match>^0?[0-7][0-7][0-7]?$</xccdf:match> |
| 4263 |
</xccdf:Value> |
| 4264 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.4.a" selected="false" severity="medium" weight="10.0"> |
| 4265 |
<xccdf:title>Ensure that Users Have Sensible Umask Values in /etc/bashrc</xccdf:title> |
| 4266 |
<xccdf:description>The default umask for all users for the bash shell should be set to: |
| 4267 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.4.4"/></xccdf:description> |
| 4268 |
<xccdf:ident system="http://cce.mitre.org">CCE-3844-8</xccdf:ident> |
| 4269 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4270 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20087" value-id="xccdf_cdf_value_var-2.3.4.4"/> |
| 4271 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20087"/> |
| 4272 |
</xccdf:check> |
| 4273 |
</xccdf:Rule> |
| 4274 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.4.b" selected="false" severity="medium" weight="10.0"> |
| 4275 |
<xccdf:title>Ensure that Users Have Sensible Umask Values in /etc/csh.cshrc</xccdf:title> |
| 4276 |
<xccdf:description>The default umask for all users for the csh shell should be set to: |
| 4277 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.4.4"/></xccdf:description> |
| 4278 |
<xccdf:ident system="http://cce.mitre.org">CCE-4227-5</xccdf:ident> |
| 4279 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4280 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20087" value-id="xccdf_cdf_value_var-2.3.4.4"/> |
| 4281 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20088"/> |
| 4282 |
</xccdf:check> |
| 4283 |
</xccdf:Rule> |
| 4284 |
</xccdf:Group> |
| 4285 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.4.5"> |
| 4286 |
<xccdf:title xml:lang="en">Ensure that Users do not Have .netrc Files</xccdf:title> |
| 4287 |
<xccdf:description xml:lang="en"> |
| 4288 |
For each human user USER of the system, ensure that the user |
| 4289 |
has no .netrc file. The command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4290 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4291 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -l /home/USER /.netrc <xhtml:br/></xhtml:code> |
| 4292 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4293 |
should return the error 'No such file or directory'. If any user has such a file, |
| 4294 |
approach that user to discuss removing this file. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4295 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4296 |
The .netrc file is a configuration file used to make unattended |
| 4297 |
logins to other systems via FTP. When this file exists, it frequently contains |
| 4298 |
unencrypted passwords which may be used to attack other systems.</xccdf:description> |
| 4299 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.4.5.a" selected="false" severity="medium" weight="10.0"> |
| 4300 |
<xccdf:title xml:lang="en">Check for existance of .netrc file</xccdf:title> |
| 4301 |
<xccdf:description xml:lang="en">No user directory should contain file .netrc</xccdf:description> |
| 4302 |
<xccdf:fix>rm .netrc</xccdf:fix> |
| 4303 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4304 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20091"/> |
| 4305 |
</xccdf:check> |
| 4306 |
</xccdf:Rule> |
| 4307 |
</xccdf:Group> |
| 4308 |
</xccdf:Group> |
| 4309 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5"> |
| 4310 |
<xccdf:title xml:lang="en">Protect Physical Console Access</xccdf:title> |
| 4311 |
<xccdf:description xml:lang="en"> |
| 4312 |
It is impossible to fully protect a system from an attacker with |
| 4313 |
physical access, so securing the space in which the system is located should be considered |
| 4314 |
a necessary step. However, there are some steps which, if taken, make it more difficult |
| 4315 |
for an attacker to quickly or undetectably modify a system from its console.</xccdf:description> |
| 4316 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.1"> |
| 4317 |
<xccdf:title xml:lang="en">Set BIOS Password</xccdf:title> |
| 4318 |
<xccdf:description xml:lang="en"> |
| 4319 |
The BIOS (on x86 systems) is the first code to execute during |
| 4320 |
system startup and controls many important system parameters, including which devices |
| 4321 |
the system will try to boot from, and in which order. Assign a password to prevent any |
| 4322 |
unauthorized changes to the BIOS configuration. The exact steps will vary depending on |
| 4323 |
your machine, but are likely to include:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4324 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4325 |
<xhtml:li>Reboot the machine.</xhtml:li> |
| 4326 |
<xhtml:li>Press the appropriate key during the initial boot screen (F2 is typical)</xhtml:li> |
| 4327 |
<xhtml:li>Navigate the BIOS configuration menu to add a password.</xhtml:li> |
| 4328 |
</xhtml:ol> |
| 4329 |
The exact process will be system-specific and the system's |
| 4330 |
hardware manual may provide detailed instructions. This password should prevent |
| 4331 |
attackers with physical access from attempting to change important parameters, such as |
| 4332 |
those described in Sections 2.5.2.2.1 and 2.2.2.2.4. However, an attacker with physical |
| 4333 |
access can usually clear the BIOS password. The password should be written down and |
| 4334 |
stored in a physically-secure location, such as a safe, in the event that it is |
| 4335 |
forgotten and must be retrieved.</xccdf:description> |
| 4336 |
</xccdf:Group> |
| 4337 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.2"> |
| 4338 |
<xccdf:title xml:lang="en">Set Boot Loader Password</xccdf:title> |
| 4339 |
<xccdf:description xml:lang="en"> |
| 4340 |
During the boot process, the boot loader is responsible for |
| 4341 |
starting the execution of the kernel and passing options to it. The boot loader allows |
| 4342 |
for the selection of different kernels – possibly on different partitions or media. |
| 4343 |
Options it can pass to the kernel include 'single-user mode,' which provides root access |
| 4344 |
without any authentication, and the ability to disable SELinux. To prevent local users |
| 4345 |
from modifying the boot parameters and endangering security, the boot loader |
| 4346 |
configuration should be protected with a password. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4347 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4348 |
The default Fedora boot loader for x86 systems is called GRUB. To protect its |
| 4349 |
configuration: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4350 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4351 |
<xhtml:li>Select a password and then generate a hash from it by running: <xhtml:br/> |
| 4352 |
<xhtml:br/> |
| 4353 |
<xhtml:code># grub-md5-crypt </xhtml:code> <xhtml:br/> <xhtml:br/> </xhtml:li> |
| 4354 |
<xhtml:li>Insert the following line into /etc/grub.conf immediately after the header |
| 4355 |
comments. (Use the output from grub-md5-crypt as the value of password-hash ): <xhtml:br/> |
| 4356 |
<xhtml:br/> |
| 4357 |
<xhtml:code>password --md5 password-hash </xhtml:code> <xhtml:br/> <xhtml:br/> </xhtml:li> |
| 4358 |
<xhtml:li>Verify the permissions on /etc/grub.conf (which is a symlink to ../boot/grub/grub.conf): |
| 4359 |
<xhtml:br/> |
| 4360 |
<xhtml:br/> |
| 4361 |
<xhtml:code># chown root:root /boot/grub/grub.conf <xhtml:br/> |
| 4362 |
# chmod 600 /boot/grub/grub.conf</xhtml:code></xhtml:li> |
| 4363 |
</xhtml:ol> |
| 4364 |
Boot loaders for other platforms should offer a similar password protection feature.</xccdf:description> |
| 4365 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.5.2.a" operator="equals" type="string"> |
| 4366 |
<xccdf:title>User that owns /boot/grub/grub.conf</xccdf:title> |
| 4367 |
<xccdf:description xml:lang="en">Choose user that should own /boot/grub/grub.conf</xccdf:description> |
| 4368 |
<xccdf:value>root</xccdf:value> |
| 4369 |
<xccdf:value selector="root">root</xccdf:value> |
| 4370 |
</xccdf:Value> |
| 4371 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.5.2.b" operator="equals" type="string"> |
| 4372 |
<xccdf:title>Group that owns /boot/grub/grub.conf</xccdf:title> |
| 4373 |
<xccdf:description xml:lang="en">Choose group that should own /boot/grub/grub.conf</xccdf:description> |
| 4374 |
<xccdf:value>root</xccdf:value> |
| 4375 |
<xccdf:value selector="root">root</xccdf:value> |
| 4376 |
</xccdf:Value> |
| 4377 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.5.2.c" operator="equals" type="string"> |
| 4378 |
<xccdf:title>permissions on /boot/grub/grub.conf</xccdf:title> |
| 4379 |
<xccdf:description xml:lang="en">Choose file permissions on /boot/grub/grub.conf</xccdf:description> |
| 4380 |
<xccdf:value>110000000</xccdf:value> |
| 4381 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 4382 |
<xccdf:match>^[01]+$</xccdf:match> |
| 4383 |
</xccdf:Value> |
| 4384 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.2.a" selected="false" severity="medium" weight="10.0"> |
| 4385 |
<xccdf:title>Set Boot Loader user owner</xccdf:title> |
| 4386 |
<xccdf:description>The /boot/grub/grub.conf file should be owned by root.</xccdf:description> |
| 4387 |
<xccdf:ident system="http://cce.mitre.org">CCE-4144-2</xccdf:ident> |
| 4388 |
<xccdf:fix>chown root /boot/grub/grub.conf</xccdf:fix> |
| 4389 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4390 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20092" value-id="xccdf_cdf_value_var-2.3.5.2.a"/> |
| 4391 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20092"/> |
| 4392 |
</xccdf:check> |
| 4393 |
</xccdf:Rule> |
| 4394 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.2.b" selected="false" severity="medium" weight="10.0"> |
| 4395 |
<xccdf:title>Set Boot Loader group owner</xccdf:title> |
| 4396 |
<xccdf:description>The /boot/grub/grub.conf file should be owned by group root.</xccdf:description> |
| 4397 |
<xccdf:ident system="http://cce.mitre.org">CCE-4197-0</xccdf:ident> |
| 4398 |
<xccdf:fix>chown :root /boot/grub/grub.conf</xccdf:fix> |
| 4399 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4400 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20093" value-id="xccdf_cdf_value_var-2.3.5.2.b"/> |
| 4401 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20093"/> |
| 4402 |
</xccdf:check> |
| 4403 |
</xccdf:Rule> |
| 4404 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.2.c" selected="false" severity="medium" weight="10.0"> |
| 4405 |
<xccdf:title>Set permission on /boot/grub/grub.conf</xccdf:title> |
| 4406 |
<xccdf:description>File permissions for /boot/grub/grub.conf should be set correctly.</xccdf:description> |
| 4407 |
<xccdf:ident system="http://cce.mitre.org">CCE-3923-0</xccdf:ident> |
| 4408 |
<xccdf:fix>chmod 600 /boot/grub/grub.conf</xccdf:fix> |
| 4409 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4410 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20094" value-id="xccdf_cdf_value_var-2.3.5.2.c"/> |
| 4411 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20094"/> |
| 4412 |
</xccdf:check> |
| 4413 |
</xccdf:Rule> |
| 4414 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.2.d" selected="false" severity="high" weight="10.0"> |
| 4415 |
<xccdf:title>Set Boot Loader Password</xccdf:title> |
| 4416 |
<xccdf:description>The grub boot loader should have password protection enabled</xccdf:description> |
| 4417 |
<xccdf:ident system="http://cce.mitre.org">CCE-3818-2</xccdf:ident> |
| 4418 |
<xccdf:fixtext>Edit /boot/grub/grub.conf</xccdf:fixtext> |
| 4419 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4420 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20095"/> |
| 4421 |
</xccdf:check> |
| 4422 |
</xccdf:Rule> |
| 4423 |
</xccdf:Group> |
| 4424 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.3"> |
| 4425 |
<xccdf:title xml:lang="en">Require Authentication for Single-User Mode</xccdf:title> |
| 4426 |
<xccdf:description xml:lang="en"> |
| 4427 |
Single-user mode is intended as a system recovery method, |
| 4428 |
providing a single user root access to the system by providing a boot option at startup. |
| 4429 |
By default, no authentication is performed if single-user mode is selected. This |
| 4430 |
provides a trivial mechanism of bypassing security on the machine and gaining root |
| 4431 |
access. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4432 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4433 |
To require entry of the root password even if the system is started in |
| 4434 |
single-user mode, add the following line to the /etc/inittab file:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4435 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4436 |
~~:S:wait:/sbin/sulogin</xccdf:description> |
| 4437 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.3.a" selected="false" severity="medium" weight="10.0"> |
| 4438 |
<xccdf:title>Require Authentication for Single-User Mode</xccdf:title> |
| 4439 |
<xccdf:description>The requirement for a password to boot into single-user mode should be enabled.</xccdf:description> |
| 4440 |
<xccdf:ident system="http://cce.mitre.org">CCE-4241-6</xccdf:ident> |
| 4441 |
<xccdf:fixtext>(1) via /etc/inittab</xccdf:fixtext> |
| 4442 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4443 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20096"/> |
| 4444 |
</xccdf:check> |
| 4445 |
</xccdf:Rule> |
| 4446 |
</xccdf:Group> |
| 4447 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.4"> |
| 4448 |
<xccdf:title xml:lang="en">Disable Interactive Boot</xccdf:title> |
| 4449 |
<xccdf:description xml:lang="en"> |
| 4450 |
Edit the file /etc/sysconfig/init. Add or correct the setting:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4451 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4452 |
PROMPT=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4453 |
The PROMPT option allows the console user to perform an interactive system |
| 4454 |
startup, in which it is possible to select the set of services which are started on |
| 4455 |
boot. Using interactive boot, the console user could disable auditing, firewalls, or |
| 4456 |
other services, weakening system security.</xccdf:description> |
| 4457 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.4.a" selected="false" severity="medium" weight="10.0"> |
| 4458 |
<xccdf:title>Disable Interactive Boot</xccdf:title> |
| 4459 |
<xccdf:description>The ability for users to perform interactive startups should be disabled.</xccdf:description> |
| 4460 |
<xccdf:ident system="http://cce.mitre.org">CCE-4245-7</xccdf:ident> |
| 4461 |
<xccdf:fixtext>(1) via /etc/sysconfig/init</xccdf:fixtext> |
| 4462 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4463 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20097"/> |
| 4464 |
</xccdf:check> |
| 4465 |
</xccdf:Rule> |
| 4466 |
</xccdf:Group> |
| 4467 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.5"> |
| 4468 |
<xccdf:title xml:lang="en">Implement Inactivity Time-out for Login Shells</xccdf:title> |
| 4469 |
<xccdf:description xml:lang="en"> |
| 4470 |
If the system does not run X Windows, then the login shells can |
| 4471 |
be configured to automatically log users out after a period of inactivity. The following |
| 4472 |
instructions are not practical for systems which run X Windows, as they will close |
| 4473 |
terminal windows in the X environment. For information on how to automatically lock |
| 4474 |
those systems, see Section 2.3.5.6. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4475 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4476 |
To implement a 15-minute idle time-out for the |
| 4477 |
default /bin/bash shell, create a new file tmout.sh in the directory /etc/profile.d with |
| 4478 |
the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4479 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4480 |
TMOUT=900 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4481 |
readonly TMOUT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4482 |
export TMOUT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4483 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4484 |
To implement a 15-minute idle |
| 4485 |
time-out for the tcsh shell, create a new file autologout.csh in the directory |
| 4486 |
/etc/profile.d with the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4487 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4488 |
set -r autologout 15 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4489 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4490 |
Similar actions should be taken for any other login shells used. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4491 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4492 |
The example time-out here of 15 minutes should be |
| 4493 |
adjusted to whatever your security policy requires. The readonly line for bash and the |
| 4494 |
-r option for tcsh can be omitted if policy allows users to override the value. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4495 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4496 |
The automatic shell logout only occurs when the shell is the foreground process. If, for |
| 4497 |
example, a vi session is left idle, then automatic logout would not occur. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4498 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4499 |
When logging in through a remote connection, as with SSH, it may be more effective to set |
| 4500 |
the timeout value directly through that service. To learn how to set automatic timeout |
| 4501 |
intervals for SSH, see Section 3.5.2.3.</xccdf:description> |
| 4502 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.5.5" operator="equals" type="string"> |
| 4503 |
<xccdf:title>Inactivity timout</xccdf:title> |
| 4504 |
<xccdf:description xml:lang="en">Choose allowed duration of inactive SSH connections, shells, and X sessions</xccdf:description> |
| 4505 |
<xccdf:question xml:lang="en">Choose allowed duration of inactive SSH connections, shells and X sessions in minutes</xccdf:question> |
| 4506 |
<xccdf:value>15</xccdf:value> |
| 4507 |
<xccdf:value selector="0_minutes">0</xccdf:value> |
| 4508 |
<xccdf:value selector="10_minutes">10</xccdf:value> |
| 4509 |
<xccdf:value selector="15_minutes">15</xccdf:value> |
| 4510 |
<xccdf:match>^[\d]+$</xccdf:match> |
| 4511 |
</xccdf:Value> |
| 4512 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.5.a" selected="false" severity="medium" weight="10.0"> |
| 4513 |
<xccdf:title>Implement Inactivity Time-out for Login Shells</xccdf:title> |
| 4514 |
<xccdf:description>The idle time-out value for the default /bin/tcsh shell should be: |
| 4515 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.5.5"/></xccdf:description> |
| 4516 |
<xccdf:ident system="http://cce.mitre.org">CCE-3689-7</xccdf:ident> |
| 4517 |
<xccdf:fixtext>(1) via /etc/profile.d/autologout.csh</xccdf:fixtext> |
| 4518 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4519 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20098" value-id="xccdf_cdf_value_var-2.3.5.5"/> |
| 4520 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20098"/> |
| 4521 |
</xccdf:check> |
| 4522 |
</xccdf:Rule> |
| 4523 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.5.b" selected="false" severity="medium" weight="10.0"> |
| 4524 |
<xccdf:title>Implement Inactivity Time-out for Login Shells</xccdf:title> |
| 4525 |
<xccdf:description>The idle time-out value for the default /bin/bash shell should be: |
| 4526 |
<xccdf:sub idref="xccdf_cdf_value_var-2.3.5.5"/></xccdf:description> |
| 4527 |
<xccdf:warning xml:lang="en">Time out is in seconds</xccdf:warning> |
| 4528 |
<xccdf:ident system="http://cce.mitre.org">CCE-3707-7</xccdf:ident> |
| 4529 |
<xccdf:fixtext>(1) via /etc/profile.d/tmout.sh</xccdf:fixtext> |
| 4530 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4531 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20099" value-id="xccdf_cdf_value_var-2.3.5.5"/> |
| 4532 |
|
| 4533 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20099"/> |
| 4534 |
</xccdf:check> |
| 4535 |
</xccdf:Rule> |
| 4536 |
</xccdf:Group> |
| 4537 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.6"> |
| 4538 |
<xccdf:title xml:lang="en">Configure Screen Locking</xccdf:title> |
| 4539 |
<xccdf:description xml:lang="en"> |
| 4540 |
When a user must temporarily leave an account logged-in, screen |
| 4541 |
locking should be employed to prevent passersby from abusing the account. User education |
| 4542 |
and training is particularly important for screen locking to be effective. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4543 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4544 |
A policy should be implemented that trains all users to lock the screen when they plan to |
| 4545 |
temporarily step away from a logged-in account. Automatic screen locking is only meant |
| 4546 |
as a safeguard for those cases where a user forgot to lock the screen.</xccdf:description> |
| 4547 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.6.1"> |
| 4548 |
<xccdf:title xml:lang="en">Configure GUI Screen Locking</xccdf:title> |
| 4549 |
<xccdf:description xml:lang="en"> |
| 4550 |
In the default GNOME desktop, the screen can be locked by |
| 4551 |
choosing Lock Screen from the System menu. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4552 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4553 |
The gconftool-2 program can be used to |
| 4554 |
enforce mandatory screen locking settings for the default GNOME environment. Run the |
| 4555 |
following commands to enforce idle activation of the screen saver, screen locking, a |
| 4556 |
blank-screen screensaver, and 15-minute idle activation time: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4557 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/><xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml"><xhtml:code> |
| 4558 |
# gconftool-2 --direct \ |
| 4559 |
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ |
| 4560 |
--type bool \ |
| 4561 |
--set /apps/gnome-screensaver/idle_activation_enabled true |
| 4562 |
# gconftool-2 --direct \ |
| 4563 |
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ |
| 4564 |
--type bool \ |
| 4565 |
--set /apps/gnome-screensaver/lock_enabled true |
| 4566 |
# gconftool-2 --direct \ |
| 4567 |
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ |
| 4568 |
--type string \ |
| 4569 |
--set /apps/gnome-screensaver/mode blank-only |
| 4570 |
# gconftool-2 --direct \ |
| 4571 |
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \ |
| 4572 |
--type int \ |
| 4573 |
--set /apps/gnome-screensaver/idle_delay 15 |
| 4574 |
</xhtml:code></xhtml:pre> |
| 4575 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4576 |
The default setting of 15 minutes for idle |
| 4577 |
activation is reasonable for many office environments, but the setting should conform |
| 4578 |
to whatever policy is defined. The screensaver mode blank-only is selected to conceal |
| 4579 |
the contents of the display from passersby. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4580 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4581 |
Because users should be trained to lock |
| 4582 |
the screen when they step away from the computer, the automatic locking feature is |
| 4583 |
only meant as a backup. The Lock Screen icon from the System menu can also be dragged |
| 4584 |
to the taskbar in order to facilitate even more convenient screen-locking. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4585 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4586 |
The root |
| 4587 |
account cannot be screen-locked, but this should have no practical effect as the root |
| 4588 |
account should never be used to log into an X Windows environment, and should only be |
| 4589 |
used to for direct login via console in emergency circumstances. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4590 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4591 |
For more information |
| 4592 |
about configuring GNOME screensaver, see http://live.gnome.org/GnomeScreensaver. For |
| 4593 |
more information about enforcing preferences in the GNOME environment using the GConf |
| 4594 |
configuration system, see http://www.gnome.org/projects/gconf and the man page |
| 4595 |
gconftool-2(1).</xccdf:description> |
| 4596 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.6.1.a" selected="false" severity="medium" weight="10.0"> |
| 4597 |
<xccdf:title>Implement Inactivity Time-out for Login Shells</xccdf:title> |
| 4598 |
<xccdf:description>The idle time-out value for period of inactivity gnome desktop lockout should be 15 minutes</xccdf:description> |
| 4599 |
<xccdf:ident system="http://cce.mitre.org">CCE-3315-9</xccdf:ident> |
| 4600 |
<xccdf:fixtext>(1) via gconftool-2</xccdf:fixtext> |
| 4601 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4602 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20098" value-id="xccdf_cdf_value_var-2.3.5.5"/> |
| 4603 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20100"/> |
| 4604 |
</xccdf:check> |
| 4605 |
</xccdf:Rule> |
| 4606 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.6.1.b" selected="false" severity="medium" weight="10.0"> |
| 4607 |
<xccdf:title>Implement idle activation of screen saver</xccdf:title> |
| 4608 |
<xccdf:description>Idle activation of the screen saver should be enabled</xccdf:description> |
| 4609 |
<xccdf:fixtext>(1) via gconftool-2</xccdf:fixtext> |
| 4610 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4611 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201005"/> |
| 4612 |
</xccdf:check> |
| 4613 |
</xccdf:Rule> |
| 4614 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.6.1.c" selected="false" severity="medium" weight="10.0"> |
| 4615 |
<xccdf:title>Implement idle activation of screen lock</xccdf:title> |
| 4616 |
<xccdf:description>Idle activation of the screen lock should be enabled</xccdf:description> |
| 4617 |
<xccdf:fixtext>(1) via gconftool-2</xccdf:fixtext> |
| 4618 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4619 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201006"/> |
| 4620 |
</xccdf:check> |
| 4621 |
</xccdf:Rule> |
| 4622 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.6.1.d" selected="false" severity="medium" weight="10.0"> |
| 4623 |
<xccdf:title>Implement blank screen saver</xccdf:title> |
| 4624 |
<xccdf:description>The screen saver should be blank</xccdf:description> |
| 4625 |
<xccdf:fixtext>(1) via gconftool-2</xccdf:fixtext> |
| 4626 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4627 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201007"/> |
| 4628 |
</xccdf:check> |
| 4629 |
</xccdf:Rule> |
| 4630 |
</xccdf:Group> |
| 4631 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.6.2"> |
| 4632 |
<xccdf:title xml:lang="en">Configure Console Screen Locking</xccdf:title> |
| 4633 |
<xccdf:description xml:lang="en"> |
| 4634 |
A console screen locking mechanism is provided in the vlock |
| 4635 |
package, which is not installed by default. If the ability to lock console screens is |
| 4636 |
necessary, install the vlock package: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4637 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4638 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install vlock <xhtml:br/></xhtml:code> |
| 4639 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4640 |
Instruct users to invoke the |
| 4641 |
program when necessary, in order to prevent passersby from abusing their login: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4642 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ vlock <xhtml:br/></xhtml:code> |
| 4643 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4644 |
The -a option can be used to prevent switching to other virtual consoles.</xccdf:description> |
| 4645 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.5.6.2.a" selected="false" severity="medium" weight="10.0"> |
| 4646 |
<xccdf:title>Configure console screen locking</xccdf:title> |
| 4647 |
<xccdf:description>The vlock package should be installed</xccdf:description> |
| 4648 |
<xccdf:ident system="http://cce.mitre.org">CCE-3910-7</xccdf:ident> |
| 4649 |
<xccdf:fix>yum install vlock</xccdf:fix> |
| 4650 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4651 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20101"/> |
| 4652 |
</xccdf:check> |
| 4653 |
</xccdf:Rule> |
| 4654 |
</xccdf:Group> |
| 4655 |
</xccdf:Group> |
| 4656 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.5.7"> |
| 4657 |
<xccdf:title xml:lang="en">Disable Unnecessary Ports</xccdf:title> |
| 4658 |
<xccdf:description xml:lang="en"> |
| 4659 |
Though unusual, some systems may be managed only remotely and yet |
| 4660 |
also exposed to risk from attackers with direct physical access to them. In these cases, |
| 4661 |
reduce an attacker’s access to the system by disabling unnecessary external ports (e.g. |
| 4662 |
USB, FireWire, NIC) in the system’s BIOS.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4663 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4664 |
Disable ports on the system which are not necessary for normal system operation. The exact |
| 4665 |
steps will vary depending on your machine, but are likely to include: |
| 4666 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4667 |
<xhtml:li>Reboot the machine.</xhtml:li> |
| 4668 |
<xhtml:li>Press the appropriate key during the initial boot screen (F2 is typical). </xhtml:li> |
| 4669 |
<xhtml:li>Navigate the BIOS conguration menu to disable ports, such as USB, FireWire, and NIC.</xhtml:li> |
| 4670 |
</xhtml:ol> |
| 4671 |
</xccdf:description> |
| 4672 |
<xccdf:warning xml:lang="en">Disabling USB ports is particularly unusual and will cause problems |
| 4673 |
for important input devices such as keyboards or mice attached to the system.</xccdf:warning> |
| 4674 |
</xccdf:Group> |
| 4675 |
</xccdf:Group> |
| 4676 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.6"> |
| 4677 |
<xccdf:title xml:lang="en">Use a Centralized Authentication Service</xccdf:title> |
| 4678 |
<xccdf:description xml:lang="en"> |
| 4679 |
A centralized authentication service is any method of maintaining |
| 4680 |
central control over account and authentication data and of keeping this data synchronized |
| 4681 |
between machines. Such services can range in complexity from a script which pushes |
| 4682 |
centrally-generated password files out to all machines, to a managed scheme such as LDAP |
| 4683 |
or Kerberos. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4684 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4685 |
If authentication information is not centrally managed, it quickly becomes |
| 4686 |
inconsistent, leading to out-of-date credentials and forgotten accounts which should have |
| 4687 |
been deleted. In addition, many older protocols (such as NFS) make use of the UID to |
| 4688 |
identify users over a network. This is not a good practice, and these protocols should be |
| 4689 |
avoided if possible. However, since most sites must still make use of some older |
| 4690 |
protocols, having consistent UIDs and GIDs site-wide is a significant benefit. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4691 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4692 |
Centralized |
| 4693 |
authentication services do have the disadvantage that authentication information must be |
| 4694 |
transmitted over a network, leading to a risk that credentials may be intercepted or |
| 4695 |
manipulated. Therefore, these services must be deployed carefully. The following |
| 4696 |
precautions should be taken when configuring any authentication service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4697 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4698 |
<xhtml:li>Ensure that authentication information and any sensitive account information |
| 4699 |
are never sent over the network unencrypted.</xhtml:li> |
| 4700 |
<xhtml:li>Ensure that the root account has a local password, to allow recovery in case |
| 4701 |
of network outage or authentication server failure.</xhtml:li> |
| 4702 |
</xhtml:ul> |
| 4703 |
This guide recommends |
| 4704 |
the use of LDAP. Secure configuration of OpenLDAP for clients and servers is described in |
| 4705 |
Section 3.12. Kerberos is also a good choice for a centralized authentication service, but |
| 4706 |
a description of its configuration is beyond the scope of this guide. The NIS service is |
| 4707 |
not recommended, and should be considered obsolete. (See Section 3.2.4.)</xccdf:description> |
| 4708 |
</xccdf:Group> |
| 4709 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.7"> |
| 4710 |
<xccdf:title xml:lang="en">Warning Banners for System Accesses</xccdf:title> |
| 4711 |
<xccdf:description xml:lang="en"> |
| 4712 |
Each system should expose as little information about itself as |
| 4713 |
possible. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4714 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4715 |
System banners, which are typically displayed just before a login prompt, give |
| 4716 |
out information about the service or the host's operating system. This might include the |
| 4717 |
distribution name and the system kernel version, and the particular version of a network |
| 4718 |
service. This information can assist intruders in gaining access to the system as it can |
| 4719 |
reveal whether the system is running vulnerable software. Most network services can be |
| 4720 |
configured to limit what information is displayed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4721 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4722 |
Many organizations implement security |
| 4723 |
policies that require a system banner provide notice of the system's ownership, provide |
| 4724 |
warning to unauthorized users, and remind authorized users of their consent to monitoring.</xccdf:description> |
| 4725 |
<xccdf:Value id="xccdf_cdf_value_var-2.3.7" operator="equals" type="string"> |
| 4726 |
<xccdf:title>login banner verbiage</xccdf:title> |
| 4727 |
<xccdf:description xml:lang="en">Enter an appropriate login banner for your organization</xccdf:description> |
| 4728 |
<xccdf:question xml:lang="en">Enter an appropriate login banner for your organization</xccdf:question> |
| 4729 |
<xccdf:value/> |
| 4730 |
<xccdf:value selector="Empty_text"/> |
| 4731 |
</xccdf:Value> |
| 4732 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.7.1"> |
| 4733 |
<xccdf:title xml:lang="en">Modify the System Login Banner</xccdf:title> |
| 4734 |
<xccdf:description xml:lang="en"> |
| 4735 |
The contents of the file /etc/issue are displayed on the screen |
| 4736 |
just above the login prompt for users logging directly into a terminal. Remote login |
| 4737 |
programs such as SSH or FTP can be configured to display /etc/issue as well. |
| 4738 |
Instructions for configuring each server daemon to show this file can be found in the |
| 4739 |
relevant sections of Chapter 3. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4740 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4741 |
By default, the system will display the version of the |
| 4742 |
OS, the kernel version, and the host name. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4743 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4744 |
Edit /etc/issue. Replace the default text |
| 4745 |
with a message compliant with the local site policy or a legal disclaimer.</xccdf:description> |
| 4746 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.7.1.a" selected="false" severity="medium" weight="10.0"> |
| 4747 |
<xccdf:title>Modify the System Login Banner</xccdf:title> |
| 4748 |
<xccdf:description>The system login banner text should be: "<xccdf:sub idref="xccdf_cdf_value_var-2.3.7"/>"</xccdf:description> |
| 4749 |
<xccdf:ident system="http://cce.mitre.org">CCE-4060-0</xccdf:ident> |
| 4750 |
<xccdf:fixtext>Take value of DOD_text and put it in /etc/issue</xccdf:fixtext> |
| 4751 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4752 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20102" value-id="xccdf_cdf_value_var-2.3.7"/> |
| 4753 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20102"/> |
| 4754 |
|
| 4755 |
</xccdf:check> |
| 4756 |
</xccdf:Rule> |
| 4757 |
</xccdf:Group> |
| 4758 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.3.7.2"> |
| 4759 |
<xccdf:title xml:lang="en">Implement a GUI Warning Banner</xccdf:title> |
| 4760 |
<xccdf:description xml:lang="en"> |
| 4761 |
In the default graphical environment, users logging directly |
| 4762 |
into the system are greeted with a login screen provided by the GNOME display manager. |
| 4763 |
The warning banner should be displayed in this graphical environment for these |
| 4764 |
users.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4765 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4766 |
The files for the default RHEL theme can be found in |
| 4767 |
/usr/share/gdm/themes/RHEL. Add the following sample block of XML to |
| 4768 |
/usr/share/gdm/themes/RHEL/RHEL.xml after the first two "pixmap" |
| 4769 |
entries:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4770 |
<xhtml:pre xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4771 |
<item type="rect"> |
| 4772 |
<pos anchor="n" x="50%" y="10" width="box" height="box"/> |
| 4773 |
<box> |
| 4774 |
<item type="label"> |
| 4775 |
<normal font="Sans 14" color="#ffffff"/> |
| 4776 |
<text>Insert the text of your warning banner here.</text> |
| 4777 |
</item> |
| 4778 |
</box> |
| 4779 |
</item> |
| 4780 |
</xhtml:pre> |
| 4781 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4782 |
The |
| 4783 |
full syntax that GDM theme files expect is documented elsewhere, but the above XML will |
| 4784 |
create a text box centered at the top of the screen. The font, text color, and exact |
| 4785 |
positioning can all be easily modified by editing the appropriate values. The latest |
| 4786 |
current GDM theme manual can be found at http://www.gnome.org/ |
| 4787 |
projects/gdm/docs/thememanual.html. |
| 4788 |
</xccdf:description> |
| 4789 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.3.7.2.a" selected="false" severity="medium" weight="10.0"> |
| 4790 |
<xccdf:title>Implement a GUI Warning Banner</xccdf:title> |
| 4791 |
<xccdf:description>The direct gnome login warning banner text should be: "<xccdf:sub idref="xccdf_cdf_value_var-2.3.7"/>"</xccdf:description> |
| 4792 |
<xccdf:ident system="http://cce.mitre.org">CCE-4188-9</xccdf:ident> |
| 4793 |
<xccdf:fixtext>(1) via RHEL.xml</xccdf:fixtext> |
| 4794 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4795 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20102" value-id="xccdf_cdf_value_var-2.3.7"/> |
| 4796 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20103"/> |
| 4797 |
|
| 4798 |
</xccdf:check> |
| 4799 |
</xccdf:Rule> |
| 4800 |
</xccdf:Group> |
| 4801 |
</xccdf:Group> |
| 4802 |
</xccdf:Group> |
| 4803 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4"> |
| 4804 |
<xccdf:title xml:lang="en">SELinux</xccdf:title> |
| 4805 |
<xccdf:description xml:lang="en"> |
| 4806 |
SELinux is a feature of the Linux kernel which can be used to guard |
| 4807 |
against misconfigured or compromised programs. SELinux enforces the idea that programs |
| 4808 |
should be limited in what files they can access and what actions they can take. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4809 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4810 |
The default |
| 4811 |
SELinux policy, as configured on RHEL5, has been sufficiently developed and debugged that it |
| 4812 |
should be usable on almost any Red Hat machine with minimal configuration and a small amount |
| 4813 |
of system administrator training. This policy prevents system services — including most of |
| 4814 |
the common network-visible services such as mail servers, ftp servers, and DNS servers — |
| 4815 |
from accessing files which those services have no valid reason to access. This action alone |
| 4816 |
prevents a huge amount of possible damage from network attacks against services, from |
| 4817 |
trojaned software, and so forth. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4818 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4819 |
This guide recommends that SELinux be enabled using the |
| 4820 |
default (targeted) policy on every Red Hat system, unless that system has requirements which |
| 4821 |
make a stronger policy appropriate.</xccdf:description> |
| 4822 |
<xccdf:reference>Frank Mayer, K. M., and Caplan, D. SELinux by Example: Using Security Enhanced Linux</xccdf:reference> |
| 4823 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.1"> |
| 4824 |
<xccdf:title xml:lang="en">How SELinux Works</xccdf:title> |
| 4825 |
<xccdf:description xml:lang="en"> |
| 4826 |
In the traditional Linux/Unix security model, known as |
| 4827 |
Discretionary Access Control (DAC), processes run under a user and group identity, and |
| 4828 |
enjoy that user and group's access rights to all files and other objects on the system. |
| 4829 |
This system brings with it a number of security problems, most notably: that processes |
| 4830 |
frequently do not need and should not have the full rights of the user who ran them; that |
| 4831 |
user and group access rights are not very granular, and may require administrators to |
| 4832 |
allow too much access in order to allow the access that is needed; that the Unix |
| 4833 |
filesystem contains many resources (such as temporary directories and world-readable |
| 4834 |
files) which are accessible to users who have no legitimate reason to access them; and |
| 4835 |
that legitimate users can easily provide open access to their own resources through |
| 4836 |
confusion or carelessness. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4837 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4838 |
SELinux provides a Mandatory Access Control (MAC) system that |
| 4839 |
greatly augments the DAC model. Under SELinux, every process and every object (e.g. file, |
| 4840 |
socket, pipe) on the system is given a security context, a label which include detailed |
| 4841 |
type information about the object. The kernel allows processes to access objects only if |
| 4842 |
that access is explicitly allowed by the policy in effect. The policy defines transitions, |
| 4843 |
so that a user can be allowed to run software, but the software can run under a different |
| 4844 |
context than the user's default. This automatically limits the damage that the software |
| 4845 |
can do to files accessible by the calling user — the user does not need to take any action |
| 4846 |
to gain this benefit. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4847 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4848 |
For an action to occur, both the traditional DAC permissions must be |
| 4849 |
satisifed as well as SELinux's MAC rules. If either do not permit the action, then it will |
| 4850 |
not be allowed. In this way, SELinux rules can only make a system's permissions more |
| 4851 |
restrictive and secure. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4852 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4853 |
SELinux requires a complex policy in order to allow all the |
| 4854 |
actions required of a system under normal operation. Three such policies have been |
| 4855 |
designed for use with RHEL5, and are included with the system. In increasing order of |
| 4856 |
power and complexity, they are: targeted, strict, and mls. The targeted SELinux policy |
| 4857 |
consists mostly of Type Enforcement (TE) rules, and a small number of Role-Based Access |
| 4858 |
Control (RBAC) rules. It restricts the actions of many types of programs, but leaves |
| 4859 |
interactive users largely unaffected. The strict policy also uses TE and RBAC rules, but |
| 4860 |
on more programs and more aggressively. The mls policy implements Multi-Level Security |
| 4861 |
(MLS), which introduces even more kinds of labels — sensitivity and category — and rules |
| 4862 |
that govern access based on these. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4863 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4864 |
The remainder of this section provides guidance for the |
| 4865 |
configuration of the targeted policy and the administration of systems under this policy. |
| 4866 |
Some pointers will be provided for readers who are interested in further strengthening |
| 4867 |
their systems by using one of the stricter policies provided with RHEL5 or in writing |
| 4868 |
their own policy.</xccdf:description> |
| 4869 |
</xccdf:Group> |
| 4870 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.2"> |
| 4871 |
<xccdf:title xml:lang="en">Enable SELinux</xccdf:title> |
| 4872 |
<xccdf:description xml:lang="en"> |
| 4873 |
Edit the file /etc/selinux/config. Add or correct the following |
| 4874 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4875 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4876 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">SELINUX=enforcing <xhtml:br/> |
| 4877 |
SELINUXTYPE=targeted <xhtml:br/></xhtml:code> |
| 4878 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4879 |
Edit the file /etc/grub.conf. Ensure that |
| 4880 |
the following arguments DO NOT appear on any kernel command line in the file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4881 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4882 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">selinux=0 <xhtml:br/> |
| 4883 |
enforcing=0 <xhtml:br/></xhtml:code> |
| 4884 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4885 |
The directive SELINUX=enforcing enables SELinux at boot time. If SELinux is |
| 4886 |
causing a lot of problems or preventing the system from booting, it is possible to boot |
| 4887 |
into the warning-only mode SELINUX=permissive for debugging purposes. Make certain to |
| 4888 |
change the mode back to enforcing after debugging, set the filesystems to be relabelled |
| 4889 |
for consistency using the command touch /.autorelabel, and reboot. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4890 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4891 |
However, the RHEL5 |
| 4892 |
default SELinux configuration should be sufficiently reasonable that most systems will |
| 4893 |
boot without serious problems. Some applications that require deep or unusual system |
| 4894 |
privileges, such as virtual machine software, may not be compatible with SELinux in its |
| 4895 |
default configuration. However, this should be uncommon, and SELinux's application support |
| 4896 |
continues to improve. In other cases, SELinux may reveal unusual or insecure program |
| 4897 |
behavior by design. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4898 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4899 |
The directive SELINUXTYPE=targeted configures SELinux to use the |
| 4900 |
default targeted policy. See Section 2.4.6 if a stricter policy is appropriate for your |
| 4901 |
site. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4902 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4903 |
The SELinux boot mode specified in /etc/selinux/config can be overridden by |
| 4904 |
command-line arguments passed to the kernel. It is necessary to check grub.conf to ensure |
| 4905 |
that this has not been done and to protect the bootloader as described in Section 2.3.5.2.</xccdf:description> |
| 4906 |
<xccdf:Value id="xccdf_cdf_value_var-2.4.2.c" operator="equals" type="string"> |
| 4907 |
<xccdf:title>SELinux state</xccdf:title> |
| 4908 |
<xccdf:description xml:lang="en"> |
| 4909 |
enforcing - SELinux security policy is enforced. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4910 |
permissive - SELinux prints warnings instead of enforcing.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4911 |
disabled - SELinux is fully disabled. |
| 4912 |
</xccdf:description> |
| 4913 |
<xccdf:question xml:lang="en">Set the SELinux state</xccdf:question> |
| 4914 |
<xccdf:value>enforcing</xccdf:value> |
| 4915 |
<xccdf:value selector="enforcing">enforcing</xccdf:value> |
| 4916 |
<xccdf:value selector="permissive">permissive</xccdf:value> |
| 4917 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 4918 |
<xccdf:match>enforcing|permissive|disabled</xccdf:match> |
| 4919 |
<xccdf:choices mustMatch="1"> |
| 4920 |
<xccdf:choice>enforcing</xccdf:choice> |
| 4921 |
<xccdf:choice>permissive</xccdf:choice> |
| 4922 |
<xccdf:choice>disabled</xccdf:choice> |
| 4923 |
</xccdf:choices> |
| 4924 |
</xccdf:Value> |
| 4925 |
<xccdf:Value id="xccdf_cdf_value_var-2.4.2.d" operator="equals" type="string"> |
| 4926 |
<xccdf:title>SELinux policy</xccdf:title> |
| 4927 |
<xccdf:description xml:lang="en"> |
| 4928 |
Type of policy in use. Possible values are:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4929 |
targeted - Only targeted network daemons are protected.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4930 |
strict - Full SELinux protection.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4931 |
mls - Multiple levels of security</xccdf:description> |
| 4932 |
<xccdf:question xml:lang="en">Set the SELinux policy</xccdf:question> |
| 4933 |
<xccdf:value>targeted</xccdf:value> |
| 4934 |
<xccdf:value selector="targeted">targeted</xccdf:value> |
| 4935 |
<xccdf:value selector="strict">strict</xccdf:value> |
| 4936 |
<xccdf:value selector="mls">mls</xccdf:value> |
| 4937 |
<xccdf:match>targeted|strict|mls</xccdf:match> |
| 4938 |
<xccdf:choices mustMatch="1"> |
| 4939 |
<xccdf:choice>targeted</xccdf:choice> |
| 4940 |
<xccdf:choice>strict</xccdf:choice> |
| 4941 |
<xccdf:choice>mls</xccdf:choice> |
| 4942 |
</xccdf:choices> |
| 4943 |
</xccdf:Value> |
| 4944 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.2.1"> |
| 4945 |
<xccdf:title xml:lang="en">Ensure SELinux is Properly Enabled</xccdf:title> |
| 4946 |
<xccdf:description xml:lang="en"> |
| 4947 |
Run the command:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4948 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4949 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ /usr/sbin/sestatus<xhtml:br/></xhtml:code> |
| 4950 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4951 |
If the system is properly configured, the output should indicate:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 4952 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 4953 |
<xhtml:li>SELinux status: enabled</xhtml:li> |
| 4954 |
<xhtml:li>Current mode: enforcing</xhtml:li> |
| 4955 |
<xhtml:li>Mode from config file: enforcing</xhtml:li> |
| 4956 |
<xhtml:li>Policy from config file: targeted</xhtml:li> |
| 4957 |
</xhtml:ul></xccdf:description> |
| 4958 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 4959 |
<xccdf:title>Ensure SELinux is Properly Enabled</xccdf:title> |
| 4960 |
<xccdf:description>Check output of /usr/sbin/sestatus</xccdf:description> |
| 4961 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4962 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201035"/> |
| 4963 |
</xccdf:check> |
| 4964 |
</xccdf:Rule> |
| 4965 |
</xccdf:Group> |
| 4966 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.2.a" selected="false" severity="medium" weight="10.0"> |
| 4967 |
<xccdf:title>Enable SELinux in /etc/grub.conf</xccdf:title> |
| 4968 |
<xccdf:description>SELinux should NOT be disabled in /etc/grub.conf. Check that selinux=0 is not found</xccdf:description> |
| 4969 |
<xccdf:ident system="http://cce.mitre.org">CCE-3977-6</xccdf:ident> |
| 4970 |
<xccdf:fixtext>Remove offending line from /etc/grub.conf</xccdf:fixtext> |
| 4971 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4972 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20104"/> |
| 4973 |
</xccdf:check> |
| 4974 |
</xccdf:Rule> |
| 4975 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.2.b" selected="false" severity="medium" weight="10.0"> |
| 4976 |
<xccdf:title>Enable SELinux enforcement in /etc/grub.conf</xccdf:title> |
| 4977 |
<xccdf:description>SELinux enforcement should NOT be disabled in /etc/grub.conf. Check that enforcing=0 is not found.</xccdf:description> |
| 4978 |
<xccdf:fixtext>Remove offending line from /etc/grub.conf</xccdf:fixtext> |
| 4979 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4980 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20105"/> |
| 4981 |
</xccdf:check> |
| 4982 |
</xccdf:Rule> |
| 4983 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.2.c" selected="false" severity="medium" weight="10.0"> |
| 4984 |
<xccdf:title>Set the SELinux state</xccdf:title> |
| 4985 |
<xccdf:description>The SELinux state should be: <xccdf:sub idref="xccdf_cdf_value_var-2.4.2.c"/></xccdf:description> |
| 4986 |
<xccdf:fixtext>Edit /etc/selinux/config</xccdf:fixtext> |
| 4987 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4988 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20106" value-id="xccdf_cdf_value_var-2.4.2.c"/> |
| 4989 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20106"/> |
| 4990 |
|
| 4991 |
</xccdf:check> |
| 4992 |
</xccdf:Rule> |
| 4993 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.2.d" selected="false" severity="medium" weight="10.0"> |
| 4994 |
<xccdf:title>Set the SELinux policy</xccdf:title> |
| 4995 |
<xccdf:description>The SELinux policy should be set appropriately.</xccdf:description> |
| 4996 |
<xccdf:ident system="http://cce.mitre.org">CCE-3624-4</xccdf:ident> |
| 4997 |
<xccdf:fixtext>Edit /etc/selinux/config</xccdf:fixtext> |
| 4998 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 4999 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20107" value-id="xccdf_cdf_value_var-2.4.2.d"/> |
| 5000 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20107"/> |
| 5001 |
</xccdf:check> |
| 5002 |
</xccdf:Rule> |
| 5003 |
</xccdf:Group> |
| 5004 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.3"> |
| 5005 |
<xccdf:title xml:lang="en">Disable Unnecessary SELinux Daemons</xccdf:title> |
| 5006 |
<xccdf:description xml:lang="en"> |
| 5007 |
Several daemons are installed by default as part of the RHEL5 |
| 5008 |
SELinux support mechanism. These daemons may improve the system's ability to enforce |
| 5009 |
SELinux policy in a useful fashion, but may also represent unnecessary code running on the |
| 5010 |
machine, increasing system risk. If these daemons are not needed on your system, they |
| 5011 |
should be disabled.</xccdf:description> |
| 5012 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.3.1"> |
| 5013 |
<xccdf:title xml:lang="en">Disable and Remove SETroubleshoot if Possible</xccdf:title> |
| 5014 |
<xccdf:description xml:lang="en"> |
| 5015 |
Is there a mission-critical reason to allow users to view |
| 5016 |
SELinux denial information using the sealert GUI? If not, disable the service and remove |
| 5017 |
the RPM: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5018 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5019 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig setroubleshoot off <xhtml:br/> |
| 5020 |
# yum erase setroubleshoot <xhtml:br/></xhtml:code> |
| 5021 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5022 |
The setroubleshoot |
| 5023 |
service is a facility for notifying the desktop user of SELinux denials in a |
| 5024 |
user-friendly fashion. SELinux errors may provide important information about intrusion |
| 5025 |
attempts in progress, or may give information about SELinux configuration problems which |
| 5026 |
are preventing correct system operation. In order to maintain a secure and usable |
| 5027 |
SELinux installation, error logging and notification is necessary. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5028 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5029 |
However, |
| 5030 |
setroubleshoot is a service which has complex functionality, which runs a daemon and |
| 5031 |
uses IPC to distribute information which may be sensitive, or even to allow users to |
| 5032 |
modify SELinux settings, and which does not yet implement real authentication |
| 5033 |
mechanisms. This guide recommends disabling setroubleshoot and using the kernel audit |
| 5034 |
functionality to monitor SELinux's behavior. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5035 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5036 |
In addition, since setroubleshoot |
| 5037 |
automatically runs client-side code whenever a denial occurs, regardless of whether the |
| 5038 |
setroubleshootd daemon is running, it is recommended that the program be removed |
| 5039 |
entirely unless it is needed.</xccdf:description> |
| 5040 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.3.1.a" selected="false" weight="10.0"> |
| 5041 |
<xccdf:title>Remove SETroubleshoot if Possible</xccdf:title> |
| 5042 |
<xccdf:description>The setroubleshoot package should be uninstalled.</xccdf:description> |
| 5043 |
<xccdf:ident system="http://cce.mitre.org">CCE-4148-3</xccdf:ident> |
| 5044 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 5045 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5046 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20108"/> |
| 5047 |
</xccdf:check> |
| 5048 |
</xccdf:Rule> |
| 5049 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.3.1.b" selected="false" severity="low" weight="10.0"> |
| 5050 |
<xccdf:title>Disable SETroubleshoot if Possible</xccdf:title> |
| 5051 |
<xccdf:description>The setroubleshoot service should be disabled.</xccdf:description> |
| 5052 |
<xccdf:ident system="http://cce.mitre.org">CCE-4254-9</xccdf:ident> |
| 5053 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 5054 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5055 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20109"/> |
| 5056 |
</xccdf:check> |
| 5057 |
</xccdf:Rule> |
| 5058 |
</xccdf:Group> |
| 5059 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.3.2"> |
| 5060 |
<xccdf:title xml:lang="en">Disable MCS Translation Service (mcstrans) if Possible</xccdf:title> |
| 5061 |
<xccdf:description xml:lang="en"> |
| 5062 |
Unless there is some overriding need for the convenience of |
| 5063 |
category label translation, disable the MCS translation service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5064 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5065 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig mcstrans off <xhtml:br/></xhtml:code> |
| 5066 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5067 |
The mcstransd daemon provides the category label translation information defined in |
| 5068 |
/etc/selinux/targeted/ setrans.conf to client processes which request this information.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5069 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5070 |
Category labelling is unlikely to be used except in sites with special requirements. |
| 5071 |
Therefore, it should be disabled in order to reduce the amount of potentially vulnerable |
| 5072 |
code running on the system. See Section 2.4.6 for more information about systems which |
| 5073 |
use category labelling.</xccdf:description> |
| 5074 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.3.2.a" selected="false" severity="low" weight="10.0"> |
| 5075 |
<xccdf:title>Disable MCS Translation Service (mcstrans) if Possible</xccdf:title> |
| 5076 |
<xccdf:description>The mcstrans service should be disabled.</xccdf:description> |
| 5077 |
<xccdf:ident system="http://cce.mitre.org">CCE-3668-1</xccdf:ident> |
| 5078 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 5079 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5080 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20110"/> |
| 5081 |
</xccdf:check> |
| 5082 |
</xccdf:Rule> |
| 5083 |
</xccdf:Group> |
| 5084 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.3.3"> |
| 5085 |
<xccdf:title xml:lang="en">Restorecon Service (restorecond)</xccdf:title> |
| 5086 |
<xccdf:description xml:lang="en"> |
| 5087 |
The restorecond daemon monitors a list of files which are |
| 5088 |
frequently created or modified on running systems, and whose SELinux contexts are not |
| 5089 |
set correctly. It looks for creation events related to files listed in /etc/ |
| 5090 |
selinux/restorecond.conf, and sets the contexts of those files when they are discovered.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5091 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5092 |
The restorecond program is fairly simple, so it brings low risk, but, in its default |
| 5093 |
configuration, does not add much value to a system. An automated program such as |
| 5094 |
restorecond may be used to monitor problematic files for context problems, or system |
| 5095 |
administrators may be trained to check file contexts of newly-created files using the |
| 5096 |
command ls -lZ, and to repair contexts manually using the restorecon command. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5097 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5098 |
This guide |
| 5099 |
makes no recommendation either for or against the use of restorecond.</xccdf:description> |
| 5100 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.3.3.a" selected="false" severity="low" weight="10.0"> |
| 5101 |
<xccdf:title>Disable restorecon Service (restorecond)</xccdf:title> |
| 5102 |
<xccdf:description>The restorecond service should be disabled.</xccdf:description> |
| 5103 |
<xccdf:ident system="http://cce.mitre.org">CCE-4129-3</xccdf:ident> |
| 5104 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 5105 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5106 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20111"/> |
| 5107 |
</xccdf:check> |
| 5108 |
</xccdf:Rule> |
| 5109 |
</xccdf:Group> |
| 5110 |
</xccdf:Group> |
| 5111 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.4"> |
| 5112 |
<xccdf:title xml:lang="en">Check for Unconfined Daemons</xccdf:title> |
| 5113 |
<xccdf:description xml:lang="en"> |
| 5114 |
Daemons that SELinux policy does not know about will inherit the |
| 5115 |
context of the parent process. Because daemons are launched during startup and descend |
| 5116 |
from the init process, they inherit the initrc t context. This is a problem because it may |
| 5117 |
cause AVC denials, or it could allow privileges that the daemon does not require. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5118 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5119 |
To check for unconfined daemons, run the following command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5120 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5121 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ps -eZ | egrep "initrc" | egrep -vw "tr|ps|egrep|bash|awk" | tr ':' ' ' | awk '{ print $NF }'<xhtml:br/></xhtml:code> |
| 5122 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5123 |
It should produce no output in a well-configured system.</xccdf:description> |
| 5124 |
</xccdf:Group> |
| 5125 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.5"> |
| 5126 |
<xccdf:title xml:lang="en">Check for Unconfined Daemons</xccdf:title> |
| 5127 |
<xccdf:description xml:lang="en"> |
| 5128 |
Device files are used for communication with important system |
| 5129 |
resources. SELinux contexts should exist for these. If a device file is not labeled, then |
| 5130 |
misconfiguration is likely.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5131 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5132 |
To check for unlabeled device files, run the following command:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5133 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -Z | grep unlabeled_t<xhtml:br/></xhtml:code> |
| 5134 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5135 |
It should produce no output in a well-configured system.</xccdf:description> |
| 5136 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.4.5.a" selected="false" severity="medium" weight="10.0"> |
| 5137 |
<xccdf:title>Check for Unconfined Daemons</xccdf:title> |
| 5138 |
<xccdf:description>Check for device file that is not labeled.</xccdf:description> |
| 5139 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 5140 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5141 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201115"/> |
| 5142 |
</xccdf:check> |
| 5143 |
</xccdf:Rule> |
| 5144 |
</xccdf:Group> |
| 5145 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.6"> |
| 5146 |
<xccdf:title xml:lang="en">Debugging SELinux Policy Errors</xccdf:title> |
| 5147 |
<xccdf:description xml:lang="en"> |
| 5148 |
SELinux's default policies have improved significantly over time, |
| 5149 |
and most systems should have few problems using the targeted SELinux policy. However, |
| 5150 |
policy problems may still occasionally prevent accesses which should be allowed. This is |
| 5151 |
especially true if your site runs any custom or heavily modified applications. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5152 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5153 |
This section gives some brief guidance on discovering and repairing SELinux-related access |
| 5154 |
problems. Guidance given here is necessarily incomplete, but should provide a starting |
| 5155 |
point for debugging. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5156 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5157 |
If you suspect that a permission error or other failure may be caused |
| 5158 |
by SELinux (and are certain that misconfiguration of the traditional Unix permissions are |
| 5159 |
not the cause of the problem), search the audit logs for AVC events: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5160 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5161 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ausearch -m AVC,USER_AVC -sv no <xhtml:br/></xhtml:code> |
| 5162 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5163 |
The output of this command will be a set of events. The timestamp, |
| 5164 |
along with the comm and pid fields, should indicate which line describes the problem. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5165 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5166 |
Look |
| 5167 |
up the context under which the process is running. Assuming the process ID is PID , find |
| 5168 |
the context by running: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5169 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5170 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ps -p PID -Z <xhtml:br/></xhtml:code> |
| 5171 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5172 |
The AVC denial message should identify the |
| 5173 |
offending file or directory. The name field should contain the filename (not the full |
| 5174 |
pathname by default), and the ino field can be used to search by inode, if necessary. |
| 5175 |
Assuming the file is FILE , find its SELinux context: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5176 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5177 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ls -Z FILE <xhtml:br/></xhtml:code> |
| 5178 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5179 |
An administrator should |
| 5180 |
suspect an SELinux misconfiguration whenever a program gets a 'permission denied' error |
| 5181 |
but the standard Unix permissions appear to be correct, or a program fails mysteriously on |
| 5182 |
a task which seems to involve file access or network communication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5183 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5184 |
As described in |
| 5185 |
Section 2.4.1, SELinux augments each process with a context providing detailed type |
| 5186 |
information about that process. The contexts under which processes run may be referred to |
| 5187 |
as subject contexts. Similarly, each filesystem object is given a context. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5188 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5189 |
The targeted |
| 5190 |
policy consists of a set of rules, each of which allows a subject type to perform some |
| 5191 |
operation on a given object type. The kernel stores information about these access |
| 5192 |
decisions in an structure known as an Access Vector Cache (AVC), so authorization |
| 5193 |
decisions made by the system are audited with the type AVC. It is also possible for |
| 5194 |
userspace modules to implement their own policies based on SELinux, and these decisions |
| 5195 |
are audited with the type USER_AVC. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5196 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5197 |
AVC denials are logged by the kernel audit facility |
| 5198 |
(see Section 2.6.2 for configuration guidance on this subsystem) and may also be visible |
| 5199 |
via setroubleshoot. This guide recommends the use of the audit userspace utilities to find |
| 5200 |
AVC errors. It is possible to manually locate these errors by looking in the file |
| 5201 |
/var/log/audit/audit.log or in /var/log/messages (depending on the syslog configuration in |
| 5202 |
effect), but the ausearch tool allows finegrained searching on audit event types, which |
| 5203 |
may be necessary if system call auditing is enabled as well. The command line above tells |
| 5204 |
ausearch to look for kernel or userspace AVC messages (-m AVC,USER AVC) where the access |
| 5205 |
attempt did not succeed (-sv no). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5206 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5207 |
If an AVC denial occurs when it should not have, the |
| 5208 |
problem is generally one of the following: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5209 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 5210 |
<xhtml:li>The program is running with the wrong subject |
| 5211 |
context. This could happen as a result of an incorrect context on the program's executable |
| 5212 |
file, which could happen if 3rd party software is installed and not given appropriate |
| 5213 |
SELinux file contexts. </xhtml:li> |
| 5214 |
<xhtml:li>The file has the wrong object context because the current file's |
| 5215 |
context does not match the specification. This can occur when files are created or |
| 5216 |
modified in certain ways. It is not atypical for configuration files to get the wrong |
| 5217 |
contexts after a system configuration change performed by an administrator. To repair the |
| 5218 |
file, use the command: <xhtml:br/> |
| 5219 |
<xhtml:br/> |
| 5220 |
<xhtml:code># restorecon -v FILE <xhtml:br/></xhtml:code> |
| 5221 |
<xhtml:br/> |
| 5222 |
This should produce output indicating that the |
| 5223 |
file's context has been changed. The /usr/bin/chcon program can be used to manually change |
| 5224 |
a file's context, but this is problematic because the change will not persist if it does |
| 5225 |
not agree with the policy-defined contexts applied by restorecon.</xhtml:li> |
| 5226 |
<xhtml:li>The file has the wrong |
| 5227 |
object context because the specification is either incorrect or does not match the way the |
| 5228 |
file is being used on this system. In this case, it will be necessary to change the system |
| 5229 |
file contexts. <xhtml:br/> |
| 5230 |
<xhtml:br/> |
| 5231 |
Run the system-config-selinux tool, and go to the 'File Labeling' menu. |
| 5232 |
This will give a list of files and wildcards corresponding to file labelling rules on the |
| 5233 |
system. Add a rule which maps the file in question to the desired context. As an |
| 5234 |
alternative, file contexts can be modified from the command line using the semanage(8) |
| 5235 |
tool.</xhtml:li> |
| 5236 |
<xhtml:li>The program and file have the correct contexts, but the policy should allow some |
| 5237 |
operation between those two contexts which is currently not allowed. In this case, it will |
| 5238 |
be necessary to modify the SELinux policy. <xhtml:br/> |
| 5239 |
<xhtml:br/> |
| 5240 |
Run the system-config-selinux tool, and go to |
| 5241 |
the 'Boolean' menu. If your configuration is supported, but is not the Red Hat default, |
| 5242 |
then there will be a boolean allowing real-time modification of the SELinux policy to fix |
| 5243 |
the problem. Browse through the items in this menu, looking for one which is related to |
| 5244 |
the service which is not working. As an alternative, SELinux booleans can be modified from |
| 5245 |
the command line using the getsebool(8) and setsebool(8) tools. <xhtml:br/> |
| 5246 |
<xhtml:br/> |
| 5247 |
If there is no boolean, it |
| 5248 |
will be necessary to create and load a policy module. A simple way to build a policy |
| 5249 |
module is to use the audit2allow tool. This tool can take input in the format of AVC |
| 5250 |
denial messages, and generate syntactically correct Type Enforcement rules which would be |
| 5251 |
sufficient to prevent those denials. For example, to generate and display rules which |
| 5252 |
would allow all kernel denials seen in the past five minutes, run: <xhtml:br/> |
| 5253 |
<xhtml:br/> |
| 5254 |
<xhtml:code># ausearch -m AVC -sv no -ts recent | audit2allow <xhtml:br/></xhtml:code> |
| 5255 |
<xhtml:br/> |
| 5256 |
It is possible to use audit2allow to directly create a module |
| 5257 |
package suitable for loading into the kernel policy. To do this, invoke audit2allow with |
| 5258 |
the -M flag: <xhtml:br/> |
| 5259 |
<xhtml:br/> |
| 5260 |
<xhtml:code># ausearch -m AVC -sv no -ts recent | audit2allow -M localmodule <xhtml:br/></xhtml:code> |
| 5261 |
<xhtml:br/> |
| 5262 |
If this is |
| 5263 |
successful, several lines of output should appear. Review the generated TE rules in the |
| 5264 |
file localmodule .te and ensure that they express what you wish to allow. <xhtml:br/> |
| 5265 |
<xhtml:br/> |
| 5266 |
The file |
| 5267 |
localmodule .pp should also have been created. This file is a policy module package that |
| 5268 |
can be loaded into the kernel. To do so, use system-config-selinux, go to the 'Policy |
| 5269 |
Module' menu and use the 'Add' button to enable your module package in SELinux, or load it |
| 5270 |
from the command line using semodule(8): <xhtml:br/> |
| 5271 |
<xhtml:br/> |
| 5272 |
<xhtml:code># semodule -i localmodule .pp <xhtml:br/></xhtml:code> |
| 5273 |
<xhtml:br/> |
| 5274 |
Section 45.2 of [9] covers this procedure in detail.</xhtml:li> |
| 5275 |
</xhtml:ul></xccdf:description> |
| 5276 |
</xccdf:Group> |
| 5277 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.7"> |
| 5278 |
<xccdf:title xml:lang="en">Further Strengthening</xccdf:title> |
| 5279 |
<xccdf:description xml:lang="en"> |
| 5280 |
The recommendations up to this point have discussed how to |
| 5281 |
configure and maintain a system under the default configuration of the targeted policy, |
| 5282 |
which constrains only the actions of daemons and system software. This guide strongly |
| 5283 |
recommends that any site which is not currently using SELinux at all transition to the |
| 5284 |
targeted policy, to gain the substantial security benefits provided by that policy.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5285 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5286 |
However, the default policy provides only a subset of the full security gains available |
| 5287 |
from using SELinux. In particular, the SELinux policy is also capable of constraining the |
| 5288 |
actions of interactive users, of providing compartmented access by sensitivity level (MLS) |
| 5289 |
and/or category (MCS), and of restricting certain types of system actions using booleans |
| 5290 |
beyond the RHEL5 defaults. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5291 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5292 |
This section introduces other uses of SELinux which may be |
| 5293 |
possible, and provides links to some outside resources about their use. Detailed |
| 5294 |
description of how to implement these steps is beyond the scope of this guide.</xccdf:description> |
| 5295 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.7.1"> |
| 5296 |
<xccdf:title xml:lang="en">Strengthen the Default SELinux Boolean Configuration</xccdf:title> |
| 5297 |
<xccdf:description xml:lang="en"> |
| 5298 |
SELinux booleans are used to enable or disable segments of |
| 5299 |
policy to comply with site policy. Booleans may apply to the entire system or to an |
| 5300 |
individual daemon. For instance, the boolean allow execstack, if enabled, allows |
| 5301 |
programs to make part of their stack memory region executable. This would apply to all |
| 5302 |
programs on the system. The boolean ftp home dir allows ftpd processes to access user |
| 5303 |
home directories, and applies only to daemons which implement FTP. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5304 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5305 |
The command <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5306 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5307 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ getsebool -a <xhtml:br/></xhtml:code> |
| 5308 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5309 |
lists the values of all SELinux booleans on the system. Section 2.4.5 |
| 5310 |
discussed loosening boolean values in order to debug functionality problems which occur |
| 5311 |
under more restrictive defaults. It is also useful to examine and strengthen the boolean |
| 5312 |
settings, to disable functionality which is not required by legitimate programs on your |
| 5313 |
system, but which might be symptomatic of an attack. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5314 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5315 |
See the manpages booleans(8), |
| 5316 |
getsebool(8), and setsebool(8) for general information about booleans. There are also |
| 5317 |
manual pages for several subsystems which discuss the use of SELinux with those systems. |
| 5318 |
Examples include ftpd selinux(8), httpd selinux(8), and nfs selinux(8). Another good |
| 5319 |
reference is the html documentation distributed with the selinux-policy RPM. This |
| 5320 |
documentation is stored under <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5321 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5322 |
/usr/share/doc/selinux-policy-version/html/ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5323 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5324 |
The pages |
| 5325 |
global tunables.html and global booleans.html may be useful when examining booleans.</xccdf:description> |
| 5326 |
</xccdf:Group> |
| 5327 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.7.2"> |
| 5328 |
<xccdf:title xml:lang="en">Use a Stronger Policy</xccdf:title> |
| 5329 |
<xccdf:description xml:lang="en"> |
| 5330 |
Using a stronger policy can greatly enhance security, but will |
| 5331 |
generally require customization to be compatible with the particular system's purpose, |
| 5332 |
and this may be costly or time consuming. Under the targeted policy, interactive |
| 5333 |
processes are given the type unconfined t, so interactive users are not constrained by |
| 5334 |
SELinux even if they attempt to take strange or malicious actions. The first alternative |
| 5335 |
policy available with RHEL5's SELinux distribution, called strict, extends the |
| 5336 |
protections offered by the default policy from daemons and system processes to all |
| 5337 |
processes. To use the strict policy, first ensure that the policy module is installed: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5338 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5339 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install selinux-policy-strict <xhtml:br/></xhtml:code> |
| 5340 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5341 |
Then edit /etc/selinux/config and correct the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5342 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5343 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">SELINUXTYPE=strict <xhtml:br/></xhtml:code> |
| 5344 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5345 |
The mls policy type can be used to enforce sensitivity or category |
| 5346 |
labelling, and requires site-specific configuration of these labels in order to be |
| 5347 |
useful. To use this policy, install the appropriate policy module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5348 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5349 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install selinux-policy-mls <xhtml:br/></xhtml:code> |
| 5350 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5351 |
Then edit /etc/selinux/config and correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5352 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5353 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">SELINUXTYPE=mls</xhtml:code></xccdf:description> |
| 5354 |
<xccdf:warning xml:lang="en"> |
| 5355 |
Note: Switching between policies typically requires the entire disk to be relabelled, so |
| 5356 |
that files get the appropriate SELinux contexts under the new policy. Boot with the |
| 5357 |
additional grub command-line options <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5358 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5359 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">enforcing=0 single autorelabel </xhtml:code><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5360 |
to relabel the disk in single-user mode, then reboot normally.</xccdf:warning> |
| 5361 |
</xccdf:Group> |
| 5362 |
</xccdf:Group> |
| 5363 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.4.8"> |
| 5364 |
<xccdf:title xml:lang="en">SELinux References</xccdf:title> |
| 5365 |
<xccdf:description xml:lang="en"> |
| 5366 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 5367 |
<xhtml:li>NSA SELinux resources:<xhtml:br/> |
| 5368 |
<xhtml:ul> |
| 5369 |
<xhtml:li>Web page: http://www.nsa.gov/selinux/</xhtml:li> |
| 5370 |
<xhtml:li>Mailing list: [email protected] <xhtml:br/> |
| 5371 |
List information at: http://www.nsa.gov/selinux/info/list.cfm</xhtml:li> |
| 5372 |
</xhtml:ul> |
| 5373 |
</xhtml:li> |
| 5374 |
<xhtml:li>Fedora SELinux resources:<xhtml:br/> |
| 5375 |
<xhtml:ul> |
| 5376 |
<xhtml:li>FAQ: http://docs.fedoraproject.org/selinux-faq/</xhtml:li> |
| 5377 |
<xhtml:li>Wiki: http://fedoraproject.org/wiki/SELinux/</xhtml:li> |
| 5378 |
<xhtml:li>Mailing list: [email protected] <xhtml:br/> |
| 5379 |
List information at: |
| 5380 |
https://www.redhat.com/mailman/listinfo/fedora-selinux-list</xhtml:li> |
| 5381 |
</xhtml:ul> |
| 5382 |
</xhtml:li> |
| 5383 |
<xhtml:li>Chapters 43–45 of Red Hat Enterprise Linux 5: Deployment Guide [9]</xhtml:li> |
| 5384 |
<xhtml:li>The book SELinux by Example: Using Security Enhanced Linux [13]</xhtml:li> |
| 5385 |
</xhtml:ul> |
| 5386 |
</xccdf:description> |
| 5387 |
</xccdf:Group> |
| 5388 |
</xccdf:Group> |
| 5389 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5"> |
| 5390 |
<xccdf:title xml:lang="en">Network Configuration and Firewalls</xccdf:title> |
| 5391 |
<xccdf:description xml:lang="en"> |
| 5392 |
Most machines must be connected to a network of some sort, and this |
| 5393 |
brings with it the substantial risk of network attack. This section discusses the security |
| 5394 |
impact of decisions about networking which must be made when configuring a system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5395 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5396 |
This section also discusses firewalls, network access controls, and other network security |
| 5397 |
frameworks, which allow system-level rules to be written that can limit attackers' ability |
| 5398 |
to connect to your system. These rules can specify that network traffic should be allowed or |
| 5399 |
denied from certain IP addresses, hosts, and networks. The rules can also specify which of |
| 5400 |
the system's network services are available to particular hosts or networks.</xccdf:description> |
| 5401 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.1"> |
| 5402 |
<xccdf:title xml:lang="en">Kernel Parameters which Affect Networking</xccdf:title> |
| 5403 |
<xccdf:description xml:lang="en"> |
| 5404 |
The sysctl utility is used to set a number of parameters which |
| 5405 |
affect the operation of the Linux kernel. Several of these parameters are specific to |
| 5406 |
networking, and the configuration options in this section are recommended.</xccdf:description> |
| 5407 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.1.1"> |
| 5408 |
<xccdf:title xml:lang="en">Network Parameters for Hosts Only</xccdf:title> |
| 5409 |
<xccdf:description xml:lang="en"> |
| 5410 |
Is this system going to be used as a firewall or gateway to |
| 5411 |
pass IP traffic between different networks? <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5412 |
If not, edit the file /etc/sysctl.conf and add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5413 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5414 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">net.ipv4.ip_forward = 0 <xhtml:br/> |
| 5415 |
net.ipv4.conf.all.send_redirects = 0 <xhtml:br/> |
| 5416 |
net.ipv4.conf.default.send_redirects = 0 <xhtml:br/></xhtml:code> |
| 5417 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5418 |
These settings disable hosts from |
| 5419 |
performing network functionality which is only appropriate for routers.</xccdf:description> |
| 5420 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 5421 |
<xccdf:title>Disable net.ipv4.conf.default.send_redirects for Hosts Only</xccdf:title> |
| 5422 |
<xccdf:description>The default setting for sending ICMP redirects should be disabled for network interfaces.</xccdf:description> |
| 5423 |
<xccdf:ident system="http://cce.mitre.org">CCE-4151-7</xccdf:ident> |
| 5424 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.default.send_redirects</xccdf:fixtext> |
| 5425 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5426 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20112"/> |
| 5427 |
</xccdf:check> |
| 5428 |
</xccdf:Rule> |
| 5429 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.1.b" selected="false" severity="medium" weight="10.0"> |
| 5430 |
<xccdf:title>Disable net.ipv4.conf.all.send_redirects for Hosts Only</xccdf:title> |
| 5431 |
<xccdf:description>Sending ICMP redirects should be disabled for all interfaces.</xccdf:description> |
| 5432 |
<xccdf:ident system="http://cce.mitre.org">CCE-4155-8</xccdf:ident> |
| 5433 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.send_redirects</xccdf:fixtext> |
| 5434 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5435 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20113"/> |
| 5436 |
</xccdf:check> |
| 5437 |
</xccdf:Rule> |
| 5438 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.1.c" selected="false" severity="medium" weight="10.0"> |
| 5439 |
<xccdf:title>Disable net.ipv4.ip forward for Hosts Only</xccdf:title> |
| 5440 |
<xccdf:description>IP forwarding should be disabled.</xccdf:description> |
| 5441 |
<xccdf:ident system="http://cce.mitre.org">CCE-3561-8</xccdf:ident> |
| 5442 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.ip_forward</xccdf:fixtext> |
| 5443 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5444 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20114"/> |
| 5445 |
</xccdf:check> |
| 5446 |
</xccdf:Rule> |
| 5447 |
</xccdf:Group> |
| 5448 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.1.2"> |
| 5449 |
<xccdf:title xml:lang="en">Network Parameters for Hosts and Routers</xccdf:title> |
| 5450 |
<xccdf:description xml:lang="en"> |
| 5451 |
Edit the file /etc/sysctl.conf and add or correct the following |
| 5452 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5453 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5454 |
net.ipv4.conf.all.accept_source_route = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5455 |
net.ipv4.conf.all.accept_redirects = 0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5456 |
net.ipv4.conf.all.secure_redirects = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5457 |
net.ipv4.conf.all.log_martians = 1<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5458 |
net.ipv4.conf.default.accept_source_route = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5459 |
net.ipv4.conf.default.accept_redirects = 0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5460 |
net.ipv4.conf.default.secure_redirects = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5461 |
net.ipv4.icmp_echo_ignore_broadcasts = 1<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5462 |
net.ipv4.icmp_ignore_bogus_error_messages = 1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5463 |
net.ipv4.tcp_syncookies = 1<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5464 |
net.ipv4.conf.all.rp_filter = 1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5465 |
net.ipv4.conf.default.rp_filter = 1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5466 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5467 |
These options |
| 5468 |
improve Linux's ability to defend against certain types of IPv4 protocol attacks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5469 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5470 |
The |
| 5471 |
accept source route, accept redirects, and secure redirects options are turned off to |
| 5472 |
disable IPv4 protocol features which are considered to have few legitimate uses and to |
| 5473 |
be easy to abuse. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5474 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5475 |
The net.ipv4.conf.all.log martians option logs several types of |
| 5476 |
suspicious packets, such as spoofed packets, source-routed packets, and redirects. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5477 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5478 |
The icmp echo ignore broadcasts icmp ignore bogus error messages options protect against |
| 5479 |
ICMP attacks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5480 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5481 |
The tcp syncookies option uses a cryptographic feature called SYN cookies |
| 5482 |
to allow machines to continue to accept legitimate connections when faced with a SYN |
| 5483 |
flood attack. See [12] for further information on this option. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5484 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5485 |
The rp filter option |
| 5486 |
enables RFC-recommended source validation. It should not be used on machines which are |
| 5487 |
routers for very complicated networks, but is helpful for end hosts and routers serving |
| 5488 |
small networks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5489 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5490 |
For more information on any of these, see the kernel source |
| 5491 |
documentation file /Documentation/networking/ip-sysctl.txt.2</xccdf:description> |
| 5492 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.a" operator="equals" type="boolean"> |
| 5493 |
<xccdf:title>Deactivating "source routed packets"</xccdf:title> |
| 5494 |
<xccdf:description xml:lang="en">Trackers could be using source-routed packets to generate traffic that seems to be intra-net, but actually was created outside and has been redirected.</xccdf:description> |
| 5495 |
<xccdf:question xml:lang="en">Enable/Disable source routed packets</xccdf:question> |
| 5496 |
<xccdf:value>0</xccdf:value> |
| 5497 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5498 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5499 |
</xccdf:Value> |
| 5500 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.b" operator="equals" type="boolean"> |
| 5501 |
<xccdf:title>ICMP redirect messages</xccdf:title> |
| 5502 |
<xccdf:description xml:lang="en">Disable ICMP Redirect Acceptance?</xccdf:description> |
| 5503 |
<xccdf:question xml:lang="en">Enable/Disable ICMP redirect messages</xccdf:question> |
| 5504 |
<xccdf:value>0</xccdf:value> |
| 5505 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5506 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5507 |
</xccdf:Value> |
| 5508 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.c" operator="equals" type="boolean"> |
| 5509 |
<xccdf:title>net.ipv4.conf.all.secure_redirects</xccdf:title> |
| 5510 |
<xccdf:description xml:lang="en">Enable to prevent hijacking of routing path by only allowing redirects from gateways known in routing table. </xccdf:description> |
| 5511 |
<xccdf:question xml:lang="en">Enable/Disable IPv4 prevent hijacking of routing paths</xccdf:question> |
| 5512 |
<xccdf:value>1</xccdf:value> |
| 5513 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5514 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5515 |
</xccdf:Value> |
| 5516 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.d" operator="equals" type="boolean"> |
| 5517 |
<xccdf:title>net.ipv4.conf.all.log_martians</xccdf:title> |
| 5518 |
<xccdf:description xml:lang="en">Disable so you don't Log Spoofed Packets, Source Routed Packets, Redirect Packets </xccdf:description> |
| 5519 |
<xccdf:question xml:lang="en">Enable/Disable IPv4 logging Spoofed packets, source routed packets and redirect packets</xccdf:question> |
| 5520 |
<xccdf:value>0</xccdf:value> |
| 5521 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5522 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5523 |
</xccdf:Value> |
| 5524 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.e" operator="equals" type="boolean"> |
| 5525 |
<xccdf:title>net.ipv4.conf.default.accept_source_route</xccdf:title> |
| 5526 |
<xccdf:description xml:lang="en">Disable IP source routing?</xccdf:description> |
| 5527 |
<xccdf:question xml:lang="en">Enable/Disable IPv4 source routing</xccdf:question> |
| 5528 |
<xccdf:value>0</xccdf:value> |
| 5529 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5530 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5531 |
</xccdf:Value> |
| 5532 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.f" operator="equals" type="boolean"> |
| 5533 |
<xccdf:title>net.ipv4.conf.default.accept_redirects</xccdf:title> |
| 5534 |
<xccdf:description xml:lang="en">Disable ICMP Redirect Acceptance?</xccdf:description> |
| 5535 |
<xccdf:question xml:lang="en">Enable/Disable default IPv4 ICMP Redirect Acceptance</xccdf:question> |
| 5536 |
<xccdf:value>0</xccdf:value> |
| 5537 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5538 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5539 |
</xccdf:Value> |
| 5540 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.g" operator="equals" type="boolean"> |
| 5541 |
<xccdf:title>net.ipv4.conf.default.secure_redirects</xccdf:title> |
| 5542 |
<xccdf:description xml:lang="en">Log packets with impossible addresses to kernel log?</xccdf:description> |
| 5543 |
<xccdf:question xml:lang="en">Enable/Disable IPv4 logging packets with impossible addresses to kernel log</xccdf:question> |
| 5544 |
<xccdf:value>1</xccdf:value> |
| 5545 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5546 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5547 |
</xccdf:Value> |
| 5548 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.h" operator="equals" type="boolean"> |
| 5549 |
<xccdf:title>net.ipv4.icmp_echo_ignore_broadcast</xccdf:title> |
| 5550 |
<xccdf:description xml:lang="en">Ignore all ICMP ECHO and TIMESTAMP requests sent to it via broadcast/multicast</xccdf:description> |
| 5551 |
<xccdf:question xml:lang="en">Enable/Disable IPv4 ignoring ICMP ECHO and TIMESTAMP requests from broadcast/multicast</xccdf:question> |
| 5552 |
<xccdf:value>1</xccdf:value> |
| 5553 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5554 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5555 |
</xccdf:Value> |
| 5556 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.i" operator="equals" type="boolean"> |
| 5557 |
|
| 5558 |
<xccdf:title>net.ipv4.icmp_ignore_bogus_error_messages</xccdf:title> |
| 5559 |
<xccdf:description xml:lang="en">Enable to prevent certain types of attacks</xccdf:description> |
| 5560 |
<xccdf:value>1</xccdf:value> |
| 5561 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5562 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5563 |
</xccdf:Value> |
| 5564 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.j" operator="equals" type="boolean"> |
| 5565 |
<xccdf:title>net.ipv4.tcp_syncookie</xccdf:title> |
| 5566 |
<xccdf:description xml:lang="en">Enable to turn on TCP SYN Cookie Protection</xccdf:description> |
| 5567 |
<xccdf:question xml:lang="en">Enable/Disable TCP SYN Cookie Protection</xccdf:question> |
| 5568 |
<xccdf:value>1</xccdf:value> |
| 5569 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5570 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5571 |
</xccdf:Value> |
| 5572 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.k" operator="equals" type="boolean"> |
| 5573 |
<xccdf:title>net.ipv4.conf.all.rp_filter</xccdf:title> |
| 5574 |
<xccdf:description xml:lang="en">Enable to enforce sanity checking, also called ingress filtering or egress filtering. The point is to drop a packet if the source and destination IP addresses in the IP header do not make sense when considered in light of the physical interface on which it arrived. </xccdf:description> |
| 5575 |
<xccdf:question xml:lang="en">Enable/Disable all enforcing sanity checks</xccdf:question> |
| 5576 |
<xccdf:value>1</xccdf:value> |
| 5577 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5578 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5579 |
</xccdf:Value> |
| 5580 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.1.2.l" operator="equals" type="boolean"> |
| 5581 |
<xccdf:title>net.ipv4.conf.default.rp_filter</xccdf:title> |
| 5582 |
<xccdf:description xml:lang="en">Enables source route verification</xccdf:description> |
| 5583 |
<xccdf:question xml:lang="en">Enable/Disable default source route verification</xccdf:question> |
| 5584 |
<xccdf:value>1</xccdf:value> |
| 5585 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 5586 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 5587 |
</xccdf:Value> |
| 5588 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.a" selected="false" severity="medium" weight="10.0"> |
| 5589 |
<xccdf:title>Set net.ipv4.conf.all.accept_source_route for Hosts and Routers</xccdf:title> |
| 5590 |
<xccdf:description>Accepting source routed packets should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.a"/> for all interfaces as appropriate.</xccdf:description> |
| 5591 |
<xccdf:ident system="http://cce.mitre.org">CCE-4236-6</xccdf:ident> |
| 5592 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.accept_source_route</xccdf:fixtext> |
| 5593 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5594 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20115" value-id="xccdf_cdf_value_var-2.5.1.2.a"/> |
| 5595 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20115"/> |
| 5596 |
</xccdf:check> |
| 5597 |
</xccdf:Rule> |
| 5598 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.b" selected="false" severity="medium" weight="10.0"> |
| 5599 |
<xccdf:title>Set net.ipv4.conf.all.accept_redirects for Hosts and Routers</xccdf:title> |
| 5600 |
<xccdf:description>Accepting ICMP redirects should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.b"/> for all interfaces as appropriate.</xccdf:description> |
| 5601 |
<xccdf:ident system="http://cce.mitre.org">CCE-4217-6</xccdf:ident> |
| 5602 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.accept_redirects</xccdf:fixtext> |
| 5603 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5604 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20116" value-id="xccdf_cdf_value_var-2.5.1.2.b"/> |
| 5605 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20116"/> |
| 5606 |
</xccdf:check> |
| 5607 |
</xccdf:Rule> |
| 5608 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.c" selected="false" severity="medium" weight="10.0"> |
| 5609 |
<xccdf:title>Set net.ipv4.conf.all.secure_redirects for Hosts and Routers</xccdf:title> |
| 5610 |
<xccdf:description>Accepting "secure" ICMP redirects (those from gateways listed in the default gateways list) should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.c"/> for all interfaces as appropriate.</xccdf:description> |
| 5611 |
<xccdf:ident system="http://cce.mitre.org">CCE-3472-8</xccdf:ident> |
| 5612 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.secure_redirects</xccdf:fixtext> |
| 5613 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5614 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20117" value-id="xccdf_cdf_value_var-2.5.1.2.c"/> |
| 5615 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20117"/> |
| 5616 |
</xccdf:check> |
| 5617 |
</xccdf:Rule> |
| 5618 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.d" selected="false" severity="medium" weight="10.0"> |
| 5619 |
<xccdf:title>Set net.ipv4.conf.all.log_martians for Hosts and Routers</xccdf:title> |
| 5620 |
<xccdf:description>Logging of "martian" packets (those with impossible addresses) should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.d"/> for all interfaces as appropriate.</xccdf:description> |
| 5621 |
<xccdf:ident system="http://cce.mitre.org">CCE-4320-8</xccdf:ident> |
| 5622 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.log_martians</xccdf:fixtext> |
| 5623 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5624 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20118" value-id="xccdf_cdf_value_var-2.5.1.2.d"/> |
| 5625 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20118"/> |
| 5626 |
</xccdf:check> |
| 5627 |
</xccdf:Rule> |
| 5628 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.e" selected="false" severity="medium" weight="10.0"> |
| 5629 |
<xccdf:title>Set net.ipv4.conf.default.accept_source_route for Hosts and Routers</xccdf:title> |
| 5630 |
<xccdf:description>The default setting for accepting source routed packets should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.e"/> for all interfaces as appropriate.</xccdf:description> |
| 5631 |
<xccdf:ident system="http://cce.mitre.org">CCE-4091-5</xccdf:ident> |
| 5632 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.default.accept_source_route</xccdf:fixtext> |
| 5633 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5634 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20119" value-id="xccdf_cdf_value_var-2.5.1.2.e"/> |
| 5635 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20119"/> |
| 5636 |
</xccdf:check> |
| 5637 |
</xccdf:Rule> |
| 5638 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.f" selected="false" severity="medium" weight="10.0"> |
| 5639 |
<xccdf:title>Set net.ipv4.conf.default.accept_redirects for Hosts and Routers</xccdf:title> |
| 5640 |
<xccdf:description>The default setting for accepting ICMP redirects should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.f"/> for all interfaces as appropriate.</xccdf:description> |
| 5641 |
<xccdf:ident system="http://cce.mitre.org">CCE-4186-3</xccdf:ident> |
| 5642 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.default.accept_redirects</xccdf:fixtext> |
| 5643 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5644 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20120" value-id="xccdf_cdf_value_var-2.5.1.2.f"/> |
| 5645 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20120"/> |
| 5646 |
</xccdf:check> |
| 5647 |
</xccdf:Rule> |
| 5648 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.g" selected="false" severity="medium" weight="10.0"> |
| 5649 |
<xccdf:title>Set net.ipv4.conf.default.secure_redirects for Hosts and Routers</xccdf:title> |
| 5650 |
<xccdf:description>The default setting for accepting "secure" ICMP redirects (those from gateways listed in the default gateways list) should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.g"/> for all interfaces as appropriate.</xccdf:description> |
| 5651 |
<xccdf:ident system="http://cce.mitre.org">CCE-3339-9</xccdf:ident> |
| 5652 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.default.secure_redirects</xccdf:fixtext> |
| 5653 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5654 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20121" value-id="xccdf_cdf_value_var-2.5.1.2.g"/> |
| 5655 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20121"/> |
| 5656 |
</xccdf:check> |
| 5657 |
</xccdf:Rule> |
| 5658 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.h" selected="false" severity="medium" weight="10.0"> |
| 5659 |
<xccdf:title>Set net.ipv4.icmp_echo_ignore_broadcasts for Hosts and Routers</xccdf:title> |
| 5660 |
<xccdf:description>Ignoring ICMP echo requests (pings) sent to broadcast / multicast addresses should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.h"/> for all interfaces as appropriate.</xccdf:description> |
| 5661 |
<xccdf:ident system="http://cce.mitre.org">CCE-3644-2</xccdf:ident> |
| 5662 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.icmp_echo_ignore_broadcasts</xccdf:fixtext> |
| 5663 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5664 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20122" value-id="xccdf_cdf_value_var-2.5.1.2.h"/> |
| 5665 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20122"/> |
| 5666 |
</xccdf:check> |
| 5667 |
</xccdf:Rule> |
| 5668 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.i" selected="false" severity="medium" weight="10.0"> |
| 5669 |
<xccdf:title>Set net.ipv4.icmp_ignore_bogus_error_messages for Hosts and Routers</xccdf:title> |
| 5670 |
<xccdf:description>Ignoring bogus ICMP responses to broadcasts should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.i"/> for all interfaces as appropriate.</xccdf:description> |
| 5671 |
<xccdf:ident system="http://cce.mitre.org">CCE-4133-5</xccdf:ident> |
| 5672 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.icmp_ignore_bogus_error_messages</xccdf:fixtext> |
| 5673 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5674 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20123" value-id="xccdf_cdf_value_var-2.5.1.2.i"/> |
| 5675 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20123"/> |
| 5676 |
</xccdf:check> |
| 5677 |
</xccdf:Rule> |
| 5678 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.j" selected="false" severity="medium" weight="10.0"> |
| 5679 |
<xccdf:title>Set net.ipv4.tcp_syncookies for Hosts and Routers</xccdf:title> |
| 5680 |
<xccdf:description>Sending TCP syncookies should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.j"/> for all interfaces as appropriate.</xccdf:description> |
| 5681 |
<xccdf:ident system="http://cce.mitre.org">CCE-4265-5</xccdf:ident> |
| 5682 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.tcp_syncookies</xccdf:fixtext> |
| 5683 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5684 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20124" value-id="xccdf_cdf_value_var-2.5.1.2.j"/> |
| 5685 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20124"/> |
| 5686 |
</xccdf:check> |
| 5687 |
</xccdf:Rule> |
| 5688 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.k" selected="false" severity="medium" weight="10.0"> |
| 5689 |
<xccdf:title>Set net.ipv4.conf.all.rp_filter for Hosts and Routers</xccdf:title> |
| 5690 |
<xccdf:description>Performing source validation by reverse path should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.k"/> for all interfaces as appropriate.</xccdf:description> |
| 5691 |
<xccdf:ident system="http://cce.mitre.org">CCE-4080-8</xccdf:ident> |
| 5692 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.all.rp_filter</xccdf:fixtext> |
| 5693 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5694 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20125" value-id="xccdf_cdf_value_var-2.5.1.2.k"/> |
| 5695 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20125"/> |
| 5696 |
</xccdf:check> |
| 5697 |
</xccdf:Rule> |
| 5698 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.1.2.l" selected="false" severity="medium" weight="10.0"> |
| 5699 |
<xccdf:title>Set net.ipv4.conf.default.rp_filter for Hosts and Routers</xccdf:title> |
| 5700 |
<xccdf:description>The default setting for performing source validation by reverse path should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.1.2.l"/> for all interfaces as appropriate.</xccdf:description> |
| 5701 |
<xccdf:ident system="http://cce.mitre.org">CCE-3840-6</xccdf:ident> |
| 5702 |
<xccdf:fixtext>(1) via sysctl - net.ipv4.conf.default.rp_filter</xccdf:fixtext> |
| 5703 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5704 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20126" value-id="xccdf_cdf_value_var-2.5.1.2.l"/> |
| 5705 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20126"/> |
| 5706 |
</xccdf:check> |
| 5707 |
</xccdf:Rule> |
| 5708 |
</xccdf:Group> |
| 5709 |
</xccdf:Group> |
| 5710 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2"> |
| 5711 |
<xccdf:title xml:lang="en">Wireless Networking</xccdf:title> |
| 5712 |
<xccdf:description xml:lang="en"> |
| 5713 |
Wireless networking (sometimes referred to as 802.11 or Wi-Fi) |
| 5714 |
presents a serious security risk to sensitive or classified systems and networks. Wireless |
| 5715 |
networking hardware is much more likely to be included in laptop or portable systems than |
| 5716 |
desktops or servers. See Section 3.3.14 for information on Bluetooth wireless support. |
| 5717 |
Bluetooth serves a different purpose and possesses a much shorter range, but it still |
| 5718 |
presents serious security risks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5719 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5720 |
Removal of hardware is the only way to absolutely ensure |
| 5721 |
that the wireless capability remains disabled. If it is completely impractical to remove |
| 5722 |
the wireless hardware, and site policy still allows the device to enter sensitive spaces, |
| 5723 |
every effort to disable the capability via software should be made. In general, |
| 5724 |
acquisition policy should include provisions to prevent the purchase of equipment that |
| 5725 |
will be used in sensitive spaces and includes wireless capabilities.</xccdf:description> |
| 5726 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2.1"> |
| 5727 |
<xccdf:title xml:lang="en">Remove Wireless Hardware if Possible</xccdf:title> |
| 5728 |
<xccdf:description xml:lang="en"> |
| 5729 |
Identifying the wireless hardware is the first step in removing |
| 5730 |
it. The system's hardware manual should contain information on its wireless |
| 5731 |
capabilities. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5732 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5733 |
Wireless hardware included with a laptop typically takes the form of a |
| 5734 |
mini-PCI card or PC card. Other forms include devices which plug into USB or Ethernet |
| 5735 |
ports, but these should be readily apparent and easy to remove from the base system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5736 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5737 |
A PC Card (originally called a PCMCIA card) is designed to be easy to remove, though it |
| 5738 |
may be hidden when inserted into the system. Frequently, there will be one or more |
| 5739 |
buttons near the card slot that, when pressed, eject the card from the system. If no |
| 5740 |
card is ejected, the slot is empty. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5741 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5742 |
A mini-PCI card is approximately credit-card sized |
| 5743 |
and typically accessible via a removable panel on the underside of the laptop. Removing |
| 5744 |
the panel may require simple tools. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5745 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5746 |
In addition to manually inspecting the hardware, it |
| 5747 |
is also possible to query the system for its installed hardware devices. The commands |
| 5748 |
/sbin/lspci and /sbin/lsusb will show a list of all recognized devices on their |
| 5749 |
respective buses, and this may indicate the presence of a wireless device.</xccdf:description> |
| 5750 |
</xccdf:Group> |
| 5751 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2.2"> |
| 5752 |
<xccdf:title xml:lang="en">Disable Wireless Through Software Configuration</xccdf:title> |
| 5753 |
<xccdf:description xml:lang="en"> |
| 5754 |
If it is impossible to remove the wireless hardware from the |
| 5755 |
device in question, disable as much of it as possible through software. The following |
| 5756 |
methods can disable software support for wireless networking, but note that these |
| 5757 |
methods do not prevent malicious software or careless users from re-activating the |
| 5758 |
devices.</xccdf:description> |
| 5759 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2.2.1"> |
| 5760 |
<xccdf:title xml:lang="en">Disable Wireless in BIOS</xccdf:title> |
| 5761 |
<xccdf:description xml:lang="en"> |
| 5762 |
Some laptops that include built-in wireless support offer the |
| 5763 |
ability to disable the device through the BIOS. This is system-specific; consult your |
| 5764 |
hardware manual or explore the BIOS setup during boot. 2A recent version of this file |
| 5765 |
can be found online at |
| 5766 |
http://lxr.linux.no/source/Documentation/networking/ip-sysctl.txt.</xccdf:description> |
| 5767 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.2.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 5768 |
<xccdf:title>Disable Wireless in BIOS</xccdf:title> |
| 5769 |
<xccdf:description>All wireless devices should be disabled in the BIOS.</xccdf:description> |
| 5770 |
<xccdf:ident system="http://cce.mitre.org">CCE-3628-5</xccdf:ident> |
| 5771 |
<xccdf:fixtext>(1) via BIOS menus</xccdf:fixtext> |
| 5772 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5773 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20127"/> |
| 5774 |
</xccdf:check> |
| 5775 |
</xccdf:Rule> |
| 5776 |
</xccdf:Group> |
| 5777 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2.2.2"> |
| 5778 |
<xccdf:title xml:lang="en">Deactivate Wireless Interfaces</xccdf:title> |
| 5779 |
<xccdf:description xml:lang="en"> |
| 5780 |
Deactivating the wireless interfaces should prevent normal |
| 5781 |
usage of the wireless capability. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5782 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5783 |
First, identify the interfaces available with the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5784 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5785 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ifconfig -a <xhtml:br/></xhtml:code> |
| 5786 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5787 |
Additionally,the following command may also be used to |
| 5788 |
determine whether wireless support ('extensions') is included for a particular |
| 5789 |
interface, though this may not always be a clear indicator: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5790 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5791 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># iwconfig <xhtml:br/></xhtml:code> |
| 5792 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5793 |
After |
| 5794 |
identifying any wireless interfaces (which may have names like wlan0, ath0, wifi0, or |
| 5795 |
eth0), deactivate the interface with the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5796 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5797 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ifdown interface <xhtml:br/></xhtml:code> |
| 5798 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5799 |
These changes |
| 5800 |
will only last until the next reboot. To disable the interface for future boots, |
| 5801 |
remove the appropriate interface file from /etc/sysconfig/network-scripts: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5802 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5803 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rm /etc/sysconfig/network-scripts/ifcfg-interface</xhtml:code></xccdf:description> |
| 5804 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.2.2.2.a" selected="false" severity="medium" weight="10.0"> |
| 5805 |
<xccdf:title>Deactivate Wireless Interfaces</xccdf:title> |
| 5806 |
<xccdf:description>All wireless interfaces should be disabled.</xccdf:description> |
| 5807 |
<xccdf:ident system="http://cce.mitre.org">CCE-4276-2</xccdf:ident> |
| 5808 |
<xccdf:fixtext>rm /etc/sysconfig/network-scripts/ifcfg-interface</xccdf:fixtext> |
| 5809 |
<xccdf:fixtext>ifdown interface</xccdf:fixtext> |
| 5810 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5811 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20128"/> |
| 5812 |
</xccdf:check> |
| 5813 |
</xccdf:Rule> |
| 5814 |
</xccdf:Group> |
| 5815 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.2.2.3"> |
| 5816 |
<xccdf:title xml:lang="en">Disable Wireless Drivers</xccdf:title> |
| 5817 |
<xccdf:description xml:lang="en"> |
| 5818 |
Removing the kernel drivers that provide support for wireless |
| 5819 |
Ethernet devices will prevent users from easily activating the devices. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5820 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5821 |
To remove the wireless drivers from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5822 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5823 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rm -r /lib/modules/kernelversion(s)/kernel/drivers/net/wireless <xhtml:br/></xhtml:code> |
| 5824 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5825 |
This command must also be repeated every time the kernel is upgraded.</xccdf:description> |
| 5826 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.2.2.3.a" selected="false" severity="medium" weight="10.0"> |
| 5827 |
<xccdf:title>Disable Wireless Drivers</xccdf:title> |
| 5828 |
<xccdf:description>Device drivers for wireless devices should be excluded from the kernel.</xccdf:description> |
| 5829 |
<xccdf:ident system="http://cce.mitre.org">CCE-4170-7</xccdf:ident> |
| 5830 |
<xccdf:fixtext>(1) via modprobe</xccdf:fixtext> |
| 5831 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5832 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20129"/> |
| 5833 |
</xccdf:check> |
| 5834 |
</xccdf:Rule> |
| 5835 |
</xccdf:Group> |
| 5836 |
</xccdf:Group> |
| 5837 |
</xccdf:Group> |
| 5838 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3"> |
| 5839 |
<xccdf:title xml:lang="en">IPv6</xccdf:title> |
| 5840 |
<xccdf:description xml:lang="en"> |
| 5841 |
The system includes support for Internet Protocol version 6. A |
| 5842 |
major and often-mentioned improvement over IPv4 is its enormous increase in the number of |
| 5843 |
available addresses. Another important feature is its support for automatic configuration |
| 5844 |
of many network settings.</xccdf:description> |
| 5845 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.1"> |
| 5846 |
<xccdf:title xml:lang="en">Disable Support for IPv6 unless Needed</xccdf:title> |
| 5847 |
<xccdf:description xml:lang="en"> |
| 5848 |
Because the IPv6 networking code is relatively new and complex, |
| 5849 |
it is particularly important that it be disabled unless needed. Despite configuration |
| 5850 |
that suggests support for IPv6 has been disabled, link-local IPv6 address |
| 5851 |
autoconfiguration occurs even when only an IPv4 address is assigned. The only way to |
| 5852 |
effectively prevent execution of the IPv6 networking stack is to prevent the kernel from |
| 5853 |
loading the IPv6 kernel module.</xccdf:description> |
| 5854 |
<xccdf:reference>MO3:S0-C1-1</xccdf:reference> |
| 5855 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.1.1"> |
| 5856 |
<xccdf:title xml:lang="en">Disable Automatic Loading of IPv6 Kernel Module</xccdf:title> |
| 5857 |
<xccdf:description xml:lang="en"> |
| 5858 |
To prevent the IPv6 kernel module (ipv6) from being loaded, |
| 5859 |
add the following line to /etc/modprobe.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5860 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5861 |
install ipv6 /bin/true <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5862 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5863 |
When the kernel requests the ipv6 module, this line will direct the system to run the |
| 5864 |
program /bin/true instead.</xccdf:description> |
| 5865 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 5866 |
<xccdf:title>Disable Automatic Loading of IPv6 Kernel Module</xccdf:title> |
| 5867 |
<xccdf:description>Automatic loading of the IPv6 kernel module should be disabled.</xccdf:description> |
| 5868 |
<xccdf:reference>MO3:S0-C1-1 MO3:S0-C1-2</xccdf:reference> |
| 5869 |
<xccdf:ident system="http://cce.mitre.org">CCE-3562-6</xccdf:ident> |
| 5870 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 5871 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5872 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20130"/> |
| 5873 |
</xccdf:check> |
| 5874 |
</xccdf:Rule> |
| 5875 |
</xccdf:Group> |
| 5876 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.1.2"> |
| 5877 |
<xccdf:title xml:lang="en">Disable Interface Usage of IPv6</xccdf:title> |
| 5878 |
<xccdf:description xml:lang="en"> |
| 5879 |
To prevent configuration of IPv6 for all interfaces, add or |
| 5880 |
correct the following lines in /etc/sysconfig/network: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5881 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5882 |
NETWORKING_IPV6=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5883 |
IPV6INIT=no<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5884 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5885 |
For each network interface IFACE , add or correct the following lines in |
| 5886 |
/etc/sysconfig/network-scripts/ifcfg-IFACE as an additional prevention mechanism:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5887 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5888 |
IPV6INIT=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5889 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5890 |
If it becomes necessary later to configure IPv6, only the interfaces |
| 5891 |
requiring it should be enabled.</xccdf:description> |
| 5892 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.1.2.a" selected="false" severity="medium" weight="10.0"> |
| 5893 |
<xccdf:title>Disable NETWORKING_IPV6 in /etc/sysconfig/network</xccdf:title> |
| 5894 |
<xccdf:description>The default setting for IPv6 configuration should be disabled</xccdf:description> |
| 5895 |
<xccdf:ident system="http://cce.mitre.org">CCE-3381-1</xccdf:ident> |
| 5896 |
<xccdf:fixtext>(1) via /etc/sysconfig/network</xccdf:fixtext> |
| 5897 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5898 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20131"/> |
| 5899 |
</xccdf:check> |
| 5900 |
</xccdf:Rule> |
| 5901 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.1.2.b" selected="false" severity="medium" weight="10.0"> |
| 5902 |
<xccdf:title>Disable IPV6INIT in /etc/sysconfig/network</xccdf:title> |
| 5903 |
<xccdf:description>Global IPv6 initialization should be disabled</xccdf:description> |
| 5904 |
<xccdf:ident system="http://cce.mitre.org">CCE-3377-9</xccdf:ident> |
| 5905 |
<xccdf:fixtext>(1) via /etc/sysconfig/network</xccdf:fixtext> |
| 5906 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5907 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20132"/> |
| 5908 |
</xccdf:check> |
| 5909 |
</xccdf:Rule> |
| 5910 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.1.2.c" selected="false" severity="medium" weight="10.0"> |
| 5911 |
<xccdf:title>Disable IPV6INIT in /etc/sysconfig/network-scripts/ifcfg-*</xccdf:title> |
| 5912 |
<xccdf:description>IPv6 configuration should be disabled for all interfaces.</xccdf:description> |
| 5913 |
<xccdf:ident system="http://cce.mitre.org">CCE-4296-0</xccdf:ident> |
| 5914 |
<xccdf:fixtext>(1) via /etc/sysconfig/network-scripts/ifcfg-*</xccdf:fixtext> |
| 5915 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5916 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20133"/> |
| 5917 |
</xccdf:check> |
| 5918 |
</xccdf:Rule> |
| 5919 |
</xccdf:Group> |
| 5920 |
</xccdf:Group> |
| 5921 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2"> |
| 5922 |
<xccdf:title xml:lang="en">Configure IPv6 Settings if Necessary</xccdf:title> |
| 5923 |
<xccdf:description xml:lang="en"> |
| 5924 |
A major feature of IPv6 is the extent to which systems |
| 5925 |
implementing it can automatically configure their networking devices using information |
| 5926 |
from the network. From a security perspective, manually configuring important |
| 5927 |
configuration information is always preferable to accepting it from the network in an |
| 5928 |
unauthenticated fashion.</xccdf:description> |
| 5929 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2.1"> |
| 5930 |
<xccdf:title xml:lang="en">Disable Automatic Configuration</xccdf:title> |
| 5931 |
<xccdf:description xml:lang="en"> |
| 5932 |
Disable the system's acceptance of router advertisements and |
| 5933 |
redirects by adding or correcting the following line in /etc/sysconfig/network (note |
| 5934 |
that this does not disable sending router solicitations): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5935 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 5936 |
IPV6_AUTOCONF=no</xccdf:description> |
| 5937 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.1.a" operator="equals" type="string"> |
| 5938 |
<xccdf:title>IPV6_AUTOCONF</xccdf:title> |
| 5939 |
<xccdf:description xml:lang="en">Toggle global IPv6 autoconfiguration (only, if global forwarding is disabled)</xccdf:description> |
| 5940 |
<xccdf:question xml:lang="en">Enable/Disable global IPv6 autoconfiguration</xccdf:question> |
| 5941 |
<xccdf:value>disabled</xccdf:value> |
| 5942 |
<xccdf:value selector="enabled">enabled</xccdf:value> |
| 5943 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 5944 |
<xccdf:match>enabled|disabled</xccdf:match> |
| 5945 |
</xccdf:Value> |
| 5946 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.1.b" operator="equals" type="string"> |
| 5947 |
<xccdf:title>net.ipv6.conf.default.accept_ra</xccdf:title> |
| 5948 |
<xccdf:description xml:lang="en">accept default router advertisements</xccdf:description> |
| 5949 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 accepting default router advertisements</xccdf:question> |
| 5950 |
<xccdf:value>no</xccdf:value> |
| 5951 |
<xccdf:value selector="enabled">yes</xccdf:value> |
| 5952 |
<xccdf:value selector="disabled">no</xccdf:value> |
| 5953 |
<xccdf:match>yes|no</xccdf:match> |
| 5954 |
</xccdf:Value> |
| 5955 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.1.c" operator="equals" type="string"> |
| 5956 |
<xccdf:title>net.ipv6.conf.default.accept_redirects</xccdf:title> |
| 5957 |
<xccdf:description xml:lang="en">Toggle ICMP Redirect Acceptance</xccdf:description> |
| 5958 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 default ICMP Redirect Acceptance</xccdf:question> |
| 5959 |
<xccdf:value>disabled</xccdf:value> |
| 5960 |
<xccdf:value selector="enabled">enabled</xccdf:value> |
| 5961 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 5962 |
<xccdf:match>enabled|disabled</xccdf:match> |
| 5963 |
</xccdf:Value> |
| 5964 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.1.d" operator="equals" type="string"> |
| 5965 |
<xccdf:title>net.ipv6.conf.all.accept_redirects</xccdf:title> |
| 5966 |
<xccdf:description xml:lang="en">Toggle ICMP Redirect Acceptance</xccdf:description> |
| 5967 |
<xccdf:question xml:lang="en">Enable/Disable all IPv6 ICMP Redirect Acceptance</xccdf:question> |
| 5968 |
<xccdf:value>disabled</xccdf:value> |
| 5969 |
<xccdf:value selector="enabled">enabled</xccdf:value> |
| 5970 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 5971 |
<xccdf:match>enabled|disabled</xccdf:match> |
| 5972 |
</xccdf:Value> |
| 5973 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 5974 |
<xccdf:title>Disable IPV6_AUTOCONF in /etc/sysconfig/network</xccdf:title> |
| 5975 |
<xccdf:description>Accepting IPv6 router advertisements should be disabled for all interfaces.</xccdf:description> |
| 5976 |
<xccdf:ident system="http://cce.mitre.org">CCE-4269-7</xccdf:ident> |
| 5977 |
<xccdf:fixtext>(1) via /etc/sysconfig/network</xccdf:fixtext> |
| 5978 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5979 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20134" value-id="xccdf_cdf_value_var-2.5.3.2.1.a"/> |
| 5980 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20134"/> |
| 5981 |
</xccdf:check> |
| 5982 |
</xccdf:Rule> |
| 5983 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.1.b" selected="false" severity="medium" weight="10.0"> |
| 5984 |
<xccdf:title>Disable accepting IPv6 router advertisements (net.ipv6.conf.default.accept_ra)</xccdf:title> |
| 5985 |
<xccdf:description>The default setting for accepting IPv6 router advertisements should be: for all interfaces.</xccdf:description> |
| 5986 |
<xccdf:ident system="http://cce.mitre.org">CCE-4291-1</xccdf:ident> |
| 5987 |
<xccdf:fixtext>(1) via sysctl (2) via IPV6_AUTOCONF in /etc/sysconfig/network</xccdf:fixtext> |
| 5988 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5989 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20135" value-id="xccdf_cdf_value_var-2.5.3.2.1.b"/> |
| 5990 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20135"/> |
| 5991 |
</xccdf:check> |
| 5992 |
</xccdf:Rule> |
| 5993 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.1.c" selected="false" severity="medium" weight="10.0"> |
| 5994 |
<xccdf:title>Disable accepting redirects from IPv6 routers (net.ipv6.conf.default.accept_redirects)</xccdf:title> |
| 5995 |
<xccdf:description>Accepting redirects from IPv6 routers should be: for all interfaces.</xccdf:description> |
| 5996 |
<xccdf:ident system="http://cce.mitre.org">CCE-4313-3</xccdf:ident> |
| 5997 |
<xccdf:fixtext>(1) via sysctl (2) via IPV6_AUTOCONF in /etc/sysconfig/network</xccdf:fixtext> |
| 5998 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 5999 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20136" value-id="xccdf_cdf_value_var-2.5.3.2.1.c"/> |
| 6000 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20136"/> |
| 6001 |
</xccdf:check> |
| 6002 |
</xccdf:Rule> |
| 6003 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.1.d" selected="false" severity="medium" weight="10.0"> |
| 6004 |
<xccdf:title>Disable accepting redirects from IPv6 routers (net.ipv6.conf.all.accept_redirects)</xccdf:title> |
| 6005 |
<xccdf:description>The default setting for accepting redirects from IPv6 routers should be: for all interfaces.</xccdf:description> |
| 6006 |
<xccdf:ident system="http://cce.mitre.org">CCE-4198-8</xccdf:ident> |
| 6007 |
<xccdf:fixtext>(1) via sysctl (2) via IPV6_AUTOCONF in /etc/sysconfig/network</xccdf:fixtext> |
| 6008 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6009 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20137" value-id="xccdf_cdf_value_var-2.5.3.2.1.d"/> |
| 6010 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20137"/> |
| 6011 |
</xccdf:check> |
| 6012 |
</xccdf:Rule> |
| 6013 |
</xccdf:Group> |
| 6014 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2.2"> |
| 6015 |
<xccdf:title xml:lang="en">Manually Assign Global IPv6 Address</xccdf:title> |
| 6016 |
<xccdf:description xml:lang="en"> |
| 6017 |
To manually assign an IP address for an interface IFACE, edit |
| 6018 |
the file /etc/sysconfig/network-scripts/ ifcfg-IFACE. Add or correct the following |
| 6019 |
line (substituting the correct IPv6 address): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6020 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6021 |
IPV6ADDR=2001:0DB8::ABCD/64 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6022 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6023 |
Manually |
| 6024 |
assigning an IP address is preferable to accepting one from routers or from the |
| 6025 |
network otherwise. The example address here is an IPv6 address reserved for |
| 6026 |
documentation purposes, as defined by RFC3849.</xccdf:description> |
| 6027 |
</xccdf:Group> |
| 6028 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2.3"> |
| 6029 |
<xccdf:title xml:lang="en">Use Privacy Extensions for Address if Necessary</xccdf:title> |
| 6030 |
<xccdf:description xml:lang="en"> |
| 6031 |
To introduce randomness into the automatic generation of IPv6 |
| 6032 |
addresses, add or correct the following line in |
| 6033 |
/etc/sysconfig/network-scripts/ifcfg-IFACE: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6034 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6035 |
IPV6_PRIVACY=rfc3041<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6036 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6037 |
Automatically-generated IPv6 addresses are based on the underlying hardware (e.g. |
| 6038 |
Ethernet) address, and so it becomes possible to track a piece of hardware over its |
| 6039 |
lifetime using its traffic. If it is important for a system's IP address to not |
| 6040 |
trivially reveal its hardware address, this setting should be applied.</xccdf:description> |
| 6041 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.3.a" operator="equals" type="string"> |
| 6042 |
<xccdf:title>IPV6_PRIVACY in /etc/sysconfig/network-scripts/ifcfg-IFACE</xccdf:title> |
| 6043 |
<xccdf:description xml:lang="en">Control IPv6 privacy.</xccdf:description> |
| 6044 |
<xccdf:question xml:lang="en">Select control of IPv6 address creation privacy</xccdf:question> |
| 6045 |
<xccdf:value>rfc3041</xccdf:value> |
| 6046 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 6047 |
<xccdf:value selector="lightweight">lightweight</xccdf:value> |
| 6048 |
<xccdf:value selector="rfc3041">rfc3041</xccdf:value> |
| 6049 |
</xccdf:Value> |
| 6050 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.3.a" selected="false" weight="10.0"> |
| 6051 |
<xccdf:title>Use Privacy Extensions for Address if Necessary</xccdf:title> |
| 6052 |
<xccdf:description>IPv6 privacy extensions should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.3.a"/> for all interfaces.</xccdf:description> |
| 6053 |
<xccdf:ident system="http://cce.mitre.org">CCE-3842-2</xccdf:ident> |
| 6054 |
<xccdf:fixtext>(1) via IPV6_PRIVACY in |
| 6055 |
/etc/sysconfig/network-scripts/ifcfg-<interface></xccdf:fixtext> |
| 6056 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6057 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20138" value-id="xccdf_cdf_value_var-2.5.3.2.3.a"/> |
| 6058 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20138"/> |
| 6059 |
</xccdf:check> |
| 6060 |
</xccdf:Rule> |
| 6061 |
</xccdf:Group> |
| 6062 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2.4"> |
| 6063 |
<xccdf:title xml:lang="en">Manually Assign IPv6 Router Address</xccdf:title> |
| 6064 |
<xccdf:description xml:lang="en"> |
| 6065 |
Edit the file /etc/sysconfig/network-scripts/ifcfg-IFACE , |
| 6066 |
and add or correct the following line (substituting your gateway IP as appropriate):<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6067 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6068 |
IPV6_DEFAULTGW=2001:0DB8::0001 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6069 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6070 |
Router addresses should be manually set and not |
| 6071 |
accepted via any autoconfiguration or router advertisement.</xccdf:description> |
| 6072 |
</xccdf:Group> |
| 6073 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.3.2.5"> |
| 6074 |
<xccdf:title xml:lang="en">Limit Network-Transmitted Configuration</xccdf:title> |
| 6075 |
<xccdf:description xml:lang="en"> |
| 6076 |
Add the following lines to /etc/sysctl.conf to limit the |
| 6077 |
configuration information requested from other systems, and accepted from the network:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6078 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6079 |
net.ipv6.conf.default.router_solicitations = 0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6080 |
net.ipv6.conf.default.accept_ra_rtr_pref = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6081 |
net.ipv6.conf.default.accept_ra_pinfo = 0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6082 |
net.ipv6.conf.default.accept_ra_defrtr = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6083 |
net.ipv6.conf.default.autoconf = 0<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6084 |
net.ipv6.conf.default.dad_transmits = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6085 |
net.ipv6.conf.default.max_addresses = 1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6086 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6087 |
The router solicitations setting determines how many router solicitations are sent |
| 6088 |
when bringing up the interface. If addresses are statically assigned, there is no need |
| 6089 |
to send any solicitations. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6090 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6091 |
The accept_ra_pinfo setting controls whether the system will |
| 6092 |
accept prefix info from the router. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6093 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6094 |
The accept_ra_defrtr setting controls whether the |
| 6095 |
system will accept Hop Limit settings from a router advertisement. Setting it to 0 |
| 6096 |
prevents a router from changing your default IPv6 Hop Limit for outgoing packets. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6097 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6098 |
The autoconf setting controls whether router advertisements can cause the system to |
| 6099 |
assign a global unicast address to an interface. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6100 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6101 |
The dad_transmits setting determines how |
| 6102 |
many neighbor solicitations to send out per address (global and link-local) when |
| 6103 |
bringing up an interface to ensure the desired address is unique on the network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6104 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6105 |
The max_addresses setting determines how many global unicast IPv6 addresses can be |
| 6106 |
assigned to each interface. The default is 16, but it should be set to exactly the |
| 6107 |
number of statically configured global addresses required.</xccdf:description> |
| 6108 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.a" operator="equals" type="number"> |
| 6109 |
<xccdf:title> net.ipv6.conf.default.router_solicitations</xccdf:title> |
| 6110 |
<xccdf:description xml:lang="en"> |
| 6111 |
Setting determines how many router solicitations are |
| 6112 |
sent when bringing up the interface. If addresses are statically assigned, there |
| 6113 |
is no need to send any solicitation</xccdf:description> |
| 6114 |
<xccdf:question xml:lang="en">Select how many router solicitations are sent when bringing up the interface</xccdf:question> |
| 6115 |
<xccdf:value>0</xccdf:value> |
| 6116 |
<xccdf:value selector="0">0</xccdf:value> |
| 6117 |
<xccdf:value selector="1">1</xccdf:value> |
| 6118 |
</xccdf:Value> |
| 6119 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.b" operator="equals" type="boolean"> |
| 6120 |
<xccdf:title>Accept Router Preference in Router Advertisements?</xccdf:title> |
| 6121 |
<xccdf:description xml:lang="en">Control IPv6 privacy.</xccdf:description> |
| 6122 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 router advertisements</xccdf:question> |
| 6123 |
<xccdf:value>0</xccdf:value> |
| 6124 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 6125 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 6126 |
</xccdf:Value> |
| 6127 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.c" operator="equals" type="boolean"> |
| 6128 |
<xccdf:title>net.ipv6.conf.default.accept_ra_pinfo</xccdf:title> |
| 6129 |
<xccdf:description xml:lang="en">Setting controls whether the system will accept prefix info from the router</xccdf:description> |
| 6130 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 acceptance of router prefix info</xccdf:question> |
| 6131 |
<xccdf:value>0</xccdf:value> |
| 6132 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 6133 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 6134 |
</xccdf:Value> |
| 6135 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.d" operator="equals" type="boolean"> |
| 6136 |
<xccdf:title>net.ipv6.conf.default.accept_ra_defrtr</xccdf:title> |
| 6137 |
<xccdf:description xml:lang="en"> |
| 6138 |
Setting controls whether the system will accept Hop Limit |
| 6139 |
settings from a router advertisement. Setting it to 0 prevents a router from |
| 6140 |
changing your default IPv6 Hop Limit for outgoing packets.</xccdf:description> |
| 6141 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 acceptance of Hop limits from router advertisement</xccdf:question> |
| 6142 |
<xccdf:value>0</xccdf:value> |
| 6143 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 6144 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 6145 |
</xccdf:Value> |
| 6146 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.e" operator="equals" type="boolean"> |
| 6147 |
<xccdf:title>net.ipv6.conf.default.autoconf</xccdf:title> |
| 6148 |
<xccdf:description>Setting controls whether router advertisements can cause the system to assign a global unicast address to an interface.</xccdf:description> |
| 6149 |
<xccdf:question xml:lang="en">Enable/Disable IPv6 acceptance of global unicast address from router advertisement</xccdf:question> |
| 6150 |
<xccdf:value>0</xccdf:value> |
| 6151 |
<xccdf:value selector="enabled">1</xccdf:value> |
| 6152 |
<xccdf:value selector="disabled">0</xccdf:value> |
| 6153 |
</xccdf:Value> |
| 6154 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.f" operator="equals" type="number"> |
| 6155 |
<xccdf:title>net.ipv6.conf.default.dad_transmits</xccdf:title> |
| 6156 |
<xccdf:description xml:lang="en"> |
| 6157 |
Setting determines how many neighbor solicitations to |
| 6158 |
send out per address (global and link-local) when bringing up an interface to |
| 6159 |
ensure the desired address is unique on the network</xccdf:description> |
| 6160 |
<xccdf:question xml:lang="en">Select how many neighbor solicitations send out per address to ensure uniqueness of desired address for IPv6</xccdf:question> |
| 6161 |
<xccdf:value>0</xccdf:value> |
| 6162 |
<xccdf:value selector="0">0</xccdf:value> |
| 6163 |
<xccdf:value selector="1">1</xccdf:value> |
| 6164 |
</xccdf:Value> |
| 6165 |
<xccdf:Value id="xccdf_cdf_value_var-2.5.3.2.5.g" operator="equals" type="number"> |
| 6166 |
<xccdf:title>net.ipv6.conf.default.max_addresses</xccdf:title> |
| 6167 |
<xccdf:description> |
| 6168 |
Setting determines how many global unicast IPv6 addresses can be |
| 6169 |
assigned to each interface. The default is 16, but it should be set to exactly |
| 6170 |
the number of statically configured global addresses required.</xccdf:description> |
| 6171 |
<xccdf:question xml:lang="en">Select how many global unicast IPv6 addresses can be assigned to each interface</xccdf:question> |
| 6172 |
<xccdf:value>16</xccdf:value> |
| 6173 |
<xccdf:value selector="0">0</xccdf:value> |
| 6174 |
<xccdf:value selector="1">1</xccdf:value> |
| 6175 |
<xccdf:value selector="2">2</xccdf:value> |
| 6176 |
<xccdf:value selector="4">4</xccdf:value> |
| 6177 |
<xccdf:value selector="8">8</xccdf:value> |
| 6178 |
<xccdf:value selector="16">16</xccdf:value> |
| 6179 |
</xccdf:Value> |
| 6180 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.a" selected="false" weight="10.0"> |
| 6181 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.router_solicitations</xccdf:title> |
| 6182 |
<xccdf:description>The default number of IPv6 router solicitations for network interfaces to send should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.a"/></xccdf:description> |
| 6183 |
<xccdf:ident system="http://cce.mitre.org">CCE-4159-0</xccdf:ident> |
| 6184 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.router_solicitations</xccdf:fixtext> |
| 6185 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6186 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20139" value-id="xccdf_cdf_value_var-2.5.3.2.5.a"/> |
| 6187 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20139"/> |
| 6188 |
</xccdf:check> |
| 6189 |
</xccdf:Rule> |
| 6190 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.b" selected="false" weight="10.0"> |
| 6191 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.accept_ra_rtr_pref</xccdf:title> |
| 6192 |
<xccdf:description>The default setting for accepting router preference via IPv6 router advertisement should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.b"/> for interfaces.</xccdf:description> |
| 6193 |
<xccdf:ident system="http://cce.mitre.org">CCE-4221-8</xccdf:ident> |
| 6194 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.accept_ra_rtr_pref</xccdf:fixtext> |
| 6195 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6196 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20140" value-id="xccdf_cdf_value_var-2.5.3.2.5.b"/> |
| 6197 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20140"/> |
| 6198 |
</xccdf:check> |
| 6199 |
</xccdf:Rule> |
| 6200 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.c" selected="false" weight="10.0"> |
| 6201 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.accept_ra_pinfo</xccdf:title> |
| 6202 |
<xccdf:description>The default setting for accepting prefix information via IPv6 router advertisement should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.c"/> for interfaces.</xccdf:description> |
| 6203 |
<xccdf:ident system="http://cce.mitre.org">CCE-4058-4</xccdf:ident> |
| 6204 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.accept_ra_pinfo</xccdf:fixtext> |
| 6205 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6206 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20141" value-id="xccdf_cdf_value_var-2.5.3.2.5.c"/> |
| 6207 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20141"/> |
| 6208 |
</xccdf:check> |
| 6209 |
</xccdf:Rule> |
| 6210 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.d" selected="false" weight="10.0"> |
| 6211 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.accept_ra_defrtr</xccdf:title> |
| 6212 |
<xccdf:description>The default setting for accepting a default router via IPv6 router advertisement should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.d"/> for interfaces.</xccdf:description> |
| 6213 |
<xccdf:ident system="http://cce.mitre.org">CCE-4128-5</xccdf:ident> |
| 6214 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.accept_ra_defrtr</xccdf:fixtext> |
| 6215 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6216 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20142" value-id="xccdf_cdf_value_var-2.5.3.2.5.d"/> |
| 6217 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20142"/> |
| 6218 |
</xccdf:check> |
| 6219 |
</xccdf:Rule> |
| 6220 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.e" selected="false" weight="10.0"> |
| 6221 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.autoconf</xccdf:title> |
| 6222 |
<xccdf:description>The default setting for autoconfiguring network interfaces using prefix information in IPv6 router advertisements should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.e"/>.</xccdf:description> |
| 6223 |
<xccdf:ident system="http://cce.mitre.org">CCE-4287-9</xccdf:ident> |
| 6224 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.autoconf</xccdf:fixtext> |
| 6225 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6226 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20143" value-id="xccdf_cdf_value_var-2.5.3.2.5.e"/> |
| 6227 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20143"/> |
| 6228 |
</xccdf:check> |
| 6229 |
</xccdf:Rule> |
| 6230 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.f" selected="false" weight="10.0"> |
| 6231 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.dad_transmits</xccdf:title> |
| 6232 |
<xccdf:description>The default number of IPv6 duplicate address detection solicitations for network interfaces to send per configured address should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.f"/>.</xccdf:description> |
| 6233 |
<xccdf:ident system="http://cce.mitre.org">CCE-3895-0</xccdf:ident> |
| 6234 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.dad_transmits</xccdf:fixtext> |
| 6235 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6236 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20144" value-id="xccdf_cdf_value_var-2.5.3.2.5.f"/> |
| 6237 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20144"/> |
| 6238 |
</xccdf:check> |
| 6239 |
</xccdf:Rule> |
| 6240 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.3.2.5.g" selected="false" weight="10.0"> |
| 6241 |
<xccdf:title>Limit Network-Transmitted Configuration via net.ipv6.conf.default.max_addresses</xccdf:title> |
| 6242 |
<xccdf:description>The default number of global unicast IPv6 addresses allowed per network interface should be: <xccdf:sub idref="xccdf_cdf_value_var-2.5.3.2.5.g"/>.</xccdf:description> |
| 6243 |
<xccdf:ident system="http://cce.mitre.org">CCE-4137-6</xccdf:ident> |
| 6244 |
<xccdf:fixtext>(1) via sysctl - net.ipv6.conf.default.max_addresses</xccdf:fixtext> |
| 6245 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6246 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20145" value-id="xccdf_cdf_value_var-2.5.3.2.5.g"/> |
| 6247 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20145"/> |
| 6248 |
</xccdf:check> |
| 6249 |
</xccdf:Rule> |
| 6250 |
</xccdf:Group> |
| 6251 |
</xccdf:Group> |
| 6252 |
</xccdf:Group> |
| 6253 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4"> |
| 6254 |
<xccdf:title xml:lang="en">TCP Wrapper</xccdf:title> |
| 6255 |
<xccdf:description xml:lang="en"> |
| 6256 |
TCP Wrapper is a library which provides simple access control and |
| 6257 |
standardized logging for supported applications which accept connections over a network. |
| 6258 |
Historically, TCP Wrapper was used to support inetd services. Now that inetd is deprecated |
| 6259 |
(see Section 3.2.1), TCP Wrapper supports only services which were built to make use of |
| 6260 |
the libwrap library. To determine whether a given executable daemon /path/to/daemon |
| 6261 |
supports TCP Wrapper, check the documentation, or run: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6262 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6263 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ ldd /path/to/daemon | grep libwrap.so <xhtml:br/></xhtml:code> |
| 6264 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6265 |
If this command returns any output, then the daemon probably supports TCP Wrapper. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6266 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6267 |
An alternative to TCP Wrapper support is packet filtering using iptables. Note |
| 6268 |
that iptables works at the network level, while TCP Wrapper works at the application |
| 6269 |
level. This means that iptables filtering is more efficient and more resistant to flaws in |
| 6270 |
the software being protected, but TCP Wrapper provides support for logging, banners, and |
| 6271 |
other application-level tricks which iptables cannot provide.</xccdf:description> |
| 6272 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4.1"> |
| 6273 |
<xccdf:title xml:lang="en">How TCP Wrapper Protects Services</xccdf:title> |
| 6274 |
<xccdf:description xml:lang="en"> |
| 6275 |
TCP Wrapper provides access control for the system's network |
| 6276 |
services using two configuration files. When a connection is attempted: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6277 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6278 |
<xhtml:li>The file |
| 6279 |
/etc/hosts.allow is searched for a rule matching the connection. If one is found, the |
| 6280 |
connection is allowed. </xhtml:li> |
| 6281 |
<xhtml:li>Otherwise, the file /etc/hosts.deny is searched for a rule |
| 6282 |
matching the connection. If one is found, the connection is rejected. </xhtml:li> |
| 6283 |
<xhtml:li>If no matching |
| 6284 |
rules are found in either file, then the connection is allowed. By default, TCP Wrapper |
| 6285 |
does not block access to any services. </xhtml:li> |
| 6286 |
</xhtml:ol> |
| 6287 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6288 |
In the simplest case, each rule in /etc/hosts.allow and /etc/hosts.deny takes the form: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6289 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6290 |
daemon : client <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6291 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6292 |
where daemon is the |
| 6293 |
name of the server process for which the connection is destined, and client is the |
| 6294 |
partial or full hostname or IP address of the client. It is valid for daemon and client |
| 6295 |
to contain one item, a comma-separated list of items, or a special keyword like ALL, |
| 6296 |
which matches any service or client. (See the hosts access(5) manpage for a list of |
| 6297 |
other keywords.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6298 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6299 |
Note: Partial hostnames start at the root domain and are delimited by |
| 6300 |
the . character. So the client machine host03.dev.example.com, with IP address 10.7.2.3, |
| 6301 |
could be matched by any of the specifications: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6302 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6303 |
.example.com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6304 |
.dev.example.com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6305 |
10.7.2.</xccdf:description> |
| 6306 |
</xccdf:Group> |
| 6307 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4.2"> |
| 6308 |
<xccdf:title xml:lang="en">Reject All Connections From Other Hosts if Appropriate</xccdf:title> |
| 6309 |
<xccdf:description xml:lang="en"> |
| 6310 |
Restrict all connections to non-public services to localhost |
| 6311 |
only. Suppose pubsrv1 and pubsrv2 are the names of daemons which must be accessed |
| 6312 |
remotely. Configure TCP Wrapper as follows. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6313 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6314 |
Edit /etc/hosts.allow. Add the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6315 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6316 |
pubsrv1 ,pubsrv2 : ALL<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6317 |
ALL: localhost <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6318 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6319 |
Edit /etc/hosts.deny. Add the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6320 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6321 |
ALL: ALL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6322 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6323 |
These rules deny connections to all TCP Wrapper enabled services from any |
| 6324 |
host other than localhost, but allow connections from anywhere to the services which |
| 6325 |
must be publicly accessible. (If no public services exist, the first line in |
| 6326 |
/etc/hosts.allow may be omitted.)</xccdf:description> |
| 6327 |
</xccdf:Group> |
| 6328 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4.3"> |
| 6329 |
<xccdf:title xml:lang="en">Allow Connections Only From Hosts in This Domain if Appropriate</xccdf:title> |
| 6330 |
<xccdf:description xml:lang="en"> |
| 6331 |
For each daemon, domainsrv , which only needs to be contacted |
| 6332 |
from inside the local domain, example.com , configure TCP Wrapper to deny remote |
| 6333 |
connections. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6334 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6335 |
Edit /etc/hosts.allow. Add the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6336 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6337 |
domainsrv : .example.com<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6338 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6339 |
Edit /etc/hosts.deny. Add the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6340 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6341 |
domainsrv : ALL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6342 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6343 |
There are many possible |
| 6344 |
examples of services which need to communicate only within the local domain. If a |
| 6345 |
machine is a local compute server, it may be necessary for users to connect via SSH from |
| 6346 |
their desktop workstations, but not from outside the domain. In that case, you should |
| 6347 |
protect the daemon sshd using this method. As another example, RPC-based services such |
| 6348 |
as NFS might be enabled within the domain only, in which case the daemon portmap should |
| 6349 |
be protected. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6350 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6351 |
</xccdf:description> |
| 6352 |
<xccdf:warning xml:lang="en">Note: This example protects only the service domainsrv . No filtering is |
| 6353 |
done on other services unless a line is entered into /etc/hosts.deny which refers to |
| 6354 |
those services by name, or which restricts the special service ALL.</xccdf:warning> |
| 6355 |
</xccdf:Group> |
| 6356 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4.4"> |
| 6357 |
<xccdf:title xml:lang="en">Monitor Syslog for Relevant Connections and Failures</xccdf:title> |
| 6358 |
<xccdf:description xml:lang="en"> |
| 6359 |
Ensure that the following line exists in /etc/syslog.conf. |
| 6360 |
(This is the default, so it is likely to be correct if the configuration has not been |
| 6361 |
modified): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6362 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6363 |
authpriv.* /var/log/secure <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6364 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6365 |
Configure logwatch or other log monitoring tools |
| 6366 |
to periodically summarize failed connections reported by TCP Wrapper at the facility |
| 6367 |
authpriv.info. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6368 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6369 |
By default, TCP Wrapper audits all rejected connections at the facility |
| 6370 |
authpriv, level info. In the log file, TCP Wrapper rejections will contain the |
| 6371 |
substring: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6372 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6373 |
daemon [pid ]: refused connect from ipaddr <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6374 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6375 |
These lines can be used to detect |
| 6376 |
malicious scans, and to debug failures resulting from an incorrect TCP Wrapper |
| 6377 |
configuration. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6378 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6379 |
If appropriate, it is possible to change the syslog facility and level |
| 6380 |
used by a given TCP Wrapper rule by adding the severity option to each desired |
| 6381 |
configuration line in /etc/hosts.deny: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6382 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6383 |
daemon : client : severity facility .level <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6384 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6385 |
By default, successful connections are not logged by TCP Wrapper. See Section 2.6 for |
| 6386 |
more information about system auditing.</xccdf:description> |
| 6387 |
</xccdf:Group> |
| 6388 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.4.5"> |
| 6389 |
<xccdf:title xml:lang="en">Further Resources</xccdf:title> |
| 6390 |
<xccdf:description xml:lang="en"> |
| 6391 |
For more information about TCP Wrapper, see the tcpd(8) and |
| 6392 |
hosts access(5) manpages and the documentation directory /usr/share/doc/tcp |
| 6393 |
wrappers-version. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6394 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6395 |
Some information may be available from the Tools section of the |
| 6396 |
author's website, http://www.porcupine.org, and from the RHEL4 Reference Guide [6].</xccdf:description> |
| 6397 |
</xccdf:Group> |
| 6398 |
</xccdf:Group> |
| 6399 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5"> |
| 6400 |
<xccdf:title xml:lang="en">Iptables and Ip6tables</xccdf:title> |
| 6401 |
<xccdf:description xml:lang="en"> |
| 6402 |
A host-based firewall called Netfilter is included as part of the |
| 6403 |
Linux kernel distributed with the system. It is activated by default. This firewall is |
| 6404 |
controlled by the program iptables, and the entire capability is frequently referred to by |
| 6405 |
this name. An analogous program called ip6tables handles filtering for IPv6. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6406 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6407 |
Unlike TCP |
| 6408 |
Wrappers, which depends on the network server program to support and respect the rules |
| 6409 |
written, Netfilter filtering occurs at the kernel level, before a program can even process |
| 6410 |
the data from the network packet. As such, any program on the system is affected by the |
| 6411 |
rules written. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6412 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6413 |
This section provides basic information about strengthening the iptables |
| 6414 |
and ip6tables configurations included with the system. For more complete information that |
| 6415 |
may allow the construction of a sophisticated ruleset tailored to your environment, please |
| 6416 |
consult the references at the end of this section.</xccdf:description> |
| 6417 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.1"> |
| 6418 |
<xccdf:title xml:lang="en">Inspect and Activate Default Rules</xccdf:title> |
| 6419 |
<xccdf:description xml:lang="en"> |
| 6420 |
View the currently-enforced iptables rules by running the |
| 6421 |
command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6422 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6423 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># iptables -nL --line-numbers <xhtml:br/></xhtml:code> |
| 6424 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6425 |
The command is analogous for the ip6tables program. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6426 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6427 |
If the firewall does not appear to be active (i.e., no rules appear), activate |
| 6428 |
it and ensure that it starts at boot by issuing the following commands (and analogously |
| 6429 |
for ip6tables): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6430 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6431 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># service iptables restart <xhtml:br/> |
| 6432 |
# chkconfig iptables on <xhtml:br/></xhtml:code> |
| 6433 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6434 |
The default iptables rules are: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6435 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6436 |
Chain INPUT (policy ACCEPT) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6437 |
num target prot opt source destination <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6438 |
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6439 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6440 |
Chain FORWARD (policy ACCEPT) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6441 |
num target prot opt source destination <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6442 |
1 RH-Firewall-1-INPUT all -- 0.0.0.0/0 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6443 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6444 |
Chain OUTPUT (policy ACCEPT) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6445 |
num target prot opt source destination <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6446 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6447 |
Chain RH-Firewall-1-INPUT (2 references) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6448 |
num target prot opt source destination <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6449 |
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6450 |
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 255 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6451 |
3 ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6452 |
4 ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6453 |
5 ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6454 |
6 ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6455 |
7 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:631 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6456 |
8 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6457 |
9 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6458 |
10 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6459 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6460 |
The ip6tables default rules are similar, with |
| 6461 |
its rules 2 and 10 reflecting protocol naming and addressing differences. Instead of |
| 6462 |
rule 8, however, ip6tables includes two rules that accept all incoming udp and tcp |
| 6463 |
packets with a particular destination port range. This is because the current Netfilter |
| 6464 |
implementation for IPv6 lacks reliable connection-tracking functionality.</xccdf:description> |
| 6465 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.5.1.a" selected="false" severity="high" weight="10.0"> |
| 6466 |
<xccdf:title>Verify ip6tables is enabled</xccdf:title> |
| 6467 |
<xccdf:description>The ip6tables service should be enabled.</xccdf:description> |
| 6468 |
<xccdf:ident system="http://cce.mitre.org">CCE-4167-3</xccdf:ident> |
| 6469 |
<xccdf:fix>chkconfig ip6tables on</xccdf:fix> |
| 6470 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6471 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20146"/> |
| 6472 |
</xccdf:check> |
| 6473 |
</xccdf:Rule> |
| 6474 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.5.1.b" selected="false" severity="high" weight="10.0"> |
| 6475 |
<xccdf:title>Verify iptables is enabled</xccdf:title> |
| 6476 |
<xccdf:description>The iptables service should be enabled.</xccdf:description> |
| 6477 |
<xccdf:ident system="http://cce.mitre.org">CCE-4189-7</xccdf:ident> |
| 6478 |
<xccdf:fix>chkconfig iptables on</xccdf:fix> |
| 6479 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6480 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20147"/> |
| 6481 |
</xccdf:check> |
| 6482 |
</xccdf:Rule> |
| 6483 |
</xccdf:Group> |
| 6484 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.2"> |
| 6485 |
<xccdf:title xml:lang="en">Understand the Default Ruleset</xccdf:title> |
| 6486 |
<xccdf:description xml:lang="en"> |
| 6487 |
Understanding and creating firewall rules can be a challenging |
| 6488 |
activity, filled with corner cases and difficult-todebug problems. Because of this, |
| 6489 |
administrators should develop a thorough understanding of the default ruleset before |
| 6490 |
carefully modifying it. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6491 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6492 |
The default ruleset is divided into four sections, each of which |
| 6493 |
is called a chain: INPUT, FORWARD, OUTPUT, and RH-Firewall-1-INPUT. INPUT, OUTPUT, and |
| 6494 |
FORWARD are built-in chains. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6495 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6496 |
<xhtml:li>The INPUT chain is activated on packets destined for |
| 6497 |
(i.e., addressed to) the system. </xhtml:li> |
| 6498 |
<xhtml:li>The OUTPUT chain is activated on packets which are |
| 6499 |
originating from the system. </xhtml:li> |
| 6500 |
<xhtml:li>The FORWARD chain is activated for packets that the |
| 6501 |
system will process and send through another interface, if so configured. </xhtml:li> |
| 6502 |
<xhtml:li>The |
| 6503 |
RH-Firewall-1-INPUT chain is a custom (or user-defined) chain, which is used by the |
| 6504 |
INPUT and FORWARD chains. </xhtml:li> |
| 6505 |
</xhtml:ul> |
| 6506 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6507 |
A packet starts at the first rule in the appropriate chain and |
| 6508 |
proceeds until it matches a rule. If a match occurs, then control will jump to the |
| 6509 |
specified target. The default ruleset uses the built-in targets ACCEPT and REJECT, and |
| 6510 |
also the user-defined target/chain RH-Firewall-1-INPUT. Jumping to the target ACCEPT |
| 6511 |
means to allow the packet through, while REJECT means to drop the packet and send an |
| 6512 |
error message to the sending host. A related target called DROP means to drop the packet |
| 6513 |
on the floor without even sending an error message. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6514 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6515 |
The default policy for all of the |
| 6516 |
built-in chains (shown after their names in the rule output above) is set to ACCEPT. |
| 6517 |
This means that if no rules in the chain match the packets, they are allowed through. |
| 6518 |
Because no rules at all are written for the OUTPUT chain, this means that iptables does |
| 6519 |
not stop any packets originating from the system. The INPUT and FORWARD chains jump to |
| 6520 |
the user-defined target RH-Firewall-1-INPUT for all packets. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6521 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6522 |
RH-Firewall-1-INPUT tries |
| 6523 |
to match, in order, the following rules for both iptables and ip6tables: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6524 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6525 |
<xhtml:li>Rule 1 |
| 6526 |
appears to accept all packets. However, this appears true only because the rules are not |
| 6527 |
presented in verbose mode. Executing the command <xhtml:br/> |
| 6528 |
<xhtml:br/> |
| 6529 |
<xhtml:code># iptables -vnL --line-numbers <xhtml:br/></xhtml:code> |
| 6530 |
<xhtml:br/> |
| 6531 |
reveals |
| 6532 |
that this rule applies only to the loopback (lo) interface (see column in), while all |
| 6533 |
other rules apply to all interfaces. Thus, packets not coming from the loopback |
| 6534 |
interface do not match and proceed to the next rule. </xhtml:li> |
| 6535 |
<xhtml:li>Rule 2 explicitly allows all icmp |
| 6536 |
packet types; iptables uses the code 255 to mean all icmp types. </xhtml:li> |
| 6537 |
<xhtml:li>Rule 3 explicitly |
| 6538 |
allows all esp packets; these are packets which contain IPsec ESP headers.</xhtml:li> |
| 6539 |
<xhtml:li>Rule 4 |
| 6540 |
explicitly allows all ah packets; these are packets which contain an IPsec |
| 6541 |
authentication header SPI. </xhtml:li> |
| 6542 |
<xhtml:li>Rule 5 allows inbound communication on udp port 5353 |
| 6543 |
(mDNS), which the avahi daemon uses. </xhtml:li> |
| 6544 |
<xhtml:li>Rules 6 and 7 allows inbound communication on |
| 6545 |
both tcp and udp port 631, which the cups daemon uses. </xhtml:li> |
| 6546 |
<xhtml:li>Rule 8, in the iptables rules, |
| 6547 |
allows inbound packets that are part of a session initiated by the system. In ip6tables, |
| 6548 |
rules 8 and 9 allow any inbound packets with a destination port address between 32768 |
| 6549 |
and 61000. </xhtml:li> |
| 6550 |
<xhtml:li>Rule 9 (10, for ip6tables) allows inbound connections in tcp port 22, which |
| 6551 |
is the SSH protocol. </xhtml:li> |
| 6552 |
<xhtml:li>Rule 10 (11, for ip6tables) rejects all other packets and sends |
| 6553 |
an error message to the sender. Because this is the last rule and matches any packet, it |
| 6554 |
effectively prevents any packet from reaching the chain's default ACCEPT target. |
| 6555 |
Preventing the acceptance of any packet that is not explicitly allowed is proper design |
| 6556 |
for a firewall.</xhtml:li> |
| 6557 |
</xhtml:ul></xccdf:description> |
| 6558 |
</xccdf:Group> |
| 6559 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3"> |
| 6560 |
<xccdf:title xml:lang="en">Strengthen the Default Ruleset</xccdf:title> |
| 6561 |
<xccdf:description xml:lang="en"> |
| 6562 |
The default rules can be strengthened. The system scripts that |
| 6563 |
activate the firewall rules expect them to be defined in the configuration files |
| 6564 |
iptables and ip6tables in the directory /etc/sysconfig. Many of the lines in these files |
| 6565 |
are similar to the command line arguments that would be provided to the programs |
| 6566 |
/sbin/iptables or /sbin/ip6tables – but some are quite different. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6567 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6568 |
The following recommendations describe how to strengthen the default |
| 6569 |
ruleset configuration file. An alternative to editing this configuration file is to |
| 6570 |
create a shell script that makes calls to the iptables program to load in rules, and |
| 6571 |
then invokes service iptables save to write those loaded rules to |
| 6572 |
/etc/sysconfig/iptables. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6573 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6574 |
The following alterations can be made directly to |
| 6575 |
/etc/sysconfig/iptables and /etc/sysconfig/ip6tables. Instructions apply to both unless |
| 6576 |
otherwise noted. Language and address conventions for regular iptables are used |
| 6577 |
throughout this section; configuration for ip6tables will be either analogous or |
| 6578 |
explicitly covered.</xccdf:description> |
| 6579 |
<xccdf:warning xml:lang="en">The program |
| 6580 |
system-config-securitylevel allows additional services to penetrate the default firewall |
| 6581 |
rules and automatically adjusts /etc/ sysconfig/ iptables . This program is only useful |
| 6582 |
if the default ruleset meets your security requirements. Otherwise, this program should |
| 6583 |
not be used to make changes to the firewall configuration because it re-writes the saved |
| 6584 |
configuration file. </xccdf:warning> |
| 6585 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3.1"> |
| 6586 |
<xccdf:title xml:lang="en">Change the Default Policies</xccdf:title> |
| 6587 |
<xccdf:description xml:lang="en"> |
| 6588 |
Change the default policy to DROP (from ACCEPT) for the INPUT |
| 6589 |
and FORWARD built-in chains: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6590 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6591 |
*filter <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6592 |
:INPUT DROP [0:0] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6593 |
:FORWARD DROP [0:0] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6594 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6595 |
Changing |
| 6596 |
the default policy in this way implements proper design for a firewall, i.e. any |
| 6597 |
packets which are not explicitly permitted should not be accepted.</xccdf:description> |
| 6598 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.5.3.1.a" selected="false" severity="high" weight="10.0"> |
| 6599 |
<xccdf:title>Change the default policy to DROP (from ACCEPT) for the INPUT built-in chain</xccdf:title> |
| 6600 |
<xccdf:description>Change the default policy to DROP (from ACCEPT) for the INPUT built-in chain.</xccdf:description> |
| 6601 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 6602 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6603 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201474"/> |
| 6604 |
</xccdf:check> |
| 6605 |
</xccdf:Rule> |
| 6606 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.5.3.1.b" selected="false" severity="high" weight="10.0"> |
| 6607 |
<xccdf:title>Change the default policy to DROP (from ACCEPT) for the FORWARD built-in chain</xccdf:title> |
| 6608 |
<xccdf:description>Change the default policy to DROP (from ACCEPT) for the FORWARD built-in chain.</xccdf:description> |
| 6609 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 6610 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 6611 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201475"/> |
| 6612 |
</xccdf:check> |
| 6613 |
</xccdf:Rule> |
| 6614 |
</xccdf:Group> |
| 6615 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3.2"> |
| 6616 |
<xccdf:title xml:lang="en">Restrict ICMP Message Types</xccdf:title> |
| 6617 |
<xccdf:description xml:lang="en"> |
| 6618 |
In /etc/sysconfig/iptables, the accepted ICMP messages types |
| 6619 |
can be restricted. To accept only ICMP echo reply, destination unreachable, and time |
| 6620 |
exceeded messages, remove the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6621 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6622 |
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6623 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6624 |
and insert the lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6625 |
-A RH-Firewall-1-INPUT -p icmp --icmp-type echo-reply -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6626 |
-A RH-Firewall-1-INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6627 |
-A RH-Firewall-1-INPUT -p icmp --icmp-type time-exceeded -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6628 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6629 |
To allow the system to respond to pings, also insert the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6630 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6631 |
-A RH-Firewall-1-INPUT -p icmp --icmp-type echo-request -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6632 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6633 |
Ping responses can also be limited to certain |
| 6634 |
networks or hosts by using the -s option in the previous rule. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6635 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6636 |
Because IPv6 depends so |
| 6637 |
heavily on ICMPv6, it is preferable to deny the ICMPv6 packets you know you don't need |
| 6638 |
(e.g. ping requests) in /etc/sysconfig/ip6tables, while letting everything else |
| 6639 |
through: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6640 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6641 |
-A RH-Firewall-1-INPUT -p icmpv6 --icmpv6-type echo-request -j DROP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6642 |
If you |
| 6643 |
are going to statically configure the machine's address, it should ignore Router |
| 6644 |
Advertisements which could add another IPv6 address to the interface or alter |
| 6645 |
important network settings: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6646 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6647 |
-A RH-Firewall-1-INPUT -p icmpv6 --icmpv6-type router-advertisement -j DROP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6648 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6649 |
Restricting other ICMPv6 message types in |
| 6650 |
/etc/sysconfig/ip6tables is not recommended because the operation of IPv6 depends |
| 6651 |
heavily on ICMPv6. Thus, more care must be taken when blocking ICMPv6 types.</xccdf:description> |
| 6652 |
</xccdf:Group> |
| 6653 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3.3"> |
| 6654 |
<xccdf:title xml:lang="en">Remove IPsec Rules</xccdf:title> |
| 6655 |
<xccdf:description xml:lang="en"> |
| 6656 |
If the system will not process IPsec traffic, then remove the |
| 6657 |
following rules: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6658 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6659 |
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6660 |
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/></xccdf:description> |
| 6661 |
</xccdf:Group> |
| 6662 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3.4"> |
| 6663 |
<xccdf:title xml:lang="en">Log and Drop Packets with Suspicious Source Addresses</xccdf:title> |
| 6664 |
<xccdf:description xml:lang="en"> |
| 6665 |
Packets with non-routable source addresses should be |
| 6666 |
rejected, as they may indicate spoofing. Because the modified policy will reject |
| 6667 |
non-matching packets, you only need to add these rules if you are interested in also |
| 6668 |
logging these spoofing or suspicious attempts before they are dropped. If you do |
| 6669 |
choose to log various suspicious traffic, add identical rules with a target of DROP |
| 6670 |
after each LOG. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6671 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6672 |
To log and then drop these IPv4 packets, insert the following rules in |
| 6673 |
/etc/sysconfig/iptables (excepting any that are intentionally used): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6674 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6675 |
-A INPUT -i eth0 -s 10.0.0.0/8 -j LOG --log-prefix "IP DROP SPOOF A: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6676 |
-A INPUT -i eth0 -s 172.16.0.0/12 -j LOG --log-prefix "IP DROP SPOOF B: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6677 |
-A INPUT -i eth0 -s 192.168.0.0/16 -j LOG --log-prefix "IP DROP SPOOF C: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6678 |
-A INPUT -i eth0 -s 224.0.0.0/4 -j LOG --log-prefix "IP DROP MULTICAST D: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6679 |
-A INPUT -i eth0 -s 240.0.0.0/5 -j LOG --log-prefix "IP DROP SPOOF E: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6680 |
-A INPUT -i eth0 -d 127.0.0.0/8 -j LOG --log-prefix "IP DROP LOOPBACK: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6681 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6682 |
Similarly, you might wish to log packets containing some IPv6 |
| 6683 |
reserved addresses if they are not expected on your network: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6684 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6685 |
-A INPUT -i eth0 -s ::1 -j LOG --log-prefix "IPv6 DROP LOOPBACK: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6686 |
-A INPUT -s 2002:E000::/20 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6687 |
-A INPUT -s 2002:7F00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6688 |
-A INPUT -s 2002:0000::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6689 |
-A INPUT -s 2002:FF00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6690 |
-A INPUT -s 2002:0A00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6691 |
-A INPUT -s 2002:AC10::/28 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6692 |
-A INPUT -s 2002:C0A8::/32 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6693 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6694 |
If you are not expecting to see site-local multicast or auto-tunneled traffic, you |
| 6695 |
can log those: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6696 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6697 |
-A INPUT -s FF05::/16 -j LOG --log-prefix "IPv6 SITE-LOCAL MULTICAST: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6698 |
-A INPUT -s ::0.0.0.0/96 -j LOG --log-prefix "IPv4 COMPATIBLE IPv6 ADDR: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6699 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6700 |
If you wish to block multicasts to all |
| 6701 |
link-local nodes (e.g. if you are not using router autoconfiguration and do not plan |
| 6702 |
to have any services that multicast to the entire local network), you can block the |
| 6703 |
link-local all-nodes multicast address (before accepting incoming ICMPv6): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6704 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6705 |
-A INPUT -d FF02::1 -j LOG --log-prefix "Link-local All-Nodes Multicast: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6706 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6707 |
However, if you're |
| 6708 |
going to allow IPv4 compatible IPv6 addresses (of the form ::0.0.0.0/96), you should |
| 6709 |
then consider logging the non-routable IPv4-compatible addresses: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6710 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6711 |
-A INPUT -s ::0.0.0.0/104 -j LOG --log-prefix "IP NON-ROUTABLE ADDR: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6712 |
-A INPUT -s ::127.0.0.0/104 -j LOG --log-prefix "IP DROP LOOPBACK: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6713 |
-A INPUT -s ::224.0.0.0.0/100 -j LOG --log-prefix "IP DROP MULTICAST D: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6714 |
-A INPUT -s ::255.0.0.0/104 -j LOG --log-prefix "IP BROADCAST: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6715 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6716 |
If you are not expecting to see any IPv4 (or IPv4-compatible) traffic |
| 6717 |
on your network, consider logging it before it gets dropped: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6718 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6719 |
-A INPUT -s ::FFFF:0.0.0.0/96 -j LOG --log-prefix "IPv4 MAPPED IPv6 ADDR: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6720 |
-A INPUT -s 2002::/16 -j LOG --log-prefix "IPv6 6to4 ADDR: " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6721 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6722 |
The following rule will log all traffic |
| 6723 |
originating from a site-local address, which is deprecated address space: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6724 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6725 |
-A INPUT -s FEC0::/10 -j LOG --log-prefix "SITE-LOCAL ADDRESS TRAFFIC: "</xccdf:description> |
| 6726 |
</xccdf:Group> |
| 6727 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.3.5"> |
| 6728 |
<xccdf:title xml:lang="en">Log and Drop All Other Packets</xccdf:title> |
| 6729 |
<xccdf:description xml:lang="en"> |
| 6730 |
To log before dropping all packets that are not explicitly |
| 6731 |
accepted by previous rules, change the final lines from <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6732 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6733 |
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6734 |
COMMIT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6735 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6736 |
to <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6737 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6738 |
-A RH-Firewall-1-INPUT -j LOG <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6739 |
-A RH-Firewall-1-INPUT -j DROP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6740 |
COMMIT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6741 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6742 |
The rule to log all dropped packets must be used |
| 6743 |
with care. Chatty but otherwise non-malicious network protocols (e.g. NetBIOS) may |
| 6744 |
result in voluminous logs; insertion of earlier rules to explicitly drop their packets |
| 6745 |
without logging may be appropriate.</xccdf:description> |
| 6746 |
</xccdf:Group> |
| 6747 |
</xccdf:Group> |
| 6748 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.4"> |
| 6749 |
<xccdf:title xml:lang="en">Further Strengthening</xccdf:title> |
| 6750 |
<xccdf:description xml:lang="en"> |
| 6751 |
Further strengthening, particularly as a result of |
| 6752 |
customization to a particular environment, is possible for the iptables rules. Consider |
| 6753 |
the following options, though their practicality depends on the network environment and |
| 6754 |
usage scenario: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6755 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6756 |
<xhtml:li>Restrict outgoing traffic. As shown above, the OUTPUT chain's default |
| 6757 |
policy can be changed to DROP, and rules can be written to specifically allow only |
| 6758 |
certain types of outbound traffic. Such a policy could prevent casual usage of insecure |
| 6759 |
protocols such as ftp and telnet, or even disrupt spyware. However, it would still not |
| 6760 |
prevent a sophisticated user or program from using a proxy to circumvent the intended |
| 6761 |
effects, and many client programs even try to automatically tunnel through port 80 to |
| 6762 |
avoid such restrictions.</xhtml:li> |
| 6763 |
<xhtml:li>SYN flood protection. SYN flood protection can be provided by |
| 6764 |
iptables, but might run into limiting issues for servers. For example, the iplimit match |
| 6765 |
can be used to limit simultaneous connections from a given host or class. Similarly, the |
| 6766 |
recent match allows the firewall to deny additional connections from any host within a |
| 6767 |
given period of time (e.g. more than 3 –state NEW connections on port 22 within a minute |
| 6768 |
to prevent dictionary login attacks). <xhtml:br/> |
| 6769 |
<xhtml:br/> |
| 6770 |
A more precise option for DoS protection is using |
| 6771 |
TCP SYN cookies. (See Section 2.5.1.2 for more information.)</xhtml:li> |
| 6772 |
</xhtml:ul></xccdf:description> |
| 6773 |
</xccdf:Group> |
| 6774 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.5.5"> |
| 6775 |
<xccdf:title xml:lang="en">Further Resources</xccdf:title> |
| 6776 |
<xccdf:description xml:lang="en"> |
| 6777 |
More complex, restrictive, and powerful rulesets can be |
| 6778 |
created, but this requires careful customization that relies on knowledge of the |
| 6779 |
particular environment. The following resources provide more detailed information: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6780 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6781 |
<xhtml:li>The iptables(8) man page </xhtml:li> |
| 6782 |
<xhtml:li>The Netfilter Project's documentation at http://www.netfilter.org</xhtml:li> |
| 6783 |
<xhtml:li>The Red Hat Enterprise Linux Reference Guide</xhtml:li> |
| 6784 |
</xhtml:ul></xccdf:description> |
| 6785 |
</xccdf:Group> |
| 6786 |
</xccdf:Group> |
| 6787 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6"> |
| 6788 |
<xccdf:title xml:lang="en">Secure Sockets Layer Support</xccdf:title> |
| 6789 |
<xccdf:description xml:lang="en"> |
| 6790 |
The Secure Sockets Layer (SSL) protocol provides encrypted and |
| 6791 |
authenticated network communications, and many network services include support for it. |
| 6792 |
Using SSL is recommended, especially to avoid any plaintext transmission of sensitive |
| 6793 |
data, even over a local network. The SSL implementation included with the system is called |
| 6794 |
OpenSSL. Recent implementations of SSL may also be referred to as Transport Layer Security |
| 6795 |
(TLS). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6796 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6797 |
SSL uses public key cryptography to provide authentication and encryption. Public |
| 6798 |
key cryptography involves two keys, one called the public key and the other called the |
| 6799 |
private key. These keys are mathematically related such that data encrypted with one key |
| 6800 |
can only be decrypted by the other, and vice versa. As their names suggest, public keys |
| 6801 |
can be distributed to anyone while a private key must remain known only to its owner. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6802 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6803 |
SSL uses certificates, which are files that hold cryptographic data: a public key, and a |
| 6804 |
signature of that public key. In SSL authentication, a server presents a client with its |
| 6805 |
certificate as a means of demonstrating that it is who it claims it is. If everything goes |
| 6806 |
correctly, the client can verify the server's certificate by determining that the |
| 6807 |
signature inside the certificate could only have been generated by a third party whom the |
| 6808 |
client trusts. This third party is called a Certificate Authority (CA). Each client system |
| 6809 |
should also have certificates from trusted CAs, and the client uses these CA certificates |
| 6810 |
to verify the authenticity of the server's certificate. After authenticating a server |
| 6811 |
using its certificate and a CA certificate, SSL provides encryption by using the server |
| 6812 |
certificate to securely negotiate a shared secret key. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6813 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6814 |
If your server must communicate |
| 6815 |
using SSL with systems that might not be able to securely accept a new CA certificate |
| 6816 |
prior to any SSL communication, then paying an established CA (whose certificates your |
| 6817 |
clients already have) to sign your server certificates is recommended. The steps for doing |
| 6818 |
this vary by vendor. Once the signed certificates have been obtained, configuration of the |
| 6819 |
services is the same whether they were purchased from a vendor or signed by your own CA.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6820 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6821 |
For setting up an internal network and encrypting local traffic, creating your own CA to |
| 6822 |
sign SSL certificates can be appropriate. The major steps in this process are: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6823 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6824 |
<xhtml:li>Create a CA to sign certificates </xhtml:li> |
| 6825 |
<xhtml:li>Create SSL certificates for servers using that CA</xhtml:li> |
| 6826 |
<xhtml:li>Enableclient support by distributing the CA's certificate</xhtml:li> |
| 6827 |
</xhtml:ol></xccdf:description> |
| 6828 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.1"> |
| 6829 |
<xccdf:title xml:lang="en">Create a CA to Sign Certificates</xccdf:title> |
| 6830 |
<xccdf:description xml:lang="en"> |
| 6831 |
The following instructions apply to OpenSSL since it is |
| 6832 |
included with the system, but creating a CA is possible with any standards-compliant SSL |
| 6833 |
toolkit. The security of certificates depends on the security of the CA that signed |
| 6834 |
them, so performing these steps on a secure machine is critical. The system used as a CA |
| 6835 |
should be physically secure and not connected to any network. It should receive any |
| 6836 |
certificate signing requests (CSRs) via removable media and output certificates onto |
| 6837 |
removable media. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6838 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6839 |
The script /etc/pki/tls/misc/CA is included to assist in the process of |
| 6840 |
setting up a CA. This script uses many settings in /etc/pki/tls/openssl.cnf. The |
| 6841 |
settings in this file can be changed to suit your needs and allow easier selection of |
| 6842 |
default settings, particularly in the [req distinguished name] section. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6843 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6844 |
To create the CA: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6845 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6846 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/pki/tls/misc <xhtml:br/> |
| 6847 |
# ./CA -newca <xhtml:br/></xhtml:code> |
| 6848 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6849 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6850 |
<xhtml:li>When prompted, press enter to create a new CA key with the default name cakey.pem.</xhtml:li> |
| 6851 |
<xhtml:li>When prompted, enter a password that will protect the private key, then enter the same password |
| 6852 |
again to verify it.</xhtml:li> |
| 6853 |
<xhtml:li>At the prompts, fill out as much of the CA information as is relevant for your site. You must specify |
| 6854 |
a common name, or generation of the CA certificate will fail. </xhtml:li> |
| 6855 |
<xhtml:li>Next, you will be prompted for the password, so that the script can re-open the private key in order |
| 6856 |
to write the certificate.</xhtml:li> |
| 6857 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6858 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6859 |
This step performs the following actions: |
| 6860 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6861 |
<xhtml:li>creates the directory |
| 6862 |
/etc/pki/CA (by default), which contains files necessary for the operation of a |
| 6863 |
certificate authority. These are:</xhtml:li> |
| 6864 |
<xhtml:ul> |
| 6865 |
<xhtml:li>serial, which contains the current serial number for certificates signed by the CA</xhtml:li> |
| 6866 |
<xhtml:li>index.txt, which is a text database file that contains information about certificates signed</xhtml:li> |
| 6867 |
<xhtml:li>crl, which is a directory for holding revoked certificates</xhtml:li> |
| 6868 |
<xhtml:li>private, a directory which stores the CA's private key</xhtml:li> |
| 6869 |
</xhtml:ul> |
| 6870 |
<xhtml:li>creates a public-private key pair for the CA in the file /etc/pki/CA/private/cakey.pem. The |
| 6871 |
private key must be kept private in order to ensure the security of the certificates the CA will later sign.</xhtml:li> |
| 6872 |
<xhtml:li>signs the public key (using the corresponding private key, in a process called self-signing) to create the CA |
| 6873 |
certificate, which is then stored in /etc/pki/CA/cacert.pem. </xhtml:li> |
| 6874 |
<xhtml:li/> |
| 6875 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6876 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6877 |
When the CA later signs a server certificate using its private |
| 6878 |
key, it means that it is vouching for the authenticity of that server. A client can then |
| 6879 |
use the CA's certificate (which contains its public key) to verify the authenticity of |
| 6880 |
the server certificate. To accomplish this, it is necessary to distribute the CA |
| 6881 |
certificate to any clients as covered in Section 2.5.6.3.</xccdf:description> |
| 6882 |
</xccdf:Group> |
| 6883 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.2"> |
| 6884 |
<xccdf:title xml:lang="en">Create SSL Certificates for Servers</xccdf:title> |
| 6885 |
<xccdf:description xml:lang="en"> |
| 6886 |
Creating an SSL certificate for a server involves the following steps: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6887 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6888 |
<xhtml:li>A public-private key pair for the server must be generated.</xhtml:li> |
| 6889 |
<xhtml:li>A certificate signing request (CSR) must be created from the key pair.</xhtml:li> |
| 6890 |
<xhtml:li>The CSR must be signed by a |
| 6891 |
certificate authority (CA) to create the server certificate. If a CA has been set up as |
| 6892 |
described in Section 2.5.6.1, it can sign the CSR.</xhtml:li> |
| 6893 |
<xhtml:li>The server certificate and keys must be installed on the server. </xhtml:li> |
| 6894 |
</xhtml:ol> |
| 6895 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6896 |
Instructions on how to generate and sign SSL certificates are provided for the following |
| 6897 |
common services:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6898 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6899 |
<xhtml:li>Mail server, in Section 3.11.4.6.</xhtml:li> |
| 6900 |
<xhtml:li>Dovecot, in Section 3.17.2.2. </xhtml:li> |
| 6901 |
<xhtml:li>Apache, in Section 3.16.4.1.</xhtml:li> |
| 6902 |
</xhtml:ul></xccdf:description> |
| 6903 |
</xccdf:Group> |
| 6904 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.3"> |
| 6905 |
<xccdf:title xml:lang="en">Enable Client Support</xccdf:title> |
| 6906 |
<xccdf:description xml:lang="en"> |
| 6907 |
The system ships with certificates from well-known commercial |
| 6908 |
CAs. If your server certificates were signed by one of these established CAs, then this |
| 6909 |
step is not necessary since the clients should include the CA certificate already. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6910 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6911 |
If your servers use certificates signed by your own CA, some user applications will warn |
| 6912 |
that the server's certificate cannot be verified because the CA is not recognized. Other |
| 6913 |
applications may simply fail to accept the certificate and refuse to operate, or |
| 6914 |
continue operating without ever having properly verified the server certificate. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6915 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6916 |
To avoid this warning, and properly authenticate the servers, your CA certificate must be |
| 6917 |
exported to every application on every client system that will be connecting to an |
| 6918 |
SSL-enabled server.</xccdf:description> |
| 6919 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.3.1"> |
| 6920 |
<xccdf:title xml:lang="en">Adding a Trusted CA for Firefox</xccdf:title> |
| 6921 |
<xccdf:description xml:lang="en"> |
| 6922 |
Firefox needs to have a certificate from the CA that signed |
| 6923 |
the web server's certificate, so that it can authenticate the web server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6924 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6925 |
To import a new CA certificate into Firefox 1.5:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6926 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6927 |
<xhtml:li>Launch Firefox and choose Preferences from the Edit menu. </xhtml:li> |
| 6928 |
<xhtml:li>Click the Advanced button.</xhtml:li> |
| 6929 |
<xhtml:li>Select the Security pane.</xhtml:li> |
| 6930 |
<xhtml:li>Click the View Certificates button.</xhtml:li> |
| 6931 |
<xhtml:li>Click the Authorities tab. </xhtml:li> |
| 6932 |
<xhtml:li>Click the Import button at the bottom of the screen.</xhtml:li> |
| 6933 |
<xhtml:li>Navigate to the CA certificate and import it.</xhtml:li> |
| 6934 |
</xhtml:ol></xccdf:description> |
| 6935 |
</xccdf:Group> |
| 6936 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.3.2"> |
| 6937 |
<xccdf:title xml:lang="en">Adding a Trusted CA for Thunderbird</xccdf:title> |
| 6938 |
<xccdf:description xml:lang="en"> |
| 6939 |
Thunderbird needs to have a certificate from the CA that |
| 6940 |
signed the mail server's certificates, so that it can authenticate the mail server(s).<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6941 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6942 |
To import a new CA certificate into Thunderbird 2: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6943 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6944 |
<xhtml:li>Launch Thunderbird and choose Account Settings from the Edit menu.</xhtml:li> |
| 6945 |
<xhtml:li>Click the Advanced button.</xhtml:li> |
| 6946 |
<xhtml:li>Select the Certificates tab</xhtml:li> |
| 6947 |
<xhtml:li>Click the View Certificates button.</xhtml:li> |
| 6948 |
<xhtml:li>Select the Authorities tab.</xhtml:li> |
| 6949 |
<xhtml:li>Click the Import button at the bottom of the screen.</xhtml:li> |
| 6950 |
<xhtml:li>Navigate to the CA certificate and import it. Determine whether the CA should |
| 6951 |
be used to identify web sites, e-mail users, and software developers and trust it for |
| 6952 |
each accordingly.</xhtml:li> |
| 6953 |
</xhtml:ol></xccdf:description> |
| 6954 |
</xccdf:Group> |
| 6955 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.3.3"> |
| 6956 |
<xccdf:title xml:lang="en">Adding a Trusted CA for Evolution</xccdf:title> |
| 6957 |
<xccdf:description xml:lang="en"> |
| 6958 |
The Evolution e-mail client needs to have a certificate from |
| 6959 |
the CA that signed the mail server's certificates, so that it can authenticate the |
| 6960 |
mail server(s). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6961 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6962 |
To import a new CA certificate into Evolution: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6963 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6964 |
<xhtml:li>Launch Evolution and choose Preferences from the Edit menu.</xhtml:li> |
| 6965 |
<xhtml:li>Select Certificates from the icon list on the left.</xhtml:li> |
| 6966 |
<xhtml:li>Select the Authorities tab.</xhtml:li> |
| 6967 |
<xhtml:li>Click the Import button.</xhtml:li> |
| 6968 |
<xhtml:li/> |
| 6969 |
<xhtml:li/> |
| 6970 |
<xhtml:li>Navigate to the CA certificate and import it.</xhtml:li> |
| 6971 |
</xhtml:ol></xccdf:description> |
| 6972 |
</xccdf:Group> |
| 6973 |
</xccdf:Group> |
| 6974 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.6.4"> |
| 6975 |
<xccdf:title xml:lang="en">Further Resources</xccdf:title> |
| 6976 |
<xccdf:description xml:lang="en"> |
| 6977 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 6978 |
<xhtml:li>The OpenSSL Project home page at http://www.openssl.org</xhtml:li> |
| 6979 |
<xhtml:li>The openssl(1) man page</xhtml:li> |
| 6980 |
<xhtml:li>Jeremy Mates's how-to: http://sial.org/howto/openssl</xhtml:li> |
| 6981 |
</xhtml:ul> |
| 6982 |
</xccdf:description> |
| 6983 |
</xccdf:Group> |
| 6984 |
</xccdf:Group> |
| 6985 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.7"> |
| 6986 |
<xccdf:title xml:lang="en">Uncommon Network Protocols</xccdf:title> |
| 6987 |
<xccdf:description xml:lang="en"> |
| 6988 |
The system includes support for several network protocols which are not commonly used. Although security vul- |
| 6989 |
nerabilities in kernel networking code are not frequently discovered, the consequences can be dramatic. Ensuring |
| 6990 |
uncommon network protocols are disabled reduces the system’s risk to attacks targeted at its implementation of |
| 6991 |
those protocols.</xccdf:description> |
| 6992 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.7.1"> |
| 6993 |
<xccdf:title xml:lang="en">Disable Support for DCCP</xccdf:title> |
| 6994 |
<xccdf:description xml:lang="en"> |
| 6995 |
To prevent the DCCP kernel module from being loaded, add the following line to /etc/modprobe.conf:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6996 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6997 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">install dccp /bin/true<xhtml:br/></xhtml:code> |
| 6998 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 6999 |
The Datagram Congestion Control Protocol (DCCP) is a relatively new transport layer protocol, designed to |
| 7000 |
support streaming media and telephony.</xccdf:description> |
| 7001 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.7.1.a" selected="false" severity="medium" weight="10.0"> |
| 7002 |
<xccdf:title>Disable Support for DCCP</xccdf:title> |
| 7003 |
<xccdf:description>Support for DCCP should be disabled.</xccdf:description> |
| 7004 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 7005 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7006 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201476"/> |
| 7007 |
</xccdf:check> |
| 7008 |
</xccdf:Rule> |
| 7009 |
</xccdf:Group> |
| 7010 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.7.2"> |
| 7011 |
<xccdf:title xml:lang="en">Disable Support for SCTP</xccdf:title> |
| 7012 |
<xccdf:description xml:lang="en"> |
| 7013 |
To prevent the SCTP kernel module from being loaded, add the following line to /etc/modprobe.conf:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7014 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7015 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">install sctp /bin/true<xhtml:br/></xhtml:code> |
| 7016 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7017 |
The Stream Control Transmission Protocol (SCTP) is a transport layer protocol, designed to support the idea |
| 7018 |
of message-oriented communication, with several streams of messages within one connection.</xccdf:description> |
| 7019 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.7.2.a" selected="false" severity="medium" weight="10.0"> |
| 7020 |
<xccdf:title>Disable Support for SCTP</xccdf:title> |
| 7021 |
<xccdf:description>Support for SCTP should be disabled.</xccdf:description> |
| 7022 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 7023 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7024 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201477"/> |
| 7025 |
</xccdf:check> |
| 7026 |
</xccdf:Rule> |
| 7027 |
</xccdf:Group> |
| 7028 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.7.3"> |
| 7029 |
<xccdf:title xml:lang="en">Disable Support for RDS</xccdf:title> |
| 7030 |
<xccdf:description xml:lang="en"> |
| 7031 |
To prevent the RDS kernel module from being loaded, add the following line to /etc/modprobe.conf:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7032 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7033 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">install rds /bin/true<xhtml:br/></xhtml:code> |
| 7034 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7035 |
The Reliable Datagram Sockets (RDS) protocol is a transport layer protocol designed to provide reliable high- |
| 7036 |
bandwidth, low-latency communications between nodes in a cluster.</xccdf:description> |
| 7037 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.7.3.a" selected="false" severity="medium" weight="10.0"> |
| 7038 |
<xccdf:title>Disable Support for RDS</xccdf:title> |
| 7039 |
<xccdf:description>Support for RDS should be disabled.</xccdf:description> |
| 7040 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 7041 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7042 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201478"/> |
| 7043 |
</xccdf:check> |
| 7044 |
</xccdf:Rule> |
| 7045 |
</xccdf:Group> |
| 7046 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.5.7.4"> |
| 7047 |
<xccdf:title xml:lang="en">Disable Support for TIPC</xccdf:title> |
| 7048 |
<xccdf:description xml:lang="en"> |
| 7049 |
To prevent the TIPC kernel module from being loaded, add the following line to /etc/modprobe.conf:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7050 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7051 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">install rds /bin/true<xhtml:br/></xhtml:code> |
| 7052 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7053 |
The Transparent Inter-Process Communication (TIPC) protocol is designed to provide communications between |
| 7054 |
nodes in a cluster..</xccdf:description> |
| 7055 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.5.7.4.a" selected="false" severity="medium" weight="10.0"> |
| 7056 |
<xccdf:title>Disable Support for TIPC</xccdf:title> |
| 7057 |
<xccdf:description>Support for TIPC should be disabled.</xccdf:description> |
| 7058 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 7059 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7060 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201479"/> |
| 7061 |
</xccdf:check> |
| 7062 |
</xccdf:Rule> |
| 7063 |
</xccdf:Group> |
| 7064 |
</xccdf:Group> |
| 7065 |
</xccdf:Group> |
| 7066 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6"> |
| 7067 |
<xccdf:title xml:lang="en">Logging and Auditing</xccdf:title> |
| 7068 |
<xccdf:description xml:lang="en"> |
| 7069 |
Successful local or network attacks on systems do not necessarily |
| 7070 |
leave clear evidence of what happened. It is necessary to build a configuration in advance |
| 7071 |
that collects this evidence, both in order to determine that something anomalous has |
| 7072 |
occurred, and in order to respond appropriately. In addition, a well-configured logging and |
| 7073 |
audit infrastructure will show evidence of any misconfiguration which might leave the system |
| 7074 |
vulnerable to attack. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7075 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7076 |
Logging and auditing take different approaches to collecting data. A |
| 7077 |
logging infrastructure provides a framework for individual programs running on the system to |
| 7078 |
report whatever events are considered interesting: the sshd program may report each |
| 7079 |
successful or failed login attempt, while the sendmail program may report each time it sends |
| 7080 |
an e-mail on behalf of a local or remote user. An auditing infrastructure, on the other |
| 7081 |
hand, reports each instance of certain low-level events, such as entry to the setuid system |
| 7082 |
call, regardless of which program caused the event to occur. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7083 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7084 |
Auditing has the advantage of |
| 7085 |
being more comprehensive, but the disadvantage of reporting a large amount of information, |
| 7086 |
most of which is uninteresting. Logging (particularly using a standard framework like |
| 7087 |
syslog) has the advantage of being compatible with a wide variety of client applications, |
| 7088 |
and of reporting only information considered important by each application, but the |
| 7089 |
disadvantage that the information reported is not consistent between applications. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7090 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7091 |
A robust |
| 7092 |
infrastructure will perform both logging and auditing, and will use configurable automated |
| 7093 |
methods of summarizing the reported data, so that system administrators can remove or |
| 7094 |
compress reports of events known to be uninteresting in favor of alert monitoring for events |
| 7095 |
known to be interesting. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7096 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7097 |
This section discusses how to configure logging, log monitoring, |
| 7098 |
and auditing, using tools included with RHEL5. It is recommended that syslog be used for |
| 7099 |
logging, with logwatch providing summarization, and that auditd be used for auditing, with |
| 7100 |
aureport providing summarization.</xccdf:description> |
| 7101 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1"> |
| 7102 |
<xccdf:title xml:lang="en">Configure Syslog</xccdf:title> |
| 7103 |
<xccdf:description xml:lang="en"> |
| 7104 |
Syslog has been the default Unix logging mechanism for many years. This section |
| 7105 |
discusses how to configure syslog for best effect, and how to use tools provided with the |
| 7106 |
system to maintain and monitor your logs.</xccdf:description> |
| 7107 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.a" selected="false" severity="medium" weight="10.0"> |
| 7108 |
<xccdf:title>Configure Rsyslog</xccdf:title> |
| 7109 |
<xccdf:description>The rsyslog service should be enabled.</xccdf:description> |
| 7110 |
<xccdf:ident system="http://cce.mitre.org">CCE-3679-8</xccdf:ident> |
| 7111 |
<xccdf:fix>chkconfig rsyslog on</xccdf:fix> |
| 7112 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7113 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20148"/> |
| 7114 |
</xccdf:check> |
| 7115 |
</xccdf:Rule> |
| 7116 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.1"> |
| 7117 |
<xccdf:title xml:lang="en">Ensure All Important Messages are Captured</xccdf:title> |
| 7118 |
<xccdf:description xml:lang="en"><xhtml:span xmlns:xhtml="http://www.w3.org/1999/xhtml">Edit the file /etc/syslog.conf. Add or correct whichever of the |
| 7119 |
following lines are appropriate for your environment: <xhtml:br/> |
| 7120 |
<xhtml:br/> |
| 7121 |
auth,info.* /var/log/messages<xhtml:br/> |
| 7122 |
kern.* /var/log/kern.log <xhtml:br/> |
| 7123 |
daemon.* /var/log/daemon.log <xhtml:br/> |
| 7124 |
syslog.* /var/log/syslog<xhtml:br/> |
| 7125 |
lpr,news,uucp,local0,local1,local2,local3,local4,local5,local6.* /var/log/unused.log<xhtml:br/></xhtml:span> |
| 7126 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7127 |
When a message is sent to syslog for logging, it is sent with a facility name (such as |
| 7128 |
mail, auth, or local2), and a priority (such as debug, notice, or emerg). Each line of |
| 7129 |
syslog's configuration file is a directive which specifies a set of facility/priority |
| 7130 |
pairs, and then gives a filename or host to which log messages of matching types should |
| 7131 |
be sent. In order for a message to match a type, the facility must match, and the |
| 7132 |
priority must be the priority named in the rule or any higher priority. (See |
| 7133 |
syslog.conf(5) for an ordered list of priorities.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7134 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7135 |
Older versions of syslog mandated a |
| 7136 |
very restrictive format for the syslog.conf file. However, the version of syslog shipped |
| 7137 |
with RHEL5 allows any sort of whitespace (spaces or tabs, not just tabs) to separate the |
| 7138 |
selection criteria from the message disposition, and allows the use of facility.* as a |
| 7139 |
wildcard matching a given facility at any priority. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7140 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7141 |
The default RHEL5 syslog |
| 7142 |
configuration stores the facilities authpriv, cron, and mail in named logs. This guide |
| 7143 |
describes the implementation of the following configuration, but any configuration which |
| 7144 |
stores the important facilities and is usable by the administrators will suffice:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7145 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7146 |
<xhtml:li>Store each of the facilities kern, daemon, and syslog in its own log, so that it will be |
| 7147 |
easy to access information about messages from those facilities. </xhtml:li> |
| 7148 |
<xhtml:li>Restrict the |
| 7149 |
information stored in /var/log/messages to only the facilities auth and user, and store |
| 7150 |
all messages from those facilities. Messages can easily become cluttered otherwise. </xhtml:li> |
| 7151 |
<xhtml:li>Store information about all facilities which should not be in use at this site in a file |
| 7152 |
called /var/log/ unused.log. If any messages are logged to this file at some future |
| 7153 |
point, this may be an indication that an unknown service is running, and should be |
| 7154 |
investigated. In addition, if news and uucp are not in use at this site, remove the |
| 7155 |
directive from the default syslog.conf which stores those facilities. </xhtml:li> |
| 7156 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7157 |
Making use of the |
| 7158 |
local facilities is also recommended. Specific configuration is beyond the scope of this |
| 7159 |
guide, but applications such as SSH can easily be configured to log to a local facility |
| 7160 |
which is not being used for anything else. If this is done, reconfigure /etc/syslog.conf |
| 7161 |
to store this facility in an appropriate named log or in /var/log/messages, rather than |
| 7162 |
in /var/log/unused.log.</xccdf:description> |
| 7163 |
</xccdf:Group> |
| 7164 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.2"> |
| 7165 |
<xccdf:title xml:lang="en">Confirm Existence and Permissions of System Log Files</xccdf:title> |
| 7166 |
<xccdf:description xml:lang="en"> |
| 7167 |
For each log file LOGFILE referenced in /etc/syslog.conf, run |
| 7168 |
the commands: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7169 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7170 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># touch LOGFILE<xhtml:br/> |
| 7171 |
# chown root:root LOGFILE <xhtml:br/> |
| 7172 |
# chmod 0600 LOGFILE <xhtml:br/></xhtml:code> |
| 7173 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7174 |
Syslog will |
| 7175 |
refuse to log to a file which does not exist. All messages intended for that file will |
| 7176 |
be silently discarded, so it is important to verify that all log files exist. Some logs |
| 7177 |
may contain sensitive information, so it is better to restrict permissions so that only |
| 7178 |
administrative users can read or write logfiles.</xccdf:description> |
| 7179 |
<xccdf:Value id="xccdf_cdf_value_var-2.6.1.2.a" operator="equals" type="string"> |
| 7180 |
<xccdf:title>User who owns log files</xccdf:title> |
| 7181 |
<xccdf:description xml:lang="en">Specify user owner of all logfiles specified in /etc/syslog.conf.</xccdf:description> |
| 7182 |
<xccdf:question xml:lang="en">Specify user owner of all logfiles specified in /etc/syslog.conf</xccdf:question> |
| 7183 |
<xccdf:value>root</xccdf:value> |
| 7184 |
<xccdf:value selector="root">root</xccdf:value> |
| 7185 |
</xccdf:Value> |
| 7186 |
<xccdf:Value id="xccdf_cdf_value_var-2.6.1.2.b" operator="equals" type="string"> |
| 7187 |
<xccdf:title>group who owns log files</xccdf:title> |
| 7188 |
<xccdf:description xml:lang="en">Specify group owner of all logfiles specified in /etc/syslog.conf.</xccdf:description> |
| 7189 |
<xccdf:question xml:lang="en">Specify group owner of all logfiles specified in /etc/syslog.conf</xccdf:question> |
| 7190 |
<xccdf:value>root</xccdf:value> |
| 7191 |
<xccdf:value selector="root">root</xccdf:value> |
| 7192 |
</xccdf:Value> |
| 7193 |
<xccdf:Value id="xccdf_cdf_value_var-2.6.1.2.c" operator="equals" type="string"> |
| 7194 |
<xccdf:title>File permissions on logfiles</xccdf:title> |
| 7195 |
<xccdf:description xml:lang="en">Specify file permissions of all logfiles specified in /etc/syslog.conf.</xccdf:description> |
| 7196 |
<xccdf:question xml:lang="en">Specify permissions of all logfiles specified in /etc/syslog.conf</xccdf:question> |
| 7197 |
<xccdf:value>110000000</xccdf:value> |
| 7198 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 7199 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 7200 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 7201 |
</xccdf:Value> |
| 7202 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.2.a" selected="false" severity="medium" weight="10.0"> |
| 7203 |
<xccdf:title>Confirm user that owns System Log Files</xccdf:title> |
| 7204 |
<xccdf:description>All syslog log files should be owned by root.</xccdf:description> |
| 7205 |
<xccdf:ident system="http://cce.mitre.org">CCE-4366-1</xccdf:ident> |
| 7206 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 7207 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7208 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20149" value-id="xccdf_cdf_value_var-2.6.1.2.a"/> |
| 7209 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20149"/> |
| 7210 |
</xccdf:check> |
| 7211 |
</xccdf:Rule> |
| 7212 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.2.b" selected="false" severity="medium" weight="10.0"> |
| 7213 |
<xccdf:title>Confirm group that owns System Log Files</xccdf:title> |
| 7214 |
<xccdf:description>All syslog log files should be group owned by root.</xccdf:description> |
| 7215 |
<xccdf:ident system="http://cce.mitre.org">CCE-3701-0</xccdf:ident> |
| 7216 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 7217 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7218 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20150" value-id="xccdf_cdf_value_var-2.6.1.2.b"/> |
| 7219 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20150"/> |
| 7220 |
</xccdf:check> |
| 7221 |
</xccdf:Rule> |
| 7222 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.2.c" selected="false" severity="medium" weight="10.0"> |
| 7223 |
<xccdf:title>Confirm Permissions of System Log Files</xccdf:title> |
| 7224 |
<xccdf:description>File permissions for all syslog log files should be set correctly.</xccdf:description> |
| 7225 |
<xccdf:ident system="http://cce.mitre.org">CCE-4233-3</xccdf:ident> |
| 7226 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 7227 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7228 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20151" value-id="xccdf_cdf_value_var-2.6.1.2.c"/> |
| 7229 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20151"/> |
| 7230 |
</xccdf:check> |
| 7231 |
</xccdf:Rule> |
| 7232 |
</xccdf:Group> |
| 7233 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.3"> |
| 7234 |
<xccdf:title xml:lang="en">Send Logs to a Remote Loghost</xccdf:title> |
| 7235 |
<xccdf:description xml:lang="en"> |
| 7236 |
Edit /etc/syslog.conf. Add or correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7237 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7238 |
*.* @loghost.example.com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7239 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7240 |
where loghost.example.com is the name of your central log server.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7241 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7242 |
If system logs are to be useful in detecting malicious activities, it is necessary to |
| 7243 |
send logs to a remote server. An intruder who has compromised the root account on a |
| 7244 |
machine may delete the log entries which indicate that the system was attacked before |
| 7245 |
they are seen by an administrator. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7246 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7247 |
However, it is recommended that logs be stored on the |
| 7248 |
local host in addition to being sent to the loghost, because syslog uses the UDP |
| 7249 |
protocol to send messages over a network. UDP does not guarantee reliable delivery, and |
| 7250 |
moderately busy sites will lose log messages occasionally, especially in periods of high |
| 7251 |
traffic which may be the result of an attack. In addition, remote syslog messages are |
| 7252 |
not authenticated in any way, so it is easy for an attacker to introduce spurious |
| 7253 |
messages to the central log server. Also, some problems cause loss of network |
| 7254 |
connectivity, which will prevent the sending of messages to the central server. For all |
| 7255 |
of these reasons, it is better to store log messages both centrally and on each host, so |
| 7256 |
that they can be correlated if necessary.</xccdf:description> |
| 7257 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.3.a" selected="false" severity="medium" weight="10.0"> |
| 7258 |
<xccdf:title>Send Logs to a Remote Loghost</xccdf:title> |
| 7259 |
<xccdf:description>Syslog logs should be sent to a remote loghost</xccdf:description> |
| 7260 |
<xccdf:ident system="http://cce.mitre.org">CCE-4260-6</xccdf:ident> |
| 7261 |
<xccdf:fixtext>(1) via /etc/syslog.conf</xccdf:fixtext> |
| 7262 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7263 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20152"/> |
| 7264 |
</xccdf:check> |
| 7265 |
</xccdf:Rule> |
| 7266 |
</xccdf:Group> |
| 7267 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.4"> |
| 7268 |
<xccdf:title xml:lang="en">Enable syslogd to Accept Remote Messages on Loghosts Only</xccdf:title> |
| 7269 |
<xccdf:description xml:lang="en"> |
| 7270 |
Is this machine the central log server for your organization? |
| 7271 |
If so, edit the file /etc/sysconfig/syslog. Add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7272 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7273 |
SYSLOGD_OPTIONS="-m 0 -r -s example.com " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7274 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7275 |
where example.com is the name of your domain.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7276 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7277 |
If the machine is not a log server, edit /etc/sysconfig/syslog, and instead add or |
| 7278 |
correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7279 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7280 |
SYSLOGD_OPTIONS="-m 0" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7281 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7282 |
By default, RHEL5's syslog does not listen over |
| 7283 |
the network for log messages. The -r flag enables syslogd to listen over a network, and |
| 7284 |
should be used only if necessary. The -s example.com flag strips the domain name |
| 7285 |
example.com from each sending machine's hostname before logging messages from that host, |
| 7286 |
to reduce the amount of redundant information placed in log files. See the syslogd(8) |
| 7287 |
man page for further information.</xccdf:description> |
| 7288 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.4.a" selected="false" severity="medium" weight="10.0"> |
| 7289 |
<xccdf:title>Disable syslogd from Accepting Remote Messages on Loghosts Only</xccdf:title> |
| 7290 |
<xccdf:description>Syslogd should reject remote messages</xccdf:description> |
| 7291 |
<xccdf:ident system="http://cce.mitre.org">CCE-3382-9</xccdf:ident> |
| 7292 |
<xccdf:fixtext>(1) via /etc/sysconfig/syslog</xccdf:fixtext> |
| 7293 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7294 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20153"/> |
| 7295 |
</xccdf:check> |
| 7296 |
</xccdf:Rule> |
| 7297 |
</xccdf:Group> |
| 7298 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.5"> |
| 7299 |
<xccdf:title xml:lang="en">Ensure All Logs are Rotated by logrotate</xccdf:title> |
| 7300 |
<xccdf:description xml:lang="en"> |
| 7301 |
Edit the file /etc/logrotate.d/syslog. Find the first line, |
| 7302 |
which should look like this (wrapped for clarity): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7303 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7304 |
/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler \ |
| 7305 |
/var/log/boot.log /var/log/cron { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7306 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7307 |
Edit this line so |
| 7308 |
that it contains a one-space-separated listing of each log file referenced in |
| 7309 |
/etc/syslog.conf. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7310 |
All logs in use on a system must be rotated regularly, or the log |
| 7311 |
files will consume disk space over time, eventually interfering with system operation. |
| 7312 |
The file /etc/logrotate.d/syslog is the configuration file used by the logrotate program |
| 7313 |
to maintain all log files written by syslog. By default, it rotates logs weekly and |
| 7314 |
stores four archival copies of each log. These settings can be modified by editing |
| 7315 |
/etc/logrotate.conf, but the defaults are sufficient for purposes of this guide. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7316 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7317 |
Note |
| 7318 |
that logrotate is run nightly by the cron job /etc/cron.daily/logrotate. If particularly |
| 7319 |
active logs need to be rotated more often than once a day, some other mechanism must be |
| 7320 |
used.</xccdf:description> |
| 7321 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.5.a" selected="false" severity="medium" weight="10.0"> |
| 7322 |
<xccdf:title>Ensure All Logs are Rotated by logrotate</xccdf:title> |
| 7323 |
<xccdf:description>The logrotate (syslog rotater) service should be enabled.</xccdf:description> |
| 7324 |
<xccdf:ident system="http://cce.mitre.org">CCE-4182-2</xccdf:ident> |
| 7325 |
<xccdf:fixtext>(1) via cron</xccdf:fixtext> |
| 7326 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7327 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20154"/> |
| 7328 |
</xccdf:check> |
| 7329 |
</xccdf:Rule> |
| 7330 |
</xccdf:Group> |
| 7331 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.6"> |
| 7332 |
<xccdf:title xml:lang="en">Monitor Suspicious Log Messages using Logwatch</xccdf:title> |
| 7333 |
<xccdf:description xml:lang="en"> |
| 7334 |
The system includes an extensible program called Logwatch for |
| 7335 |
reporting on unusual items in syslog. Logwatch is valuable because it provides a parser |
| 7336 |
for the syslog entry format and a number of signatures for types of lines which are |
| 7337 |
considered to be mundane or noteworthy. Logwatch has a number of downsides: the |
| 7338 |
signatures can be inaccurate and are not always categorized consistently, and you must |
| 7339 |
be able to program in Perl in order to customize the signature database. However, it is |
| 7340 |
recommended that all Linux sites which do not have time to deploy a third-party log |
| 7341 |
monitoring application run Logwatch in its default configuration. This provides some |
| 7342 |
useful information about system activity in exchange for very little administrator |
| 7343 |
effort. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7344 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7345 |
This guide recommends that Logwatch be run only on the central logserver, if |
| 7346 |
your site has one, in order to focus administrator attention by sending all daily logs |
| 7347 |
in a single e-mail.</xccdf:description> |
| 7348 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.1.6.a" selected="false" severity="medium" weight="10.0"> |
| 7349 |
<xccdf:title>Monitor Suspicious Log Messages using Logwatch</xccdf:title> |
| 7350 |
<xccdf:description>The logwatch service should be enabled</xccdf:description> |
| 7351 |
<xccdf:ident system="http://cce.mitre.org">CCE-4323-2</xccdf:ident> |
| 7352 |
<xccdf:fixtext>(1) via cron</xccdf:fixtext> |
| 7353 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7354 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20155"/> |
| 7355 |
</xccdf:check> |
| 7356 |
</xccdf:Rule> |
| 7357 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.6.1"> |
| 7358 |
<xccdf:title xml:lang="en">Configure Logwatch on the Central Log Server</xccdf:title> |
| 7359 |
<xccdf:description xml:lang="en"> |
| 7360 |
Is this machine the central log server? If so, edit the file |
| 7361 |
/etc/logwatch/conf/logwatch.conf. Add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7362 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7363 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">HostLimit = no<xhtml:br/> |
| 7364 |
SplitHosts = yes <xhtml:br/> |
| 7365 |
MultiEmail = no <xhtml:br/></xhtml:code> |
| 7366 |
Service = -zz-disk_space <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7367 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7368 |
Ensure that logwatch.pl is run nightly from cron. (This is the default): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7369 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7370 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/cron.daily <xhtml:br/> |
| 7371 |
# ln -s /usr/share/logwatch/scripts/logwatch.pl 0logwatch <xhtml:br/></xhtml:code> |
| 7372 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7373 |
On a central logserver, you want |
| 7374 |
Logwatch to summarize all syslog entries, including those which did not originate on |
| 7375 |
the logserver itself. The HostLimit setting tells Logwatch to report on all hosts, not |
| 7376 |
just the one on which it is running. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7377 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7378 |
If SplitHosts is set, Logwatch will separate |
| 7379 |
entries by hostname. This makes the report longer but significantly more usable. If it |
| 7380 |
is not set, then Logwatch will not report which host generated a given log entry, and |
| 7381 |
that information is almost always necessary. If MultiEmail is set, then each host's |
| 7382 |
information will be sent in a separate e-mail message. This is a matter of preference.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7383 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7384 |
The Service directive -zz-disk space tells Logwatch not to run the zz-disk space |
| 7385 |
report, which reports on free disk space. Since all log monitoring is being done on |
| 7386 |
the central logserver, the disk space listing will always be that of the logserver, |
| 7387 |
regardless of which host is being monitored. This is confusing, so disable that |
| 7388 |
service. Note that this does mean that Logwatch will not monitor disk usage |
| 7389 |
information. Many workarounds are possible, such as running df on each host daily via |
| 7390 |
cron and sending the output to syslog so that it will be reported to the logserver.</xccdf:description> |
| 7391 |
</xccdf:Group> |
| 7392 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.1.6.2"> |
| 7393 |
<xccdf:title xml:lang="en">Disable Logwatch on Clients if a Logserver Exists</xccdf:title> |
| 7394 |
<xccdf:description xml:lang="en"> |
| 7395 |
Does your site have a central logserver which has been |
| 7396 |
configured to report on logs received from all systems? If so: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7397 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7398 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rm /etc/cron.daily/0logwatch <xhtml:br/></xhtml:code> |
| 7399 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7400 |
If no logserver exists, it will be necessary for each |
| 7401 |
machine to run Logwatch individually. Using a central logserver provides the security |
| 7402 |
and reliability benefits discussed earlier, and also makes monitoring logs easier and |
| 7403 |
less time-intensive for administrators.</xccdf:description> |
| 7404 |
</xccdf:Group> |
| 7405 |
</xccdf:Group> |
| 7406 |
</xccdf:Group> |
| 7407 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2"> |
| 7408 |
<xccdf:title xml:lang="en">System Accounting with auditd</xccdf:title> |
| 7409 |
<xccdf:description xml:lang="en"> |
| 7410 |
The audit service is the current Linux recommendation for |
| 7411 |
kernel-level auditing. By default, the service audits about SELinux AVC denials and |
| 7412 |
certain types of security-relevant events such as system logins, account modifications, |
| 7413 |
and authentication events performed by programs such as sudo. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7414 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7415 |
Under its default |
| 7416 |
configuration, auditd has modest disk space requirements, and should not noticeably impact |
| 7417 |
system performance. The audit service, in its default configuration, is strongly |
| 7418 |
recommended for all sites, regardless of whether they are running SELinux. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7419 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7420 |
DoD or federal networks often have substantial auditing requirements and auditd can be |
| 7421 |
configured to meet these requirements.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7422 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7423 |
Typical DoD requirements include:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7424 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7425 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7426 |
<xhtml:li>Ensure Auditing is Configured to Collect Certain System Events |
| 7427 |
<xhtml:ul> |
| 7428 |
<xhtml:li>Information on the Use of Print Command (unsuccessful and successful)</xhtml:li> |
| 7429 |
<xhtml:li>Startup and Shutdown Events (unsuccessful and successful)</xhtml:li> |
| 7430 |
</xhtml:ul> |
| 7431 |
</xhtml:li> |
| 7432 |
<xhtml:li>Ensure the auditing software can record the following for each audit event: |
| 7433 |
<xhtml:ul> |
| 7434 |
<xhtml:li>Date and time of the event</xhtml:li> |
| 7435 |
<xhtml:li>Userid that initiated the event</xhtml:li> |
| 7436 |
<xhtml:li>Type of event</xhtml:li> |
| 7437 |
<xhtml:li>Success or failure of the event</xhtml:li> |
| 7438 |
<xhtml:li>For I&A events, the origin of the request (e.g., terminal ID)</xhtml:li> |
| 7439 |
<xhtml:li>For events that introduce an object into a user’s address space, and for object deletion events, the |
| 7440 |
name of the object, and in MLS systems, the objects security level.</xhtml:li> |
| 7441 |
</xhtml:ul> |
| 7442 |
</xhtml:li> |
| 7443 |
<xhtml:li>Ensure files are backed up no less than weekly onto a different system than the system being audited or |
| 7444 |
backup media.</xhtml:li> |
| 7445 |
<xhtml:li>Ensure old logs are closed out and new audit logs are started daily</xhtml:li> |
| 7446 |
<xhtml:li>Ensure the configuration is immutable. With the -e 2 setting a reboot will be required to change any audit |
| 7447 |
rules.</xhtml:li> |
| 7448 |
<xhtml:li>Ensure that the audit data files have permissions of 640, or more restrictive.</xhtml:li> |
| 7449 |
</xhtml:ul> |
| 7450 |
</xccdf:description> |
| 7451 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.1"> |
| 7452 |
<xccdf:title xml:lang="en">Enable the auditd Service</xccdf:title> |
| 7453 |
<xccdf:description xml:lang="en"> |
| 7454 |
Ensure that the auditd service is enabled (this is the default): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7455 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7456 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig auditd on <xhtml:br/></xhtml:code> |
| 7457 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7458 |
By default, auditd logs only SELinux denials, which are |
| 7459 |
helpful for debugging SELinux and discovering intrusion attempts, and certain types of |
| 7460 |
security events, such as modifications to user accounts (useradd, passwd, etc), login |
| 7461 |
events, and calls to sudo. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7462 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7463 |
Data is stored in /var/log/audit/audit.log. By default, |
| 7464 |
auditd rotates 4 logs by size (5MB), retaining a maximum of 20MB of data in total, and |
| 7465 |
refuses to write entries when the disk is too full. This minimizes the risk of audit |
| 7466 |
data filling its partition and impacting other services. However, it is possible to lose |
| 7467 |
audit data if the system is busy.</xccdf:description> |
| 7468 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 7469 |
<xccdf:title>Enable the auditd Service</xccdf:title> |
| 7470 |
<xccdf:description>The auditd service should be enabled.</xccdf:description> |
| 7471 |
<xccdf:ident system="http://cce.mitre.org">CCE-4292-9</xccdf:ident> |
| 7472 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 7473 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7474 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20156"/> |
| 7475 |
</xccdf:check> |
| 7476 |
</xccdf:Rule> |
| 7477 |
</xccdf:Group> |
| 7478 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.2"> |
| 7479 |
<xccdf:title xml:lang="en">Configure auditd Data Retention</xccdf:title> |
| 7480 |
<xccdf:description xml:lang="en"> |
| 7481 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7482 |
<xhtml:li>Determine STOREMB , the amount of audit data (in megabytes) which should be retained in each log |
| 7483 |
file. Edit the file /etc/audit/auditd.conf. Add or modify the following line:<xhtml:br/> |
| 7484 |
<xhtml:br/> |
| 7485 |
max_log_file = STOREMB</xhtml:li> |
| 7486 |
<xhtml:li>Use a dedicated partition (or logical volume) for log files. It is straightforward to create such a partition |
| 7487 |
or logical volume during system installation time. The partition should be larger than the maximum |
| 7488 |
space which auditd will ever use, which is the maximum size of each log file (max log file) multiplied |
| 7489 |
by the number of log files (num logs). Ensure the partition is mounted on /var/log/audit.</xhtml:li> |
| 7490 |
<xhtml:li>If your site requires that the machine be disabled when auditing cannot be performed, configure auditd |
| 7491 |
to halt the system when disk space for auditing runs low. Edit /etc/audit/auditd.conf, and add or |
| 7492 |
correct the following lines:<xhtml:br/> |
| 7493 |
<xhtml:br/> |
| 7494 |
space_left_action = email<xhtml:br/> |
| 7495 |
action_mail_acct = root<xhtml:br/> |
| 7496 |
admin_space_left_action = halt<xhtml:br/></xhtml:li> |
| 7497 |
</xhtml:ul> |
| 7498 |
The default action to take when the logs reach their maximum size is to rotate the log files, discarding the |
| 7499 |
oldest one. If it is more important to retain all possible auditing information, even if that opens the possibility |
| 7500 |
of running out of space and taking the action defined by admin space left action, add or correct the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7501 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7502 |
max_log_file_action = keep_logs<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7503 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7504 |
By default, auditd retains 4 log files of size 5Mb apiece. For a busy system or a system which is thoroughly |
| 7505 |
auditing system activity, this is likely to be insufficient.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7506 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7507 |
The log file size needed will depend heavily on what types of events are being audited. First configure auditing |
| 7508 |
to log all the events of interest. Then monitor the log size manually for awhile to determine what file size will |
| 7509 |
allow you to keep the required data for the correct time period.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7510 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7511 |
Using a dedicated partition for /var/log/audit prevents the auditd logs from disrupting system functionality if |
| 7512 |
they fill, and, more importantly, prevents other activity in /var from filling the partition and stopping the audit |
| 7513 |
trail. (The audit logs are size-limited and therefore unlikely to grow without bound unless configured to do so.) |
| 7514 |
Some machines may have requirements that no actions occur which cannot be audited. If this is the case, then |
| 7515 |
auditd can be configured to halt the machine if it runs out of space.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7516 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7517 |
Note: Since older logs are rotated, configuring auditd this way does not prevent older logs from being rotated |
| 7518 |
away before they can be viewed. |
| 7519 |
</xccdf:description> |
| 7520 |
<xccdf:warning xml:lang="en">If your system is configured to halt when logging cannot be performed, make sure this can never |
| 7521 |
happen under normal circumstances! Ensure that /var/ log/ audit is on its own partition, and |
| 7522 |
that this partition is larger than the maximum amount of data auditd will retain normally.</xccdf:warning> |
| 7523 |
</xccdf:Group> |
| 7524 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.3"> |
| 7525 |
<xccdf:title xml:lang="en">Enable Auditing for Processes Which Start Prior to the Audit Daemon</xccdf:title> |
| 7526 |
<xccdf:description xml:lang="en"> |
| 7527 |
To ensure that all processes can be audited, even those which start prior to the audit daemon, add the |
| 7528 |
argument audit=1 to the kernel line in /etc/grub.conf, in the manner below:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7529 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7530 |
kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7531 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7532 |
Each process on the system carries an ”auditable” flag which indicates whether its activities can be audited. |
| 7533 |
Although auditd takes care of enabling this for all processes which launch after it does, adding the kernel |
| 7534 |
argument ensures that it is set for every process during boot. |
| 7535 |
</xccdf:description> |
| 7536 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.3.a" selected="false" severity="medium" weight="10.0"> |
| 7537 |
<xccdf:title>Enable Auditing for Processes Which Start Prior to the Audit Daemon</xccdf:title> |
| 7538 |
<xccdf:description> |
| 7539 |
To ensure that all processes can be audited, even those which start prior to the audit daemon, add the argument audit=1 |
| 7540 |
to the kernel line in /etc/grub.conf, in the manner below:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7541 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/>kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1</xccdf:description> |
| 7542 |
<xccdf:fixtext>(1) via /etc/grub.conf add audit=1 to kernel line</xccdf:fixtext> |
| 7543 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7544 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20157"/> |
| 7545 |
</xccdf:check> |
| 7546 |
</xccdf:Rule> |
| 7547 |
</xccdf:Group> |
| 7548 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4"> |
| 7549 |
<xccdf:title xml:lang="en">Configure auditd Rules for Comprehensive Auditing</xccdf:title> |
| 7550 |
<xccdf:description xml:lang="en"> |
| 7551 |
The auditd program can perform comprehensive monitoring of system activity. This section describes rec- |
| 7552 |
ommended configuration settings for comprehensive auditing, but a full description of the auditing system’s |
| 7553 |
capabilities is beyond the scope of this guide. The mailing list [email protected] may be a good source |
| 7554 |
of further information.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7555 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7556 |
The audit subsystem supports extensive collection of events, including:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7557 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7558 |
<xhtml:li>Tracing of arbitrary system calls (identified by name or number) on entry or exit.</xhtml:li> |
| 7559 |
<xhtml:li>Filtering by PID, UID, call success, system call argument (with some limitations), etc.</xhtml:li> |
| 7560 |
<xhtml:li>Monitoring of specific files for modifications to the file’s contents or metadata.</xhtml:li> |
| 7561 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7562 |
Auditing rules are controlled in the file /etc/audit/audit.rules. Add rules to it to meet the auditing re- |
| 7563 |
quirements for your organization. Each line in /etc/audit/audit.rules represents a series of arguments that |
| 7564 |
can be passed to auditctl and can be individually tested as such. See documentation in /usr/share/doc/ |
| 7565 |
audit-version and in the related man pages for more details.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7566 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7567 |
Recommended audit rules are provided in /usr/share/doc/audit-version /stig.rules. In order to activate |
| 7568 |
those rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7569 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7570 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cp /usr/share/doc/audit-version /stig.rules /etc/audit/audit.rules<xhtml:br/></xhtml:code> |
| 7571 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7572 |
and then edit /etc/audit/audit.rules and comment out the lines containing arch= which are not appropriate |
| 7573 |
for your system’s architecture. Then review and understand the following rules, ensuring rules are activated as |
| 7574 |
needed for the appropriate architecture.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7575 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7576 |
After reviewing all the rules, reading the following sections, and editing as needed, activate the new rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7577 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7578 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># service auditd restart</xhtml:code></xccdf:description> |
| 7579 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.1"> |
| 7580 |
<xccdf:title xml:lang="en">Records Events that Modify Date and Time Information</xccdf:title> |
| 7581 |
<xccdf:description xml:lang="en"> |
| 7582 |
Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your |
| 7583 |
system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7584 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7585 |
-a always,exit -F arch=ARCH -S adjtimex -S settimeofday -S stime -k time-change<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7586 |
-a always,exit -F arch=ARCH -S clock_settime -k time-change<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7587 |
-w /etc/localtime -p wa -k time-change |
| 7588 |
</xccdf:description> |
| 7589 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.1.a" selected="false" severity="medium" weight="10.0"> |
| 7590 |
<xccdf:title>Records Events that Modify Date and Time Information</xccdf:title> |
| 7591 |
<xccdf:description>Audit rules about time</xccdf:description> |
| 7592 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7593 |
|
| 7594 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7595 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201575"/> |
| 7596 |
</xccdf:check> |
| 7597 |
</xccdf:Rule> |
| 7598 |
</xccdf:Group> |
| 7599 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.2"> |
| 7600 |
<xccdf:title xml:lang="en">Record Events that Modify User/Group Information</xccdf:title> |
| 7601 |
<xccdf:description xml:lang="en"> |
| 7602 |
Add the following to /etc/audit/audit.rules, in order to capture events that modify account changes:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7603 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7604 |
-w /etc/group -p wa -k identity<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7605 |
-w /etc/passwd -p wa -k identity<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7606 |
-w /etc/gshadow -p wa -k identity<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7607 |
-w /etc/shadow -p wa -k identity<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7608 |
-w /etc/security/opasswd -p wa -k identity |
| 7609 |
</xccdf:description> |
| 7610 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.2.a" selected="false" severity="medium" weight="10.0"> |
| 7611 |
<xccdf:title>Record Events that Modify User/Group Information</xccdf:title> |
| 7612 |
<xccdf:description>Audit rules about User/Group Information</xccdf:description> |
| 7613 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7614 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7615 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7616 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20158"/> |
| 7617 |
</xccdf:check> |
| 7618 |
</xccdf:Rule> |
| 7619 |
</xccdf:Group> |
| 7620 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.3"> |
| 7621 |
<xccdf:title xml:lang="en">Record Events that Modify the System’s Network Environment</xccdf:title> |
| 7622 |
<xccdf:description xml:lang="en"> |
| 7623 |
Add the following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your |
| 7624 |
system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7625 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7626 |
-a exit,always -F arch=ARCH -S sethostname -S setdomainname -k system-locale<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7627 |
-w /etc/issue -p wa -k system-locale<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7628 |
-w /etc/issue.net -p wa -k system-locale<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7629 |
-w /etc/hosts -p wa -k system-locale<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7630 |
-w /etc/sysconfig/network -p wa -k system-locale<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7631 |
</xccdf:description> |
| 7632 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.3.a" selected="false" severity="medium" weight="10.0"> |
| 7633 |
<xccdf:title>Record Events that Modify the System’s Network Environment</xccdf:title> |
| 7634 |
<xccdf:description>Audit rules about the System’s Network Environment</xccdf:description> |
| 7635 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7636 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7637 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7638 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20159"/> |
| 7639 |
</xccdf:check> |
| 7640 |
</xccdf:Rule> |
| 7641 |
</xccdf:Group> |
| 7642 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.4"> |
| 7643 |
<xccdf:title xml:lang="en">Record Events that Modify the System’s Mandatory Access Controls</xccdf:title> |
| 7644 |
<xccdf:description xml:lang="en"> |
| 7645 |
Add the following to /etc/audit/audit.rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7646 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7647 |
-w /etc/selinux/ -p wa -k MAC-policy |
| 7648 |
</xccdf:description> |
| 7649 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.4.a" selected="false" severity="medium" weight="10.0"> |
| 7650 |
<xccdf:title>Record Events that Modify the System’s Mandatory Access Controls</xccdf:title> |
| 7651 |
<xccdf:description>Audit rules about the System’s Mandatory Access Controls</xccdf:description> |
| 7652 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7653 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7654 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7655 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20160"/> |
| 7656 |
</xccdf:check> |
| 7657 |
</xccdf:Rule> |
| 7658 |
</xccdf:Group> |
| 7659 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.5"> |
| 7660 |
<xccdf:title xml:lang="en">Ensure auditd Collects Logon and Logout Events</xccdf:title> |
| 7661 |
<xccdf:description xml:lang="en"> |
| 7662 |
At a minimum the audit system should collect login info for all users and root. Add the following to |
| 7663 |
/etc/audit/audit.rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7664 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7665 |
-w /var/log/faillog -p wa -k logins<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7666 |
-w /var/log/lastlog -p wa -k logins |
| 7667 |
</xccdf:description> |
| 7668 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.5.a" selected="false" severity="medium" weight="10.0"> |
| 7669 |
<xccdf:title>Ensure auditd Collects Logon and Logout Events</xccdf:title> |
| 7670 |
<xccdf:description>Audit rules about the Logon and Logout Events</xccdf:description> |
| 7671 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7672 |
|
| 7673 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7674 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20161"/> |
| 7675 |
</xccdf:check> |
| 7676 |
</xccdf:Rule> |
| 7677 |
</xccdf:Group> |
| 7678 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.6"> |
| 7679 |
<xccdf:title xml:lang="en">Ensure auditd Collects Process and Session Initiation Information</xccdf:title> |
| 7680 |
<xccdf:description xml:lang="en"> |
| 7681 |
At a minimum the audit system should collect process information for all users and root. Add the following |
| 7682 |
to /etc/audit/audit.rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7683 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7684 |
-w /var/run/utmp -p wa -k session<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7685 |
-w /var/log/btmp -p wa -k session<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7686 |
-w /var/log/wtmp -p wa -k session |
| 7687 |
</xccdf:description> |
| 7688 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.6.a" selected="false" severity="medium" weight="10.0"> |
| 7689 |
<xccdf:title>Ensure auditd Collects Process and Session Initiation Information</xccdf:title> |
| 7690 |
<xccdf:description>Audit rules about the Process and Session Initiation Information</xccdf:description> |
| 7691 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7692 |
|
| 7693 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7694 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20162"/> |
| 7695 |
</xccdf:check> |
| 7696 |
</xccdf:Rule> |
| 7697 |
</xccdf:Group> |
| 7698 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.7"> |
| 7699 |
<xccdf:title xml:lang="en">Ensure auditd Collects Discretionary Access Control Permission Modification Events</xccdf:title> |
| 7700 |
<xccdf:description xml:lang="en"> |
| 7701 |
At a minimum the audit system should collect file permission changes for all users and root. Add the |
| 7702 |
following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7703 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7704 |
-a always,exit -F arch=ARCH -S chmod -S fchmod -S fchmodat -F auid>=500 \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7705 |
-F auid!=4294967295 -k perm_mod<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7706 |
-a always,exit -F arch=ARCH -S chown -S fchown -S fchownat -S lchown -F auid>=500 \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7707 |
-F auid!=4294967295 -k perm_mod<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7708 |
-a always,exit -F arch=ARCH -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7709 |
lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod |
| 7710 |
</xccdf:description> |
| 7711 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.7.a" selected="false" severity="medium" weight="10.0"> |
| 7712 |
<xccdf:title>Ensure auditd Collects Discretionary Access Control Permission Modification Events</xccdf:title> |
| 7713 |
<xccdf:description>Audit rules about the Discretionary Access Control Permission Modification Events</xccdf:description> |
| 7714 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7715 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7716 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7717 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20163"/> |
| 7718 |
</xccdf:check> |
| 7719 |
</xccdf:Rule> |
| 7720 |
</xccdf:Group> |
| 7721 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.8"> |
| 7722 |
<xccdf:title xml:lang="en">Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)</xccdf:title> |
| 7723 |
<xccdf:description xml:lang="en"> |
| 7724 |
At a minimum the audit system should collect unauthorized file accesses for all users and root. Add the |
| 7725 |
following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7726 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7727 |
-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate -S ftruncate \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7728 |
-F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7729 |
-a always,exit -F arch=ARCH -S creat -S open -S openat -S truncate -S ftruncate \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7730 |
-F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access |
| 7731 |
</xccdf:description> |
| 7732 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.8.a" selected="false" severity="medium" weight="10.0"> |
| 7733 |
<xccdf:title>Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)</xccdf:title> |
| 7734 |
<xccdf:description>Audit rules about the Unauthorized Access Attempts to Files (unsuccessful)</xccdf:description> |
| 7735 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7736 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7737 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7738 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20164"/> |
| 7739 |
</xccdf:check> |
| 7740 |
</xccdf:Rule> |
| 7741 |
</xccdf:Group> |
| 7742 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.9"> |
| 7743 |
<xccdf:title xml:lang="en">Ensure auditd Collects Information on the Use of Privileged Commands</xccdf:title> |
| 7744 |
<xccdf:description xml:lang="en"> |
| 7745 |
At a minimum the audit system should collect the execution of privileged commands for all users and root. |
| 7746 |
Add the following to /etc/audit/audit.rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7747 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7748 |
-a always,exit -F path=/bin/ping -F perm=x -F auid>=500 -F auid!=4294967295 \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7749 |
-k privileged |
| 7750 |
</xccdf:description> |
| 7751 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.9.a" selected="false" severity="medium" weight="10.0"> |
| 7752 |
<xccdf:title>Ensure auditd Collects Information on the Use of Privileged Commands</xccdf:title> |
| 7753 |
<xccdf:description>Audit rules about the Information on the Use of Privileged Commands</xccdf:description> |
| 7754 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7755 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7756 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7757 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20165"/> |
| 7758 |
</xccdf:check> |
| 7759 |
</xccdf:Rule> |
| 7760 |
</xccdf:Group> |
| 7761 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.10"> |
| 7762 |
<xccdf:title xml:lang="en">Ensure auditd Collects Information on Exporting to Media (successful)</xccdf:title> |
| 7763 |
<xccdf:description xml:lang="en"> |
| 7764 |
At a minimum the audit system should collect media exportation events for all users and root. Add the |
| 7765 |
following to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7766 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7767 |
-a always,exit -F arch=ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export |
| 7768 |
</xccdf:description> |
| 7769 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.10.a" selected="false" severity="medium" weight="10.0"> |
| 7770 |
<xccdf:title>Ensure auditd Collects Information on Exporting to Media (successful)</xccdf:title> |
| 7771 |
<xccdf:description>Audit rules about the Information on Exporting to Media (successful)</xccdf:description> |
| 7772 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7773 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7774 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7775 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20166"/> |
| 7776 |
</xccdf:check> |
| 7777 |
</xccdf:Rule> |
| 7778 |
</xccdf:Group> |
| 7779 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.11"> |
| 7780 |
<xccdf:title xml:lang="en">Ensure auditd Collects Files Deletion Events by User (successful and unsuccessful)</xccdf:title> |
| 7781 |
<xccdf:description xml:lang="en"> |
| 7782 |
At a minimum the audit system should collect file deletion events for all users and root. Add the following |
| 7783 |
to /etc/audit/audit.rules, setting ARCH to either b32 or b64 as appropriate for your system:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7784 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7785 |
-a always,exit -F arch=ARCH -S unlink -S unlinkat -S rename -S renameat -F auid>=500 \<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7786 |
-F auid!=4294967295 -k delete |
| 7787 |
</xccdf:description> |
| 7788 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.11.a" selected="false" severity="medium" weight="10.0"> |
| 7789 |
<xccdf:title>Ensure auditd Collects Files Deletion Events by User (successful and unsuccessful)</xccdf:title> |
| 7790 |
<xccdf:description>Audit rules about the Files Deletion Events by User (successful and unsuccessful)</xccdf:description> |
| 7791 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7792 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7793 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7794 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20167"/> |
| 7795 |
</xccdf:check> |
| 7796 |
</xccdf:Rule> |
| 7797 |
</xccdf:Group> |
| 7798 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.12"> |
| 7799 |
<xccdf:title xml:lang="en">Ensure auditd Collects System Administrator Actions</xccdf:title> |
| 7800 |
<xccdf:description xml:lang="en"> |
| 7801 |
At a minimum the audit system should collect administrator actions for all users and root. Add the following |
| 7802 |
to /etc/audit/audit.rules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7803 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7804 |
-w /etc/sudoers -p wa -k actions</xccdf:description> |
| 7805 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.12.a" selected="false" severity="medium" weight="10.0"> |
| 7806 |
<xccdf:title>Ensure auditd Collects System Administrator Actions</xccdf:title> |
| 7807 |
<xccdf:description>Audit rules about the System Administrator Actions</xccdf:description> |
| 7808 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7809 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7810 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7811 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20168"/> |
| 7812 |
</xccdf:check> |
| 7813 |
</xccdf:Rule> |
| 7814 |
</xccdf:Group> |
| 7815 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.13"> |
| 7816 |
<xccdf:title xml:lang="en">Ensure auditd Collects Information on Kernel Module Loading and Unloading</xccdf:title> |
| 7817 |
<xccdf:description xml:lang="en"> |
| 7818 |
Add the following to /etc/audit/audit.rules in order to capture kernel module loading and unloading |
| 7819 |
events:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7820 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7821 |
-w /sbin/insmod -p x -k modules<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7822 |
-w /sbin/rmmod -p x -k modules<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7823 |
-w /sbin/modprobe -p x -k modules<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7824 |
-a always,exit -S init_module -S delete_module -k modules<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7825 |
</xccdf:description> |
| 7826 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.13.a" selected="false" severity="medium" weight="10.0"> |
| 7827 |
<xccdf:title>Ensure auditd Collects Information on Kernel Module Loading and Unloading</xccdf:title> |
| 7828 |
<xccdf:description>Audit rules about the Information on Kernel Module Loading and Unloading</xccdf:description> |
| 7829 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7830 |
|
| 7831 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7832 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201685"/> |
| 7833 |
</xccdf:check> |
| 7834 |
</xccdf:Rule> |
| 7835 |
</xccdf:Group> |
| 7836 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.4.14"> |
| 7837 |
<xccdf:title xml:lang="en">Make the auditd Configuration Immutable</xccdf:title> |
| 7838 |
<xccdf:description xml:lang="en"> |
| 7839 |
Add the following to /etc/audit/audit.rules in order to make the configuration immutable:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7840 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7841 |
-e 2<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7842 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7843 |
With this setting, a reboot will be required to change any audit rules. |
| 7844 |
</xccdf:description> |
| 7845 |
<xccdf:Rule id="xccdf_cdf_rule_rule-2.6.2.4.14.a" selected="false" severity="medium" weight="10.0"> |
| 7846 |
<xccdf:title>Make the auditd Configuration Immutable</xccdf:title> |
| 7847 |
<xccdf:description>Force a reboot to change audit rules</xccdf:description> |
| 7848 |
<xccdf:fixtext>(1) via /etc/audit/audit.rules</xccdf:fixtext> |
| 7849 |
<xccdf:fix>cp /usr/share/doc/audit-version/stig.rules /etc/audit/audit.rules</xccdf:fix> |
| 7850 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 7851 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20169"/> |
| 7852 |
</xccdf:check> |
| 7853 |
</xccdf:Rule> |
| 7854 |
</xccdf:Group> |
| 7855 |
</xccdf:Group> |
| 7856 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-2.6.2.5"> |
| 7857 |
<xccdf:title xml:lang="en">Summarize and Review Audit Logs using aureport</xccdf:title> |
| 7858 |
<xccdf:description xml:lang="en"> |
| 7859 |
Familiarize yourself with the aureport(8) man page, then design a short series of audit reporting commands |
| 7860 |
suitable for exploring the audit logs on a daily (or more frequent) basis. These commands can be added as a cron |
| 7861 |
job by placing an appropriately named file in /etc/cron.daily. See the next section for information on how to |
| 7862 |
ensure that the audit system collects all events needed.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7863 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7864 |
For example, to generate a daily report of every user to login to the machine, the following command could be |
| 7865 |
run from cron:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7866 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7867 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># aureport -l -i -ts yesterday -te today<xhtml:br/></xhtml:code> |
| 7868 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7869 |
To review all audited activity for unusual behavior, a good place to start is to see a summary of which audit |
| 7870 |
rules have been triggering:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7871 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7872 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">aureport --key --summary<xhtml:br/></xhtml:code> |
| 7873 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7874 |
If access violations stand out, review them with:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7875 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7876 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ausearch --key access --raw | aureport --file --summary<xhtml:br/></xhtml:code> |
| 7877 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7878 |
To review what executables are doing:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7879 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7880 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ausearch --key access --raw | aureport -x --summary<xhtml:br/></xhtml:code> |
| 7881 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7882 |
If access violations have been occurring on a particular file (such as /etc/shadow) and you want to determine |
| 7883 |
which user is doing this:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7884 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7885 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># ausearch --key access --file /etc/shadow --raw | aureport --user --summary -i<xhtml:br/></xhtml:code> |
| 7886 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7887 |
Check for anomalous activity (such as device changing to promiscuous mode, processes ending abnormally, login |
| 7888 |
failure limits being reached) using:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7889 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7890 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># aureport --anomaly<xhtml:br/></xhtml:code> |
| 7891 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7892 |
The foundation to audit analysis is using keys to classify the events. Information about using ausearch to find |
| 7893 |
an SELinux problem can be found in Section 2.4.6. |
| 7894 |
</xccdf:description> |
| 7895 |
</xccdf:Group> |
| 7896 |
</xccdf:Group> |
| 7897 |
</xccdf:Group> |
| 7898 |
</xccdf:Group> |
| 7899 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3"> |
| 7900 |
<xccdf:title xml:lang="en">Services</xccdf:title> |
| 7901 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.1"> |
| 7902 |
<xccdf:title xml:lang="en">Disable All Unneeded Services at Boot Time</xccdf:title> |
| 7903 |
<xccdf:description xml:lang="en"> |
| 7904 |
The best protection against vulnerable software is running less |
| 7905 |
software. This section describes how to review the software which Red Hat Enterprise Linux |
| 7906 |
installs on a system and disable software which is not needed. It then enumerates the |
| 7907 |
software packages installed on a default RHEL5 system and provides guidance about which ones |
| 7908 |
can be safely disabled.</xccdf:description> |
| 7909 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.1.1"> |
| 7910 |
<xccdf:title xml:lang="en">Determine which Services are Enabled at Boot</xccdf:title> |
| 7911 |
<xccdf:description xml:lang="en"> |
| 7912 |
Run the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7913 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7914 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig --list | grep :on <xhtml:br/></xhtml:code> |
| 7915 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7916 |
The first column |
| 7917 |
of this output is the name of a service which is currently enabled at boot. Review each |
| 7918 |
listed service to determine whether it can be disabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7919 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7920 |
If it is appropriate to disable |
| 7921 |
some service srvname , do so using the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7922 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7923 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig srvname off <xhtml:br/></xhtml:code> |
| 7924 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7925 |
Use the guidance below for information about unfamiliar services.</xccdf:description> |
| 7926 |
</xccdf:Group> |
| 7927 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.1.2"> |
| 7928 |
<xccdf:title xml:lang="en">Guidance on Default Services</xccdf:title> |
| 7929 |
<xccdf:description xml:lang="en"> |
| 7930 |
The table in this section contains a list of all services which |
| 7931 |
are enabled at boot by a default RHEL5 installation. For each service, one of the |
| 7932 |
following recommendations is made: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7933 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7934 |
<xhtml:li>Enable: The service provides a significant capability |
| 7935 |
with limited risk exposure. Leave the service enabled. </xhtml:li> |
| 7936 |
<xhtml:li>Configure: The service either is |
| 7937 |
required for most systems to function properly or provides an important security function. |
| 7938 |
It should be left enabled by most environments. However, it must be configured securely on |
| 7939 |
all machines, and different options may be needed for workstations than for servers. See |
| 7940 |
the referenced section for recommended configuration of this service.</xhtml:li> |
| 7941 |
<xhtml:li>Disable if |
| 7942 |
possible: The service opens the system to some risk, but may be required by some |
| 7943 |
environments. See the appropriate section of the guide, and disable the service if at all |
| 7944 |
possible.</xhtml:li> |
| 7945 |
<xhtml:li>Servers only: The service provides some function to other machines over the |
| 7946 |
network. If that function is needed in the target environment, the service should remain |
| 7947 |
enabled only on a small number of dedicated servers, and should be disabled on all other |
| 7948 |
machines on the network. </xhtml:li> |
| 7949 |
</xhtml:ul> |
| 7950 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 7951 |
<xhtml:table xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 7952 |
<xhtml:thead> |
| 7953 |
<xhtml:tr> |
| 7954 |
<xhtml:td>Service name</xhtml:td> |
| 7955 |
<xhtml:td>Action</xhtml:td> |
| 7956 |
<xhtml:td>Reference</xhtml:td> |
| 7957 |
</xhtml:tr> |
| 7958 |
</xhtml:thead> |
| 7959 |
<xhtml:tbody> |
| 7960 |
<xhtml:tr><xhtml:td>acpid</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>3.3.15.2</xhtml:td></xhtml:tr> |
| 7961 |
<xhtml:tr><xhtml:td>anacron</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.4</xhtml:td></xhtml:tr> |
| 7962 |
<xhtml:tr><xhtml:td>apmd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.15.1</xhtml:td></xhtml:tr> |
| 7963 |
<xhtml:tr><xhtml:td>atd</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>3.4</xhtml:td></xhtml:tr> |
| 7964 |
<xhtml:tr><xhtml:td>auditd</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>2.6.2</xhtml:td></xhtml:tr> |
| 7965 |
<xhtml:tr><xhtml:td>autofs</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>2.2.2.3</xhtml:td></xhtml:tr> |
| 7966 |
<xhtml:tr><xhtml:td>avahi-daemon</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.7</xhtml:td></xhtml:tr> |
| 7967 |
<xhtml:tr><xhtml:td>bluetooth</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.14</xhtml:td></xhtml:tr> |
| 7968 |
<xhtml:tr><xhtml:td>cpuspeed</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>3.3.15.3 </xhtml:td></xhtml:tr> |
| 7969 |
<xhtml:tr><xhtml:td>crond</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>3.4</xhtml:td></xhtml:tr> |
| 7970 |
<xhtml:tr><xhtml:td>cups</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.8</xhtml:td></xhtml:tr> |
| 7971 |
<xhtml:tr><xhtml:td>firstboot</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.1</xhtml:td></xhtml:tr> |
| 7972 |
<xhtml:tr><xhtml:td>gpm</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.2</xhtml:td></xhtml:tr> |
| 7973 |
<xhtml:tr><xhtml:td>haldaemon</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.13.2</xhtml:td></xhtml:tr> |
| 7974 |
<xhtml:tr><xhtml:td>hidd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.14.2</xhtml:td></xhtml:tr> |
| 7975 |
<xhtml:tr><xhtml:td>hplip</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.8.4.1</xhtml:td></xhtml:tr> |
| 7976 |
<xhtml:tr><xhtml:td>ip6tables</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>2.5.5</xhtml:td></xhtml:tr> |
| 7977 |
<xhtml:tr><xhtml:td>iptables</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>2.5.5</xhtml:td></xhtml:tr> |
| 7978 |
<xhtml:tr><xhtml:td>irqbalance</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>3.3.3</xhtml:td></xhtml:tr> |
| 7979 |
<xhtml:tr><xhtml:td>isdn</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.4</xhtml:td></xhtml:tr> |
| 7980 |
<xhtml:tr><xhtml:td>kdump</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.5</xhtml:td></xhtml:tr> |
| 7981 |
<xhtml:tr><xhtml:td>kudzu</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.6 </xhtml:td></xhtml:tr> |
| 7982 |
<xhtml:tr><xhtml:td>mcstrans</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>2.4.3.2 (SELinux) </xhtml:td></xhtml:tr> |
| 7983 |
<xhtml:tr><xhtml:td>mdmonitor</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.7 </xhtml:td></xhtml:tr> |
| 7984 |
<xhtml:tr><xhtml:td>messagebus</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.13.1</xhtml:td></xhtml:tr> |
| 7985 |
<xhtml:tr><xhtml:td>microcode</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.8</xhtml:td></xhtml:tr> |
| 7986 |
<xhtml:tr><xhtml:td>netfs</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.13 (NFS)</xhtml:td></xhtml:tr> |
| 7987 |
<xhtml:tr><xhtml:td>network</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>3.3.9</xhtml:td></xhtml:tr> |
| 7988 |
<xhtml:tr><xhtml:td>nfslock</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.13 (NFS)</xhtml:td></xhtml:tr> |
| 7989 |
<xhtml:tr><xhtml:td>pcscd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.10</xhtml:td></xhtml:tr> |
| 7990 |
<xhtml:tr><xhtml:td>portmap</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.13 (NFS) </xhtml:td></xhtml:tr> |
| 7991 |
<xhtml:tr><xhtml:td>readahead_early</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.12</xhtml:td></xhtml:tr> |
| 7992 |
<xhtml:tr><xhtml:td>readahead_later</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.3.12</xhtml:td></xhtml:tr> |
| 7993 |
<xhtml:tr><xhtml:td>restorecond</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>2.4.3.3 (SELinux)</xhtml:td></xhtml:tr> |
| 7994 |
<xhtml:tr><xhtml:td>rhnsd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>2.1.2.2 </xhtml:td></xhtml:tr> |
| 7995 |
<xhtml:tr><xhtml:td>rpcgssd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.13 (NFS) </xhtml:td></xhtml:tr> |
| 7996 |
<xhtml:tr><xhtml:td>rpcidmapd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.13 (NFS) </xhtml:td></xhtml:tr> |
| 7997 |
<xhtml:tr><xhtml:td>sendmail</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>3.11</xhtml:td></xhtml:tr> |
| 7998 |
<xhtml:tr><xhtml:td>setroubleshoot</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>2.4.3.1 (SELinux)</xhtml:td></xhtml:tr> |
| 7999 |
<xhtml:tr><xhtml:td>smartd</xhtml:td><xhtml:td>Enable</xhtml:td><xhtml:td>3.3.11 </xhtml:td></xhtml:tr> |
| 8000 |
<xhtml:tr><xhtml:td>sshd</xhtml:td><xhtml:td>Servers only</xhtml:td><xhtml:td>3.5</xhtml:td></xhtml:tr> |
| 8001 |
<xhtml:tr><xhtml:td>syslog</xhtml:td><xhtml:td>Configure</xhtml:td><xhtml:td>2.6.1</xhtml:td></xhtml:tr> |
| 8002 |
<xhtml:tr><xhtml:td>xfs</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>3.6 (X11) </xhtml:td></xhtml:tr> |
| 8003 |
<xhtml:tr><xhtml:td>yum-updatesd</xhtml:td><xhtml:td>Disable if possible</xhtml:td><xhtml:td>2.1.2.3.2</xhtml:td></xhtml:tr> |
| 8004 |
</xhtml:tbody> |
| 8005 |
</xhtml:table> |
| 8006 |
</xccdf:description> |
| 8007 |
</xccdf:Group> |
| 8008 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.1.3"> |
| 8009 |
<xccdf:title xml:lang="en">Guidance for Unfamiliar Services</xccdf:title> |
| 8010 |
<xccdf:description xml:lang="en"> |
| 8011 |
If the system is running any services which have not been |
| 8012 |
covered, determine what these services do, and disable them if they are not needed or if |
| 8013 |
they pose a high risk. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8014 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8015 |
If a service srvname is unknown, try running: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8016 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8017 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ rpm -qf /etc/init.d/srvname <xhtml:br/></xhtml:code> |
| 8018 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8019 |
to discover which RPM package installed the service. Then, run: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8020 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8021 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ rpm -qi rpmname <xhtml:br/></xhtml:code> |
| 8022 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8023 |
for a brief description of what that RPM does.</xccdf:description> |
| 8024 |
</xccdf:Group> |
| 8025 |
</xccdf:Group> |
| 8026 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2"> |
| 8027 |
<xccdf:title xml:lang="en">Obsolete Services</xccdf:title> |
| 8028 |
<xccdf:description xml:lang="en"> |
| 8029 |
This section discusses a number of network-visible services which |
| 8030 |
have historically caused problems for system security, and for which disabling or severely |
| 8031 |
limiting the service has been the best available guidance for some time. As a result of this |
| 8032 |
consensus, these services are not installed as part of RHEL5 by default. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8033 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8034 |
Organizations which |
| 8035 |
are running these services should prioritize switching to more secure services which provide |
| 8036 |
the needed functionality. If it is absolutely necessary to run one of these services for |
| 8037 |
legacy reasons, care should be taken to restrict the service as much as possible, for |
| 8038 |
instance by configuring host firewall software (see Section 2.5.5) to restrict access to the |
| 8039 |
vulnerable service to only those remote hosts which have a known need to use it.</xccdf:description> |
| 8040 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.1"> |
| 8041 |
<xccdf:title xml:lang="en">Inetd and Xinetd</xccdf:title> |
| 8042 |
<xccdf:description xml:lang="en"> |
| 8043 |
Is there an operational need to run the deprecated inetd or |
| 8044 |
xinetd software packages? If not, ensure that they are removed from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8045 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8046 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase inetd xinetd <xhtml:br/></xhtml:code> |
| 8047 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8048 |
Beginning with Red Hat Enterprise Linux 5, the xinetd service is no |
| 8049 |
longer installed by default. This change represents increased awareness that the dedicated |
| 8050 |
network listener model does not improve security or reliability of services, and that |
| 8051 |
restriction of network listeners is better handled using a granular model such as SELinux |
| 8052 |
than using xinetd's limited security options.</xccdf:description> |
| 8053 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 8054 |
<xccdf:title>Disable Inetd</xccdf:title> |
| 8055 |
<xccdf:description>The inetd service should be disabled.</xccdf:description> |
| 8056 |
<xccdf:ident system="http://cce.mitre.org">CCE-4234-1</xccdf:ident> |
| 8057 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8058 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8059 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20170"/> |
| 8060 |
</xccdf:check> |
| 8061 |
</xccdf:Rule> |
| 8062 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.1.b" selected="false" severity="medium" weight="10.0"> |
| 8063 |
<xccdf:title>Disable Xinetd</xccdf:title> |
| 8064 |
<xccdf:description>The xinetd service should be disabled.</xccdf:description> |
| 8065 |
<xccdf:ident system="http://cce.mitre.org">CCE-4252-3</xccdf:ident> |
| 8066 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8067 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8068 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20171"/> |
| 8069 |
</xccdf:check> |
| 8070 |
</xccdf:Rule> |
| 8071 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.1.c" selected="false" weight="10.0"> |
| 8072 |
<xccdf:title>Uninstall Inetd</xccdf:title> |
| 8073 |
<xccdf:description>The inetd package should be uninstalled.</xccdf:description> |
| 8074 |
<xccdf:ident system="http://cce.mitre.org">CCE-4023-8</xccdf:ident> |
| 8075 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8076 |
<xccdf:fix># yum erase inetd</xccdf:fix> |
| 8077 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8078 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20172"/> |
| 8079 |
</xccdf:check> |
| 8080 |
</xccdf:Rule> |
| 8081 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.1.d" selected="false" weight="10.0"> |
| 8082 |
<xccdf:title>Uninstall Xinetd</xccdf:title> |
| 8083 |
<xccdf:description>The xinetd package should be uninstalled.</xccdf:description> |
| 8084 |
<xccdf:ident system="http://cce.mitre.org">CCE-4164-0</xccdf:ident> |
| 8085 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8086 |
<xccdf:fix># yum erase xinetd</xccdf:fix> |
| 8087 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8088 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20173"/> |
| 8089 |
</xccdf:check> |
| 8090 |
</xccdf:Rule> |
| 8091 |
</xccdf:Group> |
| 8092 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.2"> |
| 8093 |
<xccdf:title xml:lang="en">Telnet</xccdf:title> |
| 8094 |
<xccdf:description xml:lang="en"> |
| 8095 |
Is there a mission-critical reason for users to access the system |
| 8096 |
via the insecure telnet protocol, rather than the more secure SSH protocol? If not, ensure |
| 8097 |
that the telnet server is removed from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8098 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8099 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase telnet-server <xhtml:br/></xhtml:code> |
| 8100 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8101 |
The telnet |
| 8102 |
protocol uses unencrypted network communication, which means that data from the login |
| 8103 |
session, including passwords and all other information transmitted during the session, can |
| 8104 |
be stolen by eavesdroppers on the network, and also that outsiders can easily hijack the |
| 8105 |
session to gain authenticated access to the telnet server. Organizations which use telnet |
| 8106 |
should be actively working to migrate to a more secure protocol. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8107 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8108 |
See Section 3.5 for information about the SSH service.</xccdf:description> |
| 8109 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.2.1"> |
| 8110 |
<xccdf:title xml:lang="en">Remove Telnet Clients</xccdf:title> |
| 8111 |
<xccdf:description xml:lang="en"> |
| 8112 |
In order to prevent users from casually attempting to use a telnet server, and thus exposing their credentials |
| 8113 |
over the network, remove the telnet package, which contains a telnet client program:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8114 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8115 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase telnet<xhtml:br/></xhtml:code> |
| 8116 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8117 |
If Kerberos is not used, remove the krb5-workstation package, which also includes a telnet client:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8118 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8119 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase krb5-workstation<xhtml:br/></xhtml:code> |
| 8120 |
</xccdf:description> |
| 8121 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.2.1.a" selected="false" severity="high" weight="10.0"> |
| 8122 |
<xccdf:title>Remove the telnet client command from the System</xccdf:title> |
| 8123 |
<xccdf:description>The telnet package should be uninstalled.</xccdf:description> |
| 8124 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8125 |
<xccdf:fix># yum erase telnet</xccdf:fix> |
| 8126 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8127 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20175"/> |
| 8128 |
</xccdf:check> |
| 8129 |
</xccdf:Rule> |
| 8130 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.2.1.b" selected="false" weight="10.0"> |
| 8131 |
<xccdf:title>Remove the kerberos telnet client from the System</xccdf:title> |
| 8132 |
<xccdf:description>The krb5-workstation package should be uninstalled.</xccdf:description> |
| 8133 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8134 |
<xccdf:fix># yum erase rsh-server</xccdf:fix> |
| 8135 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8136 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20176"/> |
| 8137 |
</xccdf:check> |
| 8138 |
</xccdf:Rule> |
| 8139 |
</xccdf:Group> |
| 8140 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.2.a" selected="false" severity="high" weight="10.0"> |
| 8141 |
<xccdf:title>Uninstall Telnet server</xccdf:title> |
| 8142 |
<xccdf:description>The telnet-server package should be uninstalled.</xccdf:description> |
| 8143 |
<xccdf:ident system="http://cce.mitre.org">CCE-4330-7</xccdf:ident> |
| 8144 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8145 |
<xccdf:fix># yum erase telnet-server</xccdf:fix> |
| 8146 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8147 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20174"/> |
| 8148 |
</xccdf:check> |
| 8149 |
</xccdf:Rule> |
| 8150 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.2.b" selected="false" severity="high" weight="10.0"> |
| 8151 |
<xccdf:title>Disable telnet service</xccdf:title> |
| 8152 |
<xccdf:description>telnet service should be disabled.</xccdf:description> |
| 8153 |
<xccdf:ident system="http://cce.mitre.org">CCE-3390-2</xccdf:ident> |
| 8154 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8155 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8156 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201745"/> |
| 8157 |
</xccdf:check> |
| 8158 |
</xccdf:Rule> |
| 8159 |
</xccdf:Group> |
| 8160 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.3"> |
| 8161 |
<xccdf:title xml:lang="en">Rlogin, Rsh, and Rcp</xccdf:title> |
| 8162 |
<xccdf:description xml:lang="en">The Berkeley r-commands are legacy services which allow cleartext remote access and have an insecure trust model.</xccdf:description> |
| 8163 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.3.1"> |
| 8164 |
<xccdf:title xml:lang="en">Remove the Rsh Server Commands from the System</xccdf:title> |
| 8165 |
<xccdf:description xml:lang="en"> |
| 8166 |
Is there a mission-critical reason for users to access the |
| 8167 |
system via the insecure rlogin, rsh, or rcp commands rather than the more secure ssh and |
| 8168 |
scp? If not, ensure that the rsh server is removed from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8169 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8170 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase rsh-server <xhtml:br/></xhtml:code> |
| 8171 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8172 |
SSH was designed to be a drop-in replacement for the r-commands, which suffer |
| 8173 |
from the same hijacking and eavesdropping problems as telnet. There is unlikely to be a |
| 8174 |
case in which these commands cannot be replaced with SSH.</xccdf:description> |
| 8175 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.1.a" selected="false" severity="high" weight="10.0"> |
| 8176 |
<xccdf:title>Remove the Rsh Server Commands from the System</xccdf:title> |
| 8177 |
<xccdf:description>The rsh-server package should be uninstalled.</xccdf:description> |
| 8178 |
<xccdf:ident system="http://cce.mitre.org">CCE-4308-3</xccdf:ident> |
| 8179 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8180 |
<xccdf:fix># yum erase rsh-server</xccdf:fix> |
| 8181 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8182 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20177"/> |
| 8183 |
</xccdf:check> |
| 8184 |
</xccdf:Rule> |
| 8185 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.1.b" selected="false" severity="high" weight="10.0"> |
| 8186 |
<xccdf:title>disable rcp</xccdf:title> |
| 8187 |
<xccdf:description>The rcp service should be disabled.</xccdf:description> |
| 8188 |
<xccdf:ident system="http://cce.mitre.org">CCE-3974-3</xccdf:ident> |
| 8189 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8190 |
<xccdf:fix># chkconfig rcp off</xccdf:fix> |
| 8191 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8192 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201774"/> |
| 8193 |
</xccdf:check> |
| 8194 |
</xccdf:Rule> |
| 8195 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.1.c" selected="false" severity="high" weight="10.0"> |
| 8196 |
<xccdf:title>disable rsh</xccdf:title> |
| 8197 |
<xccdf:description>The rsh service should be disabled.</xccdf:description> |
| 8198 |
<xccdf:ident system="http://cce.mitre.org">CCE-4141-8</xccdf:ident> |
| 8199 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8200 |
<xccdf:fix># chkconfig rsh off</xccdf:fix> |
| 8201 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8202 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201775"/> |
| 8203 |
</xccdf:check> |
| 8204 |
</xccdf:Rule> |
| 8205 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.1.d" selected="false" severity="high" weight="10.0"> |
| 8206 |
<xccdf:title>disable rlogin</xccdf:title> |
| 8207 |
<xccdf:description>The rlogin service should be disabled.</xccdf:description> |
| 8208 |
<xccdf:ident system="http://cce.mitre.org">CCE-3537-8</xccdf:ident> |
| 8209 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8210 |
<xccdf:fix># chkconfig rlogin off</xccdf:fix> |
| 8211 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8212 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201776"/> |
| 8213 |
</xccdf:check> |
| 8214 |
</xccdf:Rule> |
| 8215 |
</xccdf:Group> |
| 8216 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.3.2"> |
| 8217 |
<xccdf:title xml:lang="en">Remove .rhosts Support from PAM Configuration Files</xccdf:title> |
| 8218 |
<xccdf:description xml:lang="en"> |
| 8219 |
Check that pam_rhosts authentication is not used by any PAM |
| 8220 |
services. Run the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8221 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8222 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># grep -l pam_rhosts /etc/pam.d/* <xhtml:br/></xhtml:code> |
| 8223 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8224 |
This command should return no output. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8225 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8226 |
The RHEL5 default is not to rely on .rhosts or /etc/hosts.equiv for any |
| 8227 |
PAM-based services, so, on an uncustomized system, this command should return no output. |
| 8228 |
If any files do use pam_rhosts, modify them to make use of a more secure authentication |
| 8229 |
method instead. For more information about PAM, see Section 2.3.3.</xccdf:description> |
| 8230 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.2.a" selected="false" severity="medium" weight="10.0"> |
| 8231 |
<xccdf:title>Remove .rhosts Support from PAM Configuration Files</xccdf:title> |
| 8232 |
<xccdf:description>Check that pam_rhosts authentication is not used by any PAM services.</xccdf:description> |
| 8233 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8234 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20178"/> |
| 8235 |
</xccdf:check> |
| 8236 |
</xccdf:Rule> |
| 8237 |
</xccdf:Group> |
| 8238 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.3.3"> |
| 8239 |
<xccdf:title xml:lang="en">Remove the Rsh Client Commands from the System</xccdf:title> |
| 8240 |
<xccdf:description xml:lang="en"> |
| 8241 |
In order to prevent users from casually attempting to make use of an rsh server and thus exposing their |
| 8242 |
credentials over the network, remove the rsh package, which contains client programs for many of r-commands |
| 8243 |
described above:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8244 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8245 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase rsh<xhtml:br/></xhtml:code> |
| 8246 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8247 |
Users should be trained to use the SSH client, and never attempt to connect to an rsh or telnet server. The |
| 8248 |
krb5-workstation package also contains r-command client programs and should be removed as described in |
| 8249 |
Section 3.2.2.1, if Kerberos is not in use. |
| 8250 |
</xccdf:description> |
| 8251 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.3.3.a" selected="false" severity="high" weight="10.0"> |
| 8252 |
<xccdf:title>Remove the Rsh Client Commands from the System</xccdf:title> |
| 8253 |
<xccdf:description>The rsh package, which contains client programs for many of r-commands should be uninstalled.</xccdf:description> |
| 8254 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8255 |
<xccdf:fix># yum erase rsh</xccdf:fix> |
| 8256 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8257 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20179"/> |
| 8258 |
</xccdf:check> |
| 8259 |
</xccdf:Rule> |
| 8260 |
</xccdf:Group> |
| 8261 |
</xccdf:Group> |
| 8262 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.4"> |
| 8263 |
<xccdf:title xml:lang="en">NIS</xccdf:title> |
| 8264 |
<xccdf:description xml:lang="en"> |
| 8265 |
The NIS client service ypbind is not activated by default. In the |
| 8266 |
event that it was activated at some point, disable it by executing the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8267 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8268 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig ypbind off <xhtml:br/></xhtml:code> |
| 8269 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8270 |
The NIS server package is not installed by default. In the event that |
| 8271 |
it was installed at some point, remove it from the system by executing the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8272 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8273 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase ypserv <xhtml:br/></xhtml:code> |
| 8274 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8275 |
The Network Information Service (NIS), also known as 'Yellow Pages' (YP), and |
| 8276 |
its successor NIS+ have been made obsolete by Kerberos, LDAP, and other modern centralized |
| 8277 |
authentication services. NIS should not be used because it suffers from security problems |
| 8278 |
inherent in its design, such as inadequate protection of important authentication |
| 8279 |
information.</xccdf:description> |
| 8280 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.4.a" selected="false" severity="medium" weight="10.0"> |
| 8281 |
<xccdf:title>Uninstall NIS</xccdf:title> |
| 8282 |
<xccdf:description>The ypserv package should be uninstalled.</xccdf:description> |
| 8283 |
<xccdf:ident system="http://cce.mitre.org">CCE-4348-9</xccdf:ident> |
| 8284 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8285 |
<xccdf:fix># yum erase ypserv</xccdf:fix> |
| 8286 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8287 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20180"/> |
| 8288 |
</xccdf:check> |
| 8289 |
</xccdf:Rule> |
| 8290 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.4.b" selected="false" severity="medium" weight="10.0"> |
| 8291 |
<xccdf:title>Disable NIS</xccdf:title> |
| 8292 |
<xccdf:description>The ypbind service should be disabled.</xccdf:description> |
| 8293 |
<xccdf:ident system="http://cce.mitre.org">CCE-3705-1</xccdf:ident> |
| 8294 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8295 |
<xccdf:fix># chkconfig ypbind off</xccdf:fix> |
| 8296 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8297 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20181"/> |
| 8298 |
</xccdf:check> |
| 8299 |
</xccdf:Rule> |
| 8300 |
</xccdf:Group> |
| 8301 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.2.5"> |
| 8302 |
<xccdf:title xml:lang="en">TFTP Server</xccdf:title> |
| 8303 |
<xccdf:description xml:lang="en"> |
| 8304 |
Is there an operational need to run the deprecated TFTP server |
| 8305 |
software? If not, ensure that it is removed from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8306 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8307 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase tftp-server <xhtml:br/></xhtml:code> |
| 8308 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8309 |
TFTP is a lightweight version of the FTP protocol which has traditionally been used to |
| 8310 |
configure networking equipment. However, TFTP provides little security, and modern |
| 8311 |
versions of networking operating systems frequently support configuration via SSH or |
| 8312 |
other more secure protocols. A TFTP server should be run only if no more secure method of |
| 8313 |
supporting existing equipment can be found.</xccdf:description> |
| 8314 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.5.a" selected="false" weight="10.0"> |
| 8315 |
<xccdf:title>Uninstall TFTP Server</xccdf:title> |
| 8316 |
<xccdf:description>The tftp-server package should be uninstalled.</xccdf:description> |
| 8317 |
<xccdf:ident system="http://cce.mitre.org">CCE-3916-4</xccdf:ident> |
| 8318 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8319 |
<xccdf:fix># yum erase tftp-server</xccdf:fix> |
| 8320 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8321 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20182"/> |
| 8322 |
</xccdf:check> |
| 8323 |
</xccdf:Rule> |
| 8324 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.2.5.b" selected="false" severity="low" weight="10.0"> |
| 8325 |
<xccdf:title>Disable TFTP Server</xccdf:title> |
| 8326 |
<xccdf:description>The tftp service should be disabled.</xccdf:description> |
| 8327 |
<xccdf:ident system="http://cce.mitre.org">CCE-4273-9</xccdf:ident> |
| 8328 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8329 |
<xccdf:fix># chkconfig tftp off</xccdf:fix> |
| 8330 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8331 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:201825"/> |
| 8332 |
</xccdf:check> |
| 8333 |
</xccdf:Rule> |
| 8334 |
</xccdf:Group> |
| 8335 |
</xccdf:Group> |
| 8336 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3"> |
| 8337 |
<xccdf:title xml:lang="en">BaseServices</xccdf:title> |
| 8338 |
<xccdf:description xml:lang="en"> |
| 8339 |
This section addresses the base services that are configured to |
| 8340 |
start up on boot in a RHEL5 default installation. Some of these services listen on the |
| 8341 |
network and should be treated with particular discretion. The other services are local |
| 8342 |
system utilities that may or may not be extraneous. Each of these services should be |
| 8343 |
disabled if not required.</xccdf:description> |
| 8344 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.1"> |
| 8345 |
<xccdf:title xml:lang="en">Installation Helper Service (firstboot)</xccdf:title> |
| 8346 |
<xccdf:description xml:lang="en"> |
| 8347 |
Firstboot is a daemon specific to the Red Hat installation |
| 8348 |
process. It handles 'one-time' configuration following successful installation of the |
| 8349 |
operating system. As such, there is no reason for this service to remain enabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8350 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8351 |
Disable firstboot by issuing the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8352 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8353 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig firstboot off</xhtml:code></xccdf:description> |
| 8354 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.1.a" selected="false" severity="low" weight="10.0"> |
| 8355 |
<xccdf:title>Installation Helper Service (firstboot)</xccdf:title> |
| 8356 |
<xccdf:description>The firstboot service should be disabled.</xccdf:description> |
| 8357 |
<xccdf:ident system="http://cce.mitre.org">CCE-3412-4</xccdf:ident> |
| 8358 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8359 |
<xccdf:fix># chkconfig firstboot off</xccdf:fix> |
| 8360 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8361 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20183"/> |
| 8362 |
</xccdf:check> |
| 8363 |
</xccdf:Rule> |
| 8364 |
</xccdf:Group> |
| 8365 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.2"> |
| 8366 |
<xccdf:title xml:lang="en">Console Mouse Service (gpm)</xccdf:title> |
| 8367 |
<xccdf:description xml:lang="en"> |
| 8368 |
GPM is the service that controls the text console mouse pointer. |
| 8369 |
(The X Windows mouse pointer is unaffected by this service.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8370 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8371 |
If mouse functionality in the console is not required, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8372 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8373 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig gpm off <xhtml:br/></xhtml:code> |
| 8374 |
Although it is |
| 8375 |
preferable to run as few services as possible, the console mouse pointer can be useful for |
| 8376 |
preventing administrator mistakes in runlevel 3 by enabling copy-and-paste operations.</xccdf:description> |
| 8377 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.2.a" selected="false" severity="low" weight="10.0"> |
| 8378 |
<xccdf:title>Console Mouse Service (gpm)</xccdf:title> |
| 8379 |
<xccdf:description>The gpm service should be disabled.</xccdf:description> |
| 8380 |
<xccdf:ident system="http://cce.mitre.org">CCE-4229-1</xccdf:ident> |
| 8381 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8382 |
<xccdf:fix># chkconfig gpm off</xccdf:fix> |
| 8383 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8384 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20184"/> |
| 8385 |
</xccdf:check> |
| 8386 |
</xccdf:Rule> |
| 8387 |
</xccdf:Group> |
| 8388 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.3"> |
| 8389 |
<xccdf:title xml:lang="en">Interrupt Distribution on Multiprocessor Systems (irqbalance)</xccdf:title> |
| 8390 |
<xccdf:description xml:lang="en"> |
| 8391 |
The goal of the irqbalance service is to optimize the balance |
| 8392 |
between power savings and performance through distribution of hardware interrupts across |
| 8393 |
multiple processors. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8394 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8395 |
In a server environment with multiple processors, this provides a |
| 8396 |
useful service and should be left enabled. If a machine has only one processor, the |
| 8397 |
service may be disabled: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8398 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8399 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig irqbalance off</xhtml:code></xccdf:description> |
| 8400 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.3.a" selected="false" severity="low" weight="10.0"> |
| 8401 |
<xccdf:title>Interrupt Distribution on Multiprocessor Systems (irqbalance)</xccdf:title> |
| 8402 |
<xccdf:description>The irqbalance service should be disabled.</xccdf:description> |
| 8403 |
<xccdf:ident system="http://cce.mitre.org">CCE-4123-6</xccdf:ident> |
| 8404 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8405 |
<xccdf:fix># chkconfig irqbalance off</xccdf:fix> |
| 8406 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8407 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20185"/> |
| 8408 |
</xccdf:check> |
| 8409 |
</xccdf:Rule> |
| 8410 |
</xccdf:Group> |
| 8411 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.4"> |
| 8412 |
<xccdf:title xml:lang="en">ISDN Support (isdn)</xccdf:title> |
| 8413 |
<xccdf:description xml:lang="en"> |
| 8414 |
The ISDN service facilitates Internet connectivity in the |
| 8415 |
presence of an ISDN modem. If an ISDN modem is not being used, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8416 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8417 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig isdn off</xhtml:code></xccdf:description> |
| 8418 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.4.a" selected="false" severity="low" weight="10.0"> |
| 8419 |
<xccdf:title>ISDN Support (isdn)</xccdf:title> |
| 8420 |
<xccdf:description>The isdn service should be disabled.</xccdf:description> |
| 8421 |
<xccdf:ident system="http://cce.mitre.org">CCE-4286-1</xccdf:ident> |
| 8422 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8423 |
<xccdf:fix># chkconfig isdn off</xccdf:fix> |
| 8424 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8425 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20186"/> |
| 8426 |
</xccdf:check> |
| 8427 |
</xccdf:Rule> |
| 8428 |
</xccdf:Group> |
| 8429 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.5"> |
| 8430 |
<xccdf:title xml:lang="en">Kdump Kernel Crash Analyzer (kdump)</xccdf:title> |
| 8431 |
<xccdf:description xml:lang="en"> |
| 8432 |
Kdump is a new kernel crash dump analyzer. It uses kexec to boot |
| 8433 |
a secondary kernel ('capture' kernel) following a system crash. The kernel dump from the |
| 8434 |
system crash is loaded into the capture kernel for analysis. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8435 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8436 |
Unless the system is used for kernel development or testing, disable the service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8437 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8438 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig kdump off</xhtml:code></xccdf:description> |
| 8439 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.5.a" selected="false" severity="low" weight="10.0"> |
| 8440 |
<xccdf:title>Kdump Kernel Crash Analyzer (kdump)</xccdf:title> |
| 8441 |
<xccdf:description>The kdump service should be disabled.</xccdf:description> |
| 8442 |
<xccdf:ident system="http://cce.mitre.org">CCE-3425-6</xccdf:ident> |
| 8443 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8444 |
<xccdf:fix># chkconfig kdump off</xccdf:fix> |
| 8445 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8446 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20187"/> |
| 8447 |
</xccdf:check> |
| 8448 |
</xccdf:Rule> |
| 8449 |
</xccdf:Group> |
| 8450 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.6"> |
| 8451 |
<xccdf:title xml:lang="en">Kudzu Hardware Probing Utility (kudzu)</xccdf:title> |
| 8452 |
<xccdf:description xml:lang="en"> |
| 8453 |
Is there a mission-critical reason for console users to add new |
| 8454 |
hardware to the system? If not: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8455 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8456 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig kudzu off <xhtml:br/></xhtml:code> |
| 8457 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8458 |
Kudzu, Red Hat's hardware detection |
| 8459 |
program, represents an unnecessary security risk as it allows unprivileged users to |
| 8460 |
perform hardware configuration without authorization. Unless this specific functionality |
| 8461 |
is required, Kudzu should be disabled.</xccdf:description> |
| 8462 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.6.a" selected="false" severity="low" weight="10.0"> |
| 8463 |
<xccdf:title>Kudzu Hardware Probing Utility (kudzu)</xccdf:title> |
| 8464 |
<xccdf:description>The kudzu service should be disabled.</xccdf:description> |
| 8465 |
<xccdf:ident system="http://cce.mitre.org">CCE-4211-9</xccdf:ident> |
| 8466 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8467 |
<xccdf:fix># chkconfig kudzu off</xccdf:fix> |
| 8468 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8469 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20188"/> |
| 8470 |
</xccdf:check> |
| 8471 |
</xccdf:Rule> |
| 8472 |
</xccdf:Group> |
| 8473 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.7"> |
| 8474 |
<xccdf:title xml:lang="en">Software RAID Monitor (mdmonitor)</xccdf:title> |
| 8475 |
<xccdf:description xml:lang="en"> |
| 8476 |
The mdmonitor service is used for monitoring a software RAID |
| 8477 |
(hardware RAID setups do not use this service). This service is extraneous unless software |
| 8478 |
RAID is in use (which is not common). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8479 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8480 |
If software RAID monitoring is not required, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8481 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8482 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig mdmonitor off</xhtml:code></xccdf:description> |
| 8483 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.7.a" selected="false" severity="low" weight="10.0"> |
| 8484 |
<xccdf:title>Software RAID Monitor (mdmonitor)</xccdf:title> |
| 8485 |
<xccdf:description>The mdmonitor service should be disabled.</xccdf:description> |
| 8486 |
<xccdf:ident system="http://cce.mitre.org">CCE-3854-7</xccdf:ident> |
| 8487 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8488 |
<xccdf:fix># chkconfig mdmonitor off</xccdf:fix> |
| 8489 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8490 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20189"/> |
| 8491 |
</xccdf:check> |
| 8492 |
</xccdf:Rule> |
| 8493 |
</xccdf:Group> |
| 8494 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.8"> |
| 8495 |
<xccdf:title xml:lang="en">IA32 Microcode Utility(microcodectl)</xccdf:title> |
| 8496 |
<xccdf:description xml:lang="en"> |
| 8497 |
microcode ctl is a microcode utility for use with Intel IA32 |
| 8498 |
processors (Pentium Pro, PII, Celeron, PIII, Xeon, Pentium 4, etc) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8499 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8500 |
If the system is not running an Intel IA32 processor, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8501 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8502 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig microcode ctl off</xhtml:code></xccdf:description> |
| 8503 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.8.a" selected="false" severity="low" weight="10.0"> |
| 8504 |
<xccdf:title>IA32 Microcode Utility(microcodectl)</xccdf:title> |
| 8505 |
<xccdf:description>The microcode_ctl service should be disabled.</xccdf:description> |
| 8506 |
<xccdf:ident system="http://cce.mitre.org">CCE-4356-2</xccdf:ident> |
| 8507 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8508 |
<xccdf:fix># chkconfig microcode ctl off</xccdf:fix> |
| 8509 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8510 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20190"/> |
| 8511 |
</xccdf:check> |
| 8512 |
</xccdf:Rule> |
| 8513 |
</xccdf:Group> |
| 8514 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.9"> |
| 8515 |
<xccdf:title xml:lang="en">Network Service (network)</xccdf:title> |
| 8516 |
<xccdf:description xml:lang="en"> |
| 8517 |
The network service allows associated network interfaces to |
| 8518 |
access the network. This section contains general guidance for controlling the operation |
| 8519 |
of the service. For kernel parameters which affect networking, see Section</xccdf:description> |
| 8520 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.9.1"> |
| 8521 |
<xccdf:title xml:lang="en">Disable All Networking if Not Needed</xccdf:title> |
| 8522 |
<xccdf:description xml:lang="en"> |
| 8523 |
If the system is a standalone machine with no need for network |
| 8524 |
access or even communication over the loopback device, then disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8525 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8526 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig network off</xhtml:code></xccdf:description> |
| 8527 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.9.1.a" selected="false" severity="low" weight="10.0"> |
| 8528 |
<xccdf:title>Disable All Networking if Not Needed)</xccdf:title> |
| 8529 |
<xccdf:description>The network service should be disabled.</xccdf:description> |
| 8530 |
<xccdf:ident system="http://cce.mitre.org">CCE-4369-5</xccdf:ident> |
| 8531 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8532 |
<xccdf:fix># chkconfig network off</xccdf:fix> |
| 8533 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8534 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20191"/> |
| 8535 |
</xccdf:check> |
| 8536 |
</xccdf:Rule> |
| 8537 |
</xccdf:Group> |
| 8538 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.9.2"> |
| 8539 |
<xccdf:title xml:lang="en">Disable All External Network Interfaces if Not Needed</xccdf:title> |
| 8540 |
<xccdf:description xml:lang="en"> |
| 8541 |
If the system does not require network communications but still |
| 8542 |
needs to use the loopback interface, remove all files of the form ifcfg-interface except |
| 8543 |
for ifcfg-lo from /etc/sysconfig/network-scripts: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8544 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8545 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rm /etc/sysconfig/network-scripts/ifcfg-interface</xhtml:code></xccdf:description> |
| 8546 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.9.2.a" selected="false" severity="medium" weight="10.0"> |
| 8547 |
<xccdf:title>Disable All External Network Interfaces if Not Needed</xccdf:title> |
| 8548 |
<xccdf:description>All files of the form ifcfg-interface except for ifcfg-lo in /etc/sysconfig/network-scripts should be removed</xccdf:description> |
| 8549 |
<xccdf:fixtext>via /etc/sysconfig/network-scripts</xccdf:fixtext> |
| 8550 |
<xccdf:fix># rm /etc/sysconfig/network-scripts/ifcfg-interface</xccdf:fix> |
| 8551 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8552 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20192"/> |
| 8553 |
</xccdf:check> |
| 8554 |
</xccdf:Rule> |
| 8555 |
</xccdf:Group> |
| 8556 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.9.3"> |
| 8557 |
<xccdf:title xml:lang="en">Disable Zeroconf Networking</xccdf:title> |
| 8558 |
<xccdf:description xml:lang="en"> |
| 8559 |
Zeroconf networking allows the system to assign itself an IP |
| 8560 |
address and engage in IP communication without a statically-assigned address or even a |
| 8561 |
DHCP server. Automatic address assignment via Zeroconf (or DHCP) is not recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8562 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8563 |
To disable Zeroconf automatic route assignment in the 169.245.0.0 subnet, add or correct |
| 8564 |
the following line in /etc/sysconfig/network: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8565 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8566 |
NOZEROCONF=yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8567 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8568 |
Zeroconf addresses are in |
| 8569 |
the network 169.254.0.0. The networking scripts add entries to the system's routing |
| 8570 |
table for these addresses. Zeroconf address assignment commonly occurs when the system |
| 8571 |
is configured to use DHCP but fails to receive an address assignment from the DHCP |
| 8572 |
server.</xccdf:description> |
| 8573 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.9.3.a" selected="false" severity="medium" weight="10.0"> |
| 8574 |
<xccdf:title>Disable Zeroconf Networking</xccdf:title> |
| 8575 |
<xccdf:description>Disable Zeroconf automatic route assignment in the 169.245.0.0 subnet.</xccdf:description> |
| 8576 |
<xccdf:ident system="http://cce.mitre.org">CCE-4369-5</xccdf:ident> |
| 8577 |
<xccdf:fixtext>(1) via /etc/sysconfig/network</xccdf:fixtext> |
| 8578 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8579 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20193"/> |
| 8580 |
</xccdf:check> |
| 8581 |
</xccdf:Rule> |
| 8582 |
</xccdf:Group> |
| 8583 |
</xccdf:Group> |
| 8584 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.10"> |
| 8585 |
<xccdf:title xml:lang="en">Smart Card Support (pcscd)</xccdf:title> |
| 8586 |
<xccdf:description xml:lang="en"> |
| 8587 |
The pcscd service provides support for Smart Cards and Smart Card |
| 8588 |
Readers. If Smart Cards are not in use on the system, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8589 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8590 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig pcscd off</xhtml:code></xccdf:description> |
| 8591 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.10.a" selected="false" severity="low" weight="10.0"> |
| 8592 |
<xccdf:title>Smart Card Support (pcscd)</xccdf:title> |
| 8593 |
<xccdf:description>The pcscd service should be disabled.</xccdf:description> |
| 8594 |
<xccdf:ident system="http://cce.mitre.org">CCE-4100-4</xccdf:ident> |
| 8595 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8596 |
<xccdf:fix># chkconfig pcscd off</xccdf:fix> |
| 8597 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8598 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20194"/> |
| 8599 |
</xccdf:check> |
| 8600 |
</xccdf:Rule> |
| 8601 |
</xccdf:Group> |
| 8602 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.11"> |
| 8603 |
<xccdf:title xml:lang="en">SMART Disk Monitoring Support (smartd)</xccdf:title> |
| 8604 |
<xccdf:description xml:lang="en"> |
| 8605 |
SMART (Self-Monitoring, Analysis, and Reporting Technology) is a |
| 8606 |
feature of hard drives that allows them to detect symptoms of disk failure and relay an |
| 8607 |
appropriate warning. This technology is considered to bring relatively low security risk, |
| 8608 |
and can be useful. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8609 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8610 |
Leave this service running if the system's hard drives are |
| 8611 |
SMART-capable. Otherwise, disable it: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8612 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8613 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig smartd off</xhtml:code></xccdf:description> |
| 8614 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.11.a" selected="false" severity="low" weight="10.0"> |
| 8615 |
<xccdf:title>SMART Disk Monitoring Support (smartd)</xccdf:title> |
| 8616 |
<xccdf:description>The smartd service should be disabled.</xccdf:description> |
| 8617 |
<xccdf:ident system="http://cce.mitre.org">CCE-3455-3</xccdf:ident> |
| 8618 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8619 |
<xccdf:fix># chkconfig smartd off</xccdf:fix> |
| 8620 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8621 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20195"/> |
| 8622 |
</xccdf:check> |
| 8623 |
</xccdf:Rule> |
| 8624 |
</xccdf:Group> |
| 8625 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.12"> |
| 8626 |
<xccdf:title xml:lang="en">Boot Caching (readahead early/readahead later)</xccdf:title> |
| 8627 |
<xccdf:description xml:lang="en"> |
| 8628 |
The following services provide one-time caching of files |
| 8629 |
belonging to some boot services, with the goal of allowing the system to boot faster. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8630 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8631 |
It is recommended that this service be disabled on most machines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8632 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8633 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig readahead_early off <xhtml:br/> |
| 8634 |
# chkconfig readahead_later off <xhtml:br/></xhtml:code> |
| 8635 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8636 |
The readahead services do not substantially increase a |
| 8637 |
system's risk exposure, but they also do not provide great benefit. Unless the system is |
| 8638 |
running a specialized application for which the file caching substantially improves system |
| 8639 |
boot time, this guide recommends disabling the services.</xccdf:description> |
| 8640 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.12.a" selected="false" severity="low" weight="10.0"> |
| 8641 |
<xccdf:title>Boot Caching (readahead early/readahead later)</xccdf:title> |
| 8642 |
<xccdf:description>The readahead_early service should be disabled.</xccdf:description> |
| 8643 |
<xccdf:ident system="http://cce.mitre.org">CCE-4421-4</xccdf:ident> |
| 8644 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8645 |
<xccdf:fix># chkconfig readahead early off</xccdf:fix> |
| 8646 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8647 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20196"/> |
| 8648 |
</xccdf:check> |
| 8649 |
</xccdf:Rule> |
| 8650 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.12.b" selected="false" severity="low" weight="10.0"> |
| 8651 |
<xccdf:title>Boot Caching (readahead early/readahead later)</xccdf:title> |
| 8652 |
<xccdf:description>The readahead_later service should be disabled.</xccdf:description> |
| 8653 |
<xccdf:ident system="http://cce.mitre.org">CCE-4302-6</xccdf:ident> |
| 8654 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8655 |
<xccdf:fix># chkconfig readahead later off</xccdf:fix> |
| 8656 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8657 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20197"/> |
| 8658 |
</xccdf:check> |
| 8659 |
</xccdf:Rule> |
| 8660 |
</xccdf:Group> |
| 8661 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.13"> |
| 8662 |
<xccdf:title xml:lang="en">Application Support Services</xccdf:title> |
| 8663 |
<xccdf:description xml:lang="en"> |
| 8664 |
The following services are software projects of freedesktop.org |
| 8665 |
that are meant to provide system integration through a series of common APIs for |
| 8666 |
applications. They are heavily integrated into the X Windows environment. If the system is |
| 8667 |
not using X Windows, these services can typically be disabled.</xccdf:description> |
| 8668 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.13.1"> |
| 8669 |
<xccdf:title xml:lang="en">D-Bus IPC Service (messagebus)</xccdf:title> |
| 8670 |
<xccdf:description xml:lang="en"> |
| 8671 |
D-Bus is an IPC mechanism that provides a common channel for |
| 8672 |
inter-process communication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8673 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8674 |
If no services which require D-Bus are in use, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8675 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8676 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig messagebus off <xhtml:br/></xhtml:code> |
| 8677 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8678 |
A number of default services make use of D-Bus, |
| 8679 |
including X Windows (Section 3.6), Bluetooth (Section 3.3.14) and Avahi (Section 3.7). |
| 8680 |
This guide recommends that D-Bus and all its dependencies be disabled unless there is a |
| 8681 |
mission-critical need for them. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8682 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8683 |
Stricter configuration of D-Bus is possible and |
| 8684 |
documented in the man page dbus-daemon(1). D-Bus maintains two separate configuration |
| 8685 |
files, located in /etc/dbus-1/, one for system-specific configuration and the other for |
| 8686 |
session-specific configuration.</xccdf:description> |
| 8687 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.13.1.a" selected="false" severity="low" weight="10.0"> |
| 8688 |
<xccdf:title>D-Bus IPC Service (messagebus)</xccdf:title> |
| 8689 |
<xccdf:description>The messagebus service should be disabled.</xccdf:description> |
| 8690 |
<xccdf:ident system="http://cce.mitre.org">CCE-3822-4</xccdf:ident> |
| 8691 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8692 |
<xccdf:fix># chkconfig messagebus off</xccdf:fix> |
| 8693 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8694 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20198"/> |
| 8695 |
</xccdf:check> |
| 8696 |
</xccdf:Rule> |
| 8697 |
</xccdf:Group> |
| 8698 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.13.2"> |
| 8699 |
<xccdf:title xml:lang="en">HAL Daemon (haldaemon)</xccdf:title> |
| 8700 |
<xccdf:description xml:lang="en"> |
| 8701 |
The haldaemon service provides a dynamic way of managing device |
| 8702 |
interfaces. It automates device configuration and provides an API for making devices |
| 8703 |
accessible to applications through the D-Bus interface.</xccdf:description> |
| 8704 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.13.2.a" selected="false" severity="low" weight="10.0"> |
| 8705 |
<xccdf:title>HAL Daemon (haldaemon)</xccdf:title> |
| 8706 |
<xccdf:description>The haldaemon service should be disabled.</xccdf:description> |
| 8707 |
<xccdf:ident system="http://cce.mitre.org">CCE-4364-6</xccdf:ident> |
| 8708 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8709 |
<xccdf:fix># chkconfig haldaemon off</xccdf:fix> |
| 8710 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8711 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20199"/> |
| 8712 |
</xccdf:check> |
| 8713 |
</xccdf:Rule> |
| 8714 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.13.2.1"> |
| 8715 |
<xccdf:title xml:lang="en">Disable HAL Daemon if Possible</xccdf:title> |
| 8716 |
<xccdf:description xml:lang="en"> |
| 8717 |
HAL provides valuable attack surfaces to attackers as an |
| 8718 |
intermediary to privileged operations and should be disabled unless necessary: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8719 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8720 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig haldaemon off</xhtml:code></xccdf:description> |
| 8721 |
</xccdf:Group> |
| 8722 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.13.2.2"> |
| 8723 |
<xccdf:title xml:lang="en">Configure HAL Daemon if Necessary</xccdf:title> |
| 8724 |
<xccdf:description xml:lang="en"> |
| 8725 |
HAL provides a limited user the ability to mount system |
| 8726 |
devices. This is primarily used by X utilities such as gnome-volume-manager to perform |
| 8727 |
automounting of removable media. |
| 8728 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8729 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8730 |
HAL configuration is currently |
| 8731 |
only possible through a series of fdi files located in |
| 8732 |
/usr/share/hal/fdi/ |
| 8733 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8734 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8735 |
Note: The HAL future road map includes a |
| 8736 |
mandatory framework for managing administrative privileges called |
| 8737 |
PolicyKit. |
| 8738 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8739 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8740 |
To prevent users from accessing devices through HAL, |
| 8741 |
create the |
| 8742 |
file |
| 8743 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8744 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8745 |
/etc/hal/fdi/policy/99-policy-all-drives.fdi |
| 8746 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8747 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8748 |
with the contents: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8749 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8750 |
<?xml version="1.0" |
| 8751 |
encoding="UTF-8"?><deviceinfo |
| 8752 |
version="0.2"><device><match key="info.capabilities" |
| 8753 |
contains="volume"><merge key="volume.ignore" |
| 8754 |
type="bool">true</merge></match></device></deviceinfo> |
| 8755 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8756 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8757 |
The |
| 8758 |
above code matches any device labeled with the volume capability (any device capable |
| 8759 |
of being mounted will be labeled this way) and sets the corresponding volume.ignore |
| 8760 |
key to true, indicating that the volume should be ignored. This both makes the volume |
| 8761 |
invisible to the UI, and denies mount attempts by unprivileged users. |
| 8762 |
</xccdf:description> |
| 8763 |
</xccdf:Group> |
| 8764 |
</xccdf:Group> |
| 8765 |
</xccdf:Group> |
| 8766 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.14"> |
| 8767 |
<xccdf:title xml:lang="en">Bluetooth Support</xccdf:title> |
| 8768 |
<xccdf:description xml:lang="en"> |
| 8769 |
Bluetooth provides a way to transfer information between devices |
| 8770 |
such as mobile phones, laptops, PCs, printers, digital cameras, and video game consoles |
| 8771 |
over a short-range wireless link. Any wireless communication presents a serious security |
| 8772 |
risk to sensitive or classified systems. Section 2.5.2 contains information on the related |
| 8773 |
topic of wireless networking. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8774 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8775 |
Removal of hardware is the only way to ensure that the |
| 8776 |
Bluetooth wireless capability remains disabled. If it is completely impractical to remove |
| 8777 |
the Bluetooth hardware module, and site policy still allows the device to enter sensitive |
| 8778 |
spaces, every effort to disable the capability via software should be made. In general, |
| 8779 |
acquisition policy should include provisions to prevent the purchase of equipment that |
| 8780 |
will be used in sensitive spaces and includes Bluetooth capabilities.</xccdf:description> |
| 8781 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.14.1"> |
| 8782 |
<xccdf:title xml:lang="en">Bluetooth Host Controller Interface Daemon (bluetooth)</xccdf:title> |
| 8783 |
<xccdf:description xml:lang="en"> |
| 8784 |
The bluetooth service enables the system to use Bluetooth |
| 8785 |
devices. If the system requires no Bluetooth devices, disable this service:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8786 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig bluetooth off</xhtml:code></xccdf:description> |
| 8787 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.14.1.a" selected="false" severity="medium" weight="10.0"> |
| 8788 |
<xccdf:title>Bluetooth Host Controller Interface Daemon (bluetooth)</xccdf:title> |
| 8789 |
<xccdf:description>The bluetooth service should be disabled.</xccdf:description> |
| 8790 |
<xccdf:ident system="http://cce.mitre.org">CCE-4355-4</xccdf:ident> |
| 8791 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8792 |
<xccdf:fix># chkconfig bluetooth off</xccdf:fix> |
| 8793 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8794 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20200"/> |
| 8795 |
</xccdf:check> |
| 8796 |
</xccdf:Rule> |
| 8797 |
</xccdf:Group> |
| 8798 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.14.2"> |
| 8799 |
<xccdf:title xml:lang="en">Bluetooth Input Devices (hidd)</xccdf:title> |
| 8800 |
<xccdf:description xml:lang="en"> |
| 8801 |
The hidd service provides support for Bluetooth input devices. |
| 8802 |
If the system has no Bluetooth input devices (e.g. keyboard or mouse), disable this |
| 8803 |
service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8804 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8805 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig hidd off</xhtml:code></xccdf:description> |
| 8806 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.14.2.a" selected="false" severity="low" weight="10.0"> |
| 8807 |
<xccdf:title>Bluetooth Input Devices (hidd)</xccdf:title> |
| 8808 |
<xccdf:description>The hidd service should be disabled.</xccdf:description> |
| 8809 |
<xccdf:ident system="http://cce.mitre.org">CCE-4377-8</xccdf:ident> |
| 8810 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8811 |
<xccdf:fix># chkconfig hidd off</xccdf:fix> |
| 8812 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8813 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20201"/> |
| 8814 |
</xccdf:check> |
| 8815 |
</xccdf:Rule> |
| 8816 |
</xccdf:Group> |
| 8817 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.14.3"> |
| 8818 |
<xccdf:title xml:lang="en">Disable Bluetooth Kernel Modules</xccdf:title> |
| 8819 |
<xccdf:description xml:lang="en"> |
| 8820 |
The kernel's module loading system can be configured to prevent |
| 8821 |
loading of the Bluetooth module. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8822 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8823 |
Add the following to /etc/modprobe.conf to prevent the |
| 8824 |
loading of the Bluetooth module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8825 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8826 |
alias net-pf-31 off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8827 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8828 |
The unexpected name, net-pf-31, is |
| 8829 |
a result of how the kernel requests modules for network protocol families; it is an |
| 8830 |
alias for the bluetooth module.</xccdf:description> |
| 8831 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.14.3.a" selected="false" severity="medium" weight="10.0"> |
| 8832 |
<xccdf:title>Disable Bluetooth Kernel Modules</xccdf:title> |
| 8833 |
<xccdf:description>Prevent loading of the Bluetooth module.</xccdf:description> |
| 8834 |
<xccdf:fixtext>(1) via /etc/modprobe.conf</xccdf:fixtext> |
| 8835 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8836 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202015"/> |
| 8837 |
</xccdf:check> |
| 8838 |
</xccdf:Rule> |
| 8839 |
</xccdf:Group> |
| 8840 |
</xccdf:Group> |
| 8841 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.15"> |
| 8842 |
<xccdf:title xml:lang="en">Power Management Support</xccdf:title> |
| 8843 |
<xccdf:description xml:lang="en"> |
| 8844 |
The following services provide an interface to power management |
| 8845 |
functions. These functions include monitoring battery power, system hibernate/suspend, CPU |
| 8846 |
throttling, and various power-save utilities.</xccdf:description> |
| 8847 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.15.1"> |
| 8848 |
<xccdf:title xml:lang="en">Advanced Power Management Subsystem (apmd)</xccdf:title> |
| 8849 |
<xccdf:description xml:lang="en"> |
| 8850 |
The apmd service provides last generation power management |
| 8851 |
support. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8852 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8853 |
If the system is capable of ACPI support, or if power management is not |
| 8854 |
necessary, disable this service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8855 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8856 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig apmd off <xhtml:br/></xhtml:code> |
| 8857 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8858 |
APM is being replaced by ACPI and |
| 8859 |
should be considered deprecated. As such, it can be disabled if ACPI is supported by |
| 8860 |
your hardware and kernel. If the file /proc/acpi/info exists and contains ACPI version |
| 8861 |
information, then APM can safely be disabled without loss of functionality.</xccdf:description> |
| 8862 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.15.1.a" selected="false" severity="low" weight="10.0"> |
| 8863 |
<xccdf:title>Advanced Power Management Subsystem (apmd)</xccdf:title> |
| 8864 |
<xccdf:description>The apmd service should be disabled.</xccdf:description> |
| 8865 |
<xccdf:ident system="http://cce.mitre.org">CCE-4289-5</xccdf:ident> |
| 8866 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8867 |
<xccdf:fix># chkconfig apmd off</xccdf:fix> |
| 8868 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8869 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20202"/> |
| 8870 |
</xccdf:check> |
| 8871 |
</xccdf:Rule> |
| 8872 |
</xccdf:Group> |
| 8873 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.15.2"> |
| 8874 |
<xccdf:title xml:lang="en">Advanced Configuration and Power Interface (acpid)</xccdf:title> |
| 8875 |
<xccdf:description xml:lang="en"> |
| 8876 |
The acpid service provides next generation power management |
| 8877 |
support. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8878 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8879 |
Unless power management features are not necessary, leave this service enabled.</xccdf:description> |
| 8880 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.15.2.a" selected="false" severity="low" weight="10.0"> |
| 8881 |
<xccdf:title>Advanced Configuration and Power Interface (acpid)</xccdf:title> |
| 8882 |
<xccdf:description>The acpid service should be disabled.</xccdf:description> |
| 8883 |
<xccdf:ident system="http://cce.mitre.org">CCE-4298-6</xccdf:ident> |
| 8884 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8885 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8886 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20203"/> |
| 8887 |
</xccdf:check> |
| 8888 |
</xccdf:Rule> |
| 8889 |
</xccdf:Group> |
| 8890 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.3.15.3"> |
| 8891 |
<xccdf:title xml:lang="en">CPU Throttling (cpuspeed)</xccdf:title> |
| 8892 |
<xccdf:description xml:lang="en"> |
| 8893 |
The cpuspeed service uses hardware support to throttle the CPU |
| 8894 |
when the system is idle. Unless CPU power optimization is unnecessary, leave this |
| 8895 |
service enabled.</xccdf:description> |
| 8896 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.3.15.3.a" selected="false" severity="low" weight="10.0"> |
| 8897 |
<xccdf:title>CPU Throttling (cpuspeed)</xccdf:title> |
| 8898 |
<xccdf:description>The cpuspeed service should be disabled.</xccdf:description> |
| 8899 |
<xccdf:ident system="http://cce.mitre.org">CCE-4051-9</xccdf:ident> |
| 8900 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8901 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8902 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20204"/> |
| 8903 |
</xccdf:check> |
| 8904 |
</xccdf:Rule> |
| 8905 |
</xccdf:Group> |
| 8906 |
</xccdf:Group> |
| 8907 |
</xccdf:Group> |
| 8908 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.4"> |
| 8909 |
<xccdf:title xml:lang="en">Cron and At Daemons</xccdf:title> |
| 8910 |
<xccdf:description xml:lang="en"> |
| 8911 |
The cron and at services are used to allow commands to be executed |
| 8912 |
at a later time. The cron service is required by almost all systems to perform necessary |
| 8913 |
maintenance tasks, while at may or may not be required on a given system. Both daemons |
| 8914 |
should be configured defensively.</xccdf:description> |
| 8915 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.a" selected="false" severity="high" weight="10.0"> |
| 8916 |
<xccdf:title>Enable cron Daemon</xccdf:title> |
| 8917 |
<xccdf:description>The crond service should be enabled.</xccdf:description> |
| 8918 |
<xccdf:ident system="http://cce.mitre.org">CCE-4324-0</xccdf:ident> |
| 8919 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8920 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8921 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20205"/> |
| 8922 |
</xccdf:check> |
| 8923 |
</xccdf:Rule> |
| 8924 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.4.1"> |
| 8925 |
<xccdf:title xml:lang="en">Disable anacron if Possible</xccdf:title> |
| 8926 |
<xccdf:description xml:lang="en"> |
| 8927 |
Is this a machine which is designed to run all the time, such as |
| 8928 |
a server or a workstation which is left on at night? If so: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8929 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8930 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase anacron<xhtml:br/></xhtml:code> |
| 8931 |
The |
| 8932 |
anacron subsystem is designed to provide cron functionality for machines which may be shut |
| 8933 |
down during the normal times that system cron jobs run, frequently in the middle of the |
| 8934 |
night. Laptops and workstations which are shut down at night should keep anacron enabled, |
| 8935 |
so that standard system cron jobs will run when the machine boots. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8936 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8937 |
However, on machines |
| 8938 |
which do not need this additional functionality, anacron represents another piece of |
| 8939 |
privileged software which could contain vulnerabilities. Therefore, it should be removed |
| 8940 |
when possible to reduce system risk.</xccdf:description> |
| 8941 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.1.a" selected="false" severity="low" weight="10.0"> |
| 8942 |
<xccdf:title>Disable anacron if Possible</xccdf:title> |
| 8943 |
<xccdf:description>The anacron service should be disabled.</xccdf:description> |
| 8944 |
<xccdf:ident system="http://cce.mitre.org">CCE-4406-5</xccdf:ident> |
| 8945 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 8946 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8947 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20206"/> |
| 8948 |
</xccdf:check> |
| 8949 |
</xccdf:Rule> |
| 8950 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.1.b" selected="false" weight="10.0"> |
| 8951 |
<xccdf:title>Uninstall anacron if Possible</xccdf:title> |
| 8952 |
<xccdf:description>The anacron package should be uninstalled.</xccdf:description> |
| 8953 |
<xccdf:ident system="http://cce.mitre.org">CCE-4428-9</xccdf:ident> |
| 8954 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 8955 |
<xccdf:fix># yum erase anacron</xccdf:fix> |
| 8956 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 8957 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20207"/> |
| 8958 |
</xccdf:check> |
| 8959 |
</xccdf:Rule> |
| 8960 |
</xccdf:Group> |
| 8961 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.4.2"> |
| 8962 |
<xccdf:title xml:lang="en">Restrict Permissions on Files Used by cron</xccdf:title> |
| 8963 |
<xccdf:description xml:lang="en"> |
| 8964 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 8965 |
<xhtml:li>Restrict the permissions on the primary system crontab file: <xhtml:br/> |
| 8966 |
<xhtml:br/> |
| 8967 |
<xhtml:code># chown root:root /etc/crontab <xhtml:br/> |
| 8968 |
# chmod 600 /etc/crontab</xhtml:code></xhtml:li> |
| 8969 |
<xhtml:li>If anacron has not been removed, |
| 8970 |
restrict the permissions on its primary configuration file: <xhtml:br/> |
| 8971 |
<xhtml:br/> |
| 8972 |
<xhtml:code># chown root:root /etc/anacrontab <xhtml:br/> |
| 8973 |
# chmod 600 /etc/anacrontab </xhtml:code></xhtml:li> |
| 8974 |
<xhtml:li>Restrict the permission on all system |
| 8975 |
crontab directories: <xhtml:br/> |
| 8976 |
<xhtml:br/> |
| 8977 |
<xhtml:code># cd /etc <xhtml:br/> |
| 8978 |
# chown -R root:root cron.hourly cron.daily cron.weekly cron.monthly cron.d <xhtml:br/> |
| 8979 |
# chmod -R go-rwx cron.hourly cron.daily cron.weekly cron.monthly cron.d </xhtml:code></xhtml:li> |
| 8980 |
<xhtml:li>Restrict the permissions on the spool directory for user crontab files: <xhtml:br/> |
| 8981 |
<xhtml:br/> |
| 8982 |
<xhtml:code># chown root:root /var/spool/cron <xhtml:br/> |
| 8983 |
# chmod -R go-rwx /var/spool/cron </xhtml:code></xhtml:li> |
| 8984 |
</xhtml:ol> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8985 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 8986 |
Cron and anacron make use of a |
| 8987 |
number of configuration files and directories. The system crontabs need only be edited by |
| 8988 |
root, and user crontabs are edited using the setuid root crontab command. If unprivileged |
| 8989 |
users can modify system cron configuration files, they may be able to gain elevated |
| 8990 |
privileges, so all unnecessary access to these files should be disabled.</xccdf:description> |
| 8991 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.group" operator="equals" type="string"> |
| 8992 |
<xccdf:title>group owner of /etc/crontab</xccdf:title> |
| 8993 |
<xccdf:description xml:lang="en">Specify group owner of /etc/crontab.</xccdf:description> |
| 8994 |
<xccdf:question xml:lang="en">Specify group owner of /etc/crontab</xccdf:question> |
| 8995 |
<xccdf:value>root</xccdf:value> |
| 8996 |
<xccdf:value selector="root">root</xccdf:value> |
| 8997 |
</xccdf:Value> |
| 8998 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.user" operator="equals" type="string"> |
| 8999 |
<xccdf:title>user owner of /etc/crontab</xccdf:title> |
| 9000 |
<xccdf:description xml:lang="en">Specify user owner of /etc/crontab.</xccdf:description> |
| 9001 |
<xccdf:question xml:lang="en">Specify user owner of /etc/crontab</xccdf:question> |
| 9002 |
<xccdf:value>root</xccdf:value> |
| 9003 |
<xccdf:value selector="root">root</xccdf:value> |
| 9004 |
</xccdf:Value> |
| 9005 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.permissions" operator="equals" type="string"> |
| 9006 |
<xccdf:title>permissions on /etc/crontab file</xccdf:title> |
| 9007 |
<xccdf:description xml:lang="en">Specify file permissions on /etc/crontab.</xccdf:description> |
| 9008 |
<xccdf:question xml:lang="en">Specify permissions of /etc/crontab</xccdf:question> |
| 9009 |
<xccdf:value>110100100</xccdf:value> |
| 9010 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 9011 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 9012 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 9013 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 9014 |
</xccdf:Value> |
| 9015 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.anacrontab.group" operator="equals" type="string"> |
| 9016 |
<xccdf:title>group owner of /etc/anacrontab</xccdf:title> |
| 9017 |
<xccdf:description xml:lang="en">Specify group owner of /etc/ancrontab.</xccdf:description> |
| 9018 |
<xccdf:question xml:lang="en">Specify group owner of /etc/anacrontab</xccdf:question> |
| 9019 |
<xccdf:value>root</xccdf:value> |
| 9020 |
<xccdf:value selector="root">root</xccdf:value> |
| 9021 |
</xccdf:Value> |
| 9022 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.anacrontab.user" operator="equals" type="string"> |
| 9023 |
<xccdf:title>user owner of /etc/anacrontab</xccdf:title> |
| 9024 |
<xccdf:description xml:lang="en">Specify user owner of /etc/anacrontab.</xccdf:description> |
| 9025 |
<xccdf:question xml:lang="en">Specify user owner of /etc/anacrontab</xccdf:question> |
| 9026 |
<xccdf:value>root</xccdf:value> |
| 9027 |
<xccdf:value selector="root">root</xccdf:value> |
| 9028 |
</xccdf:Value> |
| 9029 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.anacrontab.permissions" operator="equals" type="string"> |
| 9030 |
<xccdf:title>permissions on /etc/anacrontab file</xccdf:title> |
| 9031 |
<xccdf:description xml:lang="en">Specify file permissions on /etc/crontab.</xccdf:description> |
| 9032 |
<xccdf:question xml:lang="en">Specify permissions of /etc/anacrontab</xccdf:question> |
| 9033 |
<xccdf:value>110100100</xccdf:value> |
| 9034 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 9035 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 9036 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 9037 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 9038 |
</xccdf:Value> |
| 9039 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group" operator="equals" type="string"> |
| 9040 |
<xccdf:title>group owner of cron.hourly cron.daily cron.weekly cron.monthly cron.d</xccdf:title> |
| 9041 |
<xccdf:description xml:lang="en">Specify group owner of /etc/cron.* files and directories.</xccdf:description> |
| 9042 |
<xccdf:question xml:lang="en">Specify group owner of /etc/cron.* files and directories</xccdf:question> |
| 9043 |
<xccdf:value>root</xccdf:value> |
| 9044 |
<xccdf:value selector="root">root</xccdf:value> |
| 9045 |
</xccdf:Value> |
| 9046 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user" operator="equals" type="string"> |
| 9047 |
<xccdf:title>user owner of cron.hourly cron.daily cron.weekly cron.monthly cron.d</xccdf:title> |
| 9048 |
<xccdf:description xml:lang="en">Specify user owner of /etc/cron.* files and directories.</xccdf:description> |
| 9049 |
<xccdf:question xml:lang="en">Specify user owner of /etc/cron.* files and directories</xccdf:question> |
| 9050 |
<xccdf:value>root</xccdf:value> |
| 9051 |
<xccdf:value selector="root">root</xccdf:value> |
| 9052 |
</xccdf:Value> |
| 9053 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions" operator="equals" type="string"> |
| 9054 |
<xccdf:title>permissions on cron.hourly cron.daily cron.weekly cron.monthly cron.d</xccdf:title> |
| 9055 |
<xccdf:description xml:lang="en">Specify file and directory permissions on /etc/cron.*.</xccdf:description> |
| 9056 |
<xccdf:question xml:lang="en">Specify permissions of /etc/cron.* files and directories</xccdf:question> |
| 9057 |
<xccdf:value>111101101</xccdf:value> |
| 9058 |
<xccdf:value selector="755">111101101</xccdf:value> |
| 9059 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 9060 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 9061 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 9062 |
</xccdf:Value> |
| 9063 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.spool.directory.group" operator="equals" type="string"> |
| 9064 |
<xccdf:title>group owner of /var/spool/cron</xccdf:title> |
| 9065 |
<xccdf:description xml:lang="en">Specify group owner of /var/spool/cron.</xccdf:description> |
| 9066 |
<xccdf:question xml:lang="en">Specify group owner of /var/spool/cron</xccdf:question> |
| 9067 |
<xccdf:value>root</xccdf:value> |
| 9068 |
<xccdf:value selector="root">root</xccdf:value> |
| 9069 |
</xccdf:Value> |
| 9070 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.spool.directory.user" operator="equals" type="string"> |
| 9071 |
<xccdf:title>user owner of /var/spool/cron</xccdf:title> |
| 9072 |
<xccdf:description xml:lang="en">Specify user owner of /var/spool/cron.</xccdf:description> |
| 9073 |
<xccdf:value>root</xccdf:value> |
| 9074 |
<xccdf:value selector="root">root</xccdf:value> |
| 9075 |
</xccdf:Value> |
| 9076 |
<xccdf:Value id="xccdf_cdf_value_var-3.4.2.spool.directory.permissions" operator="equals" type="string"> |
| 9077 |
<xccdf:title>permissions on /var/spool/cron file</xccdf:title> |
| 9078 |
<xccdf:description xml:lang="en">Specify file permissions on /var/spool/cron.</xccdf:description> |
| 9079 |
<xccdf:question xml:lang="en">Specify file permissions of /var/spool/cron</xccdf:question> |
| 9080 |
<xccdf:value>111000000</xccdf:value> |
| 9081 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 9082 |
<xccdf:value selector="600">110000000</xccdf:value> |
| 9083 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 9084 |
</xccdf:Value> |
| 9085 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 9086 |
<xccdf:title>Set group owner on /etc/crontab</xccdf:title> |
| 9087 |
<xccdf:description>The /etc/crontab file should be owned by the appropriate group.</xccdf:description> |
| 9088 |
<xccdf:ident system="http://cce.mitre.org">CCE-3626-9</xccdf:ident> |
| 9089 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9090 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9091 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20208" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.group"/> |
| 9092 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20208"/> |
| 9093 |
</xccdf:check> |
| 9094 |
</xccdf:Rule> |
| 9095 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.1.b" selected="false" severity="medium" weight="10.0"> |
| 9096 |
<xccdf:title>Set user owner on /etc/crontab</xccdf:title> |
| 9097 |
<xccdf:description>The /etc/crontab file should be owned by the appropriate user.</xccdf:description> |
| 9098 |
<xccdf:ident system="http://cce.mitre.org">CCE-3851-3</xccdf:ident> |
| 9099 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9100 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9101 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20209" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.user"/> |
| 9102 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20209"/> |
| 9103 |
</xccdf:check> |
| 9104 |
</xccdf:Rule> |
| 9105 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.1.c" selected="false" severity="medium" weight="10.0"> |
| 9106 |
<xccdf:title>Set Permissions on /etc/crontab</xccdf:title> |
| 9107 |
<xccdf:title>Restrict Permissions on Files Used by cron</xccdf:title> |
| 9108 |
<xccdf:description>File permissions for /etc/crontab should be set correctly.</xccdf:description> |
| 9109 |
<xccdf:ident system="http://cce.mitre.org">CCE-4388-5</xccdf:ident> |
| 9110 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9111 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9112 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20210" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.primary.permissions"/> |
| 9113 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20210"/> |
| 9114 |
</xccdf:check> |
| 9115 |
</xccdf:Rule> |
| 9116 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.2.a" selected="false" severity="medium" weight="10.0"> |
| 9117 |
<xccdf:title>Set group owner on /etc/anacrontab</xccdf:title> |
| 9118 |
<xccdf:description>The /etc/anacrontab file should be owned by the appropriate group.</xccdf:description> |
| 9119 |
<xccdf:ident system="http://cce.mitre.org">CCE-3604-6</xccdf:ident> |
| 9120 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9121 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9122 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20211" value-id="xccdf_cdf_value_var-3.4.2.system.anacrontab.group"/> |
| 9123 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20211"/> |
| 9124 |
</xccdf:check> |
| 9125 |
</xccdf:Rule> |
| 9126 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.2.b" selected="false" severity="medium" weight="10.0"> |
| 9127 |
<xccdf:title>Set user owner on /etc/anacrontab</xccdf:title> |
| 9128 |
<xccdf:description>The /etc/anacrontab file should be owned by the appropriate user.</xccdf:description> |
| 9129 |
<xccdf:ident system="http://cce.mitre.org">CCE-4379-4</xccdf:ident> |
| 9130 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9131 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9132 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20212" value-id="xccdf_cdf_value_var-3.4.2.system.anacrontab.user"/> |
| 9133 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20212"/> |
| 9134 |
</xccdf:check> |
| 9135 |
</xccdf:Rule> |
| 9136 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.2.c" selected="false" severity="medium" weight="10.0"> |
| 9137 |
<xccdf:title>Set Permissions on /etc/anacrontab</xccdf:title> |
| 9138 |
<xccdf:description>File permissions for /etc/anacrontab should be set correctly.</xccdf:description> |
| 9139 |
<xccdf:ident system="http://cce.mitre.org">CCE-4304-2</xccdf:ident> |
| 9140 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9141 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9142 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20213" value-id="xccdf_cdf_value_var-3.4.2.system.anacrontab.permissions"/> |
| 9143 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20213"/> |
| 9144 |
</xccdf:check> |
| 9145 |
</xccdf:Rule> |
| 9146 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.a" selected="false" severity="medium" weight="10.0"> |
| 9147 |
<xccdf:title>Set group owner on /etc/cron.hourly</xccdf:title> |
| 9148 |
<xccdf:description>The /etc/cron.hourly file should be owned by the appropriate group.</xccdf:description> |
| 9149 |
<xccdf:ident system="http://cce.mitre.org">CCE-4054-3</xccdf:ident> |
| 9150 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9151 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9152 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20214" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group"/> |
| 9153 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20214"/> |
| 9154 |
</xccdf:check> |
| 9155 |
</xccdf:Rule> |
| 9156 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.b" selected="false" severity="medium" weight="10.0"> |
| 9157 |
<xccdf:title>Set group owner on /etc/cron.daily</xccdf:title> |
| 9158 |
<xccdf:description>The /etc/cron.daily file should be owned by the appropriate group.</xccdf:description> |
| 9159 |
<xccdf:ident system="http://cce.mitre.org">CCE-3481-9</xccdf:ident> |
| 9160 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9161 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9162 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20214" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group"/> |
| 9163 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20215"/> |
| 9164 |
</xccdf:check> |
| 9165 |
</xccdf:Rule> |
| 9166 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.c" selected="false" severity="medium" weight="10.0"> |
| 9167 |
<xccdf:title>Set group owner on /etc/cron.weekly</xccdf:title> |
| 9168 |
<xccdf:description>The /etc/cron.weekly file should be owned by the appropriate group.</xccdf:description> |
| 9169 |
<xccdf:ident system="http://cce.mitre.org">CCE-4331-5</xccdf:ident> |
| 9170 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9171 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9172 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20214" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group"/> |
| 9173 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20216"/> |
| 9174 |
</xccdf:check> |
| 9175 |
</xccdf:Rule> |
| 9176 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.d" selected="false" severity="medium" weight="10.0"> |
| 9177 |
<xccdf:title>Set group owner on /etc/cron.monthly</xccdf:title> |
| 9178 |
<xccdf:description>The /etc/cron.monthly file should be owned by the appropriate group.</xccdf:description> |
| 9179 |
<xccdf:ident system="http://cce.mitre.org">CCE-4322-4</xccdf:ident> |
| 9180 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9181 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9182 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20214" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group"/> |
| 9183 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20217"/> |
| 9184 |
</xccdf:check> |
| 9185 |
</xccdf:Rule> |
| 9186 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.e" selected="false" severity="medium" weight="10.0"> |
| 9187 |
<xccdf:title>Set group owner on /etc/cron.d</xccdf:title> |
| 9188 |
<xccdf:description>The /etc/cron.d file should be owned by the appropriate group.</xccdf:description> |
| 9189 |
<xccdf:ident system="http://cce.mitre.org">CCE-4212-7</xccdf:ident> |
| 9190 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9191 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9192 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20214" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.group"/> |
| 9193 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20218"/> |
| 9194 |
</xccdf:check> |
| 9195 |
</xccdf:Rule> |
| 9196 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.f" selected="false" severity="medium" weight="10.0"> |
| 9197 |
<xccdf:title>Set user owner on /etc/cron.hourly</xccdf:title> |
| 9198 |
<xccdf:description>The /etc/cron.hourly file should be owned by the appropriate user.</xccdf:description> |
| 9199 |
<xccdf:ident system="http://cce.mitre.org">CCE-3983-4</xccdf:ident> |
| 9200 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9201 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9202 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20219" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user"/> |
| 9203 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20219"/> |
| 9204 |
</xccdf:check> |
| 9205 |
</xccdf:Rule> |
| 9206 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.g" selected="false" severity="medium" weight="10.0"> |
| 9207 |
<xccdf:title>Set user owner on /etc/cron.daily</xccdf:title> |
| 9208 |
<xccdf:description>The /etc/cron.daily file should be owned by the appropriate user.</xccdf:description> |
| 9209 |
<xccdf:ident system="http://cce.mitre.org">CCE-4022-0</xccdf:ident> |
| 9210 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9211 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9212 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20219" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user"/> |
| 9213 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20220"/> |
| 9214 |
</xccdf:check> |
| 9215 |
</xccdf:Rule> |
| 9216 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.h" selected="false" severity="medium" weight="10.0"> |
| 9217 |
<xccdf:title>Set user owner on /etc/cron.weekly</xccdf:title> |
| 9218 |
<xccdf:description>The /etc/cron.weekly file should be owned by the appropriate user.</xccdf:description> |
| 9219 |
<xccdf:ident system="http://cce.mitre.org">CCE-3833-1</xccdf:ident> |
| 9220 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9221 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9222 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20219" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user"/> |
| 9223 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20221"/> |
| 9224 |
</xccdf:check> |
| 9225 |
</xccdf:Rule> |
| 9226 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.i" selected="false" severity="medium" weight="10.0"> |
| 9227 |
<xccdf:title>Set user owner on /etc/cron.monthly</xccdf:title> |
| 9228 |
<xccdf:description>The /etc/cron.monthly file should be owned by the appropriate user.</xccdf:description> |
| 9229 |
<xccdf:ident system="http://cce.mitre.org">CCE-4441-2</xccdf:ident> |
| 9230 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9231 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9232 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20219" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user"/> |
| 9233 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20222"/> |
| 9234 |
</xccdf:check> |
| 9235 |
</xccdf:Rule> |
| 9236 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.j" selected="false" severity="medium" weight="10.0"> |
| 9237 |
<xccdf:title>Set user owner on /etc/cron.d</xccdf:title> |
| 9238 |
<xccdf:description>The /etc/cron.d file should be owned by the appropriate user.</xccdf:description> |
| 9239 |
<xccdf:ident system="http://cce.mitre.org">CCE-4380-2</xccdf:ident> |
| 9240 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9241 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9242 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20219" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.user"/> |
| 9243 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20223"/> |
| 9244 |
</xccdf:check> |
| 9245 |
</xccdf:Rule> |
| 9246 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.k" selected="false" severity="medium" weight="10.0"> |
| 9247 |
<xccdf:title>Set permissions on /etc/cron.hourly</xccdf:title> |
| 9248 |
<xccdf:description>File permissions for /etc/cron.hourly should be set correctly.</xccdf:description> |
| 9249 |
<xccdf:ident system="http://cce.mitre.org">CCE-4106-1</xccdf:ident> |
| 9250 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9251 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9252 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20224" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions"/> |
| 9253 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20224"/> |
| 9254 |
</xccdf:check> |
| 9255 |
</xccdf:Rule> |
| 9256 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.l" selected="false" severity="medium" weight="10.0"> |
| 9257 |
<xccdf:title>Set permissions on /etc/cron.daily</xccdf:title> |
| 9258 |
<xccdf:description>File permissions for /etc/cron.daily should be set correctly.</xccdf:description> |
| 9259 |
<xccdf:ident system="http://cce.mitre.org">CCE-4450-3</xccdf:ident> |
| 9260 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9261 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9262 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20224" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions"/> |
| 9263 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20225"/> |
| 9264 |
</xccdf:check> |
| 9265 |
</xccdf:Rule> |
| 9266 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.m" selected="false" severity="medium" weight="10.0"> |
| 9267 |
<xccdf:title>Set permissions on /etc/cron.weekly</xccdf:title> |
| 9268 |
<xccdf:description>File permissions for /etc/cron.weekly should be set correctly.</xccdf:description> |
| 9269 |
<xccdf:ident system="http://cce.mitre.org">CCE-4203-6</xccdf:ident> |
| 9270 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9271 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9272 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20224" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions"/> |
| 9273 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20226"/> |
| 9274 |
</xccdf:check> |
| 9275 |
</xccdf:Rule> |
| 9276 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.n" selected="false" severity="medium" weight="10.0"> |
| 9277 |
<xccdf:title>Set permissions on /etc/cron.monthly</xccdf:title> |
| 9278 |
<xccdf:description>File permissions for /etc/cron.monthly should be set correctly.</xccdf:description> |
| 9279 |
<xccdf:ident system="http://cce.mitre.org">CCE-4251-5</xccdf:ident> |
| 9280 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9281 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9282 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20224" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions"/> |
| 9283 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20227"/> |
| 9284 |
</xccdf:check> |
| 9285 |
</xccdf:Rule> |
| 9286 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.3.o" selected="false" severity="medium" weight="10.0"> |
| 9287 |
<xccdf:title>Set permissions on /etc/cron.d</xccdf:title> |
| 9288 |
<xccdf:description>File permissions for /etc/cron.d should be set correctly.</xccdf:description> |
| 9289 |
<xccdf:ident system="http://cce.mitre.org">CCE-4250-7</xccdf:ident> |
| 9290 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9291 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9292 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20224" value-id="xccdf_cdf_value_var-3.4.2.system.crontab.directories.permissions"/> |
| 9293 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20228"/> |
| 9294 |
</xccdf:check> |
| 9295 |
</xccdf:Rule> |
| 9296 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.4.a" selected="false" severity="medium" weight="10.0"> |
| 9297 |
<xccdf:title>Restrict group owner on /var/spool/cron directory</xccdf:title> |
| 9298 |
<xccdf:description>The /var/spool/cron directory should be owned by the appropriate group.</xccdf:description> |
| 9299 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9300 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9301 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20229" value-id="xccdf_cdf_value_var-3.4.2.spool.directory.group"/> |
| 9302 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20229"/> |
| 9303 |
|
| 9304 |
</xccdf:check> |
| 9305 |
</xccdf:Rule> |
| 9306 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.4.b" selected="false" severity="medium" weight="10.0"> |
| 9307 |
<xccdf:title>Restrict user owner on /var/spool/cron directory</xccdf:title> |
| 9308 |
<xccdf:description>The /var/spool/cron directory should be owned by the appropriate user.</xccdf:description> |
| 9309 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 9310 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9311 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20230" value-id="xccdf_cdf_value_var-3.4.2.spool.directory.user"/> |
| 9312 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20230"/> |
| 9313 |
|
| 9314 |
</xccdf:check> |
| 9315 |
</xccdf:Rule> |
| 9316 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.2.4.c" selected="false" severity="medium" weight="10.0"> |
| 9317 |
<xccdf:title>Restrict Permissions on /var/spool/cron directory</xccdf:title> |
| 9318 |
<xccdf:description>Directory permissions for /var/spool/cron should be set correctly.</xccdf:description> |
| 9319 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 9320 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9321 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20231" value-id="xccdf_cdf_value_var-3.4.2.spool.directory.permissions"/> |
| 9322 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20231"/> |
| 9323 |
|
| 9324 |
</xccdf:check> |
| 9325 |
</xccdf:Rule> |
| 9326 |
</xccdf:Group> |
| 9327 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.4.3"> |
| 9328 |
<xccdf:title xml:lang="en">Disable at if Possible</xccdf:title> |
| 9329 |
<xccdf:description xml:lang="en">Unless the at daemon is required, disable it with the following command:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9330 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9331 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig atd off<xhtml:br/></xhtml:code> |
| 9332 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9333 |
Many of the periodic or delayed execution features of the at daemon can be provided through the cron daemon |
| 9334 |
instead. |
| 9335 |
</xccdf:description> |
| 9336 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.3.a" selected="false" severity="low" weight="10.0"> |
| 9337 |
<xccdf:title>Disable at Daemon</xccdf:title> |
| 9338 |
<xccdf:description>The atd service should be disabled.</xccdf:description> |
| 9339 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 9340 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9341 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202052"/> |
| 9342 |
</xccdf:check> |
| 9343 |
</xccdf:Rule> |
| 9344 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.3.b" selected="false" weight="10.0"> |
| 9345 |
<xccdf:title>uninstall at Daemon</xccdf:title> |
| 9346 |
<xccdf:description>The at package should be removed.</xccdf:description> |
| 9347 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 9348 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9349 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202053"/> |
| 9350 |
</xccdf:check> |
| 9351 |
</xccdf:Rule> |
| 9352 |
</xccdf:Group> |
| 9353 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.4.4"> |
| 9354 |
<xccdf:title xml:lang="en">Restrict at and cron to Authorized Users</xccdf:title> |
| 9355 |
<xccdf:description xml:lang="en"> |
| 9356 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 9357 |
<xhtml:li>Remove the cron.deny file: <xhtml:br/> |
| 9358 |
<xhtml:br/> |
| 9359 |
<xhtml:code># rm /etc/cron.deny</xhtml:code></xhtml:li> |
| 9360 |
<xhtml:li>Edit /etc/cron.allow, adding one line for each user allowed to use the crontab command to |
| 9361 |
create cron jobs. </xhtml:li> |
| 9362 |
<xhtml:li>Remove the at.deny file: <xhtml:br/> |
| 9363 |
<xhtml:br/> |
| 9364 |
<xhtml:code># rm /etc/at.deny </xhtml:code></xhtml:li> |
| 9365 |
<xhtml:li>Edit /etc/at.allow, adding one line for each user allowed to use the at command to create at jobs. </xhtml:li> |
| 9366 |
</xhtml:ol><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9367 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9368 |
The |
| 9369 |
/etc/cron.allow and /etc/at.allow files contain lists of users who are allowed to use cron |
| 9370 |
and at to delay execution of processes. If these files exist and if the corresponding |
| 9371 |
files /etc/cron.deny and /etc/at.deny do not exist, then only users listed in the relevant |
| 9372 |
allow files can run the crontab and at commands to submit jobs to be run at scheduled |
| 9373 |
intervals. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9374 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9375 |
On many systems, only the system administrator needs the ability to schedule |
| 9376 |
jobs. Note that even if a given user is not listed in cron.allow, cron jobs can still be |
| 9377 |
run as that user. The cron.allow file controls only administrative access to the crontab |
| 9378 |
command for scheduling and modifying cron jobs.</xccdf:description> |
| 9379 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.4.a" selected="false" severity="medium" weight="10.0"> |
| 9380 |
<xccdf:title>Remove /etc/cron.deny</xccdf:title> |
| 9381 |
<xccdf:description>/etc/cron.deny file should not exist.</xccdf:description> |
| 9382 |
<xccdf:fix>rm /etc/cron.deny</xccdf:fix> |
| 9383 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9384 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20232"/> |
| 9385 |
</xccdf:check> |
| 9386 |
</xccdf:Rule> |
| 9387 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.4.4.b" selected="false" severity="medium" weight="10.0"> |
| 9388 |
<xccdf:title>Remove /etc/at.deny</xccdf:title> |
| 9389 |
<xccdf:description>/etc/at.deny file should not exist.</xccdf:description> |
| 9390 |
<xccdf:fix>rm /etc/at.deny</xccdf:fix> |
| 9391 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9392 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20233"/> |
| 9393 |
</xccdf:check> |
| 9394 |
</xccdf:Rule> |
| 9395 |
</xccdf:Group> |
| 9396 |
</xccdf:Group> |
| 9397 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5"> |
| 9398 |
<xccdf:title xml:lang="en">SSH Server</xccdf:title> |
| 9399 |
<xccdf:description xml:lang="en"> |
| 9400 |
The SSH protocol is recommended for remote login and remote file |
| 9401 |
transfer. SSH provides confidentiality and integrity for data exchanged between two systems, |
| 9402 |
as well as server authentication, through the use of public key cryptography. The |
| 9403 |
implementation included with the system is called OpenSSH, and more detailed documentation |
| 9404 |
is available from its website, http://www.openssh.org. Its server program is called sshd and |
| 9405 |
provided by the RPM package openssh-server.</xccdf:description> |
| 9406 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.1"> |
| 9407 |
<xccdf:title xml:lang="en">Disable OpenSSH Server if Possible</xccdf:title> |
| 9408 |
<xccdf:description xml:lang="en"> |
| 9409 |
Unless the system needs to provide the remote login and file |
| 9410 |
transfer capabilities of SSH, disable and remove the OpenSSH server and its configuration.</xccdf:description> |
| 9411 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.1.1"> |
| 9412 |
<xccdf:title xml:lang="en">Disable and Remove OpenSSH Software</xccdf:title> |
| 9413 |
<xccdf:description xml:lang="en"> |
| 9414 |
Disable and remove openssh-server with the commands: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9415 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9416 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig sshd off <xhtml:br/> |
| 9417 |
# yum erase openssh-server <xhtml:br/></xhtml:code> |
| 9418 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9419 |
Users of the system will still be able to |
| 9420 |
use the SSH client program /usr/bin/ssh to access SSH servers on other systems.</xccdf:description> |
| 9421 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.1.1.a" selected="false" severity="low" weight="10.0"> |
| 9422 |
<xccdf:title>Disable OpenSSH Software</xccdf:title> |
| 9423 |
<xccdf:description>The sshd service should be disabled.</xccdf:description> |
| 9424 |
<xccdf:ident system="http://cce.mitre.org">CCE-4268-9</xccdf:ident> |
| 9425 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 9426 |
<xccdf:fix># chkconfig sshd off</xccdf:fix> |
| 9427 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9428 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20234"/> |
| 9429 |
</xccdf:check> |
| 9430 |
</xccdf:Rule> |
| 9431 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.1.1.b" selected="false" weight="10.0"> |
| 9432 |
<xccdf:title>Remove OpenSSH Software</xccdf:title> |
| 9433 |
<xccdf:description>SSH should be uninstalled</xccdf:description> |
| 9434 |
<xccdf:ident system="http://cce.mitre.org">CCE-4272-1</xccdf:ident> |
| 9435 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 9436 |
<xccdf:fix># yum erase openssh-server</xccdf:fix> |
| 9437 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9438 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20235"/> |
| 9439 |
</xccdf:check> |
| 9440 |
</xccdf:Rule> |
| 9441 |
</xccdf:Group> |
| 9442 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.1.2"> |
| 9443 |
<xccdf:title xml:lang="en">Remove SSH Server iptables Firewall Exception</xccdf:title> |
| 9444 |
<xccdf:description xml:lang="en"> |
| 9445 |
Edit the files /etc/sysconfig/iptables and |
| 9446 |
/etc/sysconfig/ip6tables (if IPv6 is in use). In each file, locate and delete the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9447 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9448 |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9449 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9450 |
By default, inbound connections to SSH's port are allowed. If the SSH server is not |
| 9451 |
being used, this exception should be removed from the firewall configuration. See |
| 9452 |
Section 2.5.5 for more information about Iptables.</xccdf:description> |
| 9453 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.1.2.a" selected="false" severity="high" weight="10.0"> |
| 9454 |
<xccdf:title>Remove SSH Server iptables Firewall Exception</xccdf:title> |
| 9455 |
<xccdf:description>Inbound connections to the ssh port should be denied</xccdf:description> |
| 9456 |
<xccdf:ident system="http://cce.mitre.org">CCE-4295-2</xccdf:ident> |
| 9457 |
<xccdf:fixtext>(1) /etc/sysconfig/iptables</xccdf:fixtext> |
| 9458 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9459 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20236"/> |
| 9460 |
</xccdf:check> |
| 9461 |
</xccdf:Rule> |
| 9462 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.1.2.b" selected="false" severity="high" weight="10.0"> |
| 9463 |
<xccdf:title>Remove SSH Server ip6tables Firewall Exception</xccdf:title> |
| 9464 |
<xccdf:description>Inbound connections to the ssh port should be denied</xccdf:description> |
| 9465 |
<xccdf:fixtext>(1) /etc/sysconfig/ip6tables</xccdf:fixtext> |
| 9466 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9467 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20237"/> |
| 9468 |
</xccdf:check> |
| 9469 |
</xccdf:Rule> |
| 9470 |
</xccdf:Group> |
| 9471 |
</xccdf:Group> |
| 9472 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2"> |
| 9473 |
<xccdf:title xml:lang="en">Configure OpenSSH Server if Necessary</xccdf:title> |
| 9474 |
<xccdf:description xml:lang="en"> |
| 9475 |
If the system needs to act as an SSH server, then certain changes |
| 9476 |
should be made to the OpenSSH daemon configuration file /etc/ssh/sshd config. The |
| 9477 |
following recommendations can be applied to this file. See the sshd config(5) man page for |
| 9478 |
more detailed information.</xccdf:description> |
| 9479 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.1"> |
| 9480 |
<xccdf:title xml:lang="en">Ensure Only Protocol 2 Connections Allowed</xccdf:title> |
| 9481 |
<xccdf:description xml:lang="en"> |
| 9482 |
Only SSH protocol version 2 connections should be permitted. |
| 9483 |
Version 1 of the protocol contains security vulnerabilities. The default setting shipped |
| 9484 |
in the configuration file is correct, but it is important enough to check. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9485 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9486 |
Verify that the following line appears: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9487 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9488 |
Protocol 2</xccdf:description> |
| 9489 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.1.a" selected="false" severity="high" weight="10.0"> |
| 9490 |
<xccdf:title>Ensure Only Protocol 2 Connections Allowed</xccdf:title> |
| 9491 |
<xccdf:description>SSH version 1 protocol support should be disabled.</xccdf:description> |
| 9492 |
<xccdf:ident system="http://cce.mitre.org">CCE-4325-7</xccdf:ident> |
| 9493 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9494 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9495 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20238"/> |
| 9496 |
</xccdf:check> |
| 9497 |
</xccdf:Rule> |
| 9498 |
</xccdf:Group> |
| 9499 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.2"> |
| 9500 |
<xccdf:title xml:lang="en">Limit Users SSH Access'</xccdf:title> |
| 9501 |
<xccdf:description xml:lang="en"> |
| 9502 |
By default, the SSH configuration allows any user to access the |
| 9503 |
system. In order to allow all users to login via SSH but deny only a few users, add or |
| 9504 |
correct the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9505 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9506 |
DenyUsers USER1 USER2 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9507 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9508 |
Alternatively, if it is appropriate to allow only a few users access to the system via |
| 9509 |
SSH, add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9510 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9511 |
AllowUsers USER1 USER2</xccdf:description> |
| 9512 |
</xccdf:Group> |
| 9513 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.3"> |
| 9514 |
<xccdf:title xml:lang="en">Set Idle Timeout Interval for User Logins</xccdf:title> |
| 9515 |
<xccdf:description xml:lang="en"> |
| 9516 |
SSH allows administrators to set an idle timeout interval. |
| 9517 |
After this interval has passed, the idle user will be automatically logged out. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9518 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9519 |
Find and edit the following lines in /etc/ssh/sshd config as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9520 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9521 |
ClientAliveInterval interval <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9522 |
ClientAliveCountMax 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9523 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9524 |
The timeout interval is given in seconds. |
| 9525 |
To have a timeout of 5 minutes, set interval to 300. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9526 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9527 |
If a shorter timeout has already been set for |
| 9528 |
the login shell, as in Section 2.3.5.5, that value will preempt any SSH setting made |
| 9529 |
here. Keep in mind that some processes may stop SSH from correctly detecting that the |
| 9530 |
user is idle.</xccdf:description> |
| 9531 |
<xccdf:Value id="xccdf_cdf_value_var-3.5.2.3.a" operator="equals" type="number"> |
| 9532 |
<xccdf:title>SSH session Idle time</xccdf:title> |
| 9533 |
<xccdf:description xml:lang="en">Specify duration of allowed idle time.</xccdf:description> |
| 9534 |
<xccdf:question xml:lang="en">Specify duration of allowed idle time (in seconds) for SSH session</xccdf:question> |
| 9535 |
<xccdf:value>300</xccdf:value> |
| 9536 |
<xccdf:value selector="5_minutes">300</xccdf:value> |
| 9537 |
<xccdf:value selector="10_minutes">600</xccdf:value> |
| 9538 |
</xccdf:Value> |
| 9539 |
<xccdf:Value id="xccdf_cdf_value_var-3.5.2.3.b" operator="equals" type="number"> |
| 9540 |
<xccdf:title>SSH session ClientAliveCountMax</xccdf:title> |
| 9541 |
<xccdf:description xml:lang="en">Sets the number of client alive messages which may be sent without sshd receiving any messages back from the client.</xccdf:description> |
| 9542 |
<xccdf:question xml:lang="en">Specify the number of clients alive messages which may be sent without sshd receiving any messages back from the client</xccdf:question> |
| 9543 |
<xccdf:value>3</xccdf:value> |
| 9544 |
<xccdf:value selector="0">0</xccdf:value> |
| 9545 |
<xccdf:value selector="3">3</xccdf:value> |
| 9546 |
</xccdf:Value> |
| 9547 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.3.a" selected="false" severity="medium" weight="10.0"> |
| 9548 |
<xccdf:title>Set Idle Timeout Interval for User Logins</xccdf:title> |
| 9549 |
<xccdf:description>The SSH idle timout interval should be set to an appropriate |
| 9550 |
value</xccdf:description> |
| 9551 |
<xccdf:ident system="http://cce.mitre.org">CCE-3845-5</xccdf:ident> |
| 9552 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9553 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9554 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20239" value-id="xccdf_cdf_value_var-3.5.2.3.a"/> |
| 9555 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20239"/> |
| 9556 |
</xccdf:check> |
| 9557 |
</xccdf:Rule> |
| 9558 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.3.b" selected="false" weight="10.0"> |
| 9559 |
<xccdf:title>Set ClientAliveCountMax for User Logins</xccdf:title> |
| 9560 |
<xccdf:description>The ClientAliveCountMax should be set to an appropriate value</xccdf:description> |
| 9561 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9562 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9563 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20240" value-id="xccdf_cdf_value_var-3.5.2.3.b"/> |
| 9564 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20240"/> |
| 9565 |
</xccdf:check> |
| 9566 |
</xccdf:Rule> |
| 9567 |
</xccdf:Group> |
| 9568 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.4"> |
| 9569 |
<xccdf:title xml:lang="en">Disable .rhosts Files</xccdf:title> |
| 9570 |
<xccdf:description xml:lang="en"> |
| 9571 |
SSH can emulate the behavior of the obsolete rsh command in |
| 9572 |
allowing users to enable insecure access to their accounts via .rhosts files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9573 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9574 |
To ensure that this behavior is disabled, add or correct the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9575 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9576 |
IgnoreRhosts yes</xccdf:description> |
| 9577 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.4.a" selected="false" severity="high" weight="10.0"> |
| 9578 |
<xccdf:title>Disable .rhosts Files</xccdf:title> |
| 9579 |
<xccdf:description>Emulation of the rsh command through the ssh server should be disabled</xccdf:description> |
| 9580 |
<xccdf:ident system="http://cce.mitre.org">CCE-4475-0</xccdf:ident> |
| 9581 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9582 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9583 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20241"/> |
| 9584 |
</xccdf:check> |
| 9585 |
</xccdf:Rule> |
| 9586 |
</xccdf:Group> |
| 9587 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.5"> |
| 9588 |
<xccdf:title xml:lang="en">Disable Host-Based Authentication</xccdf:title> |
| 9589 |
<xccdf:description xml:lang="en"> |
| 9590 |
SSH's cryptographic host-based authentication is slightly more |
| 9591 |
secure than .rhosts authentication, since hosts are cryptographically authenticated. |
| 9592 |
However, it is not recommended that hosts unilaterally trust one another, even within an |
| 9593 |
organization. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9594 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9595 |
To disable host-based authentication, add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9596 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9597 |
HostbasedAuthentication no</xccdf:description> |
| 9598 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.5.a" selected="false" weight="10.0"> |
| 9599 |
<xccdf:title>Disable Host-Based Authentication</xccdf:title> |
| 9600 |
<xccdf:description>SSH host-based authentication should be disabled</xccdf:description> |
| 9601 |
<xccdf:ident system="http://cce.mitre.org">CCE-4370-3</xccdf:ident> |
| 9602 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9603 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9604 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20242"/> |
| 9605 |
</xccdf:check> |
| 9606 |
</xccdf:Rule> |
| 9607 |
</xccdf:Group> |
| 9608 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.6"> |
| 9609 |
<xccdf:title xml:lang="en">Disable root Login via SSH</xccdf:title> |
| 9610 |
<xccdf:description xml:lang="en"> |
| 9611 |
The root user should never be allowed to login directly over a |
| 9612 |
network, as this both reduces auditable information about who ran privileged commands on |
| 9613 |
the system and allows direct attack attempts on root's password. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9614 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9615 |
To disable root login via SSH, add or correct the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9616 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9617 |
PermitRootLogin no</xccdf:description> |
| 9618 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.6.a" selected="false" severity="medium" weight="10.0"> |
| 9619 |
<xccdf:title>Disable root Login via SSH</xccdf:title> |
| 9620 |
<xccdf:description>Root login via SSH should be disabled</xccdf:description> |
| 9621 |
<xccdf:ident system="http://cce.mitre.org">CCE-4387-7</xccdf:ident> |
| 9622 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9623 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9624 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20243"/> |
| 9625 |
</xccdf:check> |
| 9626 |
</xccdf:Rule> |
| 9627 |
</xccdf:Group> |
| 9628 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.7"> |
| 9629 |
<xccdf:title xml:lang="en">Disable Empty Passwords</xccdf:title> |
| 9630 |
<xccdf:description xml:lang="en"> |
| 9631 |
To explicitly disallow remote login from accounts with empty |
| 9632 |
passwords, add or correct the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9633 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9634 |
PermitEmptyPasswords no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9635 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9636 |
Measures should also be taken to disable accounts with empty passwords system-wide, |
| 9637 |
as described in Section 2.3.1.5.</xccdf:description> |
| 9638 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.7.a" selected="false" weight="10.0"> |
| 9639 |
<xccdf:title>Disable Empty Passwords</xccdf:title> |
| 9640 |
<xccdf:description>Remote connections from accounts with empty passwords should be disabled</xccdf:description> |
| 9641 |
<xccdf:ident system="http://cce.mitre.org">CCE-3660-8</xccdf:ident> |
| 9642 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9643 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9644 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20244"/> |
| 9645 |
</xccdf:check> |
| 9646 |
</xccdf:Rule> |
| 9647 |
</xccdf:Group> |
| 9648 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.8"> |
| 9649 |
<xccdf:title xml:lang="en">Enable a Warning Banner</xccdf:title> |
| 9650 |
<xccdf:description xml:lang="en"> |
| 9651 |
Section 2.3.7 contains information on how to create an |
| 9652 |
appropriate warning banner. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9653 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9654 |
To enable a warning banner, add or correct the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9655 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9656 |
Banner /etc/issue</xccdf:description> |
| 9657 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.8.a" selected="false" severity="medium" weight="10.0"> |
| 9658 |
<xccdf:title>Enable a Warning Banner</xccdf:title> |
| 9659 |
<xccdf:description>SSH warning banner should be enabled</xccdf:description> |
| 9660 |
<xccdf:ident system="http://cce.mitre.org">CCE-4431-3</xccdf:ident> |
| 9661 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9662 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9663 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20245"/> |
| 9664 |
</xccdf:check> |
| 9665 |
</xccdf:Rule> |
| 9666 |
</xccdf:Group> |
| 9667 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.9"> |
| 9668 |
<xccdf:title xml:lang="en">Do Not Allow Users to Set Environment Options</xccdf:title> |
| 9669 |
<xccdf:description xml:lang="en"> |
| 9670 |
To prevent users from being able to present environment options to the SSH daemon and potentially bypass |
| 9671 |
some access restrictions, add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9672 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9673 |
PermitUserEnvironment no |
| 9674 |
</xccdf:description> |
| 9675 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.9.a" selected="false" weight="10"> |
| 9676 |
<xccdf:title xml:lang="en">Do Not Allow Users to Set Environment Options</xccdf:title> |
| 9677 |
<xccdf:description>PermitUserEnvironment should be disabled</xccdf:description> |
| 9678 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9679 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9680 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202455"/> |
| 9681 |
</xccdf:check> |
| 9682 |
</xccdf:Rule> |
| 9683 |
</xccdf:Group> |
| 9684 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.10"> |
| 9685 |
<xccdf:title xml:lang="en">Use Only Approved Ciphers</xccdf:title> |
| 9686 |
<xccdf:description xml:lang="en"> |
| 9687 |
Limit the ciphers to those which are FIPS-approved and only use ciphers in counter (CTR) mode. The |
| 9688 |
following line demonstrates use of FIPS-approved ciphers in CTR mode:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9689 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9690 |
Ciphers aes128-ctr,aes192-ctr,aes256-ctr<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9691 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9692 |
The man page sshd_config(5) contains a list of the ciphers supported for the current release of the SSH daemon.</xccdf:description> |
| 9693 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.5.2.10.a" selected="false" weight="10"> |
| 9694 |
<xccdf:title xml:lang="en">Use Only Approved Ciphers</xccdf:title> |
| 9695 |
<xccdf:description>Use only FIPS approved ciphers not in CBC mode</xccdf:description> |
| 9696 |
<xccdf:fixtext>(1) via /etc/ssh/sshd_config</xccdf:fixtext> |
| 9697 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9698 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202456"/> |
| 9699 |
</xccdf:check> |
| 9700 |
</xccdf:Rule> |
| 9701 |
</xccdf:Group> |
| 9702 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.5.2.11"> |
| 9703 |
<xccdf:title xml:lang="en">Strengthen Firewall Configuration if Possible</xccdf:title> |
| 9704 |
<xccdf:description xml:lang="en"> |
| 9705 |
If the SSH server must only accept connections from the local |
| 9706 |
network, then strengthen the default firewall rule for the SSH service. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9707 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9708 |
Determine an |
| 9709 |
appropriate network block, netwk, and network mask, mask, representing the machines on |
| 9710 |
your network which must be allowed to access this SSH server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9711 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9712 |
Edit the files |
| 9713 |
/etc/sysconfig/iptables and /etc/sysconfig/ip6tables (if IPv6 is in use). In each file, |
| 9714 |
locate the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9715 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9716 |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9717 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9718 |
and replace it with: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9719 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9720 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 22 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9721 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9722 |
If your site uses IPv6, and you are editing ip6tables, use the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9723 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9724 |
-A RH-Firewall-1-INPUT -s ipv6netwk::/ipv6mask -m tcp -p tcp --dport 22 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9725 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9726 |
instead because Netfilter does not yet reliably support stateful filtering for |
| 9727 |
IPv6. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9728 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9729 |
See Section 2.5.5 for more information about Iptables configuration.</xccdf:description> |
| 9730 |
</xccdf:Group> |
| 9731 |
</xccdf:Group> |
| 9732 |
</xccdf:Group> |
| 9733 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6"> |
| 9734 |
<xccdf:title xml:lang="en">X Window System</xccdf:title> |
| 9735 |
<xccdf:description xml:lang="en">The X Window System implementation included with the system is called X.org.</xccdf:description> |
| 9736 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1"> |
| 9737 |
<xccdf:title xml:lang="en">Disable X Windows if Possible</xccdf:title> |
| 9738 |
<xccdf:description xml:lang="en"> |
| 9739 |
Unless there is a mission-critical reason for the machine to run |
| 9740 |
a GUI login screen, prevent X from starting automatically at boot. There is usually no |
| 9741 |
reason to run X Windows on a dedicated server machine, since administrators can login via |
| 9742 |
SSH or on the text console.</xccdf:description> |
| 9743 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1.1"> |
| 9744 |
<xccdf:title xml:lang="en">Disable X Windows at System Boot</xccdf:title> |
| 9745 |
<xccdf:description xml:lang="en"> |
| 9746 |
Edit the file /etc/inittab, and correct the line |
| 9747 |
id:5:initdefault: to: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9748 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9749 |
id:3:initdefault: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9750 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9751 |
This action changes the default boot runlevel of |
| 9752 |
the system from 5 to 3. These two runlevels should be identical except that runlevel 5 |
| 9753 |
starts X on boot, while runlevel 3 does not.</xccdf:description> |
| 9754 |
<xccdf:Value id="xccdf_cdf_value_var-3.6.1.1.a" operator="equals" type="number"> |
| 9755 |
<xccdf:title>default boot level</xccdf:title> |
| 9756 |
<xccdf:description xml:lang="en">Specify whether to start in single user mode, text UI or graphical UI.</xccdf:description> |
| 9757 |
<xccdf:question xml:lang="en">Specify whether to start in single user mode, text UI or graphical UI</xccdf:question> |
| 9758 |
<xccdf:value>5</xccdf:value> |
| 9759 |
<xccdf:value selector="multi-user-graphical">5</xccdf:value> |
| 9760 |
<xccdf:value selector="multi-user-text">3</xccdf:value> |
| 9761 |
<xccdf:value selector="single-user-text">1</xccdf:value> |
| 9762 |
</xccdf:Value> |
| 9763 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.6.1.1.a" selected="false" severity="medium" weight="10.0"> |
| 9764 |
<xccdf:title>Disable X Windows at System Boot</xccdf:title> |
| 9765 |
<xccdf:description>X Windows should be disabled at system boot</xccdf:description> |
| 9766 |
<xccdf:ident system="http://cce.mitre.org">CCE-4462-8</xccdf:ident> |
| 9767 |
<xccdf:fixtext>(1) via /etc/inittab</xccdf:fixtext> |
| 9768 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9769 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20246" value-id="xccdf_cdf_value_var-3.6.1.1.a"/> |
| 9770 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20246"/> |
| 9771 |
</xccdf:check> |
| 9772 |
</xccdf:Rule> |
| 9773 |
</xccdf:Group> |
| 9774 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1.2"> |
| 9775 |
<xccdf:title xml:lang="en">Remove X Windows from the System if Possible</xccdf:title> |
| 9776 |
<xccdf:description xml:lang="en"> |
| 9777 |
Remove the X11 RPMs from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9778 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9779 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum groupremove "X Window System" <xhtml:br/></xhtml:code> |
| 9780 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9781 |
As long as X.org remains installed on the system, users can still run X |
| 9782 |
Windows by typing startx at the shell prompt. This may run X Windows using configuration |
| 9783 |
settings which are less secure than the system defaults. Therefore, if the machine is a |
| 9784 |
dedicated server which does not need to provide graphical logins at all, it is safest to |
| 9785 |
remove the X.org software entirely. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9786 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9787 |
The command given here will remove over 100 |
| 9788 |
packages. It should safely and effectively remove X from machines which do not need it.</xccdf:description> |
| 9789 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.6.1.2.a" selected="false" weight="10.0"> |
| 9790 |
<xccdf:title>Remove X Windows from the System if Possible</xccdf:title> |
| 9791 |
<xccdf:description>X Windows should be removed</xccdf:description> |
| 9792 |
<xccdf:ident system="http://cce.mitre.org">CCE-4422-2</xccdf:ident> |
| 9793 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 9794 |
<xccdf:fix># yum groupremove "X Window System"</xccdf:fix> |
| 9795 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9796 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20247"/> |
| 9797 |
</xccdf:check> |
| 9798 |
</xccdf:Rule> |
| 9799 |
</xccdf:Group> |
| 9800 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1.3"> |
| 9801 |
<xccdf:title xml:lang="en">Lock Down X Windows startx Configuration if Necessary</xccdf:title> |
| 9802 |
<xccdf:description xml:lang="en"> |
| 9803 |
If X is not to be started at boot time but the software must |
| 9804 |
remain installed, users will be able to run X manually using the startx command. In some |
| 9805 |
cases, this runs X with a configuration which is less safe than the default. Follow |
| 9806 |
these instructions to mitigate risk from this configuration.</xccdf:description> |
| 9807 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1.3.1"> |
| 9808 |
<xccdf:title xml:lang="en">Disable X Font Server</xccdf:title> |
| 9809 |
<xccdf:description xml:lang="en"> |
| 9810 |
Disable the xfs helper service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9811 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9812 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig xfs off <xhtml:br/></xhtml:code> |
| 9813 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9814 |
The |
| 9815 |
system's X.org requires the X Font Server service (xfs) to function. The xfs service |
| 9816 |
will be started automatically if X.org is activated via startx. Therefore, it is safe |
| 9817 |
to prevent xfs from starting at boot when X is disabled, even if users are allowed to |
| 9818 |
run X manually.</xccdf:description> |
| 9819 |
</xccdf:Group> |
| 9820 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.1.3.2"> |
| 9821 |
<xccdf:title xml:lang="en">Disable X Window System Listening</xccdf:title> |
| 9822 |
<xccdf:description xml:lang="en"> |
| 9823 |
To prevent X.org from listening for remote connections, |
| 9824 |
create the file /etc/X11/xinit/xserverrc and fill it with the following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9825 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9826 |
exec X :0 -nolisten tcp $@ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9827 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9828 |
One of X.org's features is the ability to provide remote graphical |
| 9829 |
display. This feature should be disabled unless it is required. If the system uses |
| 9830 |
runlevel 5, which is the default, the GDM display manager starts X safely, with remote |
| 9831 |
listening disabled. However, if X is started from the command line with the startx |
| 9832 |
command, then the server will listen for new connections on X's default port, 6000.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9833 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9834 |
See the xinit(1), startx(1), and Xserver(1) man pages for more information.</xccdf:description> |
| 9835 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.6.1.3.2.a" selected="false" severity="medium" weight="10.0"> |
| 9836 |
<xccdf:title>Disable X Window System Listening</xccdf:title> |
| 9837 |
<xccdf:description>Disable the ability to provide remote graphical display</xccdf:description> |
| 9838 |
<xccdf:ident system="http://cce.mitre.org">CCE-4074-1</xccdf:ident> |
| 9839 |
<xccdf:fixtext>(1) via /etc/X11/xinit/xserverrc</xccdf:fixtext> |
| 9840 |
<xccdf:fix>echo "exec X :0 -nolisten tcp $@" > /etc/X11/xinit/xserverrc</xccdf:fix> |
| 9841 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9842 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20248"/> |
| 9843 |
</xccdf:check> |
| 9844 |
</xccdf:Rule> |
| 9845 |
</xccdf:Group> |
| 9846 |
</xccdf:Group> |
| 9847 |
</xccdf:Group> |
| 9848 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.2"> |
| 9849 |
<xccdf:title xml:lang="en">Configure X Windows if Necessary</xccdf:title> |
| 9850 |
<xccdf:description xml:lang="en"> |
| 9851 |
If there is a mission-critical reason for this machine to run a |
| 9852 |
GUI, improve the security of the default X configuration by following the guidance in this |
| 9853 |
section.</xccdf:description> |
| 9854 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.6.2.1"> |
| 9855 |
<xccdf:title xml:lang="en">Create Warning Banners for GUI Login Users</xccdf:title> |
| 9856 |
<xccdf:description xml:lang="en"> |
| 9857 |
Edit the file /etc/gdm/custom.conf. Locate the [greeter] |
| 9858 |
section, and correct that section to contain the lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9859 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9860 |
[greeter] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9861 |
InfoMsgFile=/etc/issue<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9862 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9863 |
See Section 2.3.7 for an explanation of banner file use. This setting will cause the |
| 9864 |
system greeting banner to be displayed in a box prior to GUI login. If the default |
| 9865 |
banner font is inappropriate, it can be changed by specifying the InfoMsgFont directive |
| 9866 |
as well, for instance: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9867 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9868 |
InfoMsgFont=Sans 12</xccdf:description> |
| 9869 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.6.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 9870 |
<xccdf:title>Create Warning Banners for GUI Login Users</xccdf:title> |
| 9871 |
<xccdf:description>Enable warning banner for GUI login</xccdf:description> |
| 9872 |
<xccdf:ident system="http://cce.mitre.org">CCE-3717-6</xccdf:ident> |
| 9873 |
<xccdf:fixtext>(1) via /etc/gdm/custom.conf</xccdf:fixtext> |
| 9874 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9875 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20249"/> |
| 9876 |
</xccdf:check> |
| 9877 |
</xccdf:Rule> |
| 9878 |
</xccdf:Group> |
| 9879 |
</xccdf:Group> |
| 9880 |
</xccdf:Group> |
| 9881 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7"> |
| 9882 |
<xccdf:title xml:lang="en">Avahi Server</xccdf:title> |
| 9883 |
<xccdf:description xml:lang="en"> |
| 9884 |
The Avahi daemon implements the DNS Service Discovery and Multicast |
| 9885 |
DNS protocols, which provide service and host discovery on a network. It allows a system to |
| 9886 |
automatically identify resources on the network, such as printers or web servers. This |
| 9887 |
capability is also known as mDNSresponder and is a major part of Zeroconf networking. By |
| 9888 |
default, it is enabled.</xccdf:description> |
| 9889 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.1"> |
| 9890 |
<xccdf:title xml:lang="en">Disable Avahi Server if Possible</xccdf:title> |
| 9891 |
<xccdf:description xml:lang="en"> |
| 9892 |
Because the Avahi daemon service keeps an open network port, it |
| 9893 |
is subject to network attacks. Disabling it is particularly important to reduce the |
| 9894 |
system's vulnerability to such attacks.</xccdf:description> |
| 9895 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.1.1"> |
| 9896 |
<xccdf:title xml:lang="en">Disable Avahi Server Software</xccdf:title> |
| 9897 |
<xccdf:description xml:lang="en"> |
| 9898 |
Issue the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9899 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9900 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig avahi-daemon off</xhtml:code></xccdf:description> |
| 9901 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.1.1.a" selected="false" severity="low" weight="10.0"> |
| 9902 |
<xccdf:title>Disable Avahi Server Software</xccdf:title> |
| 9903 |
<xccdf:description>The avahi-daemon service should be disabled.</xccdf:description> |
| 9904 |
<xccdf:ident system="http://cce.mitre.org">CCE-4365-3</xccdf:ident> |
| 9905 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 9906 |
<xccdf:fix># chkconfig avahi-daemon off</xccdf:fix> |
| 9907 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9908 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20250"/> |
| 9909 |
</xccdf:check> |
| 9910 |
</xccdf:Rule> |
| 9911 |
</xccdf:Group> |
| 9912 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.1.2"> |
| 9913 |
<xccdf:title xml:lang="en">Remove Avahi Server iptables Firewall Exception</xccdf:title> |
| 9914 |
<xccdf:description xml:lang="en"> |
| 9915 |
Edit the files /etc/sysconfig/iptables and |
| 9916 |
/etc/sysconfig/ip6tables (if IPv6 is in use). In each file, locate and delete the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9917 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9918 |
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9919 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9920 |
By default, inbound |
| 9921 |
connections to Avahi's port are allowed. If the Avahi server is not being used, this |
| 9922 |
exception should be removed from the firewall configuration. See Section 2.5.5 for more |
| 9923 |
information about the Iptables firewall.</xccdf:description> |
| 9924 |
</xccdf:Group> |
| 9925 |
</xccdf:Group> |
| 9926 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2"> |
| 9927 |
<xccdf:title xml:lang="en">Configure Avahi if Necessary</xccdf:title> |
| 9928 |
<xccdf:description xml:lang="en"> |
| 9929 |
If your system requires the Avahi daemon, its configuration can |
| 9930 |
be restricted to improve security. The Avahi daemon configuration file is |
| 9931 |
/etc/avahi/avahi-daemon.conf. The following security recommendations should be applied to |
| 9932 |
this file. See the avahi-daemon.conf(5) man page or documentation at http://www.avahi.org |
| 9933 |
for more detailed information about the configuration options.</xccdf:description> |
| 9934 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2.1"> |
| 9935 |
<xccdf:title xml:lang="en">Serve Only via Required Protocol</xccdf:title> |
| 9936 |
<xccdf:description xml:lang="en"> |
| 9937 |
The default setting in the configuration file allows Avahi to |
| 9938 |
use both IPv4 and IPv6 sockets. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9939 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9940 |
If you are using only IPv4, edit |
| 9941 |
/etc/avahi/avahi-daemon.conf and ensure the following line exists in the [server] |
| 9942 |
section: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9943 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9944 |
use-ipv6=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9945 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9946 |
Similarly, if you are using only IPv6, disable IPv4 sockets with the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9947 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9948 |
use-ipv4=no</xccdf:description> |
| 9949 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.1.a" selected="false" severity="medium" weight="10.0"> |
| 9950 |
<xccdf:title>Serve Only via Required Protocol</xccdf:title> |
| 9951 |
<xccdf:description>The Avahi daemon should be configured not to serve via Ipv6</xccdf:description> |
| 9952 |
<xccdf:ident system="http://cce.mitre.org">CCE-4136-8</xccdf:ident> |
| 9953 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 9954 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9955 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20251"/> |
| 9956 |
</xccdf:check> |
| 9957 |
</xccdf:Rule> |
| 9958 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.1.b" selected="false" severity="medium" weight="10.0"> |
| 9959 |
<xccdf:title>Serve Only via Required Protocol</xccdf:title> |
| 9960 |
<xccdf:description>The Avahi daemon should be configured not to serve via Ipv4</xccdf:description> |
| 9961 |
<xccdf:ident system="http://cce.mitre.org">CCE-4409-9</xccdf:ident> |
| 9962 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 9963 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9964 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20252"/> |
| 9965 |
</xccdf:check> |
| 9966 |
</xccdf:Rule> |
| 9967 |
</xccdf:Group> |
| 9968 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2.2"> |
| 9969 |
<xccdf:title xml:lang="en">Check Responses TTL Field '</xccdf:title> |
| 9970 |
<xccdf:description xml:lang="en"> |
| 9971 |
Avahi can be set to ignore IP packets unless their TTL field is |
| 9972 |
255. To make Avahi ignore packets unless the TTL field is 255, edit |
| 9973 |
/etc/avahi/avahi-daemon.conf and ensure the following line appears in the [server] |
| 9974 |
section: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9975 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9976 |
check-response-ttl=yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9977 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9978 |
This helps to ensure that only mDNS responses from the |
| 9979 |
local network are processed, because the TTL field in a packet is decremented from its |
| 9980 |
initial value of 255 whenever it is routed from one network to another. Although a |
| 9981 |
properly-configured router or firewall should not allow mDNS packets into the local |
| 9982 |
network at all, this option provides another check to ensure they are not trusted.</xccdf:description> |
| 9983 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.2.a" selected="false" weight="10.0"> |
| 9984 |
<xccdf:title>Check Responses' TTL Field</xccdf:title> |
| 9985 |
<xccdf:description>Avahi should be configured to reject packets with a TTL field not equal to 255</xccdf:description> |
| 9986 |
<xccdf:ident system="http://cce.mitre.org">CCE-4426-3</xccdf:ident> |
| 9987 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 9988 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 9989 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20253"/> |
| 9990 |
</xccdf:check> |
| 9991 |
</xccdf:Rule> |
| 9992 |
</xccdf:Group> |
| 9993 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2.3"> |
| 9994 |
<xccdf:title xml:lang="en">Prevent Other Programs from Using Avahis Port '</xccdf:title> |
| 9995 |
<xccdf:description xml:lang="en"> |
| 9996 |
Avahi can stop other mDNS stacks from running on the host by |
| 9997 |
preventing other processes from binding to port 5353. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9998 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 9999 |
To prevent other mDNS stacks from |
| 10000 |
running, edit /etc/avahi/avahi-daemon.conf and ensure the following line appears in the |
| 10001 |
[server] section: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10002 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10003 |
disallow-other-stacks=yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10004 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10005 |
This is designed to help ensure that only |
| 10006 |
Avahi is responsible for mDNS traffic coming from that port on the system.</xccdf:description> |
| 10007 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.3.a" selected="false" weight="10.0"> |
| 10008 |
<xccdf:title>Prevent Other Programs from Using Avahi's Port</xccdf:title> |
| 10009 |
<xccdf:description>Avahi should be configured to not allow other stacks from binding to port 5353</xccdf:description> |
| 10010 |
<xccdf:ident system="http://cce.mitre.org">CCE-4193-9</xccdf:ident> |
| 10011 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10012 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10013 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20254"/> |
| 10014 |
</xccdf:check> |
| 10015 |
</xccdf:Rule> |
| 10016 |
</xccdf:Group> |
| 10017 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2.4"> |
| 10018 |
<xccdf:title xml:lang="en">Disable Publishing if Possible</xccdf:title> |
| 10019 |
<xccdf:description xml:lang="en"> |
| 10020 |
The default setting in the configuration file allows the |
| 10021 |
avahi-daemon to send information about the local host, such as its address records and |
| 10022 |
the services it offers, to the local network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10023 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10024 |
To stop sending this information but still |
| 10025 |
allow Avahi to query the network for services, ensure the configuration file includes |
| 10026 |
the following line in the [publish] section: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10027 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10028 |
disable-publishing=yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10029 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10030 |
This line may be |
| 10031 |
particularly useful if Avahi is needed for printer discovery, but not to advertise |
| 10032 |
services. This configuration is highly recommended for client systems that should not |
| 10033 |
advertise their services (or existence).</xccdf:description> |
| 10034 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.4.a" selected="false" weight="10.0"> |
| 10035 |
<xccdf:title>Disable Publishing if Possible</xccdf:title> |
| 10036 |
<xccdf:description>Avahi publishing of local information should be disabled</xccdf:description> |
| 10037 |
<xccdf:ident system="http://cce.mitre.org">CCE-4444-6</xccdf:ident> |
| 10038 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10039 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10040 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20255"/> |
| 10041 |
</xccdf:check> |
| 10042 |
</xccdf:Rule> |
| 10043 |
</xccdf:Group> |
| 10044 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.7.2.5"> |
| 10045 |
<xccdf:title xml:lang="en">Restrict Published Information</xccdf:title> |
| 10046 |
<xccdf:description xml:lang="en"> |
| 10047 |
If it is necessary to publish some information to the network, |
| 10048 |
it should not be joined by any extraneous information, or by information supplied by a |
| 10049 |
non-trusted source on the system. Prevent user applications from using Avahi to publish |
| 10050 |
services by adding or correcting the following line in the [publish] section:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10051 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10052 |
disable-user-service-publishing=yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10053 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10054 |
Implement as many of the following lines as |
| 10055 |
possible, to restrict the information published by Avahi: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10056 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10057 |
publish-addresses=no<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10058 |
publish-hinfo=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10059 |
publish-workstation=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10060 |
publish-domain=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10061 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10062 |
Inspect the files in the |
| 10063 |
directory /etc/avahi/services/. Unless there is an operational need to publish |
| 10064 |
information about each of these services, delete the corresponding file. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10065 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10066 |
These options |
| 10067 |
should be used even if publishing is disabled entirely via disable-publishing, since |
| 10068 |
that option prevents publishing attempts from succeeding, while these options prevent |
| 10069 |
the attempts from being made in the first place. Using both approaches is recommended |
| 10070 |
for completeness.</xccdf:description> |
| 10071 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.5.a" selected="false" weight="10.0"> |
| 10072 |
<xccdf:title>Restrict disable-user-service-publishing</xccdf:title> |
| 10073 |
<xccdf:description>Avahi publishing of local information by user applications should be disabled</xccdf:description> |
| 10074 |
<xccdf:ident system="http://cce.mitre.org">CCE-4352-1</xccdf:ident> |
| 10075 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10076 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10077 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20256"/> |
| 10078 |
</xccdf:check> |
| 10079 |
</xccdf:Rule> |
| 10080 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.5.b" selected="false" weight="10.0"> |
| 10081 |
<xccdf:title>Restrict publish-addresses</xccdf:title> |
| 10082 |
<xccdf:description>Avahi publishing of hardware information should be disabled</xccdf:description> |
| 10083 |
<xccdf:ident system="http://cce.mitre.org">CCE-4433-9</xccdf:ident> |
| 10084 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10085 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10086 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20257"/> |
| 10087 |
</xccdf:check> |
| 10088 |
</xccdf:Rule> |
| 10089 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.5.c" selected="false" weight="10.0"> |
| 10090 |
<xccdf:title>Restrict publish-hinfo</xccdf:title> |
| 10091 |
<xccdf:description>Avahi publishing of workstation name should be disabled</xccdf:description> |
| 10092 |
<xccdf:ident system="http://cce.mitre.org">CCE-4451-1</xccdf:ident> |
| 10093 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10094 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10095 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20258"/> |
| 10096 |
</xccdf:check> |
| 10097 |
</xccdf:Rule> |
| 10098 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.5.d" selected="false" weight="10.0"> |
| 10099 |
<xccdf:title>Restrict publish-workstation</xccdf:title> |
| 10100 |
<xccdf:description>Avahi publishing of IP addresses should be disabled</xccdf:description> |
| 10101 |
<xccdf:ident system="http://cce.mitre.org">CCE-4341-4</xccdf:ident> |
| 10102 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10103 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10104 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20259"/> |
| 10105 |
</xccdf:check> |
| 10106 |
</xccdf:Rule> |
| 10107 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.7.2.5.e" selected="false" weight="10.0"> |
| 10108 |
<xccdf:title>Restrict publish-domain</xccdf:title> |
| 10109 |
<xccdf:description>Avahi publishing of domain name should be disabled</xccdf:description> |
| 10110 |
<xccdf:ident system="http://cce.mitre.org">CCE-4358-8</xccdf:ident> |
| 10111 |
<xccdf:fixtext>(1) via /etc/avahi/avahi-daemon.conf</xccdf:fixtext> |
| 10112 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10113 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20260"/> |
| 10114 |
</xccdf:check> |
| 10115 |
</xccdf:Rule> |
| 10116 |
</xccdf:Group> |
| 10117 |
</xccdf:Group> |
| 10118 |
</xccdf:Group> |
| 10119 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8"> |
| 10120 |
<xccdf:title xml:lang="en">Print Support</xccdf:title> |
| 10121 |
<xccdf:description xml:lang="en"> |
| 10122 |
The Common Unix Printing System (CUPS) service provides both local |
| 10123 |
and network printing support. A system running the CUPS service can accept print jobs from |
| 10124 |
other systems, process them, and send them to the appropriate printer. It also provides an |
| 10125 |
interface for remote administration through a web browser. The CUPS service is installed and |
| 10126 |
activated by default. The project homepage and more detailed documentation are available at |
| 10127 |
http://www.cups.org. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10128 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10129 |
The HP Linux Imaging and Printing service (HPLIP) is a separate package |
| 10130 |
that provides support for some of the additional features that HP printers provide that CUPS |
| 10131 |
may not necessarily support. It relies upon the CUPS service.</xccdf:description> |
| 10132 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.1"> |
| 10133 |
<xccdf:title xml:lang="en">Disable the CUPS Service if Possible</xccdf:title> |
| 10134 |
<xccdf:description xml:lang="en"> |
| 10135 |
Do you need the ability to print from this machine or to allow |
| 10136 |
others to print to it? If not: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10137 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10138 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig cups off</xhtml:code></xccdf:description> |
| 10139 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.1.a" selected="false" severity="medium" weight="10.0"> |
| 10140 |
<xccdf:title>Disable the CUPS Service if Possible</xccdf:title> |
| 10141 |
<xccdf:description>The cups service should be disabled.</xccdf:description> |
| 10142 |
<xccdf:ident system="http://cce.mitre.org">CCE-4112-9</xccdf:ident> |
| 10143 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 10144 |
<xccdf:fix># chkconfig cups off</xccdf:fix> |
| 10145 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10146 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20261"/> |
| 10147 |
</xccdf:check> |
| 10148 |
</xccdf:Rule> |
| 10149 |
</xccdf:Group> |
| 10150 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.2"> |
| 10151 |
<xccdf:title xml:lang="en">Disable Firewall Access to Printing Service if Possible</xccdf:title> |
| 10152 |
<xccdf:description xml:lang="en"> |
| 10153 |
Does this system need to operate as a network print server? If |
| 10154 |
not, edit the files /etc/sysconfig/iptables and /etc/sysconfig/ip6tables (if IPv6 is in |
| 10155 |
use). In each file, locate and delete the lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10156 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10157 |
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10158 |
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10159 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10160 |
By |
| 10161 |
default, inbound connections to the Internet Printing Protocol port are allowed. If the |
| 10162 |
print server does not need to be accessed, either because the machine is not running the |
| 10163 |
print service at all or because the machine is not providing a remote network printer to |
| 10164 |
other machines, this exception should be removed from the firewall configuration. See |
| 10165 |
Section 2.5.5 for more information about the Iptables firewall.</xccdf:description> |
| 10166 |
<xccdf:Value id="xccdf_cdf_value_var-3.8.2.a" operator="equals" type="string"> |
| 10167 |
<xccdf:title>accept udp over IPv4</xccdf:title> |
| 10168 |
<xccdf:description xml:lang="en">Open firewall to allow udp over IPv4.</xccdf:description> |
| 10169 |
<xccdf:question xml:lang="en">Enable/Disable UDP over IPv4</xccdf:question> |
| 10170 |
<xccdf:value>disabled</xccdf:value> |
| 10171 |
<xccdf:value selector="enabled">enabled</xccdf:value> |
| 10172 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 10173 |
<xccdf:match>enabled|disabled</xccdf:match> |
| 10174 |
<xccdf:choices mustMatch="1"> |
| 10175 |
<xccdf:choice>enabled</xccdf:choice> |
| 10176 |
<xccdf:choice>disabled</xccdf:choice> |
| 10177 |
</xccdf:choices> |
| 10178 |
</xccdf:Value> |
| 10179 |
<xccdf:Value id="xccdf_cdf_value_var-3.8.2.b" operator="equals" type="string"> |
| 10180 |
<xccdf:title>accept udp over IPv6</xccdf:title> |
| 10181 |
<xccdf:description xml:lang="en">Open firewall to allow udp over IPv6.</xccdf:description> |
| 10182 |
<xccdf:question xml:lang="en">Enable/Disable UDP over IPv6</xccdf:question> |
| 10183 |
<xccdf:value>disabled</xccdf:value> |
| 10184 |
<xccdf:value selector="enabled">enabled</xccdf:value> |
| 10185 |
<xccdf:value selector="disabled">disabled</xccdf:value> |
| 10186 |
<xccdf:match>enabled|disabled</xccdf:match> |
| 10187 |
<xccdf:choices mustMatch="1"> |
| 10188 |
<xccdf:choice>enabled</xccdf:choice> |
| 10189 |
<xccdf:choice>disabled</xccdf:choice> |
| 10190 |
</xccdf:choices> |
| 10191 |
</xccdf:Value> |
| 10192 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.2.a" selected="false" severity="high" weight="10.0"> |
| 10193 |
<xccdf:title>Disable Firewall Access to Printing Service over IPv4 if Possible</xccdf:title> |
| 10194 |
<xccdf:description>Firewall access to printing service should be disabled</xccdf:description> |
| 10195 |
<xccdf:ident system="http://cce.mitre.org">CCE-3649-1</xccdf:ident> |
| 10196 |
<xccdf:fixtext>(1) via /etc/sysconfig/iptables</xccdf:fixtext> |
| 10197 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10198 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20262" value-id="xccdf_cdf_value_var-3.8.2.a"/> |
| 10199 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20262"/> |
| 10200 |
</xccdf:check> |
| 10201 |
</xccdf:Rule> |
| 10202 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.2.b" selected="false" severity="high" weight="10.0"> |
| 10203 |
<xccdf:title>Disable Firewall Access to Printing Service over IPv6 if Possible</xccdf:title> |
| 10204 |
<xccdf:description>Firewall access to printing service should be disabled</xccdf:description> |
| 10205 |
<xccdf:fixtext>(1) via /etc/sysconfig/ip6tables</xccdf:fixtext> |
| 10206 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10207 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20263" value-id="xccdf_cdf_value_var-3.8.2.b"/> |
| 10208 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20263"/> |
| 10209 |
</xccdf:check> |
| 10210 |
</xccdf:Rule> |
| 10211 |
</xccdf:Group> |
| 10212 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3"> |
| 10213 |
<xccdf:title xml:lang="en">Configure the CUPS Service if Necessary</xccdf:title> |
| 10214 |
<xccdf:description xml:lang="en"> |
| 10215 |
CUPS provides the ability to easily share local printers with |
| 10216 |
other machines over the network. It does this by allowing machines to share lists of |
| 10217 |
available printers. Additionally, each machine that runs the CUPS service can potentially |
| 10218 |
act as a print server. Whenever possible, the printer sharing and print server |
| 10219 |
capabilities of CUPS should be limited or disabled. The following recommendations should |
| 10220 |
demonstrate how to do just that.</xccdf:description> |
| 10221 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.1"> |
| 10222 |
<xccdf:title xml:lang="en">Limit Printer Browsing</xccdf:title> |
| 10223 |
<xccdf:description xml:lang="en">By default, CUPS listens on the network for printer list broadcasts on UDP port 631. This functionality is called printer browsing.</xccdf:description> |
| 10224 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.1.1"> |
| 10225 |
<xccdf:title xml:lang="en">Disable Printer Browsing Entirely if Possible</xccdf:title> |
| 10226 |
<xccdf:description xml:lang="en"> |
| 10227 |
To disable printer browsing entirely, edit the CUPS |
| 10228 |
configuration file, located at /etc/cups/cupsd.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10229 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10230 |
Browsing Off<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10231 |
BrowseAllow none <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10232 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10233 |
The |
| 10234 |
CUPS print service can be configured to broadcast a list of available printers to the |
| 10235 |
network. Other machines on the network, also running the CUPS print service, can be |
| 10236 |
configured to listen to these broadcasts and add and configure these printers for |
| 10237 |
immediate use. By disabling this browsing capability, the machine will no longer |
| 10238 |
generate or receive such broadcasts.</xccdf:description> |
| 10239 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.3.1.1.a" selected="false" weight="10.0"> |
| 10240 |
<xccdf:title>Disable Printer Browsing Entirely if Possible</xccdf:title> |
| 10241 |
<xccdf:description>Remote print browsing should be disabled</xccdf:description> |
| 10242 |
<xccdf:ident system="http://cce.mitre.org">CCE-4420-6</xccdf:ident> |
| 10243 |
<xccdf:fixtext>(1) via /etc/cups/cupsd.conf</xccdf:fixtext> |
| 10244 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10245 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20264"/> |
| 10246 |
</xccdf:check> |
| 10247 |
</xccdf:Rule> |
| 10248 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.3.1.1.b" selected="false" weight="10.0"> |
| 10249 |
<xccdf:title>Deny CUPS ability to listen for Incoming printer information</xccdf:title> |
| 10250 |
<xccdf:description>CUPS should be denied the ability to listen for Incoming printer information</xccdf:description> |
| 10251 |
<xccdf:ident system="http://cce.mitre.org">CCE-4407-3</xccdf:ident> |
| 10252 |
<xccdf:fixtext>(1) via /etc/cups/cupsd.conf</xccdf:fixtext> |
| 10253 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10254 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20265"/> |
| 10255 |
</xccdf:check> |
| 10256 |
</xccdf:Rule> |
| 10257 |
</xccdf:Group> |
| 10258 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.1.2"> |
| 10259 |
<xccdf:title xml:lang="en">Limit Printer Browsing to a Particular Subnet if Necessary</xccdf:title> |
| 10260 |
<xccdf:description xml:lang="en"> |
| 10261 |
It is possible to disable outgoing printer list broadcasts |
| 10262 |
without affecting incoming broadcasts from other machines. To do so, open the CUPS |
| 10263 |
configuration file, located at /etc/cups/cupsd.conf. Look for the line that begins |
| 10264 |
with BrowseAddress and remove it. The line will look like the following: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10265 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10266 |
BrowseAddress @LOCAL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10267 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10268 |
If the intent is not to block printer sharing, but to limit it to a particular |
| 10269 |
set of machines, you can limit the UDP printer broadcasts to trusted network |
| 10270 |
addresses. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10271 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10272 |
BrowseAddress ip-address :631 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10273 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10274 |
Likewise, to ignore incoming UDP printer list |
| 10275 |
broadcasts, or to limit the set of machines to listen to, use the BrowseAllow and |
| 10276 |
BrowseDeny directives. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10277 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10278 |
BrowseDeny all <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10279 |
BrowseAllow ip-address <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10280 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10281 |
This combination will |
| 10282 |
deny incoming broadcasts from any machine except those that are explicitly allowed |
| 10283 |
with BrowseAllow. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10284 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10285 |
By default, when printer sharing is enabled, CUPS will broadcast to |
| 10286 |
every network that its host machine is connected to through all available network |
| 10287 |
interfaces on port 631. It will also listen to incoming broadcasts from other machines |
| 10288 |
on the network. Either list one BrowseAddress line for each client machine and one |
| 10289 |
BrowseAllow line for each print server or use one of the supported shorthand notations |
| 10290 |
that the CUPS service recognizes. Please see the cupsd.conf(5) man page or the |
| 10291 |
documentation provided at http://www.cups.org for more information on other ways to |
| 10292 |
format these directives.</xccdf:description> |
| 10293 |
</xccdf:Group> |
| 10294 |
</xccdf:Group> |
| 10295 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.2"> |
| 10296 |
<xccdf:title xml:lang="en">Disable Print Server Capabilities if Possible</xccdf:title> |
| 10297 |
<xccdf:description xml:lang="en"> |
| 10298 |
To prevent remote users from potentially |
| 10299 |
connecting to and using locally configured printers, disable the CUPS print server |
| 10300 |
sharing capabilities. To do so, limit how the server will listen for print jobs by |
| 10301 |
removing the more generic port directive from /etc/cups/cupsd.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10302 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10303 |
Port 631 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10304 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10305 |
and replacing it with the Listen directive: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10306 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10307 |
Listen localhost:631 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10308 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10309 |
This will prevent remote |
| 10310 |
users from printing to locally configured printers while still allowing local users on |
| 10311 |
the machine to print normally. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10312 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10313 |
By default, locally configured printers will not be |
| 10314 |
shared over the network, but if this functionality has somehow been enabled, these |
| 10315 |
recommendations will disable it again. Be sure to disable outgoing printer list |
| 10316 |
broadcasts, or remote users will still be able to see the locally configured printers, |
| 10317 |
even if they cannot actually print to them. To limit print serving to a particular set |
| 10318 |
of users, use the Policy directive.</xccdf:description> |
| 10319 |
<xccdf:warning xml:lang="en">Disabling the print server capabilities in this manner will |
| 10320 |
also disable the Web Administration interface. </xccdf:warning> |
| 10321 |
</xccdf:Group> |
| 10322 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.3"> |
| 10323 |
<xccdf:title xml:lang="en">Limit Access to the Web Administration Interface</xccdf:title> |
| 10324 |
<xccdf:description xml:lang="en"> |
| 10325 |
By default, access to the CUPS web administration interface is |
| 10326 |
limited to the local machine. It is recommended that this not be changed, especially |
| 10327 |
since the authentication mechanisms that CUPS provides are limited in their |
| 10328 |
effectiveness. If it is absolutely necessary to allow remote users to administer locally |
| 10329 |
installed printers, be sure to limit that access as much as possible by taking advantage |
| 10330 |
of the Location and Policy directive blocks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10331 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10332 |
For example, to enable |
| 10333 |
remote access for ip-address for user username, modify each of the Location and Policy |
| 10334 |
directive blocks as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10335 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10336 |
<Location /> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10337 |
AuthType Basic <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10338 |
Require user username <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10339 |
Order allow,deny <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10340 |
Allow localhost <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10341 |
Allow ip-address <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10342 |
</Location> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10343 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10344 |
As with the |
| 10345 |
BrowseAllow directive, use one Allow directive for each machine that needs access or use |
| 10346 |
one of the available CUPS directive definition shortcuts to enable access from a class |
| 10347 |
of machines at once. The Require user directive can take a list of individual users, a |
| 10348 |
group of users (prefixed with @), or the shorthand valid-user. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10349 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10350 |
Host-based authentication has known limitations, |
| 10351 |
especially since IP addresses are easy to spoof. Requiring users to authenticate |
| 10352 |
themselves can alleviate this problem, but it cannot eliminate it. Do not use the root |
| 10353 |
account to manage and administer printers. Create a separate account for this purpose |
| 10354 |
and limit access to valid users with Require valid-user or Require user printeradmin . |
| 10355 |
</xccdf:description> |
| 10356 |
</xccdf:Group> |
| 10357 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.3.4"> |
| 10358 |
<xccdf:title xml:lang="en">Take Further Security Measures When Appropriate</xccdf:title> |
| 10359 |
<xccdf:description xml:lang="en"> |
| 10360 |
Whenever possible, limit outside networks' access to port 631. |
| 10361 |
Consider using CUPS directives that limit the number of incoming clients, such as |
| 10362 |
MaxClients or MaxClientsPerHost. Additionally, there are a series of Policy and Location |
| 10363 |
directives intended to limit which users can perform different printing tasks. When used |
| 10364 |
together, these may help to mitigate the possibility of a denial of service attack. See |
| 10365 |
cupsd.conf(5) for a full list of possible directives.</xccdf:description> |
| 10366 |
</xccdf:Group> |
| 10367 |
</xccdf:Group> |
| 10368 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.4"> |
| 10369 |
<xccdf:title xml:lang="en">The HP Linux Imaging and Printing (HPLIP) Toolkit</xccdf:title> |
| 10370 |
<xccdf:description xml:lang="en"> |
| 10371 |
The HPLIP package is an HP printing support utility that is |
| 10372 |
installed and enabled in a default installation. The HPLIP package is comprised of two |
| 10373 |
separate components. The first is the main HPLIP service and the second is a smaller |
| 10374 |
subcomponent called HPIJS. HPLIP is a feature-oriented network service that provides |
| 10375 |
higher level printing support (such as bi-directional I/O, scanning, photo card, and |
| 10376 |
toolbox functionality). HPIJS is a lower level basic printing driver that provides basic |
| 10377 |
support for non-PostScript HP printers.</xccdf:description> |
| 10378 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.8.4.1"> |
| 10379 |
<xccdf:title xml:lang="en">Disable HPLIP Service if Possible</xccdf:title> |
| 10380 |
<xccdf:description xml:lang="en"> |
| 10381 |
Since the HPIJS driver will still function without the added |
| 10382 |
HPLIP service, HPLIP should be disabled unless the specific higher level functions that |
| 10383 |
HPLIP provides are needed by a non-PostScript HP printer on the system. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10384 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10385 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig hplip off <xhtml:br/></xhtml:code> |
| 10386 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10387 |
Note: If installing the HPLIP package from scratch, it should be noted that |
| 10388 |
HPIJS can be installed directly without HPLIP. Please see the FAQ at the HPLIP web site |
| 10389 |
at http://hplip.sourceforge.net/faqs.html for more information on how to do this.</xccdf:description> |
| 10390 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.8.4.1.a" selected="false" severity="low" weight="10.0"> |
| 10391 |
<xccdf:title>Disable HPLIP Service if Possible</xccdf:title> |
| 10392 |
<xccdf:description>The hplip service should be disabled.</xccdf:description> |
| 10393 |
<xccdf:ident system="http://cce.mitre.org">CCE-4425-5</xccdf:ident> |
| 10394 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 10395 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10396 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20266"/> |
| 10397 |
</xccdf:check> |
| 10398 |
</xccdf:Rule> |
| 10399 |
</xccdf:Group> |
| 10400 |
</xccdf:Group> |
| 10401 |
</xccdf:Group> |
| 10402 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9"> |
| 10403 |
<xccdf:title xml:lang="en">DHCP</xccdf:title> |
| 10404 |
<xccdf:description xml:lang="en"> |
| 10405 |
The Dynamic Host Configuration Protocol (DHCP) allows systems to |
| 10406 |
request and obtain an IP address and many other parameters from a server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10407 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10408 |
In general, sites |
| 10409 |
use DHCP either to allow a large pool of mobile or unknown machines to share a limited |
| 10410 |
number of IP addresses, or to standardize installations by avoiding static, individual IP |
| 10411 |
address configuration on hosts. It is recommended that sites avoid DHCP as much as possible. |
| 10412 |
Since DHCP authentication is not well-supported, DHCP clients are open to attacks from rogue |
| 10413 |
DHCP servers. Such servers can give clients incorrect information (e.g. malicious DNS server |
| 10414 |
addresses) which could lead to their compromise. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10415 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10416 |
If a machine must act as a DHCP client or |
| 10417 |
server, configure it defensively using the guidance in this section. This guide recommends |
| 10418 |
configuring networking on clients by manually editing the appropriate files under |
| 10419 |
/etc/sysconfig. It is also possible to use the graphical front-end programs |
| 10420 |
system-config-network and system-config-network-tui, but these programs rewrite |
| 10421 |
configuration files from scratch based on their defaults – destroying any manual changes – |
| 10422 |
and should therefore be used with caution.</xccdf:description> |
| 10423 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.1"> |
| 10424 |
<xccdf:title xml:lang="en">Disable DHCP Client if Possible</xccdf:title> |
| 10425 |
<xccdf:description xml:lang="en"> |
| 10426 |
For each interface IFACE on the system (e.g. eth0), edit |
| 10427 |
/etc/sysconfig/network-scripts/ifcfg-IFACE and make the following changes: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10428 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10429 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 10430 |
<xhtml:li>Correct the BOOTPROTO line to read: <xhtml:br/> |
| 10431 |
<xhtml:br/> |
| 10432 |
BOOTPROTO=static |
| 10433 |
</xhtml:li> |
| 10434 |
<xhtml:li>Add or correct the following lines, |
| 10435 |
substituting the appropriate values based on your site's addressing scheme:<xhtml:br/> |
| 10436 |
<xhtml:br/> |
| 10437 |
NETMASK=255.255.255.0<xhtml:br/> |
| 10438 |
IPADDR=192.168.1.2<xhtml:br/> |
| 10439 |
GATEWAY=192.168.1.1 <xhtml:br/> |
| 10440 |
</xhtml:li> |
| 10441 |
</xhtml:ol> |
| 10442 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10443 |
DHCP is the default network |
| 10444 |
configuration method provided by the system installer, so it may be enabled on many |
| 10445 |
systems.</xccdf:description> |
| 10446 |
<xccdf:Value id="xccdf_cdf_value_var-3.9.1.a" operator="equals" type="string"> |
| 10447 |
<xccdf:title>DHCP BOOTPROTO</xccdf:title> |
| 10448 |
<xccdf:description xml:lang="en">If BOOTPROTO is not "static", then the only other item that must be set is the DEVICE item; all the rest will be determined by the boot protocol. No "dummy" entries need to be created.</xccdf:description> |
| 10449 |
<xccdf:question xml:lang="en">Choose DHCP BOOTPROTO</xccdf:question> |
| 10450 |
<xccdf:value>static</xccdf:value> |
| 10451 |
<xccdf:value selector="bootp">bootp</xccdf:value> |
| 10452 |
<xccdf:value selector="dhcp">dhcp</xccdf:value> |
| 10453 |
<xccdf:value selector="static">static</xccdf:value> |
| 10454 |
|
| 10455 |
<xccdf:choices> |
| 10456 |
<xccdf:choice>bootp</xccdf:choice> |
| 10457 |
<xccdf:choice>dhcp</xccdf:choice> |
| 10458 |
<xccdf:choice>static</xccdf:choice> |
| 10459 |
</xccdf:choices> |
| 10460 |
</xccdf:Value> |
| 10461 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.1.a" selected="false" severity="low" weight="10.0"> |
| 10462 |
<xccdf:title>Disable DHCP Client if Possible</xccdf:title> |
| 10463 |
<xccdf:description>The dhcp client service should be disabled for each interface.</xccdf:description> |
| 10464 |
<xccdf:ident system="http://cce.mitre.org">CCE-4191-3</xccdf:ident> |
| 10465 |
<xccdf:fixtext>(1) via /etc/sysconfig/network-scripts/ifcfg-eth*</xccdf:fixtext> |
| 10466 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10467 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20267" value-id="xccdf_cdf_value_var-3.9.1.a"/> |
| 10468 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20267"/> |
| 10469 |
</xccdf:check> |
| 10470 |
</xccdf:Rule> |
| 10471 |
</xccdf:Group> |
| 10472 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.2"> |
| 10473 |
<xccdf:title xml:lang="en">Configure DHCP Client if necessary</xccdf:title> |
| 10474 |
<xccdf:description xml:lang="en"> |
| 10475 |
If DHCP must be used, then certain configuration changes can |
| 10476 |
minimize the amount of information it receives and applies from the network, and thus the |
| 10477 |
amount of incorrect information a rogue DHCP server could successfully distribute. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10478 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10479 |
For more information on configuring dhclient, see the dhclient(8) and dhclient.conf(5) |
| 10480 |
man pages.</xccdf:description> |
| 10481 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.2.1"> |
| 10482 |
<xccdf:title xml:lang="en">Minimize the DHCP-Configured Options</xccdf:title> |
| 10483 |
<xccdf:description xml:lang="en"> |
| 10484 |
Create the file /etc/dhclient.conf, and add an appropriate |
| 10485 |
setting for each of the ten configuration settings which can be obtained via DHCP. For |
| 10486 |
each setting, setting , do one of the following: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10487 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 10488 |
<xhtml:li>If the setting should not be |
| 10489 |
configured remotely by the DHCP server, select an appropriate static value, and add the |
| 10490 |
line: <xhtml:br/> |
| 10491 |
<xhtml:br/> |
| 10492 |
supersede setting value ; </xhtml:li> |
| 10493 |
<xhtml:li>If the setting should be configured remotely by the |
| 10494 |
DHCP server, add the lines: <xhtml:br/> |
| 10495 |
<xhtml:br/> |
| 10496 |
request setting ; <xhtml:br/> |
| 10497 |
require setting ; </xhtml:li> |
| 10498 |
</xhtml:ul> |
| 10499 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10500 |
For example, suppose the |
| 10501 |
DHCP server should provide only the IP address itself and the subnet mask. Then the |
| 10502 |
entire file should look like: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10503 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10504 |
supersede domain-name "example.com "; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10505 |
supersede domain-name-servers 192.168.1.2 ; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10506 |
supersede nis-domain ""; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10507 |
supersede nis-servers "";<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10508 |
supersede ntp-servers "ntp.example.com "; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10509 |
supersede routers 192.168.1.1 ; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10510 |
supersede time-offset -18000 ; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10511 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10512 |
request subnet-mask; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10513 |
require subnet-mask; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10514 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10515 |
By default, the DHCP |
| 10516 |
client program, dhclient, requests and applies ten configuration options (in addition to |
| 10517 |
the IP address) from the DHCP server: subnet-mask, broadcast-address, time-offset, |
| 10518 |
routers, domain-name, domain-name-servers, host-name, nis-domain, nis-servers, and |
| 10519 |
ntp-servers. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10520 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10521 |
Many of the options requested and applied by dhclient may be the same for |
| 10522 |
every system on a network. It is recommended that almost all configuration options be |
| 10523 |
assigned statically, and only options which must vary on a host-by-host basis be |
| 10524 |
assigned via DHCP. This limits the damage which can be done by a rogue DHCP server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10525 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10526 |
If |
| 10527 |
appropriate for your site, it is also possible to supersede the host-name directive in |
| 10528 |
/etc/dhclient.conf, establishing a static hostname for the machine. However, dhclient |
| 10529 |
does not use the host name option provided by the DHCP server (instead using the value |
| 10530 |
provided by a reverse DNS lookup). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10531 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10532 |
Note: In this example, the options nis-servers and |
| 10533 |
nis-domain are set to empty strings, on the assumption that the deprecated NIS protocol |
| 10534 |
is not in use. (See Section 3.2.4.) It is necessary to supersede settings for unused |
| 10535 |
services so that they cannot be set by a hostile DHCP server. If an option is set to an |
| 10536 |
empty string, dhclient will typically not attempt to configure the service.</xccdf:description> |
| 10537 |
</xccdf:Group> |
| 10538 |
</xccdf:Group> |
| 10539 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.3"> |
| 10540 |
<xccdf:title xml:lang="en">Disable DHCP Server if possible</xccdf:title> |
| 10541 |
<xccdf:description xml:lang="en"> |
| 10542 |
If the dhcp package has been installed on a machine which does |
| 10543 |
not need to operate as a DHCP server, disable the daemon: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10544 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10545 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig dhcpd off <xhtml:br/></xhtml:code> |
| 10546 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10547 |
If possible, remove the software as well: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10548 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10549 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum erase dhcp <xhtml:br/></xhtml:code> |
| 10550 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10551 |
The DHCP server dhcpd is not |
| 10552 |
installed or activated by default. If the software was installed and activated, but the |
| 10553 |
system does not need to act as a DHCP server, it should be disabled and removed. Unmanaged |
| 10554 |
DHCP servers will provide faulty information to clients, interfering with the operation of |
| 10555 |
a legitimate site DHCP server if there is one, or causing misconfigured machines to |
| 10556 |
exhibit unpredictable behavior if there is not.</xccdf:description> |
| 10557 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.3.a" selected="false" severity="low" weight="10.0"> |
| 10558 |
<xccdf:title>Disable DHCP Server if possible</xccdf:title> |
| 10559 |
<xccdf:description>The dhcpd service should be disabled.</xccdf:description> |
| 10560 |
<xccdf:ident system="http://cce.mitre.org">CCE-4336-4</xccdf:ident> |
| 10561 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 10562 |
<xccdf:fix># chkconfig dhcpd off</xccdf:fix> |
| 10563 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10564 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20268"/> |
| 10565 |
</xccdf:check> |
| 10566 |
</xccdf:Rule> |
| 10567 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.3.b" selected="false" weight="10.0"> |
| 10568 |
<xccdf:title>Uninstall DHCP Server if possible</xccdf:title> |
| 10569 |
<xccdf:description>The dhcp package should be uninstalled.</xccdf:description> |
| 10570 |
<xccdf:ident system="http://cce.mitre.org">CCE-4464-4</xccdf:ident> |
| 10571 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 10572 |
<xccdf:fix># yum erase dhcp</xccdf:fix> |
| 10573 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10574 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20269"/> |
| 10575 |
</xccdf:check> |
| 10576 |
</xccdf:Rule> |
| 10577 |
</xccdf:Group> |
| 10578 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4"> |
| 10579 |
<xccdf:title xml:lang="en">Configure the DHCP Server if necessary</xccdf:title> |
| 10580 |
<xccdf:description xml:lang="en"> |
| 10581 |
If the system must act as a DHCP server, the configuration |
| 10582 |
information it serves should be minimized. Also, support for other protocols and |
| 10583 |
DNS-updating schemes should be explicitly disabled unless needed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10584 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10585 |
The configuration file |
| 10586 |
for dhcpd is called /etc/dhcpd.conf. The file begins with a number of global configuration |
| 10587 |
options. The remainder of the file is divided into sections, one for each block of |
| 10588 |
addresses offered by dhcpd, each of which contains configuration options specific to that |
| 10589 |
address block.</xccdf:description> |
| 10590 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.1"> |
| 10591 |
<xccdf:title xml:lang="en">Do Not Use Dynamic DNS</xccdf:title> |
| 10592 |
<xccdf:description xml:lang="en"> |
| 10593 |
To prevent the DHCP server from receiving DNS information from |
| 10594 |
clients, edit /etc/dhcpd.conf, and add or correct the following global option:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10595 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10596 |
ddns-update-style none; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10597 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10598 |
The Dynamic DNS protocol is used to remotely update the data |
| 10599 |
served by a DNS server. DHCP servers can use Dynamic DNS to publish information about |
| 10600 |
their clients. This setup carries security risks, and its use is not recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10601 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10602 |
If Dynamic DNS must be used despite the risks it poses, it is critical that Dynamic DNS |
| 10603 |
transactions be protected using TSIG or some other cryptographic authentication |
| 10604 |
mechanism. See Section 3.14 for more information about DNS servers, including further |
| 10605 |
information about TSIG and Dynamic DNS. Also see dhcpd.conf(5) for more information |
| 10606 |
about protecting the DHCP server from passing along malicious DNS data from its clients.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10607 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10608 |
Note: The ddns-update-style option controls only whether the DHCP server will attempt to |
| 10609 |
act as a Dynamic DNS client. As long as the DNS server itself is correctly configured to |
| 10610 |
reject DDNS attempts, an incorrect ddns-update-style setting on the client is harmless |
| 10611 |
(but should be fixed as a best practice).</xccdf:description> |
| 10612 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.1.a" selected="false" weight="10.0"> |
| 10613 |
<xccdf:title>Do Not Use Dynamic DNS</xccdf:title> |
| 10614 |
<xccdf:description>The dynamic DNS feature of the DHCP server should be disabled</xccdf:description> |
| 10615 |
<xccdf:ident system="http://cce.mitre.org">CCE-4257-2</xccdf:ident> |
| 10616 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10617 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10618 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20270"/> |
| 10619 |
</xccdf:check> |
| 10620 |
</xccdf:Rule> |
| 10621 |
</xccdf:Group> |
| 10622 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.2"> |
| 10623 |
<xccdf:title xml:lang="en">Deny Decline Messages</xccdf:title> |
| 10624 |
<xccdf:description xml:lang="en"> |
| 10625 |
Edit /etc/dhcpd.conf and add or correct the following global |
| 10626 |
option to prevent the DHCP server from responding the DHCPDECLINE messages, if possible:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10627 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10628 |
deny declines; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10629 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10630 |
The DHCPDECLINE message can be sent by a DHCP client to indicate that it |
| 10631 |
does not consider the lease offered by the server to be valid. By issuing many |
| 10632 |
DHCPDECLINE messages, a malicious client can exhaust the DHCP server's pool of IP |
| 10633 |
addresses, causing the DHCP server to forget old address allocations.</xccdf:description> |
| 10634 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.2.a" selected="false" weight="10.0"> |
| 10635 |
<xccdf:title>Deny Decline Messages</xccdf:title> |
| 10636 |
<xccdf:description>DHCPDECLINE messages should be denied by the DHCP server</xccdf:description> |
| 10637 |
<xccdf:ident system="http://cce.mitre.org">CCE-4403-2</xccdf:ident> |
| 10638 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10639 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10640 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20271"/> |
| 10641 |
</xccdf:check> |
| 10642 |
</xccdf:Rule> |
| 10643 |
</xccdf:Group> |
| 10644 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.3"> |
| 10645 |
<xccdf:title xml:lang="en">Deny BOOTP Queries</xccdf:title> |
| 10646 |
<xccdf:description xml:lang="en"> |
| 10647 |
Unless your network needs to support older BOOTP clients, |
| 10648 |
disable support for the bootp protocol by adding or correcting the global option: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10649 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10650 |
deny bootp; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10651 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10652 |
The bootp option tells dhcpd to respond to BOOTP queries. If support for this |
| 10653 |
simpler protocol is not needed, it should be disabled to remove attack vectors against |
| 10654 |
the DHCP server.</xccdf:description> |
| 10655 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.3.a" selected="false" weight="10.0"> |
| 10656 |
<xccdf:title>Deny BOOTP Queries</xccdf:title> |
| 10657 |
<xccdf:description>BOOTP queries should be denied by the DHCP server</xccdf:description> |
| 10658 |
<xccdf:ident system="http://cce.mitre.org">CCE-4345-5</xccdf:ident> |
| 10659 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10660 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10661 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20272"/> |
| 10662 |
</xccdf:check> |
| 10663 |
</xccdf:Rule> |
| 10664 |
</xccdf:Group> |
| 10665 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.4"> |
| 10666 |
<xccdf:title xml:lang="en">Minimize Served Information</xccdf:title> |
| 10667 |
<xccdf:description xml:lang="en"> |
| 10668 |
Edit /etc/dhcpd.conf. Examine each address range section within |
| 10669 |
the file, and ensure that the following options are not defined unless there is an |
| 10670 |
operational need to provide this information via DHCP: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10671 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10672 |
option domain-name <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10673 |
option domain-name-servers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10674 |
option nis-domain <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10675 |
option nis-servers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10676 |
option ntp-servers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10677 |
option routers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10678 |
option time-offset <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10679 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10680 |
Because the configuration information provided by the DHCP |
| 10681 |
server could be maliciously provided to clients by a rogue DHCP server, the amount of |
| 10682 |
information provided via DHCP should be minimized. Remove these definitions from the |
| 10683 |
DHCP server configuration to ensure that legitimate clients do not unnecessarily rely on |
| 10684 |
DHCP for this information. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10685 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10686 |
Note: By default, the RHEL5 client installation uses DHCP to |
| 10687 |
request much of the above information from the DHCP server. In particular, domain-name, |
| 10688 |
domain-name-servers, and routers are configured via DHCP. These settings are typically |
| 10689 |
necessary for proper network functionality, but are also usually static across machines |
| 10690 |
at a given site. See Section 3.9.2.1 for a description of how to configure static site |
| 10691 |
information within the DHCP client configuration.</xccdf:description> |
| 10692 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.a" selected="false" weight="10.0"> |
| 10693 |
<xccdf:title>DHCP should not send domain-name</xccdf:title> |
| 10694 |
<xccdf:description>Domain name server information should not be sent by the DHCP server.</xccdf:description> |
| 10695 |
<xccdf:ident system="http://cce.mitre.org">CCE-3724-2</xccdf:ident> |
| 10696 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10697 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10698 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20273"/> |
| 10699 |
</xccdf:check> |
| 10700 |
</xccdf:Rule> |
| 10701 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.b" selected="false" weight="10.0"> |
| 10702 |
<xccdf:title>DHCP should not send domain-name-servers</xccdf:title> |
| 10703 |
<xccdf:description>Default routers should not be sent by the DHCP server.</xccdf:description> |
| 10704 |
<xccdf:ident system="http://cce.mitre.org">CCE-4243-2</xccdf:ident> |
| 10705 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10706 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10707 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20274"/> |
| 10708 |
</xccdf:check> |
| 10709 |
</xccdf:Rule> |
| 10710 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.c" selected="false" weight="10.0"> |
| 10711 |
<xccdf:title>DHCP should not send nis-domain</xccdf:title> |
| 10712 |
<xccdf:description>Domain name should not be sent by the DHCP server.</xccdf:description> |
| 10713 |
<xccdf:ident system="http://cce.mitre.org">CCE-4389-3</xccdf:ident> |
| 10714 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10715 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10716 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20275"/> |
| 10717 |
</xccdf:check> |
| 10718 |
</xccdf:Rule> |
| 10719 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.d" selected="false" weight="10.0"> |
| 10720 |
<xccdf:title>DHCP should not send nis-servers</xccdf:title> |
| 10721 |
<xccdf:description>NIS domain should not be sent by the DHCP server.</xccdf:description> |
| 10722 |
<xccdf:ident system="http://cce.mitre.org">CCE-3913-1</xccdf:ident> |
| 10723 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10724 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10725 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20276"/> |
| 10726 |
</xccdf:check> |
| 10727 |
</xccdf:Rule> |
| 10728 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.e" selected="false" weight="10.0"> |
| 10729 |
<xccdf:title>DHCP should not send ntp-servers</xccdf:title> |
| 10730 |
<xccdf:description>NIS servers should not be sent by the DHCP server.</xccdf:description> |
| 10731 |
<xccdf:ident system="http://cce.mitre.org">CCE-4169-9</xccdf:ident> |
| 10732 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10733 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10734 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20277"/> |
| 10735 |
</xccdf:check> |
| 10736 |
</xccdf:Rule> |
| 10737 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.f" selected="false" weight="10.0"> |
| 10738 |
<xccdf:title>DHCP should not send routers</xccdf:title> |
| 10739 |
<xccdf:description>Time offset should not be sent by the DHCP server.</xccdf:description> |
| 10740 |
<xccdf:ident system="http://cce.mitre.org">CCE-4318-2</xccdf:ident> |
| 10741 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10742 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10743 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20278"/> |
| 10744 |
</xccdf:check> |
| 10745 |
</xccdf:Rule> |
| 10746 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.4.g" selected="false" weight="10.0"> |
| 10747 |
<xccdf:title>DHCP should not send time-offset</xccdf:title> |
| 10748 |
<xccdf:description>NTP servers should not be sent by the DHCP server.</xccdf:description> |
| 10749 |
<xccdf:ident system="http://cce.mitre.org">CCE-4319-0</xccdf:ident> |
| 10750 |
<xccdf:fixtext>(1) via /etc/dhcpd.conf</xccdf:fixtext> |
| 10751 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10752 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20279"/> |
| 10753 |
</xccdf:check> |
| 10754 |
</xccdf:Rule> |
| 10755 |
</xccdf:Group> |
| 10756 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.5"> |
| 10757 |
<xccdf:title xml:lang="en">Configure Logging</xccdf:title> |
| 10758 |
<xccdf:description xml:lang="en"> |
| 10759 |
Ensure that the following line exists in /etc/syslog.conf:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10760 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10761 |
daemon.* /var/log/daemon.log <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10762 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10763 |
Configure logwatch or other log monitoring tools to |
| 10764 |
summarize error conditions reported by the dhcpd process. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10765 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10766 |
By default, dhcpd logs notices |
| 10767 |
to the daemon facility. Sending all daemon messages to a dedicated log file is part of |
| 10768 |
the syslog configuration outlined in Section 2.6.1.1.</xccdf:description> |
| 10769 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.9.4.5.a" selected="false" weight="10.0"> |
| 10770 |
<xccdf:title>Configure DHCP Logging</xccdf:title> |
| 10771 |
<xccdf:description>dhcpd logging should be enabled.</xccdf:description> |
| 10772 |
<xccdf:ident system="http://cce.mitre.org">CCE-3733-3</xccdf:ident> |
| 10773 |
<xccdf:fixtext>(1) via /etc/syslog.conf</xccdf:fixtext> |
| 10774 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10775 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20280"/> |
| 10776 |
</xccdf:check> |
| 10777 |
</xccdf:Rule> |
| 10778 |
</xccdf:Group> |
| 10779 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.9.4.6"> |
| 10780 |
<xccdf:title xml:lang="en">Further Resources</xccdf:title> |
| 10781 |
<xccdf:description xml:lang="en">* The man pages dhcpd.conf(5) and dhcpd(8) * ISC web page http://isc.org/products/DHCP</xccdf:description> |
| 10782 |
</xccdf:Group> |
| 10783 |
</xccdf:Group> |
| 10784 |
</xccdf:Group> |
| 10785 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10"> |
| 10786 |
<xccdf:title xml:lang="en">Network Time Protocol</xccdf:title> |
| 10787 |
<xccdf:description xml:lang="en"> |
| 10788 |
The Network Time Protocol is used to manage the system clock over a |
| 10789 |
network. Computer clocks are not very accurate, so time will drift unpredictably on |
| 10790 |
unmanaged systems. Central time protocols can be used both to ensure that time is consistent |
| 10791 |
among a network of machines, and that their time is consistent with the outside world. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10792 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10793 |
Local time synchronization is recommended for all networks. If every machine on your network |
| 10794 |
reliably reports the same time as every other machine, then it is much easier to correlate |
| 10795 |
log messages in case of an attack. In addition, a number of cryptographic protocols (such as |
| 10796 |
Kerberos) use timestamps to prevent certain types of attacks. If your network does not have |
| 10797 |
synchronized time, these protocols may be unreliable or even unusable. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10798 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10799 |
Depending on the specifics of the network, global time accuracy may be just as important as |
| 10800 |
local synchronization, or not very important at all. If your network is connected to the |
| 10801 |
Internet, it is recommended that you make use of a public timeserver, since globally |
| 10802 |
accurate timestamps may be necessary if you need to investigate or respond to an attack |
| 10803 |
which originated outside of your network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10804 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10805 |
Whether or not you use an outside timeserver, configure |
| 10806 |
the network to have a small number of machines operating as NTP servers, and the remainder |
| 10807 |
obtaining time information from those internal servers.</xccdf:description> |
| 10808 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.1"> |
| 10809 |
<xccdf:title xml:lang="en">Select NTP Software</xccdf:title> |
| 10810 |
<xccdf:description xml:lang="en"> |
| 10811 |
The Network Time Protocol (RFC 1305) is designed to synchronize |
| 10812 |
time with a very high degree of accuracy even on an unreliable network. NTP is therefore a |
| 10813 |
complex protocol. The Simple Network Time Protocol (RFC 4330) implements a subset of NTP |
| 10814 |
which is intended to be good enough to meet the time requirements of most networks. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10815 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10816 |
The primary implementation of NTP comes from ntp.org, and is shipped with RHEL5 as the ntp |
| 10817 |
RPM. An alternative is OpenNTPD, which is an implementation of SNTP, and which can be |
| 10818 |
obtained as source code from http://www.openntpd.org. OpenNTPD may be simpler to configure |
| 10819 |
than the reference NTP implementation, at the cost of the need to install and maintain |
| 10820 |
third-party software. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10821 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10822 |
This guide does not recommend the use of a particular NTP/SNTP |
| 10823 |
software package, but does recommend that some NTP software be selected and installed on |
| 10824 |
all machines. The remainder of this section describes how to securely configure NTP |
| 10825 |
clients and servers, and discusses both the reference NTP implementation and OpenNTPD.</xccdf:description> |
| 10826 |
</xccdf:Group> |
| 10827 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2"> |
| 10828 |
<xccdf:title xml:lang="en">Configure Reference NTP if Appropriate</xccdf:title> |
| 10829 |
<xccdf:description xml:lang="en">The ntp RPM implements the reference NTP server.</xccdf:description> |
| 10830 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.1"> |
| 10831 |
<xccdf:title xml:lang="en">Configure an NTP Client</xccdf:title> |
| 10832 |
<xccdf:description xml:lang="en"> |
| 10833 |
There are a number of options for configuring clients to work with the reference NTP server. It is possible to run |
| 10834 |
ntpd as a service (i.e., continuously) on each host, configuring clients so that the ntp protocol ignores all network |
| 10835 |
access. This still introduces an additional network listener on client machines, and is therefore not recommended.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10836 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10837 |
This guide instead recommends running ntpd periodically via cron. It is also possible to run ntpdate via cron |
| 10838 |
with the -u option, but it is being obsoleted in favor of ntpd.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10839 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10840 |
Alternately, even if the server is running the reference NTP implementation, it is possible for clients to access it |
| 10841 |
using SNTP. See Section 3.10.3.2 for information about configuring SNTP clients.</xccdf:description> |
| 10842 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.1.1"> |
| 10843 |
<xccdf:title xml:lang="en">Set Up Client NTP Configuration File</xccdf:title> |
| 10844 |
<xccdf:description xml:lang="en"> |
| 10845 |
A valid configuration file for the client system’s ntpd must exist at /etc/ntp.conf. Ensure that /etc/ntp.conf |
| 10846 |
contains the following line, where ntp-server is the hostname or IP address of the site NTP server:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10847 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10848 |
server ntp-server<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10849 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10850 |
Note: The ntpd software also includes authentication and encryption support which allows for clients to verify the |
| 10851 |
identity of the server, and thus guarantee the integrity of time data with high probability. See ntpd documentation |
| 10852 |
at http://www.ntp.org for more details on implementing this recommended feature. |
| 10853 |
</xccdf:description> |
| 10854 |
</xccdf:Group> |
| 10855 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.1.2"> |
| 10856 |
<xccdf:title xml:lang="en">Run ntpdate using Cron</xccdf:title> |
| 10857 |
<xccdf:description xml:lang="en"> |
| 10858 |
Create a file /etc/cron.d/ntpd containing the following crontab:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10859 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10860 |
15 * * * * root /usr/sbin/ntpd -q -u ntp:ntp<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10861 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10862 |
The -q option instructs ntpd to exit just after setting the clock, and the -u option instructs it to run as the |
| 10863 |
specified user.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10864 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10865 |
Note: When setting the clock for the first time, execute the above command with the -g option, as ntpd |
| 10866 |
will refuse to set the clock if it is significantly different from the source.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10867 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10868 |
This crontab will execute ntpd to synchronize the time to the NTP server at 15 minutes past every hour. (It is |
| 10869 |
possible to choose a different minute, or to vary the minute between machines in order to avoid heavy traffic to |
| 10870 |
the NTP server.) Hourly synchronization should be sufficiently frequent that clock drift will not be noticeable.</xccdf:description> |
| 10871 |
</xccdf:Group> |
| 10872 |
</xccdf:Group> |
| 10873 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.2"> |
| 10874 |
<xccdf:title xml:lang="en">Configure an NTP Server</xccdf:title> |
| 10875 |
<xccdf:description xml:lang="en"> |
| 10876 |
The site’s NTP server contacts a central NTP server, probably either one provided by your ISP or a public time |
| 10877 |
server, to obtain accurate time data. The server then allows other machines on your network to request the time |
| 10878 |
data.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10879 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10880 |
The NTP server configuration file is located at /etc/ntp.conf.</xccdf:description> |
| 10881 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.2.1"> |
| 10882 |
<xccdf:title xml:lang="en">Enable the NTP Daemon</xccdf:title> |
| 10883 |
<xccdf:description xml:lang="en"> |
| 10884 |
If this machine is an NTP server, ensure that ntpd is enabled |
| 10885 |
at boot time: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10886 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10887 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig ntpd on</xhtml:code></xccdf:description> |
| 10888 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.2.2.1.a" selected="false" severity="high" weight="10.0"> |
| 10889 |
<xccdf:title>Enable the NTP Daemon</xccdf:title> |
| 10890 |
<xccdf:description>The ntpd service should be enabled.</xccdf:description> |
| 10891 |
<xccdf:ident system="http://cce.mitre.org">CCE-4376-0</xccdf:ident> |
| 10892 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 10893 |
<xccdf:fix># chkconfig ntpd on</xccdf:fix> |
| 10894 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10895 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20281"/> |
| 10896 |
</xccdf:check> |
| 10897 |
</xccdf:Rule> |
| 10898 |
</xccdf:Group> |
| 10899 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.2.2"> |
| 10900 |
<xccdf:title xml:lang="en">Deny All Access to ntpd by Default</xccdf:title> |
| 10901 |
<xccdf:description xml:lang="en"> |
| 10902 |
Edit the file /etc/ntp.conf. Prepend or correct the following |
| 10903 |
line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10904 |
restrict default ignore <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10905 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10906 |
Since ntpd is a complex software package which listens |
| 10907 |
for network connections and runs as root, it must be protected from network access by |
| 10908 |
unauthorized machines. This setting uses ntpd's internal authorization to deny all |
| 10909 |
access to any machine, server or client, which is not specifically authorized by other |
| 10910 |
policy settings.</xccdf:description> |
| 10911 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.2.2.2.a" selected="false" weight="10.0"> |
| 10912 |
<xccdf:title>Deny All Access to ntpd by Default</xccdf:title> |
| 10913 |
<xccdf:description>Network access to ntpd should be denied</xccdf:description> |
| 10914 |
<xccdf:ident system="http://cce.mitre.org">CCE-4134-3</xccdf:ident> |
| 10915 |
<xccdf:fixtext>(1) via /etc/ntp.conf</xccdf:fixtext> |
| 10916 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10917 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20282"/> |
| 10918 |
</xccdf:check> |
| 10919 |
</xccdf:Rule> |
| 10920 |
</xccdf:Group> |
| 10921 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.2.3"> |
| 10922 |
<xccdf:title xml:lang="en">Specify a Remote NTP Server for Time Data</xccdf:title> |
| 10923 |
<xccdf:description xml:lang="en"> |
| 10924 |
Find the IP address, server-ip , of an appropriate remote NTP |
| 10925 |
server. Edit the file /etc/ntp.conf, and add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10926 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10927 |
restrict server-ip mask 255.255.255.255 nomodify notrap noquery <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10928 |
server server-ip <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10929 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10930 |
If your site |
| 10931 |
does not require time data to be accurate, but merely to be synchronized among local |
| 10932 |
machines, this step can be omitted, and the NTP server will default to providing time |
| 10933 |
data from the local clock. However, it is a good idea to periodically synchronize the |
| 10934 |
clock to some source of accurate time, even if it is not appropriate to do so |
| 10935 |
automatically. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10936 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10937 |
The previous step disabled all remote access to this NTP server's state |
| 10938 |
data. This NTP server must contact a remote server to obtain accurate data, so NTP's |
| 10939 |
configuration must allow that remote data to be used to modify the system clock. The |
| 10940 |
restrict line changes the default access permissions for that remote server. The |
| 10941 |
server line specifies the remote server as the preferred NTP server for time data. If |
| 10942 |
you intend to synchronize to more than one server, specify restrict and server lines |
| 10943 |
for each server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10944 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10945 |
Note: It would be possible to specify a hostname, rather than an IP |
| 10946 |
address, for the server field. However, the restrict setting applies only to network |
| 10947 |
blocks of IP addresses, so it is considered more maintainable to use the IP address in |
| 10948 |
both fields.</xccdf:description> |
| 10949 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.2.2.3.a" selected="false" weight="10.0"> |
| 10950 |
<xccdf:title>Specify a Remote NTP Server for Time Data</xccdf:title> |
| 10951 |
<xccdf:description>A remote NTP Server for time synchronization should be specified</xccdf:description> |
| 10952 |
<xccdf:ident system="http://cce.mitre.org">CCE-4385-1</xccdf:ident> |
| 10953 |
<xccdf:fixtext>(1) via /etc/ntp.conf</xccdf:fixtext> |
| 10954 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 10955 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20283"/> |
| 10956 |
</xccdf:check> |
| 10957 |
</xccdf:Rule> |
| 10958 |
</xccdf:Group> |
| 10959 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.2.2.4"> |
| 10960 |
<xccdf:title xml:lang="en">Allow Legitimate NTP Clients to Access the Server</xccdf:title> |
| 10961 |
<xccdf:description xml:lang="en"> |
| 10962 |
Determine an appropriate network block, netwk , and network |
| 10963 |
mask, mask , representing the machines on your network which will synchronize to this |
| 10964 |
server. Edit /etc/ntp.conf and add the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10965 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10966 |
restrict netwk mask mask nomodify notrap<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10967 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10968 |
Edit /etc/sysconfig/iptables. Add the following line, ensuring that it appears before |
| 10969 |
the final LOG and DROP lines for the RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10970 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10971 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport 123 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10972 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10973 |
If the clients are |
| 10974 |
spread across more than one netblock, separate restrict and ACCEPT lines should be |
| 10975 |
added for each netblock. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10976 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10977 |
The iptables configuration is needed because the default |
| 10978 |
iptables configuration does not allow inbound access to any services. See Section |
| 10979 |
2.5.5 for more information about iptables. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10980 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 10981 |
Note: The reference NTP implementation will |
| 10982 |
refuse to serve time data to clients until enough time has elapsed that the server |
| 10983 |
host's time can be assumed to have settled to an accurate value. While testing, wait |
| 10984 |
ten minutes after starting ntpd before attempting to synchronize clients.</xccdf:description> |
| 10985 |
</xccdf:Group> |
| 10986 |
</xccdf:Group> |
| 10987 |
</xccdf:Group> |
| 10988 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3"> |
| 10989 |
<xccdf:title xml:lang="en">Configure OpenNTPD if Appropriate</xccdf:title> |
| 10990 |
<xccdf:description xml:lang="en"> |
| 10991 |
OpenNTPD is an implementation of the SNTP protocol which is |
| 10992 |
provided as a simple alternative to the reference NTP server. Advantages of OpenNTPD |
| 10993 |
include simplicity of configuration, built-in privilege separation and chroot jailing of |
| 10994 |
the NTP protocol code, and a small codebase which lacks many of the management and other |
| 10995 |
protocol features used by the reference NTP server. This simplicity comes at the cost of |
| 10996 |
degraded time accuracy, but SNTP is probably accurate enough for most sites with typical |
| 10997 |
monitoring requirements.</xccdf:description> |
| 10998 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.1"> |
| 10999 |
<xccdf:title xml:lang="en">Obtain NTP Software</xccdf:title> |
| 11000 |
<xccdf:description xml:lang="en"> |
| 11001 |
If your site intends to use the OpenNTPD implementation, it is |
| 11002 |
necessary to compile and install the software. (If your site intends to use the |
| 11003 |
reference NTP implementation, no installation is necessary.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11004 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11005 |
<xhtml:li>Obtain the software by |
| 11006 |
downloading an appropriate source version, openntpd-version .tar.gz, from |
| 11007 |
http://www.openntpd.org/portable.html. </xhtml:li> |
| 11008 |
<xhtml:li>Unpack the source code: <xhtml:br/> |
| 11009 |
<xhtml:br/> |
| 11010 |
<xhtml:code>$ tar xzf openntpd-version .tar.gz</xhtml:code> </xhtml:li> |
| 11011 |
<xhtml:li>Configure and compile the source. (By default, the code will |
| 11012 |
be compiled for installation into /usr/ local): <xhtml:br/> |
| 11013 |
<xhtml:br/> |
| 11014 |
<xhtml:code>$ cd openntpd-version <xhtml:br/> |
| 11015 |
$ ./configure --with-privsep-user=ntp <xhtml:br/> |
| 11016 |
$ make </xhtml:code></xhtml:li> |
| 11017 |
<xhtml:li>As root, install the resulting program into |
| 11018 |
/usr/local: <xhtml:br/> |
| 11019 |
<xhtml:br/> |
| 11020 |
<xhtml:code># make install </xhtml:code></xhtml:li> |
| 11021 |
</xhtml:ol> |
| 11022 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11023 |
The configuration option --with-privsep-user=ntp tells |
| 11024 |
OpenNTPD to use the existing system account ntp for the non-root portion of its |
| 11025 |
operation.</xccdf:description> |
| 11026 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.3.1.a" selected="false" weight="10.0"> |
| 11027 |
<xccdf:title>Obtain NTP Software</xccdf:title> |
| 11028 |
<xccdf:description>OpenNTPD should be installed</xccdf:description> |
| 11029 |
<xccdf:ident system="http://cce.mitre.org">CCE-4032-9</xccdf:ident> |
| 11030 |
<xccdf:fixtext>(1) via openntpd package</xccdf:fixtext> |
| 11031 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11032 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20284"/> |
| 11033 |
</xccdf:check> |
| 11034 |
</xccdf:Rule> |
| 11035 |
</xccdf:Group> |
| 11036 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.2"> |
| 11037 |
<xccdf:title xml:lang="en">Configure an SNTP Client</xccdf:title> |
| 11038 |
<xccdf:description xml:lang="en"> |
| 11039 |
OpenNTPD runs only in daemon mode — there is no command line |
| 11040 |
suitable to be run from cron. However, this is considered reasonably safe for client use |
| 11041 |
because the daemon does not listen on any network ports by default, and because OpenNTPD |
| 11042 |
is a small codebase with no remote management interface or other complex features. |
| 11043 |
However, it is possible to run a time-stepping program, such as rdate(1), from cron |
| 11044 |
instead of configuring the daemon as outlined in this section.</xccdf:description> |
| 11045 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.2.1"> |
| 11046 |
<xccdf:title xml:lang="en">Enable the NTP Daemon</xccdf:title> |
| 11047 |
<xccdf:description xml:lang="en">Edit the file /etc/rc.local. Add or correct the following line: /usr/local/sbin/ntpd -s</xccdf:description> |
| 11048 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.3.2.1.a" selected="false" severity="high" weight="10.0"> |
| 11049 |
<xccdf:title>Enable the NTP Daemon</xccdf:title> |
| 11050 |
<xccdf:description>The ntp daemon should be enabled</xccdf:description> |
| 11051 |
<xccdf:ident system="http://cce.mitre.org">CCE-4424-8</xccdf:ident> |
| 11052 |
<xccdf:fixtext>(1) via /etc/rc.local</xccdf:fixtext> |
| 11053 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11054 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20285"/> |
| 11055 |
</xccdf:check> |
| 11056 |
</xccdf:Rule> |
| 11057 |
</xccdf:Group> |
| 11058 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.2.2"> |
| 11059 |
<xccdf:title xml:lang="en">Configure the Client NTP Daemon to Use the Local Server</xccdf:title> |
| 11060 |
<xccdf:description xml:lang="en"> |
| 11061 |
Edit the file /usr/local/etc/ntpd.conf. Add or correct the |
| 11062 |
following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11063 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11064 |
server local-server.example.com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11065 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11066 |
where local-server.example.com is the |
| 11067 |
hostname of the site's local NTP or SNTP server.</xccdf:description> |
| 11068 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.10.3.2.2.a" selected="false" severity="high" weight="10.0"> |
| 11069 |
<xccdf:title>Configure the Client NTP Daemon to Use the Local Server</xccdf:title> |
| 11070 |
<xccdf:description>The ntp daemon synchronization server should be set appropriately</xccdf:description> |
| 11071 |
<xccdf:ident system="http://cce.mitre.org">CCE-3487-6</xccdf:ident> |
| 11072 |
<xccdf:fixtext>(1) via /usr/local/etc/ntpd.conf</xccdf:fixtext> |
| 11073 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11074 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20286"/> |
| 11075 |
</xccdf:check> |
| 11076 |
</xccdf:Rule> |
| 11077 |
</xccdf:Group> |
| 11078 |
</xccdf:Group> |
| 11079 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.3"> |
| 11080 |
<xccdf:title xml:lang="en">Configure an SNTP Server</xccdf:title> |
| 11081 |
<xccdf:description xml:lang="en">The SNTP server obtains time data from a remote server, and then listens on a network interface for time queries from local machines.</xccdf:description> |
| 11082 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.3.1"> |
| 11083 |
<xccdf:title xml:lang="en">Enable the NTP Daemon</xccdf:title> |
| 11084 |
<xccdf:description xml:lang="en"> |
| 11085 |
Edit the file /etc/rc.local. Add or correct the following |
| 11086 |
line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11087 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11088 |
/usr/local/sbin/ntpd -s <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11089 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11090 |
Since OpenNTPD is third-party software, it does not have |
| 11091 |
a standard startup script, so the daemon is started at boot using the local facility.</xccdf:description> |
| 11092 |
</xccdf:Group> |
| 11093 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.3.2"> |
| 11094 |
<xccdf:title xml:lang="en">Listen for Client Connections</xccdf:title> |
| 11095 |
<xccdf:description xml:lang="en"> |
| 11096 |
Edit the file /usr/local/etc/ntpd.conf. Add or correct the |
| 11097 |
following line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11098 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11099 |
listen on ipaddr <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11100 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11101 |
where ipaddr is the primary IP address of this server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11102 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11103 |
By default, ntpd does not listen for any connections over a network. Listening |
| 11104 |
must be actively enabled on NTP servers so that clients may obtain time data.</xccdf:description> |
| 11105 |
</xccdf:Group> |
| 11106 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.3.3"> |
| 11107 |
<xccdf:title xml:lang="en">Allow Legitimate NTP Clients to Access the Server</xccdf:title> |
| 11108 |
<xccdf:description xml:lang="en"> |
| 11109 |
Determine an appropriate network block, netwk , and network |
| 11110 |
mask, mask , representing the machines on your network which will synchronize to this |
| 11111 |
server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11112 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11113 |
Edit /etc/sysconfig/iptables. Add the following line, ensuring that it appears |
| 11114 |
before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11115 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11116 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport 123 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11117 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11118 |
The iptables configuration is needed because the default iptables configuration does |
| 11119 |
not allow inbound access to any services. See Section 2.5.5 for more information about |
| 11120 |
iptables.</xccdf:description> |
| 11121 |
</xccdf:Group> |
| 11122 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.10.3.3.4"> |
| 11123 |
<xccdf:title xml:lang="en">Specify a Remote NTP Server for Time Data</xccdf:title> |
| 11124 |
<xccdf:description xml:lang="en"> |
| 11125 |
Find the hostname, server-host , of an appropriate remote NTP |
| 11126 |
server. Edit the file /usr/local/etc/ ntpd.conf, and add or correct the following |
| 11127 |
line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11128 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11129 |
server server-host <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11130 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11131 |
This setting configures ntpd to obtain time data from the |
| 11132 |
remote host. To use multiple time servers, add one line for each server.</xccdf:description> |
| 11133 |
</xccdf:Group> |
| 11134 |
</xccdf:Group> |
| 11135 |
</xccdf:Group> |
| 11136 |
</xccdf:Group> |
| 11137 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11"> |
| 11138 |
<xccdf:title xml:lang="en">Mail Transfer Agent</xccdf:title> |
| 11139 |
<xccdf:description xml:lang="en"> |
| 11140 |
Mail servers are used to send and receive mail over a network on |
| 11141 |
behalf of site users. Mail is a very common service, and MTAs are frequent targets of |
| 11142 |
network attack. Ensure that machines are not running MTAs unnecessarily, and configure |
| 11143 |
needed MTAs as defensively as possible.</xccdf:description> |
| 11144 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.11.a" selected="false" severity="low" weight="10.0"> |
| 11145 |
<xccdf:title>Mail Transfer Agent</xccdf:title> |
| 11146 |
<xccdf:description>The sendmail service should be disabled.</xccdf:description> |
| 11147 |
<xccdf:ident system="http://cce.mitre.org">CCE-4416-4</xccdf:ident> |
| 11148 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 11149 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11150 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20287"/> |
| 11151 |
</xccdf:check> |
| 11152 |
</xccdf:Rule> |
| 11153 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.1"> |
| 11154 |
<xccdf:title xml:lang="en">Select Mail Server Software and Configuration</xccdf:title> |
| 11155 |
<xccdf:description xml:lang="en"> |
| 11156 |
Select one of the following options for configuring e-mail on the |
| 11157 |
machine: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11158 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11159 |
<xhtml:li>If this machine does not need to operate as a mail server, follow the |
| 11160 |
instructions in Section 3.11.2 to run sendmail in submission-only mode.</xhtml:li> |
| 11161 |
<xhtml:li>If the machine |
| 11162 |
must operate as a mail server, read the strategies for MTA configuration in Section 3.11.3 |
| 11163 |
for information about configuration options. Then apply both the MTA-independent operating |
| 11164 |
system configuration guidance in Section 3.11.4, and the specific guidance for your MTA: |
| 11165 |
<xhtml:ul> |
| 11166 |
<xhtml:li>If the Sendmail MTA is preferred, see Section 3.11.5. </xhtml:li> |
| 11167 |
<xhtml:li>If the Postfix MTA is preferred, see Section 3.11.6. </xhtml:li> |
| 11168 |
<xhtml:li>If another MTA is preferred, use that MTA's documentation to |
| 11169 |
implement the ideas in Section 3.11.3. </xhtml:li> |
| 11170 |
</xhtml:ul> |
| 11171 |
</xhtml:li> |
| 11172 |
</xhtml:ul> |
| 11173 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11174 |
It is recommended that very few machines at any |
| 11175 |
site be configured to receive mail over a network. However, it may be necessary for most |
| 11176 |
machines at a given site to send e-mail, for instance so that cron jobs can report output |
| 11177 |
to an administrator. Sendmail supports a submission-only mode in which mail can be sent |
| 11178 |
from the machine to a central site MTA, but the machine cannot receive mail over a |
| 11179 |
network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11180 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11181 |
If a Mail Transfer Agent (MTA) is needed, the system default is Sendmail. |
| 11182 |
Postfix, a popular alternative written with security in mind, is also available. Postfix |
| 11183 |
can be more effectively contained by SELinux as its modular design has resulted in |
| 11184 |
separate processes performing specific actions. More information on these MTAs is |
| 11185 |
available from their respective websites, http://www.sendmail.org and |
| 11186 |
http://www.postfix.org.</xccdf:description> |
| 11187 |
<xccdf:reference>Hildebrandt, R., and Koetter, P. The Book of Postfix. No Starch Press, 2005</xccdf:reference> |
| 11188 |
</xccdf:Group> |
| 11189 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.2"> |
| 11190 |
<xccdf:title xml:lang="en">Configure SMTP For Mail Client</xccdf:title> |
| 11191 |
<xccdf:description xml:lang="en"> |
| 11192 |
This guide discusses the use of Sendmail for submission-only |
| 11193 |
e-mail configuration. It is also possible to use Postfix.</xccdf:description> |
| 11194 |
<xccdf:reference>Hunt, C. Sendmail Cookbook. O’Reilly and Associates, 2003</xccdf:reference> |
| 11195 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.2.1"> |
| 11196 |
<xccdf:title xml:lang="en">Disable the Listening Sendmail Daemon</xccdf:title> |
| 11197 |
<xccdf:description xml:lang="en"> |
| 11198 |
Edit the file /etc/sysconfig/sendmail. Add or modify the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11199 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11200 |
DAEMON=no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11201 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11202 |
The MTA performs two functions: listening over a network for incoming SMTP |
| 11203 |
e-mail requests, and sending mail from the local machine. Since outbound mail may be |
| 11204 |
delayed due to network outages or other problems, the outbound MTA runs in a queue-only |
| 11205 |
mode, in which it periodically attempts to resend any delayed mail. Setting DAEMON=no |
| 11206 |
tells sendmail to execute only the queue runner on this machine, and never to receive |
| 11207 |
SMTP mail requests.</xccdf:description> |
| 11208 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.11.2.1.a" selected="false" weight="10.0"> |
| 11209 |
<xccdf:title>Disable the Listening Sendmail Daemon</xccdf:title> |
| 11210 |
<xccdf:description>The listening sendmail daemon should be disabled.</xccdf:description> |
| 11211 |
<xccdf:ident system="http://cce.mitre.org">CCE-4293-7</xccdf:ident> |
| 11212 |
<xccdf:fixtext>(1) via /etc/sysconfig/sendmail</xccdf:fixtext> |
| 11213 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11214 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20288"/> |
| 11215 |
</xccdf:check> |
| 11216 |
</xccdf:Rule> |
| 11217 |
</xccdf:Group> |
| 11218 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.2.2"> |
| 11219 |
<xccdf:title xml:lang="en">Configure Mail Submission if Appropriate</xccdf:title> |
| 11220 |
<xccdf:description xml:lang="en"> |
| 11221 |
If it is appropriate to configure mail submission with a |
| 11222 |
central MTA, edit /etc/mail/submit.cf. Locate the line beginning with D{MTAHost}, and |
| 11223 |
modify it to read: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11224 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11225 |
D{MTAHost}mailserver <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11226 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11227 |
where mailserver is the hostname of the server |
| 11228 |
to which this machine should forward its outgoing mail. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11229 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11230 |
This suggestion is provided as a |
| 11231 |
simple way to migrate away from a configuration in which each machine at a site runs its |
| 11232 |
own MTA, to a configuration in which client machines do not run listening daemons. If |
| 11233 |
this modification is made to /etc/mail/submit.cf, then, when a local process on a |
| 11234 |
machine attempts to send mail, the message will be forwarded to the machine mailserver |
| 11235 |
for processing. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11236 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11237 |
Modifying /etc/mail/submit.cf directly is only appropriate if your site |
| 11238 |
does not perform any other mailserver customization on clients. If other customization |
| 11239 |
is done, use your usual Sendmail change procedure to define the MTA host. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11240 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11241 |
Note: In |
| 11242 |
addition to making this change on the client, it may also be necessary to reconfigure |
| 11243 |
the MTA on mailserver so that it will relay mail on behalf of this host.</xccdf:description> |
| 11244 |
</xccdf:Group> |
| 11245 |
</xccdf:Group> |
| 11246 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.3"> |
| 11247 |
<xccdf:title xml:lang="en">Strategies for MTA Security</xccdf:title> |
| 11248 |
<xccdf:description xml:lang="en"> |
| 11249 |
This section discusses several types of MTA configuration which |
| 11250 |
should be performed in order to protect against attacks involving the mail system. Though |
| 11251 |
configuration syntax will differ depending on which MTA is in use (see Section 3.11.5 for |
| 11252 |
Sendmail configuration syntax and Section 3.11.6 for Postfix), these strategies are |
| 11253 |
generally advisable for any MTA, including ones not covered by this guide.</xccdf:description> |
| 11254 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.3.1"> |
| 11255 |
<xccdf:title xml:lang="en">Use Resource Limits to Mitigate Denial of Service</xccdf:title> |
| 11256 |
<xccdf:description xml:lang="en"> |
| 11257 |
It is often desirable to constrain an attacker's ability to |
| 11258 |
consume a mail server's resources simply by sending otherwise valid mail at a high rate, |
| 11259 |
whether maliciously or accidentally. Relevant resource limits include con106 CHAPTER 3. |
| 11260 |
SERVICES straints on: the number of MTA daemons which may run at one time, the rate at |
| 11261 |
which incoming messages may be received, the size and complexity of each message, or the |
| 11262 |
amount of mail queue space which must remain free in order for mail to be delivered.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11263 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11264 |
That last parameter deserves additional explanation. Most MTAs require queue space for |
| 11265 |
temporary files in order to process existing messages in their queues. Therefore, if the |
| 11266 |
queue filesystem is allowed to fill completely in a denial of service, the MTA will not |
| 11267 |
be able to clear its own queue even when the malicious traffic has stopped. This will |
| 11268 |
delay recovery from an attack.</xccdf:description> |
| 11269 |
</xccdf:Group> |
| 11270 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.3.2"> |
| 11271 |
<xccdf:title xml:lang="en">Configure SMTP Greeting Banner</xccdf:title> |
| 11272 |
<xccdf:description xml:lang="en"> |
| 11273 |
When remote mail senders connect to the MTA on port 25, they |
| 11274 |
are greeted by an initial banner as part of the SMTP dialogue. This banner is necessary, |
| 11275 |
but it frequently gives away too much information, including the MTA software which is |
| 11276 |
in use, and sometimes also its version number. Remote mail senders do not need this |
| 11277 |
information in order to send mail, so the banner should be changed to reveal only the |
| 11278 |
hostname (which is already known and may be useful) and the word ESMTP, to indicate that |
| 11279 |
the modern SMTP protocol variant is supported.</xccdf:description> |
| 11280 |
</xccdf:Group> |
| 11281 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.3.3"> |
| 11282 |
<xccdf:title xml:lang="en">Control Mail Relaying</xccdf:title> |
| 11283 |
<xccdf:description xml:lang="en"> |
| 11284 |
The sending of Unsolicited Bulk E-mail, referred to variously |
| 11285 |
as UBE, UCE, or spam, is a major problem on the Internet today. The security |
| 11286 |
implications of spam are that it operates as a Denial of Service attack on legitimate |
| 11287 |
e-mail use. Strategies for fighting spam receipt at your site are complex and quickly |
| 11288 |
evolving, and thus far beyond the scope of this guide. The problem of relaying |
| 11289 |
unauthorized e-mail, however, can and should be addressed by any network-connected site.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11290 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11291 |
Most MTAs perform two functions: to accept mail from remote sites on behalf of local |
| 11292 |
users, and to allow local users to send mail to remote sites. The former function is |
| 11293 |
relatively easy — mail whose recipient address is local can be assumed to be destined |
| 11294 |
for a local user. The latter function is more complex. Since it is typically considered |
| 11295 |
neither secure nor desirable for users to log in to the MTA host itself to send mail, |
| 11296 |
the MTA must be able to remotely accept mail addressed to anyone from the user's |
| 11297 |
workstation. If the MTA is running very old software or is configured poorly, it can be |
| 11298 |
possible for attackers to take advantage of this feature, using your MTA to relay their |
| 11299 |
spam from one remote site to another. This is undesirable for many reasons, not least |
| 11300 |
that your site will quickly be denylisted as a spam source, leaving you unable to send |
| 11301 |
legitimate e-mail to your correspondents. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11302 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11303 |
The simplest solution described in this guide |
| 11304 |
is to configure the MTA to relay mail only from the local site's address range, and some |
| 11305 |
variant on this is the default for most modern MTAs. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11306 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11307 |
That solution may be insufficient |
| 11308 |
for sites whose users need to send mail from remote machines, for instance while |
| 11309 |
travelling, as well as for sites where mail submission must be accepted from network |
| 11310 |
ranges which are not considered secure, either because authorized machines are unmanaged |
| 11311 |
or because it is possible to connect unauthorized machines to the network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11312 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11313 |
If remote or |
| 11314 |
mobile hosts are authorized to relay, or if local clients exist in insecure netblocks, |
| 11315 |
the SMTP AUTH protocol should be used to require mail senders to authenticate before |
| 11316 |
submitting messages. For better protection and to allow support for a wide range of |
| 11317 |
authentication mechanisms without sending passwords over a network in clear text, SMTP |
| 11318 |
AUTH transactions should be encrypted using SSL. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11319 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11320 |
Another approach is to require mail to |
| 11321 |
be submitted on port 587, the designated Message Submission Port. Use of a separate port |
| 11322 |
allows the mail relay function to be entirely separated from the mail delivery function. |
| 11323 |
This may become a best practice in the future, but description of how to configure the |
| 11324 |
Message Submission Port is currently beyond the scope of this guide. See RFC 2476 for |
| 11325 |
information about this configuration.</xccdf:description> |
| 11326 |
</xccdf:Group> |
| 11327 |
</xccdf:Group> |
| 11328 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4"> |
| 11329 |
<xccdf:title xml:lang="en">Configure Operating System to Protect Mail Server</xccdf:title> |
| 11330 |
<xccdf:description xml:lang="en"> |
| 11331 |
The guidance in this section is appropriate for any host which is |
| 11332 |
operating as a site MTA, whether the mail server runs using Sendmail, Postfix, or some |
| 11333 |
other software.</xccdf:description> |
| 11334 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.1"> |
| 11335 |
<xccdf:title xml:lang="en">Use Separate Hosts for External and Internal Mail if Possible</xccdf:title> |
| 11336 |
<xccdf:description xml:lang="en"> |
| 11337 |
The mail server is a frequent target of network attack from the |
| 11338 |
outside. However, since all site users receive mail, the mail server must be open to |
| 11339 |
some connection from each inside users. It is strongly recommended that these functions |
| 11340 |
be separated, by having an externally visible mail server which processes all incoming |
| 11341 |
and outgoing mail, then forwards internal mail to a separate machine from which users |
| 11342 |
can access it.</xccdf:description> |
| 11343 |
</xccdf:Group> |
| 11344 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.2"> |
| 11345 |
<xccdf:title xml:lang="en">Protect the MTA Host from User Access</xccdf:title> |
| 11346 |
<xccdf:description xml:lang="en"> |
| 11347 |
The mail server contains privileged data belonging to all users |
| 11348 |
and performs a vital network function. Preventing users from logging into this server is |
| 11349 |
a precaution against privilege escalation or denial of service attacks which might |
| 11350 |
compromise the mail service. Take steps to ensure that only system administrators are |
| 11351 |
allowed shell access to the MTA host.</xccdf:description> |
| 11352 |
</xccdf:Group> |
| 11353 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.3"> |
| 11354 |
<xccdf:title xml:lang="en">Restrict Remote Access to the Mail Spool</xccdf:title> |
| 11355 |
<xccdf:description xml:lang="en"> |
| 11356 |
If users directly connect to this machine to receive mail, |
| 11357 |
ensure that there is a single, well-secured mechanism for access to the directory |
| 11358 |
/var/spool/mail (the directory /var/mail is a symlink to this). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11359 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11360 |
Allowing unrestricted |
| 11361 |
access to /var/spool/mail can be dangerous, since this directory contains sensitive |
| 11362 |
information belonging to all users. Protocols such as NFS, which have an insecure |
| 11363 |
authorization mechanism by default, should be considered insufficient for these |
| 11364 |
purposes. See Section 3.17 for details on secure configuration of POP3 or IMAP, which |
| 11365 |
are the preferred ways to provide user access to mail.</xccdf:description> |
| 11366 |
</xccdf:Group> |
| 11367 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.4"> |
| 11368 |
<xccdf:title xml:lang="en">Configure iptables to Allow Access to the Mail Server</xccdf:title> |
| 11369 |
<xccdf:description xml:lang="en"> |
| 11370 |
Edit /etc/sysconfig/iptables. Add the following line, ensuring |
| 11371 |
that it appears before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11372 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11373 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 25 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11374 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11375 |
The default |
| 11376 |
Iptables configuration does not allow inbound access to the SMTP service. This |
| 11377 |
modification allows that access, while keeping other ports on the server in their |
| 11378 |
default protected state. See Section 2.5.5 for more information about Iptables.</xccdf:description> |
| 11379 |
</xccdf:Group> |
| 11380 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.5"> |
| 11381 |
<xccdf:title xml:lang="en">Verify System Logging and Log Permissions for Mail</xccdf:title> |
| 11382 |
<xccdf:description xml:lang="en"> |
| 11383 |
Edit the file /etc/syslog.conf. Add or correct the following |
| 11384 |
line if necessary (this is the default): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11385 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11386 |
mail.* -/var/log/maillog <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11387 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11388 |
Run the following commands to ensure correct permissions on the mail log: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11389 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11390 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:root /var/log/maillog <xhtml:br/> |
| 11391 |
# chmod 600 /var/log/maillog <xhtml:br/></xhtml:code> |
| 11392 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11393 |
The mail server logs contain a record of |
| 11394 |
every e-mail which is sent or received on the system, which is considered sensitive |
| 11395 |
information by most sites. It is necessary that these logs be collected for purposes of |
| 11396 |
debugging and statistics, but their contents should be protected from unauthorized |
| 11397 |
access.</xccdf:description> |
| 11398 |
</xccdf:Group> |
| 11399 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.6"> |
| 11400 |
<xccdf:title xml:lang="en">Configure SSL Certificates for Use with SMTP AUTH</xccdf:title> |
| 11401 |
<xccdf:description xml:lang="en"> |
| 11402 |
If SMTP AUTH is to be used (see Section 3.11.3.3 for a |
| 11403 |
description of possible anti-relaying mechanisms), the use of SSL to protect credentials |
| 11404 |
in transit is strongly recommended. There are also configurations for which it may be |
| 11405 |
desirable to encrypt all mail in transit from one MTA to another, though such |
| 11406 |
configurations are beyond the scope of this guide. In either event, the steps for |
| 11407 |
creating and installing an SSL certificate are independent of the MTA in use, and are |
| 11408 |
described here.</xccdf:description> |
| 11409 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.6.1"> |
| 11410 |
<xccdf:title xml:lang="en">Create an SSL Certificate</xccdf:title> |
| 11411 |
<xccdf:description xml:lang="en"> |
| 11412 |
Note: This step must be performed on your CA system, not on |
| 11413 |
the MTA host itself. If you will have a commercial CA sign certificates, then this |
| 11414 |
step should be performed on a separate, physically secure system devoted to that |
| 11415 |
purpose. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11416 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11417 |
Change into the CA certificate directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11418 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11419 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/pki/tls/certs <xhtml:br/></xhtml:code> |
| 11420 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11421 |
Generate a key pair for the mail server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11422 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11423 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl genrsa -out mailserverkey.pem 2048 <xhtml:br/></xhtml:code> |
| 11424 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11425 |
Next, |
| 11426 |
generate a certificate signing request (CSR) for the CA to sign, making sure to supply |
| 11427 |
your mail server's fully qualified domain name as the Common Name: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11428 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11429 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl req -new -key mailserverkey.pem -out mailserver.csr <xhtml:br/></xhtml:code> |
| 11430 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11431 |
Next, the mail server CSR must be signed to |
| 11432 |
create the mail server certificate. You can either send the CSR to an established CA |
| 11433 |
or sign it with your CA. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11434 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11435 |
To sign mailserver.csr using your CA: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11436 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11437 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl ca -in mailserver.csr -out mailservercert.pem <xhtml:br/></xhtml:code> |
| 11438 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11439 |
This step creates a private key, |
| 11440 |
mailserverkey.pem, and a public certificate, mailservercert.pem. The mail server will |
| 11441 |
use these to prove its identity by demonstrating that it has a certificate which has |
| 11442 |
been signed by a CA. Mail clients at your site should be willing to send their mail |
| 11443 |
only to a server they can authenticate.</xccdf:description> |
| 11444 |
</xccdf:Group> |
| 11445 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.4.6.2"> |
| 11446 |
<xccdf:title xml:lang="en">Install the SSL Certificate</xccdf:title> |
| 11447 |
<xccdf:description xml:lang="en"> |
| 11448 |
Create the PKI directory for mail certificates, if it does |
| 11449 |
not already exist: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11450 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11451 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># mkdir /etc/pki/tls/mail <xhtml:br/> |
| 11452 |
# chown root:root /etc/pki/tls/mail <xhtml:br/> |
| 11453 |
# chmod 755 /etc/pki/tls/mail <xhtml:br/></xhtml:code> |
| 11454 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11455 |
Using removable media or some other secure transmission |
| 11456 |
format, install the files generated in the previous step onto the mail server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11457 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11458 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11459 |
<xhtml:li>/etc/pki/tls/mail/serverkey.pem: the private key mailserverkey.pem</xhtml:li> |
| 11460 |
<xhtml:li>/etc/pki/tls/mail/servercert.pem: the certificate file mailservercert.pem</xhtml:li> |
| 11461 |
</xhtml:ul> |
| 11462 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11463 |
Verify the ownership and permissions of these files: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11464 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11465 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:root /etc/pki/tls/mail/serverkey.pem <xhtml:br/> |
| 11466 |
# chown root:root /etc/pki/tls/mail/servercert.pem <xhtml:br/> |
| 11467 |
# chmod 600 /etc/pki/tls/mail/serverkey.pem <xhtml:br/> |
| 11468 |
# chmod 644 /etc/pki/tls/mail/servercert.pem<xhtml:br/></xhtml:code> |
| 11469 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11470 |
Verify that the CA's public certificate file has been installed as |
| 11471 |
/etc/pki/tls/CA/cacert.pem, and has the correct permissions: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11472 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11473 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:root /etc/pki/tls/CA/cacert.pem <xhtml:br/> |
| 11474 |
# chmod 644 /etc/pki/tls/CA/cacert.pem</xhtml:code></xccdf:description> |
| 11475 |
</xccdf:Group> |
| 11476 |
</xccdf:Group> |
| 11477 |
</xccdf:Group> |
| 11478 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5"> |
| 11479 |
<xccdf:title xml:lang="en">Configure Sendmail Server if Necessary</xccdf:title> |
| 11480 |
<xccdf:description xml:lang="en"> |
| 11481 |
When sendmail is configured to act as a server for incoming mail, |
| 11482 |
it listens on port 25 for connections, and responds to those connections using the |
| 11483 |
configuration in /etc/mail/sendmail.cf. This file has a somewhat opaque format, and |
| 11484 |
modifying it directly is generally not recommended. Instead, the following procedure |
| 11485 |
should be used to modify the sendmail configuration: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11486 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11487 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11488 |
<xhtml:li>Install the sendmail-cf RPM, which |
| 11489 |
is required in order to compile a new configuration file: <xhtml:br/> |
| 11490 |
<xhtml:br/> |
| 11491 |
<xhtml:code># yum install sendmail-cf<xhtml:br/></xhtml:code></xhtml:li> |
| 11492 |
<xhtml:li>Edit the M4 source file /etc/mail/sendmail.mc as directed by the configuration step you |
| 11493 |
are applying. </xhtml:li> |
| 11494 |
<xhtml:li>Inside the directory /etc/mail/, use make to build the configuration |
| 11495 |
according to the Makefile provided by Sendmail: <xhtml:br/> |
| 11496 |
<xhtml:br/> |
| 11497 |
<xhtml:code># cd /etc/mail <xhtml:br/> |
| 11498 |
# make sendmail.cf</xhtml:code></xhtml:li> |
| 11499 |
</xhtml:ol></xccdf:description> |
| 11500 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.1"> |
| 11501 |
<xccdf:title xml:lang="en">Limit Denial of Service Attacks</xccdf:title> |
| 11502 |
<xccdf:description xml:lang="en"> |
| 11503 |
Edit /etc/mail/sendmail.mc, and add or correct the following |
| 11504 |
options: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11505 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11506 |
define(`confMAX_DAEMON_CHILDREN',`40')dnl |
| 11507 |
define(`confCONNECTION_RATE_THROTTLE', `3 ')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11508 |
define(`confMIN_FREE_BLOCKS',`20971520')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11509 |
define(`confMAX_HEADERS_LENGTH',`51200')dnl<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11510 |
define(`confMAX_MESSAGE_SIZE',`10485760')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11511 |
define(`confMAX_RCPTS_PER_MESSAGE',`100')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11512 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11513 |
Note: The values given here are examples, and may need to be modified for any |
| 11514 |
particular site, especially one with high e-mail volume. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11515 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11516 |
These configuration options |
| 11517 |
serve to make it more difficult for attackers to consume resources on the MTA host. (See |
| 11518 |
Section 3.11.3.1 for details on why this is done.) The MAX DAEMON CHILDREN option limits |
| 11519 |
the number of sendmail processes which may be deployed to handle incoming connections at |
| 11520 |
any one time, while CONNECTION RATE THROTTLE limits the number of connections per second |
| 11521 |
which each listener may receive. The MIN FREE BLOCKS option stops e-mail receipt when |
| 11522 |
the queue filesystem is close to full. The MAX HEADERS LENGTH (bytes), MAX MESSAGE SIZE |
| 11523 |
(bytes), and MAX RCPTS PER MESSAGE (distinct recipients) options place bounds on the |
| 11524 |
legal sizes of messages received via SMTP.</xccdf:description> |
| 11525 |
</xccdf:Group> |
| 11526 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.2"> |
| 11527 |
<xccdf:title xml:lang="en">Configure SMTP Greeting Banner</xccdf:title> |
| 11528 |
<xccdf:description xml:lang="en"> |
| 11529 |
Edit /etc/mail/sendmail.mc, and add or correct the following |
| 11530 |
line, substituting an appropriate greeting string for $j : <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11531 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11532 |
define(`confSMTP_LOGIN_MSG', `$j ')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11533 |
and recompile sendmail's configuration. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11534 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11535 |
The default greeting banner discloses |
| 11536 |
that the listening mail process is Sendmail rather than some other MTA, and also |
| 11537 |
provides the version number. See Section 2.3.7 for more about warning banners, and |
| 11538 |
Section 3.11.3.2 for strategies regarding SMTP greeting banners in particular. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11539 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11540 |
The Sendmail variable $j contains the hostname of the mail server, which may be an |
| 11541 |
appropriate greeting string for most environments.</xccdf:description> |
| 11542 |
</xccdf:Group> |
| 11543 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.3"> |
| 11544 |
<xccdf:title xml:lang="en">Control Mail Relaying</xccdf:title> |
| 11545 |
<xccdf:description xml:lang="en"> |
| 11546 |
This guide will discuss two mechanisms for controlling mail |
| 11547 |
relaying in Sendmail. The /etc/mail/relay-domains file contains a list of hostnames that |
| 11548 |
are allowed to relay mail. Follow the guidance in Section 3.11.5.3.1 to configure |
| 11549 |
relaying for trusted machines. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11550 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11551 |
If there are machines which must be allowed to relay |
| 11552 |
mail, but which cannot be trusted to relay unconditionally, configure SMTP AUTH with TLS |
| 11553 |
support using the guidance in Sections 3.11.5.3.2 and following.</xccdf:description> |
| 11554 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.3.1"> |
| 11555 |
<xccdf:title xml:lang="en">Configure Trusted Networks and Hosts</xccdf:title> |
| 11556 |
<xccdf:description xml:lang="en"> |
| 11557 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11558 |
<xhtml:li>If all machines which share a common domain or subdomain |
| 11559 |
name may relay, then edit /etc/mail/ relay-domains, adding a line for each domain or |
| 11560 |
subdomain, e.g.: <xhtml:br/> |
| 11561 |
<xhtml:br/> |
| 11562 |
example.com <xhtml:br/> |
| 11563 |
trusted-subnet.school.edu <xhtml:br/> |
| 11564 |
... </xhtml:li> |
| 11565 |
<xhtml:li>If the machines which are |
| 11566 |
allowed to relay must be specified on a per-host basis, then edit /etc/mail/ |
| 11567 |
relay-domains, adding a line for each such host: <xhtml:br/> |
| 11568 |
<xhtml:br/> |
| 11569 |
host1.example.com<xhtml:br/> |
| 11570 |
host5.subnet.example.com <xhtml:br/> |
| 11571 |
smtp.trusted-subnet.school.edu <xhtml:br/> |
| 11572 |
<xhtml:br/> |
| 11573 |
Then edit /etc/mail/sendmail.mc, add or correct the line: <xhtml:br/> |
| 11574 |
<xhtml:br/> |
| 11575 |
FEATURE(`relay_hosts_only')dnl <xhtml:br/> |
| 11576 |
<xhtml:br/> |
| 11577 |
and recompile sendmail's configuration. </xhtml:li> |
| 11578 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11579 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11580 |
The file /etc/mail/relay-domains must contain only |
| 11581 |
the set of machines for which this MTA should unconditionally relay mail. This |
| 11582 |
configures both inbound and outbound relaying, that is, hosts mentioned in |
| 11583 |
relay-domains may send mail through the MTA, and the MTA will also accept inbound mail |
| 11584 |
addressed to such hosts. This is a trust relationship — if spammers gain access to |
| 11585 |
these machines, your site will effectively become an open relay. It is recommended |
| 11586 |
that only machines which are managed by you or by another trusted organization be |
| 11587 |
placed in relay-domains, and that users of all other machines be required to use SMTP |
| 11588 |
AUTH to send mail. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11589 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11590 |
Note: The relay-domains file must be configured to contain either a |
| 11591 |
list of domains (in which case every host in each of those domains will be allowed to |
| 11592 |
relay) or a list of hosts (in which case each individual relaying host must be listed |
| 11593 |
and the sendmail.cf must be reconfigured to interpret the relay-domains file in the |
| 11594 |
desired way).</xccdf:description> |
| 11595 |
</xccdf:Group> |
| 11596 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.3.2"> |
| 11597 |
<xccdf:title xml:lang="en">Require SMTP AUTH Before Relaying from Untrusted Clients</xccdf:title> |
| 11598 |
<xccdf:description xml:lang="en"> |
| 11599 |
By default, Sendmail uses the Cyrus-SASL library to provide |
| 11600 |
authentication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11601 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11602 |
To enable the use of SASL authentication for relaying, edit |
| 11603 |
/etc/mail/sendmail.mc and add or correct the following settings:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11604 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11605 |
TRUST_AUTH_MECH(`LOGIN PLAIN') <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11606 |
define(`confAUTH_MECHANISMS', `LOGIN PLAIN') <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11607 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11608 |
and recompile sendmail.cf. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11609 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11610 |
Then edit /usr/lib/sasl2/Sendmail.conf and add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11611 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11612 |
pwcheck_method: saslauthd <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11613 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11614 |
Enable the saslauthd daemon: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11615 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig saslauthd on <xhtml:br/></xhtml:code> |
| 11616 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11617 |
The AUTH MECHANISMS configuration option tells sendmail to allow the |
| 11618 |
specified authentication mechanisms to be used during the SMTP dialogue. The two |
| 11619 |
listed mechanisms use SASL to test a password provided by the user. Since these |
| 11620 |
mechanisms transmit plaintext passwords, they should be protected using TLS as |
| 11621 |
described in the next section. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11622 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11623 |
The TRUST AUTH MECH command tells sendmail that senders |
| 11624 |
who successfully authenticate using the specified mechanism may relay mail through |
| 11625 |
this MTA even if their addresses are not in relay-domains. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11626 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11627 |
The file |
| 11628 |
/usr/lib/sasl/Sendmail.conf is the Cyrus-SASL configuration file for Sendmail. The |
| 11629 |
pwcheck method directive tells SASL how to find passwords. The simplest method, |
| 11630 |
described here, is to run a separate authentication daemon, saslauthd, which is able |
| 11631 |
to communicate with the system authentication service. On Red Hat, saslauthd uses PAM |
| 11632 |
by default, which should work in most cases. If you have a centralized authentication |
| 11633 |
system which does not work via PAM, look at the saslauthd(8) manpage to determine how |
| 11634 |
to configure saslauthd for your environment.</xccdf:description> |
| 11635 |
</xccdf:Group> |
| 11636 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.5.3.3"> |
| 11637 |
<xccdf:title xml:lang="en">Require TLS for SMTP AUTH</xccdf:title> |
| 11638 |
<xccdf:description xml:lang="en"> |
| 11639 |
Edit /etc/mail/sendmail.mc, add or correct the following |
| 11640 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11641 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11642 |
define(`confAUTH_OPTIONS', `A p')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11643 |
define(`confCACERT_PATH', `/etc/pki/tls/CA')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11644 |
define(`confCACERT', `/etc/pki/tls/CA/cacert.pem')dnl<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11645 |
define(`confSERVER_CERT', `/etc/pki/tls/mail/servercert.pem')dnl<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11646 |
define(`confSERVER_KEY', `/etc/pki/tls/mail/serverkey.pem')dnl <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11647 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11648 |
and recompile sendmail.cf. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11649 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11650 |
These options, combined with the previous settings, tell Sendmail to |
| 11651 |
protect all SMTP AUTH transactions using TLS. The first four options describe the |
| 11652 |
location of the necessary TLS certificate and key files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11653 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11654 |
The AUTH OPTIONS parameter |
| 11655 |
configures the SMTP AUTH dialogue. The A option is enabled by default, and simply says |
| 11656 |
that authentication is allowed if an appropriate mechanism can be found. The p option |
| 11657 |
tells Sendmail to protect against passive attacks. The PLAIN and LOGIN authentication |
| 11658 |
mechanisms, recommended by this guide for compatibility with PAM, send passwords in |
| 11659 |
the clear. (Cleartext password transmissions are vulnerable to passive attack.) |
| 11660 |
Therefore, if p is set, the SMTP daemon will not make the AUTH command available until |
| 11661 |
after the client has used the STARTTLS command to encrypt the session. If other |
| 11662 |
authentication mechanisms were enabled which did not send passwords in the clear, then |
| 11663 |
TLS would not necessarily be required.</xccdf:description> |
| 11664 |
</xccdf:Group> |
| 11665 |
</xccdf:Group> |
| 11666 |
</xccdf:Group> |
| 11667 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6"> |
| 11668 |
<xccdf:title xml:lang="en">Configure Postfix if Necessary</xccdf:title> |
| 11669 |
<xccdf:description xml:lang="en"> |
| 11670 |
Postfix stores its configuration files in the directory |
| 11671 |
/etc/postfix by default. The primary configuration file is /etc/postfix/main.cf. Other |
| 11672 |
files will be introduced as needed.</xccdf:description> |
| 11673 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.1"> |
| 11674 |
<xccdf:title xml:lang="en">Limit Denial of Service Attacks</xccdf:title> |
| 11675 |
<xccdf:description xml:lang="en"> |
| 11676 |
Edit /etc/postfix/main.cf. Add or correct the following lines:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11677 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11678 |
default_process_limit = 100 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11679 |
smtpd_client_connection_count_limit = 10<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11680 |
smtpd_client_connection_rate_limit = 30 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11681 |
queue_minfree = 20971520 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11682 |
header_size_limit = 51200 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11683 |
message_size_limit = 10485760 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11684 |
smtpd_recipient_limit = 100 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11685 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11686 |
Note: The values given |
| 11687 |
here are examples, and may need to be modified for any particular site. By default, the |
| 11688 |
Postfix anvil process gathers mail receipt statistics. To get information about about |
| 11689 |
what connection rates are typical at your site, look in /var/log/maillog for lines with |
| 11690 |
the daemon name postfix/anvil. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11691 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11692 |
These configuration options serve to make it more |
| 11693 |
difficult for attackers to consume resources on the MTA host. (See Section 3.11.3.1 for |
| 11694 |
details on why this is done.) The default process limit parameter controls how many |
| 11695 |
smtpd processes can exist at a time, while smtpd_client_connection_count_limit controls |
| 11696 |
the number of those which can be occupied by any one remote sender, and |
| 11697 |
smtpd_client_connection_rate_limit controls the number of connections any one client |
| 11698 |
can make per minute. By default, local hosts (those in mynetworks) are exempted from |
| 11699 |
per-client rate limiting. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11700 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11701 |
The queue_minfree parameter establishes a free space threshold, in order to |
| 11702 |
stop e-mail receipt before the queue filesystem is entirely full. The header_size_limit, |
| 11703 |
message_size_limit, and smtpd recipient limit parameters place bounds on the legal sizes |
| 11704 |
of messages received via SMTP.</xccdf:description> |
| 11705 |
</xccdf:Group> |
| 11706 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.2"> |
| 11707 |
<xccdf:title xml:lang="en">Configure SMTP Greeting Banner</xccdf:title> |
| 11708 |
<xccdf:description xml:lang="en"> |
| 11709 |
Edit /etc/postfix/main.cf, and add or correct the following |
| 11710 |
line, substituting some other wording for the banner information if you prefer:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11711 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11712 |
smtpd_banner = $myhostname ESMTP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11713 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11714 |
The default greeting banner discloses that the |
| 11715 |
listening mail process is Postfix. See Section 2.3.7 for more about warning banners, and |
| 11716 |
Section 3.11.3.2 for strategies regarding SMTP greeting banners in particular.</xccdf:description> |
| 11717 |
</xccdf:Group> |
| 11718 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.3"> |
| 11719 |
<xccdf:title xml:lang="en">Control Mail Relaying</xccdf:title> |
| 11720 |
<xccdf:description xml:lang="en"> |
| 11721 |
Postfix's mail relay controls are implemented with the help of |
| 11722 |
the smtpd recipient restrictions option, which controls the restrictions placed on the |
| 11723 |
SMTP dialogue once the sender and recipient envelope addresses are known. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11724 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11725 |
The guidance |
| 11726 |
in Sections 3.11.6.3.1–3.11.6.3.2 should be applied to all machines. If there are |
| 11727 |
machines which must be allowed to relay mail, but which cannot be trusted to relay |
| 11728 |
unconditionally, configure SMTP AUTH with SSL support using the guidance in Sections |
| 11729 |
3.11.6.3.3 and following.</xccdf:description> |
| 11730 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.3.1"> |
| 11731 |
<xccdf:title xml:lang="en">Configure Trusted Networks and Hosts</xccdf:title> |
| 11732 |
<xccdf:description xml:lang="en"> |
| 11733 |
Edit /etc/postfix/main.cf, and configure the contents of the |
| 11734 |
mynetworks variable in one of the following ways: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11735 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11736 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11737 |
<xhtml:li>If any machine in the subnet |
| 11738 |
containing the MTA may be trusted to relay messages, add or correct the line:<xhtml:br/> |
| 11739 |
<xhtml:br/> |
| 11740 |
mynetworks_style = subnet </xhtml:li> |
| 11741 |
<xhtml:li>If only the MTA host itself is trusted to relay messages, |
| 11742 |
add or correct: <xhtml:br/> |
| 11743 |
<xhtml:br/> |
| 11744 |
mynetworks_style = host </xhtml:li> |
| 11745 |
<xhtml:li>If the set of machines which can relay is |
| 11746 |
more complicated, manually specify an entry for each netblock or IP address which is |
| 11747 |
trusted to relay by setting the mynetworks variable directly: <xhtml:br/> |
| 11748 |
<xhtml:br/> |
| 11749 |
mynetworks = 10.0.0.0/16 , 192.168.1.0/24 , 127.0.0.1 </xhtml:li> |
| 11750 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11751 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11752 |
The mynetworks variable must contain only the set of |
| 11753 |
machines for which this MTA should unconditionally relay mail. This is a trust |
| 11754 |
relationship — if spammers gain access to these machines, your site will effectively |
| 11755 |
become an open relay. It is recommended that only machines which are managed by you or |
| 11756 |
by another trusted organization be placed in mynetworks, and users of all other |
| 11757 |
machines be required to use SMTP AUTH to send mail.</xccdf:description> |
| 11758 |
</xccdf:Group> |
| 11759 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.3.2"> |
| 11760 |
<xccdf:title xml:lang="en">Allow Unlimited Relaying for Trusted Networks Only</xccdf:title> |
| 11761 |
<xccdf:description xml:lang="en"> |
| 11762 |
Edit /etc/postfix/main.cf, and add or correct the smtpd |
| 11763 |
recipient restrictions definition so that it contains at least:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11764 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11765 |
smtpd_recipient_restrictions = <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11766 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11767 |
permit_mynetworks, <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11768 |
reject_unauth_destination, <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11769 |
...<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11770 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11771 |
The full contents of smtpd recipient restrictions will vary by site, since this is a |
| 11772 |
common place to put spam restrictions and other site-specific options. The permit |
| 11773 |
mynetworks option allows all mail to be relayed from the machines in mynetworks. Then, |
| 11774 |
the reject unauth destination option denies all mail whose destination address is not |
| 11775 |
local, preventing any other machines from relaying. These two options should always |
| 11776 |
appear in this order, and should usually follow one another immediately unless SMTP |
| 11777 |
AUTH is used.</xccdf:description> |
| 11778 |
</xccdf:Group> |
| 11779 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.3.3"> |
| 11780 |
<xccdf:title xml:lang="en">Require SMTP AUTH Before Relaying from Untrusted Clients</xccdf:title> |
| 11781 |
<xccdf:description xml:lang="en"> |
| 11782 |
SMTP authentication allows remote clients to relay mail |
| 11783 |
safely by requiring them to authenticate before submitting mail. Postfix's SMTP AUTH |
| 11784 |
uses an authentication library called SASL, which is not part of Postfix itself. This |
| 11785 |
section describes how to configure authentication using the Cyrus-SASL implementation. |
| 11786 |
See below for a discussion of other options. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11787 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11788 |
To enable the use of SASL authentication, |
| 11789 |
edit /etc/postfix/main.cf and add or correct the following settings:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11790 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11791 |
smtpd_sasl_auth_enable = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11792 |
smtpd_recipient_restrictions = <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11793 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11794 |
permit_mynetworks,<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11795 |
permit_sasl_authenticated, <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11796 |
reject_unauth_destination, <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11797 |
...<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11798 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11799 |
Then edit |
| 11800 |
/usr/lib/sasl/smtpd.conf and add or correct the following line with the correct |
| 11801 |
authentication mechanism for SASL to use: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11802 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11803 |
pwcheck_method: saslauthd <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11804 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11805 |
Enable the saslauthd daemon: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11806 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11807 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig saslauthd on <xhtml:br/></xhtml:code> |
| 11808 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11809 |
Postfix can use either the Cyrus library or |
| 11810 |
Dovecot as a source for SASL authentication. If this host is running Dovecot for some |
| 11811 |
other reason, it is recommended that Dovecot's SASL support be used instead of running |
| 11812 |
the Cyrus code as well. See http://www.postfix.org/SASL README.html for instructions |
| 11813 |
on implementing that configuration, which is not described in this guide. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11814 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11815 |
In Postfix's |
| 11816 |
configuration, the directive smtpd sasl auth enable tells smtpd to allow the use of |
| 11817 |
the SMTP AUTH command during the SMTP dialogue, and to support that command by getting |
| 11818 |
authentication information from SASL. The smtpd recipient restrictions directive is |
| 11819 |
changed so that, if the client is not connecting from a trusted address, it is allowed |
| 11820 |
to attempt authentication (permit sasl authenticated) in order to relay mail. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11821 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11822 |
The file |
| 11823 |
/usr/lib/sasl/smtpd.conf is the Cyrus-SASL configuration file. The pwcheck method |
| 11824 |
directive tells SASL how to find passwords. The simplest method, described above, is |
| 11825 |
to run a separate authentication daemon, saslauthd, which is able to communicate with |
| 11826 |
the system authentication system. On RHEL5, saslauthd uses PAM by default, which |
| 11827 |
should work in most cases. If you have a centralized authentication system which does |
| 11828 |
not work via PAM, look at the saslauthd(8) manpage to find out how to configure |
| 11829 |
saslauthd for your environment.</xccdf:description> |
| 11830 |
</xccdf:Group> |
| 11831 |
</xccdf:Group> |
| 11832 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.11.6.4"> |
| 11833 |
<xccdf:title xml:lang="en">Require TLS for SMTP AUTH</xccdf:title> |
| 11834 |
<xccdf:description xml:lang="en"> |
| 11835 |
Edit /etc/postfix/main.cf, and add or correct the following |
| 11836 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11837 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11838 |
smtpd_tls_CApath = /etc/pki/tls/CA <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11839 |
smtpd_tls_CAfile = /etc/pki/tls/CA/cacert.pem<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11840 |
smtpd_tls_cert_file = /etc/pki/tls/mail/servercert.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11841 |
smtpd_tls_key_file = /etc/pki/tls/mail/serverkey.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11842 |
smtpd_tls_security_level = may <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11843 |
smtpd_tls_auth_only = yes<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11844 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11845 |
These options tell Postfix to protect all SMTP AUTH transactions using TLS. The first |
| 11846 |
four options describe the locations of the necessary TLS key files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11847 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11848 |
The smtpd_tls_security_level directive tells smtpd to allow the STARTTLS command during the SMTP |
| 11849 |
protocol exchange, but not to require it for mail senders. (Unless your site receives |
| 11850 |
mail only from other trusted sites whose sysadmins can be asked to maintain a copy of |
| 11851 |
your site certificate, you do not want to require TLS for all SMTP exchanges.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11852 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11853 |
The smtpd_tls_auth_only directive tells smtpd to require the STARTTLS command before allowing the |
| 11854 |
client to attempt to authenticate for relaying using SMTP AUTH. It may not be possible |
| 11855 |
to use this directive if you must allow relaying from non-TLS-capable client software. |
| 11856 |
If this is the case, simply omit that line.</xccdf:description> |
| 11857 |
</xccdf:Group> |
| 11858 |
</xccdf:Group> |
| 11859 |
</xccdf:Group> |
| 11860 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12"> |
| 11861 |
<xccdf:title xml:lang="en">LDAP</xccdf:title> |
| 11862 |
<xccdf:description xml:lang="en"> |
| 11863 |
LDAP is a popular directory service, that is, a standardized way of |
| 11864 |
looking up information from a central database. It is relatively simple to configure a RHEL5 |
| 11865 |
machine to obtain authentication information from an LDAP server. If your network uses LDAP |
| 11866 |
for authentication, be sure to configure both clients and servers securely.</xccdf:description> |
| 11867 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.1"> |
| 11868 |
<xccdf:title xml:lang="en">Use OpenLDAP to Provide LDAP Service if Possible</xccdf:title> |
| 11869 |
<xccdf:description xml:lang="en"> |
| 11870 |
The system's default LDAP client/server program is called |
| 11871 |
OpenLDAP. Its documentation is available at the project web page: http://www.openldap.org.</xccdf:description> |
| 11872 |
</xccdf:Group> |
| 11873 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.2"> |
| 11874 |
<xccdf:title xml:lang="en">Configure OpenLDAP Clients</xccdf:title> |
| 11875 |
<xccdf:description xml:lang="en"> |
| 11876 |
This guide recommends configuring OpenLDAP clients by manually |
| 11877 |
editing the appropriate configuration files. RHEL5 provides an automated configuration |
| 11878 |
tool called authconfig and a graphical wrapper for authconfig called |
| 11879 |
system-config-authentication. However, these tools do not give sufficient flexibility over |
| 11880 |
configuration. The authconfig tools do not allow you to specify locations of SSL |
| 11881 |
certificate files, which is useful when trying to use SSL cleanly across several |
| 11882 |
protocols. They are also overly aggressive in placing services such as netgroups and |
| 11883 |
automounter maps under LDAP control, where it is safer to use LDAP only for services to |
| 11884 |
which it is relevant in your environment.</xccdf:description> |
| 11885 |
<xccdf:warning xml:lang="en">Before configuring any machine to be an LDAP client, ensure that |
| 11886 |
a working LDAP server is present on the network. See Section 3.12.3 for instructions on |
| 11887 |
configuring an LDAP server. </xccdf:warning> |
| 11888 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.2.1"> |
| 11889 |
<xccdf:title xml:lang="en">Configure the Appropriate LDAP Parameters for the Domain</xccdf:title> |
| 11890 |
<xccdf:description xml:lang="en"> |
| 11891 |
Assume the fully qualified host name of your LDAP server is |
| 11892 |
ldap.example.com and the base DN of your domain is dc=example,dc=com (it is conventional |
| 11893 |
to use the domain name as a base DN). Edit /etc/ldap. conf, and add or correct the |
| 11894 |
following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11895 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11896 |
base dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11897 |
uri ldap://ldap.example.com/ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11898 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11899 |
Then edit /etc/openldap/ldap.conf, and add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11900 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11901 |
BASE dc=example,dc=com<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11902 |
URI ldap://ldap.example.com/ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11903 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11904 |
The machine whose hostname is given here must be |
| 11905 |
configured as an LDAP server, serving data identified by the base DN used here. See |
| 11906 |
Section 3.12.3 for details on configuring an LDAP server.</xccdf:description> |
| 11907 |
</xccdf:Group> |
| 11908 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.2.2"> |
| 11909 |
<xccdf:title xml:lang="en">Configure LDAP to Use TLS for All Transactions</xccdf:title> |
| 11910 |
<xccdf:description xml:lang="en"> |
| 11911 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11912 |
<xhtml:li>Ensure a copy of the site's CA certificate has been placed |
| 11913 |
in the file /etc/pki/tls/CA/cacert.pem. </xhtml:li> |
| 11914 |
<xhtml:li>Configure LDAP to enforce TLS use and to |
| 11915 |
trust certificates signed by the site's CA. First, edit the file /etc/ldap.conf, and add |
| 11916 |
or correct the following lines: <xhtml:br/> |
| 11917 |
<xhtml:br/> |
| 11918 |
ssl start_tls <xhtml:br/> |
| 11919 |
tls_checkpeer yes <xhtml:br/> |
| 11920 |
tls_cacertdir /etc/pki/tls/CA <xhtml:br/> |
| 11921 |
tls_cacertfile /etc/pki/tls/CA/cacert.pem <xhtml:br/> |
| 11922 |
<xhtml:br/> |
| 11923 |
Then edit /etc/openldap/ldap.conf, and add or correct the following lines: <xhtml:br/> |
| 11924 |
<xhtml:br/> |
| 11925 |
TLS_CACERTDIR /etc/pki/tls/CA <xhtml:br/> |
| 11926 |
TLS_CACERT /etc/pki/tls/CA/cacert.pem </xhtml:li> |
| 11927 |
</xhtml:ol><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11928 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11929 |
Section 2.5.6 describes the |
| 11930 |
system-wide configuration of SSL for your enterprise. It is possible to place your |
| 11931 |
certificate information under some directory other than /etc/pki/tls, but using a |
| 11932 |
consistent directory structure across all SSL services at your site is recommended. The |
| 11933 |
LDAP server must be configured with a certificate signed by the CA certificate named |
| 11934 |
here.</xccdf:description> |
| 11935 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.12.2.2.a" selected="false" weight="10.0"> |
| 11936 |
<xccdf:title>Configure LDAP to Use TLS for All Transactions</xccdf:title> |
| 11937 |
<xccdf:description>Clients require LDAP servers to provide valid certificates for SSL communications.</xccdf:description> |
| 11938 |
<xccdf:fixtext>(1) via /etc/ldap.conf</xccdf:fixtext> |
| 11939 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 11940 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:202885"/> |
| 11941 |
</xccdf:check> |
| 11942 |
</xccdf:Rule> |
| 11943 |
</xccdf:Group> |
| 11944 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.2.3"> |
| 11945 |
<xccdf:title xml:lang="en">Configure Authentication Services to Use OpenLDAP</xccdf:title> |
| 11946 |
<xccdf:description xml:lang="en"> |
| 11947 |
Edit the file /etc/ldap.conf, and add or correct the following |
| 11948 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11949 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11950 |
pam_password md5 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11951 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11952 |
Edit the file /etc/nsswitch.conf, and add or correct the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11953 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11954 |
passwd: files ldap <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11955 |
shadow: files ldap <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11956 |
group: files ldap <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11957 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11958 |
Edit the file |
| 11959 |
/etc/pam.d/system-auth-ac. Make the following changes, which will add references to LDAP |
| 11960 |
in each of the four sections of the file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11961 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11962 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 11963 |
<xhtml:li>Immediately before the last line in the auth |
| 11964 |
section (the one containing pam_deny.so), insert the line: <xhtml:br/> |
| 11965 |
<xhtml:br/> |
| 11966 |
auth sufficient pam_ldap.so use_first_pass </xhtml:li> |
| 11967 |
<xhtml:li>Modify the first line in the account section by adding the option |
| 11968 |
broken shadow. The line should then read: <xhtml:br/> |
| 11969 |
<xhtml:br/> |
| 11970 |
account required pam_unix.so broken_shadow </xhtml:li> |
| 11971 |
<xhtml:li>Immediately before the last line in the account section (the one containing pam |
| 11972 |
permit.so), insert the line: <xhtml:br/> |
| 11973 |
<xhtml:br/> |
| 11974 |
account [default=bad success=ok user_unknown=ignore] pam_ldap.so </xhtml:li> |
| 11975 |
<xhtml:li>Immediately before the last line in the password section (the one |
| 11976 |
containing pam_deny.so), insert the line: <xhtml:br/> |
| 11977 |
<xhtml:br/> |
| 11978 |
password sufficient pam_ldap.so use_authtok</xhtml:li> |
| 11979 |
<xhtml:li>At the end of the file (after the last line in the session section), append the line:<xhtml:br/> |
| 11980 |
<xhtml:br/> |
| 11981 |
session optional pam_ldap.so </xhtml:li> |
| 11982 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11983 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11984 |
The first modification tells LDAP to expect passwords in |
| 11985 |
MD5 hash format, rather than clear text. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11986 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11987 |
Red Hat systems use the file /etc/nsswitch.conf |
| 11988 |
to determine the appropriate sources to search for certain kinds of data, such as |
| 11989 |
usernames, groups, hostnames, netgroups, or protocols. It is possible to manage many |
| 11990 |
other types of data using LDAP, but this guide recommends that only usernames (passwd |
| 11991 |
data), passwords (shadow data), and groups (group data) be managed using LDAP. If your |
| 11992 |
site uses netgroups, it may be appropriate to manage these via LDAP as well. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11993 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11994 |
However, |
| 11995 |
data which almost never changes, such as the contents of the /etc/services file, is a |
| 11996 |
poor choice for central administration, since it introduces risk with little benefit. It |
| 11997 |
is recommended that the automounter not be used at all, so LDAP control of automounter |
| 11998 |
maps is unlikely to be appropriate. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 11999 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12000 |
The file /etc/pam.d/system-auth-ac is used by PAM to |
| 12001 |
control access to most authenticated services. The syntax of the PAM configuration file |
| 12002 |
is somewhat cryptic. The lines recommended here have the combined effect of using LDAP |
| 12003 |
to find authentication data for users who cannot be found in the local /etc/passwd file. |
| 12004 |
This means that, for instance, it is still possible to use a local root password. The |
| 12005 |
details of options such as broken_shadow, use_authtok, and use_first_pass may be looked |
| 12006 |
up in the man pages for the various PAM modules. Their basic effect is to attempt to |
| 12007 |
authenticate given a password against both the local /etc/shadow and the central LDAP |
| 12008 |
server, without forcing the user to type the password more than once. PAM configuration |
| 12009 |
is discussed further in Section 2.3.3.</xccdf:description> |
| 12010 |
</xccdf:Group> |
| 12011 |
</xccdf:Group> |
| 12012 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3"> |
| 12013 |
<xccdf:title xml:lang="en">Configure OpenLDAP Server</xccdf:title> |
| 12014 |
<xccdf:description xml:lang="en"> |
| 12015 |
This section contains guidance on how to configure an OpenLDAP |
| 12016 |
server to securely provide information for use in a centralized authentication service. |
| 12017 |
This is not a comprehensive guide to maintaining an OpenLDAP server, but may be helpful in |
| 12018 |
transitioning to an OpenLDAP infrastructure nonetheless.</xccdf:description> |
| 12019 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.1"> |
| 12020 |
<xccdf:title xml:lang="en">Install OpenLDAP Server RPM</xccdf:title> |
| 12021 |
<xccdf:description xml:lang="en"> |
| 12022 |
Is this machine the OpenLDAP server? If so: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12023 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12024 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install openldap-servers <xhtml:br/> |
| 12025 |
# chkconfig ldap on <xhtml:br/></xhtml:code> |
| 12026 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12027 |
The openldap-servers RPM is not installed by |
| 12028 |
default on RHEL5 machines. It is needed only by the OpenLDAP server, not by the clients |
| 12029 |
which use LDAP for authentication.</xccdf:description> |
| 12030 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.12.3.1.a" selected="false" severity="low" weight="10.0"> |
| 12031 |
<xccdf:title>Disable OpenLDAP service</xccdf:title> |
| 12032 |
<xccdf:description>The ldap service should be disabled.</xccdf:description> |
| 12033 |
<xccdf:ident system="http://cce.mitre.org">CCE-3501-4</xccdf:ident> |
| 12034 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12035 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12036 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20289"/> |
| 12037 |
</xccdf:check> |
| 12038 |
</xccdf:Rule> |
| 12039 |
</xccdf:Group> |
| 12040 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.2"> |
| 12041 |
<xccdf:title xml:lang="en">Configure Domain-Specific Parameters</xccdf:title> |
| 12042 |
<xccdf:description xml:lang="en"> |
| 12043 |
Edit the file /etc/openldap/slapd.conf. Add or correct the |
| 12044 |
following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12045 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12046 |
suffix "dc=example,dc=com " <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12047 |
rootdn "cn=Manager,dc=example,dc=com "<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12048 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12049 |
where dc=example,dc=com is the same root you will use on the LDAP clients. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12050 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12051 |
These are |
| 12052 |
basic LDAP configuration directives. The suffix parameter gives the root name of all |
| 12053 |
information served by this LDAP server, and should be some name related to your domain. |
| 12054 |
The rootdn parameter names LDAP's privileged user, who is allowed to read or write all |
| 12055 |
data managed by this LDAP server.</xccdf:description> |
| 12056 |
</xccdf:Group> |
| 12057 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.3"> |
| 12058 |
<xccdf:title xml:lang="en">Configure an LDAP Root Password</xccdf:title> |
| 12059 |
<xccdf:description xml:lang="en"> |
| 12060 |
Ensure that the configuration file has reasonable permissions |
| 12061 |
before putting the hashed root password in that file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12062 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12063 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:ldap /etc/openldap/slapd.conf <xhtml:br/> |
| 12064 |
# chmod 640 /etc/openldap/slapd.conf <xhtml:br/></xhtml:code> |
| 12065 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12066 |
Generate a hashed password using the slappasswd utility: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12067 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12068 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># slappasswd <xhtml:br/></xhtml:code> |
| 12069 |
New password: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12070 |
Re-enter new password: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12071 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12072 |
This |
| 12073 |
will output a hashed password string. Edit the file /etc/openldap/slapd.conf, and add or |
| 12074 |
correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12075 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12076 |
rootpw {SSHA}hashed-password-string <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12077 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12078 |
Be sure to select a secure |
| 12079 |
password for the LDAP root user, since this user has permission to read and write all |
| 12080 |
LDAP data, so a compromise of the LDAP root password will probably enable a full |
| 12081 |
compromise of your site. Protect configuration files containing the hashed password the |
| 12082 |
same way you would protect other files, such as /etc/shadow, which contain hashed |
| 12083 |
authentication data. In addition, be sure to use a reasonably strong hash function, such |
| 12084 |
as SHA-1, rather than an insecure scheme such as crypt.</xccdf:description> |
| 12085 |
<xccdf:description xml:lang="en">If you are using SHA-1, the hashed password string will begin with “{SHA}” or “{SSHA}”</xccdf:description> |
| 12086 |
</xccdf:Group> |
| 12087 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.4"> |
| 12088 |
<xccdf:title xml:lang="en">Configure the LDAP Server to Require TLS for All Transactions</xccdf:title> |
| 12089 |
<xccdf:description xml:lang="en"> |
| 12090 |
Because LDAP queries and responses, particularly those |
| 12091 |
containing authentication information or other sensitive data, must be protected from |
| 12092 |
disclosure or modification while in transit over the network, this guide recommends |
| 12093 |
using SSL to protect all transactions. In order to do this, it is necessary to have a |
| 12094 |
site-wide SSL infrastructure in which a CA certificate is used to verify that other |
| 12095 |
certificates, such as that presented by the LDAP server to its clients, are authentic.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12096 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12097 |
Therefore, this procedure involves using the CA system to create a certificate for the |
| 12098 |
LDAP server, then installing that certificate on the LDAP server and configuring slapd |
| 12099 |
to require its use. See Section 2.5.6 for details about the process of creating SSL |
| 12100 |
certificates for use by servers at your site.</xccdf:description> |
| 12101 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.4.1"> |
| 12102 |
<xccdf:title xml:lang="en">Create the Certificate for the LDAP Server</xccdf:title> |
| 12103 |
<xccdf:description xml:lang="en"> |
| 12104 |
Note: This step must be performed on the CA system, not on |
| 12105 |
the LDAP server itself. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12106 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12107 |
Change into the CA certificate directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12108 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12109 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/pki/tls/certs <xhtml:br/></xhtml:code> |
| 12110 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12111 |
Generate a key pair for the LDAP server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12112 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12113 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl genrsa -out ldapserverkey.pem 2048 <xhtml:br/></xhtml:code> |
| 12114 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12115 |
Next, generate a certificate signing request (CSR) for the CA to sign: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12116 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12117 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl req -new -key ldapserverkey.pem -out ldapserver.csr <xhtml:br/></xhtml:code> |
| 12118 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12119 |
Sign the ldapserver.csr request: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12120 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12121 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl ca -in ldapserver.csr -out ldapservercert.pem <xhtml:br/></xhtml:code> |
| 12122 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12123 |
This step creates a private key, ldapserverkey.pem, and a public certificate, |
| 12124 |
ldapservercert.pem. The LDAP server will use these to prove its identity by |
| 12125 |
demonstrating that it has a certificate which has been signed by the site CA. LDAP |
| 12126 |
clients at your site should only be willing to accept authentication data from a |
| 12127 |
verified LDAP server.</xccdf:description> |
| 12128 |
</xccdf:Group> |
| 12129 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.4.2"> |
| 12130 |
<xccdf:title xml:lang="en">Install the Certificate on the LDAP Server</xccdf:title> |
| 12131 |
<xccdf:description xml:lang="en"> |
| 12132 |
Create the PKI directory for LDAP certificates if it does not |
| 12133 |
already exist: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12134 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12135 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># mkdir /etc/pki/tls/ldap <xhtml:br/> |
| 12136 |
# chown root:root /etc/pki/tls/ldap <xhtml:br/> |
| 12137 |
# chmod 755 /etc/pki/tls/ldap <xhtml:br/></xhtml:code> |
| 12138 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12139 |
Using removable media or some other secure transmission format, |
| 12140 |
install the files generated in the previous step onto the LDAP server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12141 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12142 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 12143 |
<xhtml:li>/etc/pki/tls/ldap/serverkey.pem: the private key ldapserverkey.pem</xhtml:li> |
| 12144 |
<xhtml:li>/etc/pki/tls/ldap/servercert.pem: the certificate file ldapservercert.pem </xhtml:li> |
| 12145 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12146 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12147 |
Verify the ownership and permissions of these files: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12148 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12149 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:ldap /etc/pki/tls/ldap/serverkey.pem <xhtml:br/> |
| 12150 |
# chown root:ldap /etc/pki/tls/ldap/servercert.pem <xhtml:br/> |
| 12151 |
# chmod 640 /etc/pki/tls/ldap/serverkey.pem <xhtml:br/> |
| 12152 |
# chmod 640 /etc/pki/tls/ldap/servercert.pem<xhtml:br/></xhtml:code> |
| 12153 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12154 |
Verify that the CA's public certificate file has been installed as |
| 12155 |
/etc/pki/tls/CA/cacert.pem, and has the correct permissions: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12156 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12157 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># mkdir /etc/pki/tls/CA <xhtml:br/> |
| 12158 |
# chown root:root /etc/pki/tls/CA/cacert.pem <xhtml:br/> |
| 12159 |
# chmod 644 /etc/pki/tls/CA/cacert.pem <xhtml:br/></xhtml:code> |
| 12160 |
As a |
| 12161 |
result of these steps, the LDAP server will have access to its own private certificate |
| 12162 |
and the key with which that certificate is encrypted, and to the public certificate |
| 12163 |
file belonging to the CA. Note that it would be possible for the key to be protected |
| 12164 |
further, so that processes running as ldap could not read it. If this were done, the |
| 12165 |
LDAP server process would need to be restarted manually whenever the server rebooted.</xccdf:description> |
| 12166 |
</xccdf:Group> |
| 12167 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.4.3"> |
| 12168 |
<xccdf:title xml:lang="en">Configure slapd to Use the Certificates</xccdf:title> |
| 12169 |
<xccdf:description xml:lang="en"> |
| 12170 |
Edit the file /etc/openldap/slapd.conf. Add or correct the |
| 12171 |
following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12172 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12173 |
TLSCACertificateFile /etc/pki/tls/CA/cacert.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12174 |
TLSCertificateFile /etc/pki/tls/ldap/servercert.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12175 |
TLSCertificateKeyFile /etc/pki/tls/ldap/serverkey.pem<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12176 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12177 |
security simple_bind=128 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12178 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12179 |
The first set of lines tell slapd where to find the |
| 12180 |
appropriate SSL certificates to present to clients when they request an encrypted |
| 12181 |
transaction. The last setting tells slapd never to allow clients to present |
| 12182 |
credentials (i.e. passwords) in an unencrypted session. It is a good security |
| 12183 |
principle never to allow unencrypted passwords to traverse a network, so ensure that |
| 12184 |
LDAP mandates this.</xccdf:description> |
| 12185 |
</xccdf:Group> |
| 12186 |
</xccdf:Group> |
| 12187 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5"> |
| 12188 |
<xccdf:title xml:lang="en">Install Account Information into the LDAP Database</xccdf:title> |
| 12189 |
<xccdf:description xml:lang="en"> |
| 12190 |
There are many ways to maintain an OpenLDAP database. Methods |
| 12191 |
include: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12192 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12193 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 12194 |
<xhtml:li>Input entries in ldif(5) format into a file /path/to/new entries , and use |
| 12195 |
slapadd to import those entries while slapd is not running: <xhtml:br/> |
| 12196 |
<xhtml:br/> |
| 12197 |
<xhtml:code># slapadd -l /path/to/new_entries </xhtml:code></xhtml:li> |
| 12198 |
<xhtml:li>Write a script to create and modify LDAP entries by connecting to the LDAP |
| 12199 |
server normally. The Perl Net::LDAP module is appropriate for this, there is a Python |
| 12200 |
API called python-ldap, and functionality is likely available for other scripting |
| 12201 |
languages as well. </xhtml:li> |
| 12202 |
<xhtml:li>Use an LDAP front-end program which provides an interface for |
| 12203 |
editing the database. If the front-end program is web-based or otherwise accessible over |
| 12204 |
a network, ensure that authentication information is protected via SSL between the |
| 12205 |
administrator's client and the program, as well as between the program and the LDAP |
| 12206 |
database. </xhtml:li> |
| 12207 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12208 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12209 |
Any of these methods or others may be appropriate for your site. This guide |
| 12210 |
does not provide a recommendation, and there will be no further discussion of the syntax |
| 12211 |
of entering LDAP data into the database.</xccdf:description> |
| 12212 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5.1"> |
| 12213 |
<xccdf:title xml:lang="en">Create Top-level LDAP Structure for Domain</xccdf:title> |
| 12214 |
<xccdf:description xml:lang="en"> |
| 12215 |
Create a structure for the domain itself with at least the |
| 12216 |
following attributes: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12217 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12218 |
dn: dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12219 |
objectClass: dcObject <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12220 |
objectClass: organization <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12221 |
dc: example <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12222 |
o: Organization Description <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12223 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12224 |
This is a placeholder for the |
| 12225 |
root of the domain's LDAP tree. Without this entry, LDAP will not be able to find any |
| 12226 |
other entries for the domain.</xccdf:description> |
| 12227 |
</xccdf:Group> |
| 12228 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5.2"> |
| 12229 |
<xccdf:title xml:lang="en">Create LDAP Structures for Users and Groups</xccdf:title> |
| 12230 |
<xccdf:description xml:lang="en"> |
| 12231 |
Create LDAP structures for people (users) and for groups with |
| 12232 |
at least the following attributes: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12233 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12234 |
dn: ou=people,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12235 |
ou: people<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12236 |
structuralObjectClass: organizationalUnit <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12237 |
objectClass: organizationalUnit <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12238 |
dn: ou=groups,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12239 |
ou: groups <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12240 |
structuralObjectClass: organizationalUnit<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12241 |
objectClass: organizationalUnit <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12242 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12243 |
Posix users and groups are the two top-level items |
| 12244 |
which will be needed in order to use LDAP for authentication. These organizational |
| 12245 |
units are used to identify the two categories within LDAP.</xccdf:description> |
| 12246 |
</xccdf:Group> |
| 12247 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5.3"> |
| 12248 |
<xccdf:title xml:lang="en">Create Unix Accounts</xccdf:title> |
| 12249 |
<xccdf:description xml:lang="en"> |
| 12250 |
For each Unix user, create an LDAP entry with at least the |
| 12251 |
following attributes (others may be appropriate for your site as well), using variable |
| 12252 |
values appropriate to that user. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12253 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12254 |
dn: uid=username ,ou=people,dc=example,dc=com<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12255 |
structuralObjectClass: inetOrgPerson <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12256 |
objectClass: inetOrgPerson <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12257 |
objectClass: posixAccount <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12258 |
objectClass: shadowAccount <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12259 |
cn: fullname <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12260 |
sn: surname <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12261 |
gecos: fullname<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12262 |
gidNumber: primary-group-id <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12263 |
homeDirectory: /home/username <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12264 |
loginShell: /path/to/shell<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12265 |
uid: username <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12266 |
uidNumber: uid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12267 |
userPassword: {MD5}md5-hashed-password <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12268 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12269 |
If your site |
| 12270 |
implements password expiration in which passwords must be changed every N days (see |
| 12271 |
Section 2.3.1.7), then each entry should also have the attribute: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12272 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12273 |
shadowMax: N <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12274 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12275 |
In general, the LDAP schemas for users use uid to refer to the text username, and |
| 12276 |
uidNumber for the numeric UID. This usage may be slightly confusing when compared to |
| 12277 |
the standard Unix usage. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12278 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12279 |
You should not create entries for the root account or for |
| 12280 |
system accounts which are unique to individual systems, but only for user accounts |
| 12281 |
which are to be shared across machines, and which have authentication information |
| 12282 |
(such as a password) associated with them.</xccdf:description> |
| 12283 |
</xccdf:Group> |
| 12284 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5.4"> |
| 12285 |
<xccdf:title xml:lang="en">Create Unix Groups</xccdf:title> |
| 12286 |
<xccdf:description xml:lang="en"> |
| 12287 |
For each Unix group, create an LDAP entry with at least the |
| 12288 |
following attributes: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12289 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12290 |
dn: cn=groupname ,ou=groups,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12291 |
cn: groupname<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12292 |
structuralObjectClass: posixGroup <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12293 |
objectClass: posixGroup <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12294 |
gidNumber: gid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12295 |
memberUid: username1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12296 |
memberUid: username2 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12297 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12298 |
memberUid: usernameN <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12299 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12300 |
Note that each user has a |
| 12301 |
primary group, identified by the gidNumber field in the user's account entry. That |
| 12302 |
group must be created, but it is not necessary to list the user as a memberUid of the |
| 12303 |
group. This behavior should be familiar to administrators, since it is identical to |
| 12304 |
the handling of the /etc/passwd and /etc/group files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12305 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12306 |
Do not create entries for the |
| 12307 |
root group or for system groups, but only for groups which contain human users or |
| 12308 |
which are shared across systems.</xccdf:description> |
| 12309 |
</xccdf:Group> |
| 12310 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.5.5"> |
| 12311 |
<xccdf:title xml:lang="en">Create Groups to Administer LDAP</xccdf:title> |
| 12312 |
<xccdf:description xml:lang="en"> |
| 12313 |
If a group of LDAP administrators, admins , is desired, that |
| 12314 |
group must be created somewhat differently. The specification should have these |
| 12315 |
attributes: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12316 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12317 |
dn: cn=admins ,ou=groups,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12318 |
cn: admins<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12319 |
structuralObjectClass: groupOfUniqueNames <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12320 |
objectClass: groupOfUniqueNames<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12321 |
uniqueMember: cn=Manager,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12322 |
uniqueMember: uid=admin1-username ,ou=people,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12323 |
uniqueMember: uid=admin2-username ,ou=people,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12324 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12325 |
uniqueMember: uid=adminN-username ,ou=people,dc=example,dc=com <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12326 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12327 |
LDAP cannot use Posix groups for its own internal |
| 12328 |
authentication — it needs to compare the username specified in an authenticated bind |
| 12329 |
to some internal groupOfUniqueNames. If you do not specify an LDAP administrators' |
| 12330 |
group, then all LDAP management will need to be done using the LDAP root user |
| 12331 |
(Manager). For reasons of auditing and error detection, it is recommended that LDAP |
| 12332 |
administrators have unique identities. (See Section 2.3.1.3 for similar reasoning |
| 12333 |
applied to the use of sudo for privileged system commands.)</xccdf:description> |
| 12334 |
</xccdf:Group> |
| 12335 |
</xccdf:Group> |
| 12336 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.6"> |
| 12337 |
<xccdf:title xml:lang="en">Configure slapd to Protect Authentication Information</xccdf:title> |
| 12338 |
<xccdf:description xml:lang="en"> |
| 12339 |
Edit the file /etc/openldap/slapd.conf. Add or correct the |
| 12340 |
following access specifications: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12341 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12342 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 12343 |
<xhtml:li>Protect the user's password by allowing the user |
| 12344 |
himself or the LDAP administrators to change it, allowing the anonymous user to |
| 12345 |
authenticate against it, and allowing no other access: <xhtml:br/> |
| 12346 |
<xhtml:br/> |
| 12347 |
access to attrs=userPassword <xhtml:br/> |
| 12348 |
by self write <xhtml:br/> |
| 12349 |
by group/groupOfUniqueNames/uniqueMember="cn=admins ,ou=groups,dc=example,dc=com " write <xhtml:br/> |
| 12350 |
by anonymous auth <xhtml:br/> |
| 12351 |
by * none <xhtml:br/> |
| 12352 |
access to attrs=shadowLastChange <xhtml:br/> |
| 12353 |
by self write <xhtml:br/> |
| 12354 |
by group/groupOfUniqueNames/uniqueMember="cn=admins ,ou=groups,dc=example,dc=com " write <xhtml:br/> |
| 12355 |
by * read</xhtml:li> |
| 12356 |
<xhtml:li>Allow anyone to read other |
| 12357 |
information, and allow the administrators to change it: <xhtml:br/> |
| 12358 |
<xhtml:br/> |
| 12359 |
access to * by<xhtml:br/> |
| 12360 |
group/groupOfUniqueNames/uniqueMember="cn=admins ,ou=groups,dc=example,dc=com " write <xhtml:br/> |
| 12361 |
by * read </xhtml:li> |
| 12362 |
</xhtml:ol><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12363 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12364 |
Access rules are applied in the order encountered, so more specific rules should |
| 12365 |
appear first. In particular, the rule restricting access to userPassword must appear |
| 12366 |
before the rule allowing access to all data. The shadowLastChange attribute is a |
| 12367 |
timestamp, and is only critical if your site implements password expiration. If your |
| 12368 |
site does not have an LDAP administrators group, the LDAP root user (called Manager in |
| 12369 |
this guide) will be able to change data without an explicit access statement.</xccdf:description> |
| 12370 |
</xccdf:Group> |
| 12371 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.7"> |
| 12372 |
<xccdf:title xml:lang="en">Correct Permissions on LDAP Server Files</xccdf:title> |
| 12373 |
<xccdf:description xml:lang="en"> |
| 12374 |
Correct the permissions on the ldap server's files: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12375 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12376 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown ldap:root /var/lib/ldap/* <xhtml:br/></xhtml:code> |
| 12377 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12378 |
Some manual methods of inserting information into the LDAP |
| 12379 |
database may leave these files with incorrect permissions. This will prevent slapd from |
| 12380 |
starting correctly.</xccdf:description> |
| 12381 |
<xccdf:Value id="xccdf_cdf_value_var-3.12.3.7.a" operator="equals" type="string"> |
| 12382 |
<xccdf:title>group owner of ldap files</xccdf:title> |
| 12383 |
<xccdf:description xml:lang="en">Specify group owner of /var/lib/ldap/*.</xccdf:description> |
| 12384 |
<xccdf:question xml:lang="en">Specify group owner of /var/lib/ldap/*</xccdf:question> |
| 12385 |
<xccdf:value>root</xccdf:value> |
| 12386 |
<xccdf:value selector="root">root</xccdf:value> |
| 12387 |
</xccdf:Value> |
| 12388 |
<xccdf:Value id="xccdf_cdf_value_var-3.12.3.7.b" operator="equals" type="string"> |
| 12389 |
<xccdf:title>user owner of ldap files</xccdf:title> |
| 12390 |
<xccdf:description xml:lang="en">Specify user owner of /var/lib/ldap/*.</xccdf:description> |
| 12391 |
<xccdf:question xml:lang="en">Specify user owner of /var/lib/ldap/*</xccdf:question> |
| 12392 |
<xccdf:value>ldap</xccdf:value> |
| 12393 |
<xccdf:value selector="ldap">ldap</xccdf:value> |
| 12394 |
</xccdf:Value> |
| 12395 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.12.3.7.a" selected="false" weight="10.0"> |
| 12396 |
<xccdf:title>Correct Permissions on LDAP Server Files</xccdf:title> |
| 12397 |
<xccdf:description>The /var/lib/ldap/* files should be owned by the appropriate group.</xccdf:description> |
| 12398 |
<xccdf:ident system="http://cce.mitre.org">CCE-4484-2</xccdf:ident> |
| 12399 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 12400 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12401 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20290" value-id="xccdf_cdf_value_var-3.12.3.7.a"/> |
| 12402 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20290"/> |
| 12403 |
</xccdf:check> |
| 12404 |
</xccdf:Rule> |
| 12405 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.12.3.7.b" selected="false" weight="10.0"> |
| 12406 |
<xccdf:title>Correct Permissions on LDAP Server Files</xccdf:title> |
| 12407 |
<xccdf:description>The /var/lib/ldap/* files should be owned by the appropriate user.</xccdf:description> |
| 12408 |
<xccdf:ident system="http://cce.mitre.org">CCE-4502-1</xccdf:ident> |
| 12409 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 12410 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12411 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20291" value-id="xccdf_cdf_value_var-3.12.3.7.b"/> |
| 12412 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20291"/> |
| 12413 |
</xccdf:check> |
| 12414 |
</xccdf:Rule> |
| 12415 |
</xccdf:Group> |
| 12416 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.8"> |
| 12417 |
<xccdf:title xml:lang="en">Configure iptables to Allow Access to the LDAP Server</xccdf:title> |
| 12418 |
<xccdf:description xml:lang="en"> |
| 12419 |
Determine an appropriate network block, netwk , and network |
| 12420 |
mask, mask , representing the machines on your network which will synchronize to this |
| 12421 |
server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12422 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12423 |
Edit /etc/sysconfig/iptables. Add the following lines, ensuring that they appear |
| 12424 |
before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12425 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12426 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 389 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12427 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 636 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12428 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12429 |
The default Iptables configuration does not allow inbound access to any services. These |
| 12430 |
modifications allow access to the LDAP primary (389) and encrypted-only (636) ports, |
| 12431 |
while keeping all other ports on the server in their default protected state. See |
| 12432 |
Section 2.5.5 for more information about Iptables. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12433 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12434 |
Note: Even if the LDAP server |
| 12435 |
restricts connections so that only encrypted queries are allowed, it will probably be |
| 12436 |
necessary to allow traffic to the default port 389. This is true because many LDAP |
| 12437 |
clients implement encryption by connecting to the primary port and issuing the STARTTLS |
| 12438 |
command.</xccdf:description> |
| 12439 |
</xccdf:Group> |
| 12440 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.12.3.9"> |
| 12441 |
<xccdf:title xml:lang="en">Configure Logging for LDAP</xccdf:title> |
| 12442 |
<xccdf:description xml:lang="en"> |
| 12443 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 12444 |
<xhtml:li>Edit the file /etc/syslog.conf. Add or correct the following line: <xhtml:br/> |
| 12445 |
<xhtml:br/> |
| 12446 |
local4.* /var/log/ldap.log </xhtml:li> |
| 12447 |
<xhtml:li>Create the log file with safe permissions: <xhtml:br/> |
| 12448 |
<xhtml:br/> |
| 12449 |
<xhtml:code># touch /var/log/ldap.log <xhtml:br/> |
| 12450 |
# chown root:root /var/log/ldap.log <xhtml:br/> |
| 12451 |
# chmod 0600 /var/log/ldap.log </xhtml:code></xhtml:li> |
| 12452 |
<xhtml:li>Edit the file /etc/logrotate.d/syslog and add the pathname <xhtml:br/> |
| 12453 |
<xhtml:br/> |
| 12454 |
/var/log/ldap.log <xhtml:br/> |
| 12455 |
<xhtml:br/> |
| 12456 |
to the space-separated list in the first line. </xhtml:li> |
| 12457 |
<xhtml:li>Edit the LDAP configuration file |
| 12458 |
/etc/openldap/slapd.conf and set a reasonable set of default log parameters, such as:<xhtml:br/> |
| 12459 |
<xhtml:br/> |
| 12460 |
loglevel stats2 </xhtml:li> |
| 12461 |
</xhtml:ol><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12462 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12463 |
OpenLDAP sends its log data to the syslog facility local4 at priority |
| 12464 |
debug. By default, RHEL5 does not store this facility at all. The syslog configuration |
| 12465 |
suggested here will store any output logged by slapd in the file /var/log/ldap.log, and |
| 12466 |
will include that file in the standard log rotation for syslog files. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12467 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12468 |
By default, LDAP's |
| 12469 |
logging is quite verbose. The loglevel parameter is a space-separated list of items to |
| 12470 |
be logged. Specifying stats2 will reduce the log output somewhat, but this level will |
| 12471 |
still produce some logging every time an LDAP query is made. (This may be appropriate, |
| 12472 |
depending on your site's auditing requirements.) In order to capture only slapd startup |
| 12473 |
messages, specify loglevel none. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12474 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12475 |
See slapd.conf(5) for detailed information about the |
| 12476 |
loglevel parameter. See Section 2.6.1 for more information about syslog.</xccdf:description> |
| 12477 |
</xccdf:Group> |
| 12478 |
</xccdf:Group> |
| 12479 |
</xccdf:Group> |
| 12480 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13"> |
| 12481 |
<xccdf:title xml:lang="en">NFS and RPC</xccdf:title> |
| 12482 |
<xccdf:description xml:lang="en"> |
| 12483 |
The Network File System is the most popular distributed filesystem |
| 12484 |
for the Unix environment, and is very widely deployed. Unfortunately, NFS was not designed |
| 12485 |
with security in mind, and has a number of weaknesses, both in terms of the protocol itself |
| 12486 |
and because any NFS installation must expose several daemons, running on both servers and |
| 12487 |
clients, to network attack. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12488 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12489 |
This section discusses the circumstances under which it is |
| 12490 |
possible to disable NFS and its dependencies, and then details steps which should be taken |
| 12491 |
to secure, as much as possible, NFS's configuration. This section is relevant to machines |
| 12492 |
operating as NFS clients, as well as to those operating as NFS servers.</xccdf:description> |
| 12493 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.1"> |
| 12494 |
<xccdf:title xml:lang="en">Disable All NFS Services if Possible</xccdf:title> |
| 12495 |
<xccdf:description xml:lang="en"> |
| 12496 |
Is there a mission-critical reason for this machine to operate as |
| 12497 |
either an NFS client or an NFS server? <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12498 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12499 |
If not, follow all instructions in the remainder of |
| 12500 |
Section 3.13.1 to disable subsystems required by NFS. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12501 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12502 |
NFS is a commonly used mechanism for |
| 12503 |
sharing data between machines in an organization. However, its use opens many potential |
| 12504 |
security holes. If NFS is not universally needed in your organization, improve the |
| 12505 |
security posture of any machine which does not require NFS by disabling it entirely.</xccdf:description> |
| 12506 |
<xccdf:warning xml:lang="en">The steps in Section 3.13.1 will prevent a machine from operating |
| 12507 |
as either an NFS client or an NFS server. Only perform these steps on machines which do |
| 12508 |
not need NFS at all. </xccdf:warning> |
| 12509 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.1.1"> |
| 12510 |
<xccdf:title xml:lang="en">Disable Services Used Only by NFS</xccdf:title> |
| 12511 |
<xccdf:description xml:lang="en"> |
| 12512 |
If NFS is not needed, perform the following steps to disable |
| 12513 |
NFS client daemons: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12514 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig nfslock off <xhtml:br/> |
| 12515 |
# chkconfig rpcgssd off <xhtml:br/> |
| 12516 |
# chkconfig rpcidmapd off <xhtml:br/></xhtml:code> |
| 12517 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12518 |
The nfslock, rpcgssd, and rpcidmapd daemons all perform NFS client functions. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12519 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12520 |
All of these daemons run with elevated privileges, and many listen for |
| 12521 |
network connections. If they are not needed, they should be disabled to improve system |
| 12522 |
security posture.</xccdf:description> |
| 12523 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.1.1.a" selected="false" severity="low" weight="10.0"> |
| 12524 |
<xccdf:title>Disable nfslock</xccdf:title> |
| 12525 |
<xccdf:description>The nfslock service should be disabled.</xccdf:description> |
| 12526 |
<xccdf:ident system="http://cce.mitre.org">CCE-4396-8</xccdf:ident> |
| 12527 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12528 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12529 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20292"/> |
| 12530 |
</xccdf:check> |
| 12531 |
</xccdf:Rule> |
| 12532 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.1.1.b" selected="false" severity="low" weight="10.0"> |
| 12533 |
<xccdf:title>Disable rpcgssd</xccdf:title> |
| 12534 |
<xccdf:description>The rpcgssd service should be disabled.</xccdf:description> |
| 12535 |
<xccdf:ident system="http://cce.mitre.org">CCE-3535-2</xccdf:ident> |
| 12536 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12537 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12538 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20293"/> |
| 12539 |
</xccdf:check> |
| 12540 |
</xccdf:Rule> |
| 12541 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.1.1.c" selected="false" severity="low" weight="10.0"> |
| 12542 |
<xccdf:title>Disable rpcidmapd</xccdf:title> |
| 12543 |
<xccdf:description>The rpcidmapd service should be disabled.</xccdf:description> |
| 12544 |
<xccdf:ident system="http://cce.mitre.org">CCE-3568-3</xccdf:ident> |
| 12545 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12546 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12547 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20294"/> |
| 12548 |
</xccdf:check> |
| 12549 |
</xccdf:Rule> |
| 12550 |
</xccdf:Group> |
| 12551 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.1.2"> |
| 12552 |
<xccdf:title xml:lang="en">Disable netfs if Possible</xccdf:title> |
| 12553 |
<xccdf:description xml:lang="en"> |
| 12554 |
Determine whether any network filesystems handled by netfs are |
| 12555 |
mounted on this system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12556 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12557 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># mount -t nfs,nfs4,smbfs,cifs,ncpfs <xhtml:br/></xhtml:code> |
| 12558 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12559 |
If this command returns no output, disable netfs to improve system security: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12560 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12561 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig netfs off <xhtml:br/></xhtml:code> |
| 12562 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12563 |
The netfs script |
| 12564 |
manages the boot-time mounting of several types of networked filesystems, of which NFS |
| 12565 |
and Samba (see Section 3.18) are the most common. If these filesystem types are not in |
| 12566 |
use, the script can be disabled, protecting the system somewhat against accidental or |
| 12567 |
malicious changes to /etc/fstab and against flaws in the netfs script itself.</xccdf:description> |
| 12568 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.1.2.a" selected="false" severity="low" weight="10.0"> |
| 12569 |
<xccdf:title>Disable netfs if Possible</xccdf:title> |
| 12570 |
<xccdf:description>The netfs service should be disabled.</xccdf:description> |
| 12571 |
<xccdf:ident system="http://cce.mitre.org">CCE-4533-6</xccdf:ident> |
| 12572 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12573 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12574 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20295"/> |
| 12575 |
</xccdf:check> |
| 12576 |
</xccdf:Rule> |
| 12577 |
</xccdf:Group> |
| 12578 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.1.3"> |
| 12579 |
<xccdf:title xml:lang="en">Disable RPC Portmapper if Possible</xccdf:title> |
| 12580 |
<xccdf:description xml:lang="en"> |
| 12581 |
If: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12582 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12583 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 12584 |
<xhtml:li>NFS is not needed </xhtml:li> |
| 12585 |
<xhtml:li>The site does not rely on NIS for authentication information, and </xhtml:li> |
| 12586 |
<xhtml:li>The machine does not run any other RPC-based service</xhtml:li> |
| 12587 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12588 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12589 |
then disable the RPC portmapper service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12590 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12591 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig portmap off <xhtml:br/></xhtml:code> |
| 12592 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12593 |
By design, the RPC |
| 12594 |
model does not require particular services to listen on fixed ports, but instead uses a |
| 12595 |
daemon, portmap, to tell prospective clients which ports to use to contact the services |
| 12596 |
they are trying to reach. This model weakens system security by introducing another |
| 12597 |
privileged daemon which may be directly attacked, and is unnecessary because RPC was |
| 12598 |
never adopted by enough services to risk using up all the ports on a system.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12599 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12600 |
Unfortunately, the portmapper is central to RPC design, so it cannot be disabled if your |
| 12601 |
site is using any RPCbased services, including NFS, NIS (see Section 3.2.4 for |
| 12602 |
information about NIS, which is not recommended), or any third-party or custom RPC-based |
| 12603 |
program. If none of these programs are in use, however, portmap should be disabled to |
| 12604 |
improve system security. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12605 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12606 |
In order to get more information about whether portmap may be |
| 12607 |
disabled on a given host, query the local portmapper using the command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12608 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12609 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># rpcinfo -p <xhtml:br/></xhtml:code> |
| 12610 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12611 |
If the only services listed are portmapper and status, it is safe to disable the |
| 12612 |
portmapper. If other services are listed and your site is not running NFS or NIS, |
| 12613 |
investigate these services and disable them if possible.</xccdf:description> |
| 12614 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.1.3.a" selected="false" severity="low" weight="10.0"> |
| 12615 |
<xccdf:title>Disable RPC Portmapper if Possible</xccdf:title> |
| 12616 |
<xccdf:description>The portmap service should be disabled.</xccdf:description> |
| 12617 |
<xccdf:ident system="http://cce.mitre.org">CCE-4550-0</xccdf:ident> |
| 12618 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12619 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12620 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20296"/> |
| 12621 |
</xccdf:check> |
| 12622 |
</xccdf:Rule> |
| 12623 |
</xccdf:Group> |
| 12624 |
</xccdf:Group> |
| 12625 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.2"> |
| 12626 |
<xccdf:title xml:lang="en">Configure All Machines which Use NFS</xccdf:title> |
| 12627 |
<xccdf:description xml:lang="en">The steps in this section are appropriate for all machines which run NFS, whether they operate as clients or as servers.</xccdf:description> |
| 12628 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.2.1"> |
| 12629 |
<xccdf:title xml:lang="en">Make Each Machine a Client or a Server, not Both</xccdf:title> |
| 12630 |
<xccdf:description xml:lang="en"> |
| 12631 |
If NFS must be used, it should be deployed in the simplest |
| 12632 |
configuration possible to avoid maintainability problems which may lead to unnecessary |
| 12633 |
security exposure. Due to the reliability and security problems caused by NFS, it is not |
| 12634 |
a good idea for machines which act as NFS servers to also mount filesystems via NFS. At |
| 12635 |
the least, crossed mounts (the situation in which each of two servers mounts a |
| 12636 |
filesystem from the other) should never be used.</xccdf:description> |
| 12637 |
</xccdf:Group> |
| 12638 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.2.2"> |
| 12639 |
<xccdf:title xml:lang="en">Restrict Access to the Portmapper</xccdf:title> |
| 12640 |
<xccdf:description xml:lang="en"> |
| 12641 |
Edit the file /etc/hosts.deny. Add or correct the line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12642 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12643 |
portmap: ALL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12644 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12645 |
Edit the file /etc/hosts.allow. Add or correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12646 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12647 |
portmap: IPADDR1 , IPADDR2 , ... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12648 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12649 |
where each IPADDR is the IP address of a server or client with which this |
| 12650 |
machine shares NFS filesystems. If the machine is an NFS server, it may be simpler to |
| 12651 |
use an IP netblock specification, such as 10.3.2. (this is the TCP Wrappers syntax |
| 12652 |
representing the netblock 10.3.2.0/24), or a hostname specification, such as |
| 12653 |
.subdomain.example.com. The use of hostnames is not recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12654 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12655 |
The /etc/hosts.allow |
| 12656 |
and /etc/hosts.deny files are used by TCP Wrappers to determine whether specified remote |
| 12657 |
hosts are allowed to access certain services. The default portmapper shipped with RHEL5 |
| 12658 |
has TCP Wrappers support built in, so this specification can be used to provide some |
| 12659 |
protection against network attacks on the portmapper. (See Section 2.5.4 for more |
| 12660 |
information about TCP Wrappers.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12661 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12662 |
Note: This step protects only the portmap service |
| 12663 |
itself. It is still possible for attackers to guess the port numbers of NFS services and |
| 12664 |
attack those services directly, even if they are denied access to the portmapper.</xccdf:description> |
| 12665 |
</xccdf:Group> |
| 12666 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.2.3"> |
| 12667 |
<xccdf:title xml:lang="en">Configure NFS Services to Use Fixed Ports</xccdf:title> |
| 12668 |
<xccdf:description xml:lang="en"> |
| 12669 |
Edit the file /etc/sysconfig/nfs. Add or correct the following |
| 12670 |
lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12671 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12672 |
LOCKD_TCPPORT=lockd-port <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12673 |
LOCKD_UDPPORT=lockd-port <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12674 |
MOUNTD_PORT=mountd-port<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12675 |
RQUOTAD_PORT=rquotad-port <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12676 |
STATD_PORT=statd-port <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12677 |
STATD_OUTGOING_PORT=statd-outgoing-port<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12678 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12679 |
where each X-port is a port which is not used by any other service on your network.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12680 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12681 |
Firewalling should be done at each host and at the border firewalls to protect the NFS |
| 12682 |
daemons from remote access, since NFS servers should never be accessible from outside |
| 12683 |
the organization. However, by default, the portmapper assigns each NFS service to a port |
| 12684 |
dynamically at service startup time. Dynamic ports cannot be protected by port filtering |
| 12685 |
firewalls such as iptables (Section 2.5.5). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12686 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12687 |
Therefore, restrict each service to always |
| 12688 |
use a given port, so that firewalling can be done effectively. Note that, because of the |
| 12689 |
way RPC is implemented, it is not possible to disable the portmapper even if ports are |
| 12690 |
assigned statically to all RPC services.</xccdf:description> |
| 12691 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.a" selected="false" weight="10.0"> |
| 12692 |
<xccdf:title>Configure lockd to Use Fixed Ports for TCP</xccdf:title> |
| 12693 |
<xccdf:description>The lockd service should be configured to use a static port for TCP</xccdf:description> |
| 12694 |
<xccdf:ident system="http://cce.mitre.org">CCE-4559-1</xccdf:ident> |
| 12695 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12696 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12697 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20297"/> |
| 12698 |
</xccdf:check> |
| 12699 |
</xccdf:Rule> |
| 12700 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.b" selected="false" weight="10.0"> |
| 12701 |
<xccdf:title>Configure statd to Use an outgoing static port</xccdf:title> |
| 12702 |
<xccdf:description>The statd service should be configured to use an outgoing static port</xccdf:description> |
| 12703 |
<xccdf:ident system="http://cce.mitre.org">CCE-4015-4</xccdf:ident> |
| 12704 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12705 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12706 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20298"/> |
| 12707 |
</xccdf:check> |
| 12708 |
</xccdf:Rule> |
| 12709 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.c" selected="false" weight="10.0"> |
| 12710 |
<xccdf:title>Configure statd to Use a static port</xccdf:title> |
| 12711 |
<xccdf:description>The statd service should be configured to use a static port</xccdf:description> |
| 12712 |
<xccdf:ident system="http://cce.mitre.org">CCE-3667-3</xccdf:ident> |
| 12713 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12714 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12715 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20299"/> |
| 12716 |
</xccdf:check> |
| 12717 |
</xccdf:Rule> |
| 12718 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.d" selected="false" weight="10.0"> |
| 12719 |
<xccdf:title>Configure lockd to Use a static port for UDP</xccdf:title> |
| 12720 |
<xccdf:description>The lockd service should be configured to use a static port for UDP</xccdf:description> |
| 12721 |
<xccdf:ident system="http://cce.mitre.org">CCE-4310-9</xccdf:ident> |
| 12722 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12723 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12724 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20300"/> |
| 12725 |
</xccdf:check> |
| 12726 |
</xccdf:Rule> |
| 12727 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.e" selected="false" weight="10.0"> |
| 12728 |
<xccdf:title>Configure mountd to Use a static port</xccdf:title> |
| 12729 |
<xccdf:description>The mountd service should be configured to use a static port</xccdf:description> |
| 12730 |
<xccdf:ident system="http://cce.mitre.org">CCE-4438-8</xccdf:ident> |
| 12731 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12732 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12733 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20301"/> |
| 12734 |
</xccdf:check> |
| 12735 |
</xccdf:Rule> |
| 12736 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.2.3.f" selected="false" weight="10.0"> |
| 12737 |
<xccdf:title>Configure rquotad to Use Fixed Ports</xccdf:title> |
| 12738 |
<xccdf:description>The rquotad service should be configured to use a static port</xccdf:description> |
| 12739 |
<xccdf:ident system="http://cce.mitre.org">CCE-3579-0</xccdf:ident> |
| 12740 |
<xccdf:fixtext>(1) via /etc/sysconfig/nfs</xccdf:fixtext> |
| 12741 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12742 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20302"/> |
| 12743 |
</xccdf:check> |
| 12744 |
</xccdf:Rule> |
| 12745 |
</xccdf:Group> |
| 12746 |
</xccdf:Group> |
| 12747 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.3"> |
| 12748 |
<xccdf:title xml:lang="en">Configure NFS Clients</xccdf:title> |
| 12749 |
<xccdf:description xml:lang="en">The steps in this section are appropriate for machines which operate as NFS clients.</xccdf:description> |
| 12750 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.3.1"> |
| 12751 |
<xccdf:title xml:lang="en">Disable NFS Server Daemons</xccdf:title> |
| 12752 |
<xccdf:description xml:lang="en"> |
| 12753 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig nfs off <xhtml:br/> |
| 12754 |
# chkconfig rpcsvcgssd off <xhtml:br/></xhtml:code> |
| 12755 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12756 |
There is no need |
| 12757 |
to run the NFS server daemons except on a small number of properly secured machines |
| 12758 |
designated as NFS servers. Ensure that these daemons are turned off on clients.</xccdf:description> |
| 12759 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.3.1.a" selected="false" severity="low" weight="10.0"> |
| 12760 |
<xccdf:title>Disable nfs service</xccdf:title> |
| 12761 |
<xccdf:description>The nfs service should be disabled</xccdf:description> |
| 12762 |
<xccdf:ident system="http://cce.mitre.org">CCE-4473-5</xccdf:ident> |
| 12763 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12764 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12765 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20303"/> |
| 12766 |
</xccdf:check> |
| 12767 |
</xccdf:Rule> |
| 12768 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.3.1.b" selected="false" severity="low" weight="10.0"> |
| 12769 |
<xccdf:title>Disable rpcsvcgssd service</xccdf:title> |
| 12770 |
<xccdf:description>The rpcsvcgssd service should be disabled</xccdf:description> |
| 12771 |
<xccdf:ident system="http://cce.mitre.org">CCE-4491-7</xccdf:ident> |
| 12772 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12773 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12774 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20304"/> |
| 12775 |
</xccdf:check> |
| 12776 |
</xccdf:Rule> |
| 12777 |
</xccdf:Group> |
| 12778 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.3.2"> |
| 12779 |
<xccdf:title xml:lang="en">Mount Remote Filesystems with Restrictive Options</xccdf:title> |
| 12780 |
<xccdf:description xml:lang="en"> |
| 12781 |
Edit the file /etc/fstab. For each filesystem whose type |
| 12782 |
(column 3) is nfs or nfs4, add the text ,nodev,nosuid to the list of mount options in |
| 12783 |
column 4. If appropriate, also add ,noexec. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12784 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12785 |
See Section 2.2.1.2 for a description of the |
| 12786 |
effects of these options. In general, execution of files mounted via NFS should be |
| 12787 |
considered risky because of the possibility that an adversary could intercept the |
| 12788 |
request and substitute a malicious file. Allowing setuid files to be executed from |
| 12789 |
remote servers is particularly risky, both for this reason and because it requires the |
| 12790 |
clients to extend root-level trust to the NFS server.</xccdf:description> |
| 12791 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.3.2.a" selected="false" weight="10.0"> |
| 12792 |
<xccdf:title>Mount Remote Filesystems with nodev</xccdf:title> |
| 12793 |
<xccdf:description>The nodev option should be enabled for all NFS mounts</xccdf:description> |
| 12794 |
<xccdf:ident system="http://cce.mitre.org">CCE-4368-7</xccdf:ident> |
| 12795 |
<xccdf:fixtext>(1) via /etc/fstab</xccdf:fixtext> |
| 12796 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12797 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20305"/> |
| 12798 |
</xccdf:check> |
| 12799 |
</xccdf:Rule> |
| 12800 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.3.2.b" selected="false" severity="medium" weight="10.0"> |
| 12801 |
<xccdf:title>Mount Remote Filesystems with nosuid</xccdf:title> |
| 12802 |
<xccdf:description>The nosuid option should be enabled for all NFS mounts</xccdf:description> |
| 12803 |
<xccdf:ident system="http://cce.mitre.org">CCE-4024-6</xccdf:ident> |
| 12804 |
<xccdf:fixtext>(1) via /etc/fstab</xccdf:fixtext> |
| 12805 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12806 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20306"/> |
| 12807 |
</xccdf:check> |
| 12808 |
</xccdf:Rule> |
| 12809 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.3.2.c" selected="false" severity="medium" weight="10.0"> |
| 12810 |
<xccdf:title>Mount Remote Filesystems with noexec</xccdf:title> |
| 12811 |
<xccdf:description>The noexec option should be enabled for all NFS mounts</xccdf:description> |
| 12812 |
<xccdf:ident system="http://cce.mitre.org">CCE-4526-0</xccdf:ident> |
| 12813 |
<xccdf:fixtext>(1) via /etc/fstab</xccdf:fixtext> |
| 12814 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12815 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20307"/> |
| 12816 |
</xccdf:check> |
| 12817 |
</xccdf:Rule> |
| 12818 |
</xccdf:Group> |
| 12819 |
</xccdf:Group> |
| 12820 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4"> |
| 12821 |
<xccdf:title xml:lang="en">Configure NFS Servers</xccdf:title> |
| 12822 |
<xccdf:description xml:lang="en">The steps in this section are appropriate for machines which operate as NFS servers.</xccdf:description> |
| 12823 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.1"> |
| 12824 |
<xccdf:title xml:lang="en">Configure the Exports File Restrictively</xccdf:title> |
| 12825 |
<xccdf:description xml:lang="en"> |
| 12826 |
Linux's NFS implementation uses the file /etc/exports to |
| 12827 |
control what filesystems and directories may be accessed via NFS. (See the exports(5) |
| 12828 |
manpage for more information about the format of this file.) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12829 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12830 |
The syntax of the exports |
| 12831 |
file is not necessarily checked fully on reload, and syntax errors can leave your NFS |
| 12832 |
configuration more open than intended. Therefore, exercise caution when modifying the |
| 12833 |
file. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12834 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12835 |
The syntax of each line in /etc/exports is <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12836 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12837 |
/DIR ipaddr1 (opt1 ,opt2 ) ipaddr2 (opt3 ) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12838 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12839 |
where /DIR is a directory or filesystem to export, ipaddrN is an IP address, |
| 12840 |
netblock, hostname, domain, or netgroup to which to export, and optN is an option.</xccdf:description> |
| 12841 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.1.1"> |
| 12842 |
<xccdf:title xml:lang="en">Use Access Lists to Enforce Authorization Restrictions on Mounts</xccdf:title> |
| 12843 |
<xccdf:description xml:lang="en"> |
| 12844 |
Edit /etc/exports. Ensure that each export line contains a |
| 12845 |
set of IP addresses or hosts which are allowed to access that export. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12846 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12847 |
If no IP |
| 12848 |
addresses or hostnames are specified on an export line, then that export is available |
| 12849 |
to any remote host which requests it. All lines of the exports file should specify the |
| 12850 |
hosts (or subnets, if needed) which are allowed to access the exported directory, so |
| 12851 |
that unknown or remote hosts will be denied.</xccdf:description> |
| 12852 |
</xccdf:Group> |
| 12853 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.1.2"> |
| 12854 |
<xccdf:title xml:lang="en">Use Root-Squashing on All Exports</xccdf:title> |
| 12855 |
<xccdf:description xml:lang="en"> |
| 12856 |
Edit /etc/exports. Ensure that no line contains the option no_root_squash. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12857 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12858 |
If a filesystem is exported using root squashing, requests from root on |
| 12859 |
the client are considered to be unprivileged (mapped to a user such as nobody). This |
| 12860 |
provides some mild protection against remote abuse of an NFS server. Root squashing is |
| 12861 |
enabled by default, and should not be disabled.</xccdf:description> |
| 12862 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.4.1.2.a" selected="false" weight="10.0"> |
| 12863 |
<xccdf:title>Use Root-Squashing on All Exports</xccdf:title> |
| 12864 |
<xccdf:description>Root squashing should be enabled for all NFS shares</xccdf:description> |
| 12865 |
<xccdf:ident system="http://cce.mitre.org">CCE-4544-3</xccdf:ident> |
| 12866 |
<xccdf:fixtext>(1) via /etc/exports</xccdf:fixtext> |
| 12867 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12868 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20308"/> |
| 12869 |
</xccdf:check> |
| 12870 |
</xccdf:Rule> |
| 12871 |
</xccdf:Group> |
| 12872 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.1.3"> |
| 12873 |
<xccdf:title xml:lang="en">Restrict NFS Clients to Privileged Ports</xccdf:title> |
| 12874 |
<xccdf:description xml:lang="en"> |
| 12875 |
Edit /etc/exports. Ensure that no line contains the option insecure. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12876 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12877 |
By default, Linux's NFS implementation requires that all client requests be |
| 12878 |
made from ports less than 1024. If your organization has control over machines |
| 12879 |
connected to its network, and if NFS requests are prohibited at the border firewall, |
| 12880 |
this offers some protection against malicious requests from unprivileged users. |
| 12881 |
Therefore, the default should not be changed.</xccdf:description> |
| 12882 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.4.1.3.a" selected="false" weight="10.0"> |
| 12883 |
<xccdf:title>Restrict NFS Clients to Privileged Ports</xccdf:title> |
| 12884 |
<xccdf:description>Restriction of NFS clients to privileged ports should be enabled</xccdf:description> |
| 12885 |
<xccdf:ident system="http://cce.mitre.org">CCE-4465-1</xccdf:ident> |
| 12886 |
<xccdf:fixtext>(1) via /etc/exports</xccdf:fixtext> |
| 12887 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12888 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20309"/> |
| 12889 |
</xccdf:check> |
| 12890 |
</xccdf:Rule> |
| 12891 |
</xccdf:Group> |
| 12892 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.1.4"> |
| 12893 |
<xccdf:title xml:lang="en">Export Filesystems Read-Only if Possible</xccdf:title> |
| 12894 |
<xccdf:description xml:lang="en"> |
| 12895 |
Edit /etc/exports. Ensure that every line contains the option |
| 12896 |
ro and does not contain the option rw, unless there is an operational need for remote |
| 12897 |
clients to modify that filesystem. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12898 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12899 |
If a filesystem is being exported so that users can |
| 12900 |
view the files in a convenient fashion, but there is no need for users to edit those |
| 12901 |
files, exporting the filesystem read-only removes an attack vector against the server. |
| 12902 |
The default filesystem export mode is ro, so do not specify rw without a good reason.</xccdf:description> |
| 12903 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.13.4.1.4.a" selected="false" weight="10.0"> |
| 12904 |
<xccdf:title>Export Filesystems Read-Only if Possible</xccdf:title> |
| 12905 |
<xccdf:description>Write access to NFS shares should be disabled</xccdf:description> |
| 12906 |
<xccdf:ident system="http://cce.mitre.org">CCE-4350-5</xccdf:ident> |
| 12907 |
<xccdf:fixtext>(1) via /etc/exports</xccdf:fixtext> |
| 12908 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12909 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20310"/> |
| 12910 |
</xccdf:check> |
| 12911 |
</xccdf:Rule> |
| 12912 |
</xccdf:Group> |
| 12913 |
</xccdf:Group> |
| 12914 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.13.4.2"> |
| 12915 |
<xccdf:title xml:lang="en">Allow Legitimate NFS Clients to Access the Server</xccdf:title> |
| 12916 |
<xccdf:description xml:lang="en"> |
| 12917 |
Determine an appropriate network block, netwk , and network |
| 12918 |
mask, mask , representing the machines on your network which must mount NFS filesystems |
| 12919 |
from this server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12920 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12921 |
Edit /etc/sysconfig/iptables. Add the following lines, ensuring that |
| 12922 |
they appear before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12923 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12924 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport 111 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12925 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 111 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12926 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 2049 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12927 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12928 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport lockd-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12929 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport lockd-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12930 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport mountd-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12931 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport mountd-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12932 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport rquotad-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12933 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport rquotad-port -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12934 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport statd-port -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12935 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p udp --dport statd-port -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12936 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12937 |
where the variable port numbers match those selected in Section 3.13.2.3 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12938 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12939 |
The default iptables configuration does not allow inbound access to any services. This |
| 12940 |
modification will allow the specified block of remote hosts to initiate connections to |
| 12941 |
the set of NFS daemons, while keeping all other ports on the server in their default |
| 12942 |
protected state. See Section 2.5.5 for more information about iptables.</xccdf:description> |
| 12943 |
</xccdf:Group> |
| 12944 |
</xccdf:Group> |
| 12945 |
</xccdf:Group> |
| 12946 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14"> |
| 12947 |
<xccdf:title xml:lang="en">DNS Server</xccdf:title> |
| 12948 |
<xccdf:description xml:lang="en">Most organizations have an operational need to run at least one nameserver. However, there are many common attacks involving DNS, be configured defensively.</xccdf:description> |
| 12949 |
<xccdf:reference>Liu, C. DNS & BIND Cookbook. O’Reilly and Associates, Oct 2002</xccdf:reference> |
| 12950 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.1"> |
| 12951 |
<xccdf:title xml:lang="en">Disable DNS Server if Possible</xccdf:title> |
| 12952 |
<xccdf:description xml:lang="en"> |
| 12953 |
Is there an operational need for this machine to act as a DNS |
| 12954 |
server for this site? <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12955 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12956 |
If not, disable the software and remove it from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12957 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12958 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig named off <xhtml:br/> |
| 12959 |
# yum erase bind <xhtml:br/></xhtml:code> |
| 12960 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 12961 |
DNS software should be disabled on any machine which |
| 12962 |
does not need to be a nameserver. Note that the BIND DNS server software is not installed |
| 12963 |
on RHEL5 by default. The remainder of this section discusses secure configuration of |
| 12964 |
machines which must be nameservers.</xccdf:description> |
| 12965 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.1.a" selected="false" severity="low" weight="10.0"> |
| 12966 |
<xccdf:title>Disable DNS Server if Possible</xccdf:title> |
| 12967 |
<xccdf:description>The named service should be disabled.</xccdf:description> |
| 12968 |
<xccdf:ident system="http://cce.mitre.org">CCE-3578-2</xccdf:ident> |
| 12969 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 12970 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12971 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20311"/> |
| 12972 |
</xccdf:check> |
| 12973 |
</xccdf:Rule> |
| 12974 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.1.b" selected="false" weight="10.0"> |
| 12975 |
<xccdf:title>Uninstall bind if Possible</xccdf:title> |
| 12976 |
<xccdf:description>The bind package should be uninstalled.</xccdf:description> |
| 12977 |
<xccdf:ident system="http://cce.mitre.org">CCE-4219-2</xccdf:ident> |
| 12978 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 12979 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 12980 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20312"/> |
| 12981 |
</xccdf:check> |
| 12982 |
</xccdf:Rule> |
| 12983 |
</xccdf:Group> |
| 12984 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.2"> |
| 12985 |
<xccdf:title xml:lang="en">Run the BIND9 Software if DNS Service is Needed</xccdf:title> |
| 12986 |
<xccdf:description xml:lang="en"> |
| 12987 |
It is highly recommended that the BIND9 software be used to |
| 12988 |
provide DNS service. BIND is the Internet standard Unix nameserver, and, while it has had |
| 12989 |
security problems in the past, it is also well-maintained and Red Hat is likely to quickly |
| 12990 |
issue updates in response to any problems discovered in the future. In addition, BIND |
| 12991 |
version 9 has new security features and more secure default settings than earlier |
| 12992 |
versions. In particular, BIND version 4 is no longer recommended for production use, and |
| 12993 |
BIND4 servers should be upgraded to a newer version as soon as possible.</xccdf:description> |
| 12994 |
</xccdf:Group> |
| 12995 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.3"> |
| 12996 |
<xccdf:title xml:lang="en">Isolate DNS from Other Services</xccdf:title> |
| 12997 |
<xccdf:description xml:lang="en"> |
| 12998 |
This section discusses mechanisms for preventing the DNS server |
| 12999 |
from interfering with other services. This is done both to protect the remainder of the |
| 13000 |
network should a nameserver be compromised, and to make direct attacks on nameservers more |
| 13001 |
difficult.</xccdf:description> |
| 13002 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.3.1"> |
| 13003 |
<xccdf:title xml:lang="en">Run DNS Software on Dedicated Servers if Possible</xccdf:title> |
| 13004 |
<xccdf:description xml:lang="en"> |
| 13005 |
Since DNS is a high-risk service which must frequently be made |
| 13006 |
available to the entire Internet, it is strongly recommended that no other services be |
| 13007 |
offered by machines which act as organizational DNS servers.</xccdf:description> |
| 13008 |
</xccdf:Group> |
| 13009 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.3.2"> |
| 13010 |
<xccdf:title xml:lang="en">Run DNS Software in a chroot Jail</xccdf:title> |
| 13011 |
<xccdf:description xml:lang="en"> |
| 13012 |
Install the bind-chroot package: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13013 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13014 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install bind-chroot<xhtml:br/></xhtml:code> |
| 13015 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13016 |
Place a valid named.conf file inside the chroot jail: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13017 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cp /etc/named.conf /var/named/chroot/etc/named.conf <xhtml:br/> |
| 13018 |
# chown root:root /var/named/chroot/etc/named.conf <xhtml:br/> |
| 13019 |
# chmod 644 /var/named/chroot/etc/named.conf <xhtml:br/></xhtml:code> |
| 13020 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13021 |
Create and populate an appropriate zone |
| 13022 |
directory within the jail, based on the options directive. If your named.conf includes:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13023 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13024 |
options { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13025 |
directory "/path/to/DIRNAME "; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13026 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13027 |
} <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13028 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13029 |
then copy that directory and its contents from the original zone directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13030 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13031 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cp -r /path/to/DIRNAME /var/named/chroot/DIRNAME<xhtml:br/></xhtml:code> |
| 13032 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13033 |
Edit the file /etc/sysconfig/named. Add or correct the line: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13034 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13035 |
ROOTDIR=/var/named/chroot<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13036 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13037 |
Chroot jails are not foolproof. However, they serve to make it more difficult for a |
| 13038 |
compromised program to be used to attack the entire host. They do this by restricting a |
| 13039 |
program's ability to traverse the directory upward, so that files outside the jail are |
| 13040 |
not visible to the chrooted process. Since RHEL5 supports a standard mechanism for |
| 13041 |
placing BIND in a chroot jail, you should take advantage of this feature. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13042 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13043 |
Note: If you |
| 13044 |
are running BIND in a chroot jail, then you should use the jailed named.conf as the |
| 13045 |
primary nameserver configuration file. That is, when this guide recommends editing |
| 13046 |
/etc/named.conf, you should instead edit /var/named/chroot/etc/named.conf.</xccdf:description> |
| 13047 |
<xccdf:Value id="xccdf_cdf_value_var-3.14.3.2.a" operator="equals" type="string"> |
| 13048 |
<xccdf:title>group owner of jail</xccdf:title> |
| 13049 |
<xccdf:description xml:lang="en">Specify group owner of /var/named/chroot/etc/named.conf</xccdf:description> |
| 13050 |
<xccdf:question xml:lang="en">Specify group owner of /var/named/chroot/etc/named.conf</xccdf:question> |
| 13051 |
<xccdf:value>root</xccdf:value> |
| 13052 |
<xccdf:value selector="root">root</xccdf:value> |
| 13053 |
</xccdf:Value> |
| 13054 |
<xccdf:Value id="xccdf_cdf_value_var-3.14.3.2.b" operator="equals" type="string"> |
| 13055 |
<xccdf:title>user owner of jail</xccdf:title> |
| 13056 |
<xccdf:description xml:lang="en">Specify user owner of /var/named/chroot/etc/named.conf</xccdf:description> |
| 13057 |
<xccdf:question xml:lang="en">Specify user owner of /var/named/chroot/etc/named.conf</xccdf:question> |
| 13058 |
<xccdf:value>root</xccdf:value> |
| 13059 |
<xccdf:value selector="root">root</xccdf:value> |
| 13060 |
</xccdf:Value> |
| 13061 |
<xccdf:Value id="xccdf_cdf_value_var-3.14.3.2.c" operator="equals" type="string"> |
| 13062 |
<xccdf:title>permisison of jail</xccdf:title> |
| 13063 |
<xccdf:description xml:lang="en">Specify file permissions on /var/named/chroot/etc/named.conf</xccdf:description> |
| 13064 |
<xccdf:question xml:lang="en">Specify permissions of /var/named/chroot/etc/named.conf</xccdf:question> |
| 13065 |
<xccdf:value>110100100</xccdf:value> |
| 13066 |
<xccdf:value selector="400">100000000</xccdf:value> |
| 13067 |
<xccdf:value selector="644">110100100</xccdf:value> |
| 13068 |
<xccdf:value selector="700">111000000</xccdf:value> |
| 13069 |
<xccdf:match>^[01]+$</xccdf:match> |
| 13070 |
</xccdf:Value> |
| 13071 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.3.2.a" selected="false" weight="10.0"> |
| 13072 |
<xccdf:title>Run DNS Software in a chroot Jail owned by root group</xccdf:title> |
| 13073 |
<xccdf:description>The /var/named/chroot/etc/named.conf file should be owned by the appropriate group.</xccdf:description> |
| 13074 |
<xccdf:ident system="http://cce.mitre.org">CCE-3985-9</xccdf:ident> |
| 13075 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 13076 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13077 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20313" value-id="xccdf_cdf_value_var-3.14.3.2.a"/> |
| 13078 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20313"/> |
| 13079 |
</xccdf:check> |
| 13080 |
</xccdf:Rule> |
| 13081 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.3.2.b" selected="false" weight="10.0"> |
| 13082 |
<xccdf:title>Run DNS Software in a chroot Jail owned by root user</xccdf:title> |
| 13083 |
<xccdf:description>The /var/named/chroot/etc/named.conf file should be owned by the appropriate user.</xccdf:description> |
| 13084 |
<xccdf:ident system="http://cce.mitre.org">CCE-4258-0</xccdf:ident> |
| 13085 |
<xccdf:fixtext>(1) via chown</xccdf:fixtext> |
| 13086 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13087 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20314" value-id="xccdf_cdf_value_var-3.14.3.2.b"/> |
| 13088 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20314"/> |
| 13089 |
</xccdf:check> |
| 13090 |
</xccdf:Rule> |
| 13091 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.3.2.c" selected="false" weight="10.0"> |
| 13092 |
<xccdf:title>Set permissions on chroot Jail for DNS</xccdf:title> |
| 13093 |
<xccdf:description>File permissions for /var/named/chroot/etc/named.conf should be set correctly.</xccdf:description> |
| 13094 |
<xccdf:ident system="http://cce.mitre.org">CCE-4487-5</xccdf:ident> |
| 13095 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 13096 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13097 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20315" value-id="xccdf_cdf_value_var-3.14.3.2.c"/> |
| 13098 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20315"/> |
| 13099 |
</xccdf:check> |
| 13100 |
</xccdf:Rule> |
| 13101 |
</xccdf:Group> |
| 13102 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.3.3"> |
| 13103 |
<xccdf:title xml:lang="en">Configure Firewalls to Protect the DNS Server</xccdf:title> |
| 13104 |
<xccdf:description xml:lang="en"> |
| 13105 |
Edit the file /etc/sysconfig/iptables. Add the following lines, |
| 13106 |
ensuring that they appear before the final LOG and DROP lines for the |
| 13107 |
RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13108 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13109 |
-A RH-Firewall-1-INPUT -m state --state NEW -p udp --dport 53 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13110 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 53 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13111 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13112 |
These |
| 13113 |
lines are necessary in order to allow remote machines to contact the DNS server. If this |
| 13114 |
server is only available to the local network, it may be appropriate to insert a -s flag |
| 13115 |
into this rule to allow traffic only from packets on the local network. See Section |
| 13116 |
3.5.1.2 for an example of such a modification. See Section 2.5.5 for general information |
| 13117 |
about iptables.</xccdf:description> |
| 13118 |
</xccdf:Group> |
| 13119 |
</xccdf:Group> |
| 13120 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4"> |
| 13121 |
<xccdf:title xml:lang="en">Protect DNS Data from Tampering or Attack</xccdf:title> |
| 13122 |
<xccdf:description xml:lang="en">This section discusses DNS configuration options which make it more difficult for attackers to gain access to private DNS data or to modify DNS data.</xccdf:description> |
| 13123 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4.1"> |
| 13124 |
<xccdf:title xml:lang="en">Run Separate DNS Servers for External and Internal Queries if |
| 13125 |
Possible</xccdf:title> |
| 13126 |
<xccdf:description xml:lang="en"> |
| 13127 |
Is it possible to run external and internal nameservers on |
| 13128 |
separate machines? If so, follow the configuration guidance in this section. If not, see |
| 13129 |
Section 3.14.4.2 for an alternate approach using BIND9. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13130 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13131 |
On the external nameserver, edit /etc/named.conf. Add or correct the following |
| 13132 |
directives: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13133 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13134 |
options { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13135 |
allow-query { any; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13136 |
recursion no; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13137 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13138 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13139 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13140 |
zone "example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13141 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13142 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13143 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13144 |
On the internal nameserver, edit |
| 13145 |
/etc/named.conf. Add or correct the following directives, where SUBNET is the numerical |
| 13146 |
IP representation of your organization in the form xxx.xxx.xxx.xxx/xx: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13147 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13148 |
acl internal {<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13149 |
SUBNET ; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13150 |
localhost; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13151 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13152 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13153 |
options { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13154 |
allow-query { internal; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13155 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13156 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13157 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13158 |
zone "internal.example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13159 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13160 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13161 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13162 |
Enterprise nameservers generally serve two |
| 13163 |
functions. One is to provide public information about the machines in a domain for the |
| 13164 |
benefit of outside users who wish to contact those machines, for instance in order to |
| 13165 |
send mail to users in the enterprise, or to visit the enterprise's external web page. |
| 13166 |
The other is to provide nameservice to client machines within the enterprise. Client |
| 13167 |
machines require both private information about enterprise machines (which may be |
| 13168 |
different from the public information served to the rest of the world) and public |
| 13169 |
information about machines outside the enterprise, which is used to send mail or visit |
| 13170 |
websites outside of the organization. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13171 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13172 |
In order to provide the public nameservice |
| 13173 |
function, it is necessary to share data with untrusted machines which request it — |
| 13174 |
otherwise, the enterprise cannot be conveniently contacted by outside users. However, |
| 13175 |
internal data should be protected from disclosure, and serving irrelevant public name |
| 13176 |
queries for outside domains leaves the DNS server open to cache poisoning and other |
| 13177 |
attacks. Therefore, local network nameservice functions should not be provided to |
| 13178 |
untrusted machines. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13179 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13180 |
Separate machines should be used to fill these two functions whenever possible.</xccdf:description> |
| 13181 |
</xccdf:Group> |
| 13182 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4.2"> |
| 13183 |
<xccdf:title xml:lang="en">Use Views to Partition External and Internal Information if Necessary</xccdf:title> |
| 13184 |
<xccdf:description xml:lang="en"> |
| 13185 |
If it is not possible to run external and internal nameservers |
| 13186 |
on separate physical machines, run BIND9 and simulate this feature using views. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13187 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13188 |
Edit |
| 13189 |
/etc/named.conf. Add or correct the following directives (where SUBNET is the numerical |
| 13190 |
IP representation of your organization in the form xxx.xxx.xxx.xxx/xx): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13191 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13192 |
acl internal {<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13193 |
SUBNET ; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13194 |
localhost; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13195 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13196 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13197 |
view "internal-view" { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13198 |
match-clients { internal; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13199 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13200 |
zone "." IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13201 |
type hint; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13202 |
file "db.cache"; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13203 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13204 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13205 |
zone "internal.example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13206 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13207 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13208 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13209 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13210 |
view "external-view" { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13211 |
match-clients { any; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13212 |
recursion no; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13213 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13214 |
zone "example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13215 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13216 |
};<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13217 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13218 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13219 |
The view feature is provided by BIND9 as a way to allow a single nameserver to make |
| 13220 |
different sets of data available to different sets of clients. If possible, it is always |
| 13221 |
better to run external and internal nameservers on separate machines, so that even |
| 13222 |
complete compromise of the external server cannot be used to obtain internal data or |
| 13223 |
confuse internal DNS clients. However, this is not always feasible, and use of a feature |
| 13224 |
like views is preferable to leaving internal DNS data entirely unprotected. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13225 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13226 |
Note: As |
| 13227 |
shown in the example, database files which are required for recursion, such as the root |
| 13228 |
hints file, must be available to any clients which are allowed to make recursive |
| 13229 |
queries. Under typical circumstances, this includes only the internal clients which are |
| 13230 |
allowed to use this server as a general-purpose nameserver.</xccdf:description> |
| 13231 |
</xccdf:Group> |
| 13232 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4.3"> |
| 13233 |
<xccdf:title xml:lang="en">Disable Zone Transfers from the Nameserver if Possible</xccdf:title> |
| 13234 |
<xccdf:description xml:lang="en"> |
| 13235 |
Is it necessary for a secondary nameserver to receive zone data |
| 13236 |
via zone transfer from the primary server? If not, follow the instructions in this |
| 13237 |
section. If so, see the next section for instructions on protecting zone transfers. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13238 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13239 |
Edit /etc/named.conf. Add or correct the following directive: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13240 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13241 |
options { allow-transfer { none; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13242 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13243 |
} <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13244 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13245 |
If both the primary and secondary nameserver are under your control, or |
| 13246 |
if you have only one nameserver, it may be possible to use an external configuration |
| 13247 |
management mechanism to distribute zone updates. In that case, it is not necessary to |
| 13248 |
allow zone transfers within BIND itself, so they should be disabled to avoid the |
| 13249 |
potential for abuse.</xccdf:description> |
| 13250 |
</xccdf:Group> |
| 13251 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4.4"> |
| 13252 |
<xccdf:title xml:lang="en">Authenticate Zone Transfers if Necessary</xccdf:title> |
| 13253 |
<xccdf:description xml:lang="en"> |
| 13254 |
If it is necessary for a secondary nameserver to receive zone |
| 13255 |
data via zone transfer from the primary server, follow the instructions here. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13256 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13257 |
Use dnssec-keygen to create a symmetric key file in the current directory: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13258 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13259 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /tmp <xhtml:br/> |
| 13260 |
# dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com <xhtml:br/></xhtml:code> |
| 13261 |
Kdns.example.com .+aaa +iiiii<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13262 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13263 |
This output is the name of a file containing the new key. Read the file to find the |
| 13264 |
base64-encoded key string: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13265 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13266 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cat Kdns.example.com.+NNN+MMMMM.key <xhtml:br/></xhtml:code> |
| 13267 |
dns.example.com IN KEY 512 3 157 base64-key-string <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13268 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13269 |
Edit /etc/named.conf on the primary nameserver. Add the directives: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13270 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13271 |
key zone-transfer-key { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13272 |
algorithm hmac-md5; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13273 |
secret "base64-key-string "; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13274 |
};<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13275 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13276 |
zone "example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13277 |
type primary; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13278 |
allow-transfer { key zone-transfer-key; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13279 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13280 |
}<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13281 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13282 |
Edit /etc/named.conf on the secondary nameserver. Add the directives: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13283 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13284 |
key zone-transfer-key { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13285 |
algorithm hmac-md5; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13286 |
secret "base64-key-string "; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13287 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13288 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13289 |
server IP-OF-PRIMARY { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13290 |
keys { zone-transfer-key; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13291 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13292 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13293 |
zone "example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13294 |
type secondary;<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13295 |
primaries { IP-OF-PRIMARY ; }; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13296 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13297 |
}; <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13298 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13299 |
The BIND transaction signature (TSIG) functionality |
| 13300 |
allows primary and secondary nameservers to use a shared secret to verify authorization |
| 13301 |
to perform zone transfers. This method is more secure than using IP-based limiting to |
| 13302 |
restrict nameserver access, since IP addresses can be easily spoofed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13303 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13304 |
However, if you |
| 13305 |
cannot configure TSIG between your servers because, for instance, the secondary |
| 13306 |
nameserver is not under your control and its administrators are unwilling to configure |
| 13307 |
TSIG, you can configure an allow-transfer directive with numerical IP addresses or ACLs |
| 13308 |
as a last resort. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13309 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13310 |
Note: The purpose of the dnssec-keygen command is to create the shared |
| 13311 |
secret string base64-key-string . Once this secret has been obtained and inserted into |
| 13312 |
named.conf on the primary and secondary servers, the key files |
| 13313 |
Kdns.example.com.+NNN+MMMMM.key and Kdns.example.com.+NNN+MMMMM.private are no longer |
| 13314 |
needed, and may safely be deleted.</xccdf:description> |
| 13315 |
</xccdf:Group> |
| 13316 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.14.4.5"> |
| 13317 |
<xccdf:title xml:lang="en">Disable Dynamic Updates if Possible</xccdf:title> |
| 13318 |
<xccdf:description xml:lang="en"> |
| 13319 |
Is there a mission-critical reason to enable the risky dynamic |
| 13320 |
update functionality? If not: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13321 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13322 |
Edit /etc/named.conf. For each zone specification, correct |
| 13323 |
the following directive if necessary: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13324 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13325 |
zone "example.com " IN { <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13326 |
allow-update { none; };<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13327 |
... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13328 |
} <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13329 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13330 |
Dynamic updates allow remote servers to add, delete, or modify any entries in your |
| 13331 |
zone file. Therefore, they should be considered highly risky, and disabled unless there |
| 13332 |
is a very good reason for their use. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13333 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13334 |
If dynamic updates must be allowed, IP-based ACLs |
| 13335 |
are insufficient protection, since they are easily spoofed. Instead, use TSIG keys (see |
| 13336 |
the previous section for an example), and consider using the update-policy directive to |
| 13337 |
restrict changes to only the precise type of change needed.</xccdf:description> |
| 13338 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.14.4.5.a" selected="false" weight="10.0"> |
| 13339 |
<xccdf:title>Disable DNS Dynamic Updates if Possible</xccdf:title> |
| 13340 |
<xccdf:description>LDAP's dynamic updates feature should be disabled</xccdf:description> |
| 13341 |
<xccdf:ident system="http://cce.mitre.org">CCE-4399-2</xccdf:ident> |
| 13342 |
<xccdf:fixtext>(1) via /etc/named.conf</xccdf:fixtext> |
| 13343 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13344 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20316"/> |
| 13345 |
</xccdf:check> |
| 13346 |
</xccdf:Rule> |
| 13347 |
</xccdf:Group> |
| 13348 |
</xccdf:Group> |
| 13349 |
</xccdf:Group> |
| 13350 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15"> |
| 13351 |
<xccdf:title xml:lang="en">FTPServer</xccdf:title> |
| 13352 |
<xccdf:description xml:lang="en"> |
| 13353 |
FTP is a common method for allowing remote access to files. Like |
| 13354 |
telnet, the FTP protocol is unencrypted, which means that passwords and other data |
| 13355 |
transmitted during the session can be captured and that the session is vulnerable to |
| 13356 |
hijacking. Therefore, running the FTP server software is not recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13357 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13358 |
However, there are |
| 13359 |
some FTP server configurations which may be appropriate for some environments, particularly |
| 13360 |
those which allow only read-only anonymous access as a means of downloading data available |
| 13361 |
to the public.</xccdf:description> |
| 13362 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.1"> |
| 13363 |
<xccdf:title xml:lang="en">Disable vsftpd if Possible</xccdf:title> |
| 13364 |
<xccdf:description xml:lang="en"> |
| 13365 |
Is there a mission-critical reason for the machine to act as an |
| 13366 |
FTP server? If not, disable vsftpd if it has been installed: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13367 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13368 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig vsftpd off</xhtml:code></xccdf:description> |
| 13369 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.1.a" selected="false" severity="low" weight="10.0"> |
| 13370 |
<xccdf:title>Disable vsftpd if Possible</xccdf:title> |
| 13371 |
<xccdf:description>The vsftpd service should be disabled.</xccdf:description> |
| 13372 |
<xccdf:ident system="http://cce.mitre.org">CCE-3919-8</xccdf:ident> |
| 13373 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 13374 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13375 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20317"/> |
| 13376 |
</xccdf:check> |
| 13377 |
</xccdf:Rule> |
| 13378 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.1.b" selected="false" severity="low" weight="10.0"> |
| 13379 |
<xccdf:title>Uninstall vsftpd if Possible</xccdf:title> |
| 13380 |
<xccdf:description>The vsftpd service should be uninstalled.</xccdf:description> |
| 13381 |
<xccdf:ident system="http://cce.mitre.org">CCE-3919-8</xccdf:ident> |
| 13382 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 13383 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13384 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:203175"/> |
| 13385 |
</xccdf:check> |
| 13386 |
</xccdf:Rule> |
| 13387 |
</xccdf:Group> |
| 13388 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.2"> |
| 13389 |
<xccdf:title xml:lang="en">Use vsftpd to Provide FTP Service if Necessary</xccdf:title> |
| 13390 |
<xccdf:description xml:lang="en"> |
| 13391 |
If this machine must operate as an FTP server, install the vsftpd |
| 13392 |
package via the standard channels: <xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install vsftpd</xhtml:code> After RHEL 2.1, Red Hat switched |
| 13393 |
from distributing wu-ftpd with RHEL to distributing vsftpd. For security and for |
| 13394 |
consistency with future Red Hat releases, the use of vsftpd is recommended.</xccdf:description> |
| 13395 |
</xccdf:Group> |
| 13396 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3"> |
| 13397 |
<xccdf:title xml:lang="en">Configure vsftpd Securely</xccdf:title> |
| 13398 |
<xccdf:description xml:lang="en"> |
| 13399 |
The primary vsftpd configuration file is /etc/vsftpd.conf, if |
| 13400 |
that file exists, or /etc/vsftpd/vsftpd.conf if it does not. For the remainder of this |
| 13401 |
section, the phrase 'the configuration file' will refer to whichever of those files is |
| 13402 |
appropriate for your environment.</xccdf:description> |
| 13403 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.1"> |
| 13404 |
<xccdf:title xml:lang="en">Enable Logging of All FTP Transactions</xccdf:title> |
| 13405 |
<xccdf:description xml:lang="en"> |
| 13406 |
Edit the vsftpd configuration file. Add or correct the |
| 13407 |
following configuration options: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13408 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13409 |
xferlog_std_format=NO <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13410 |
log_ftp_protocol=YES <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13411 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13412 |
The |
| 13413 |
modifications above ensure that all commands sent to the ftp server are logged using the |
| 13414 |
verbose vsftpd log format. The default vsftpd log file is /var/log/vsftpd.log. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13415 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13416 |
Note: If |
| 13417 |
verbose logging to vsftpd.log is done, sparse logging of downloads to /var/log/xferlog |
| 13418 |
will not also occur. However, the information about what files were downloaded is |
| 13419 |
included in the information logged to vsftpd.log.</xccdf:description> |
| 13420 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.3.1.a" selected="false" severity="low" weight="10.0"> |
| 13421 |
<xccdf:title>Enable Logging of All FTP Transactions</xccdf:title> |
| 13422 |
<xccdf:description>Logging of vsftpd transactions should be enabled</xccdf:description> |
| 13423 |
<xccdf:ident system="http://cce.mitre.org">CCE-4549-2</xccdf:ident> |
| 13424 |
<xccdf:fixtext>(1) via /etc/vsftpd.conf</xccdf:fixtext> |
| 13425 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13426 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20318"/> |
| 13427 |
</xccdf:check> |
| 13428 |
</xccdf:Rule> |
| 13429 |
</xccdf:Group> |
| 13430 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.2"> |
| 13431 |
<xccdf:title xml:lang="en">Create Warning Banners for All FTP Users</xccdf:title> |
| 13432 |
<xccdf:description xml:lang="en"> |
| 13433 |
Edit the vsftpd configuration file. Add or correct the |
| 13434 |
following configuration options: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13435 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13436 |
banner_file=/etc/issue <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13437 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13438 |
See Section 2.3.7 for an |
| 13439 |
explanation of banner file use. This setting will cause the system greeting banner to be |
| 13440 |
used for FTP connections as well.</xccdf:description> |
| 13441 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.3.2.a" selected="false" weight="10.0"> |
| 13442 |
<xccdf:title>Create Warning Banners for All FTP Users</xccdf:title> |
| 13443 |
<xccdf:description>A warning banner for all FTP users should be enabled</xccdf:description> |
| 13444 |
<xccdf:ident system="http://cce.mitre.org">CCE-4554-2</xccdf:ident> |
| 13445 |
<xccdf:fixtext>(1) via /etc/vsftpd.conf</xccdf:fixtext> |
| 13446 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13447 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20319"/> |
| 13448 |
</xccdf:check> |
| 13449 |
</xccdf:Rule> |
| 13450 |
</xccdf:Group> |
| 13451 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.3"> |
| 13452 |
<xccdf:title xml:lang="en">Restrict the Set of Users Allowed to Access FTP</xccdf:title> |
| 13453 |
<xccdf:description xml:lang="en"> |
| 13454 |
This section describes how to disable non-anonymous |
| 13455 |
(password-based) FTP logins, or, if it is not possible to do this entirely due to legacy |
| 13456 |
applications, how to restrict insecure FTP login to only those users who have an |
| 13457 |
identified need for this access.</xccdf:description> |
| 13458 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.3.1"> |
| 13459 |
<xccdf:title xml:lang="en">Restrict Access to Anonymous Users if Possible</xccdf:title> |
| 13460 |
<xccdf:description xml:lang="en"> |
| 13461 |
Is there a mission-critical reason for users to transfer |
| 13462 |
files to/from their own accounts using FTP, rather than using a secure protocol like |
| 13463 |
SCP/SFTP? If not: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13464 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13465 |
Edit the vsftpd configuration file. Add or correct the following |
| 13466 |
configuration option: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13467 |
local_enable=NO <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13468 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13469 |
If non-anonymous FTP logins are necessary, |
| 13470 |
follow the guidance in the remainder of this section to secure these logins as much as |
| 13471 |
possible. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13472 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13473 |
The use of non-anonymous FTP logins is strongly discouraged. Since SSH |
| 13474 |
clients and servers are widely available, and since SSH provides support for a |
| 13475 |
transfer mode which resembles FTP in user interface, there is no good reason to allow |
| 13476 |
password-based FTP access. See Section 3.5 for more information about SSH.</xccdf:description> |
| 13477 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.3.3.1.a" selected="false" severity="high" weight="10.0"> |
| 13478 |
<xccdf:title>Restrict Access to Anonymous Users if Possible</xccdf:title> |
| 13479 |
<xccdf:description>Local user login to the vsftpd service should be disabled</xccdf:description> |
| 13480 |
<xccdf:ident system="http://cce.mitre.org">CCE-4443-8</xccdf:ident> |
| 13481 |
<xccdf:fixtext>(1) via /etc/vsftpd.conf</xccdf:fixtext> |
| 13482 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13483 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20320"/> |
| 13484 |
</xccdf:check> |
| 13485 |
</xccdf:Rule> |
| 13486 |
</xccdf:Group> |
| 13487 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.3.2"> |
| 13488 |
<xccdf:title xml:lang="en">Limit Users Allowed FTP Access if Necessary</xccdf:title> |
| 13489 |
<xccdf:description xml:lang="en"> |
| 13490 |
If there is a mission-critical reason for users to access |
| 13491 |
their accounts via the insecure FTP protocol, limit the set of users who are allowed |
| 13492 |
this access. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13493 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13494 |
Edit the vsftpd configuration file. Add or correct the following |
| 13495 |
configuration options: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13496 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13497 |
userlist_enable=YES <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13498 |
userlist_file=/etc/vsftp.ftpusers<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13499 |
userlist_deny=NO <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13500 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13501 |
Edit the file /etc/vsftp.ftpusers. For each user USERNAME who should |
| 13502 |
be allowed to access the system via ftp, add a line containing that user's name.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13503 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13504 |
USERNAME <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13505 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13506 |
If anonymous access is also required, add the anonymous usernames to |
| 13507 |
/etc/vsftp.ftpusers as well: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13508 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13509 |
anonymous <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13510 |
ftp <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13511 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13512 |
Historically, the file /etc/ftpusers |
| 13513 |
contained a list of users who were not allowed to access the system via ftp. It was |
| 13514 |
used to prevent system users such as the root user from logging in via the insecure |
| 13515 |
ftp protocol. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13516 |
However, when the configuration option userlist_deny=NO is set, vsftpd |
| 13517 |
interprets ftpusers as the set of users who are allowed to login via ftp. Since it |
| 13518 |
should be possible for most users to access their accounts via secure protocols, it is |
| 13519 |
recommended that this setting be used, so that non-anonymous ftp access can be limited |
| 13520 |
to legacy users who have been explicitly identified.</xccdf:description> |
| 13521 |
</xccdf:Group> |
| 13522 |
</xccdf:Group> |
| 13523 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.4"> |
| 13524 |
<xccdf:title xml:lang="en">Disable FTP Uploads if Possible</xccdf:title> |
| 13525 |
<xccdf:description xml:lang="en"> |
| 13526 |
Is there a mission-critical reason for users to upload files |
| 13527 |
via FTP? If not: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13528 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13529 |
Edit the vsftpd configuration file. Add or correct the following |
| 13530 |
configuration options: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13531 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13532 |
write_enable=NO <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13533 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13534 |
If FTP uploads are necessary, follow the guidance |
| 13535 |
in the remainder of this section to secure these transactions as much as possible.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13536 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13537 |
Anonymous FTP can be a convenient way to make files available for universal download. |
| 13538 |
However, it is less common to have a need to allow unauthenticated users to place files |
| 13539 |
on the FTP server. If this must be done, it is necessary to ensure that files cannot be |
| 13540 |
uploaded and downloaded from the same directory.</xccdf:description> |
| 13541 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.15.3.4.a" selected="false" severity="medium" weight="10.0"> |
| 13542 |
<xccdf:title>Disable FTP Uploads if Possible</xccdf:title> |
| 13543 |
<xccdf:description>File uploads via vsftpd should be disabled</xccdf:description> |
| 13544 |
<xccdf:ident system="http://cce.mitre.org">CCE-4461-0</xccdf:ident> |
| 13545 |
<xccdf:fixtext>(1) via /etc/vsftpd.conf</xccdf:fixtext> |
| 13546 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13547 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20321"/> |
| 13548 |
</xccdf:check> |
| 13549 |
</xccdf:Rule> |
| 13550 |
</xccdf:Group> |
| 13551 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.5"> |
| 13552 |
<xccdf:title xml:lang="en">Place the FTP Home Directory on its Own Partition</xccdf:title> |
| 13553 |
<xccdf:description xml:lang="en"> |
| 13554 |
By default, the anonymous FTP root is the home directory of the |
| 13555 |
ftp user account. The df command can be used to verify that this directory is on its own |
| 13556 |
partition. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13557 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13558 |
If there is a mission-critical reason for anonymous users to upload files, |
| 13559 |
precautions must be taken to prevent these users from filling a disk used by other |
| 13560 |
services.</xccdf:description> |
| 13561 |
</xccdf:Group> |
| 13562 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.15.3.6"> |
| 13563 |
<xccdf:title xml:lang="en">Configure Firewalls to Protect the FTP Server</xccdf:title> |
| 13564 |
<xccdf:description xml:lang="en"> |
| 13565 |
Edit the file /etc/sysconfig/iptables. Add the following lines, |
| 13566 |
ensuring that they appear before the final LOG and DROP lines for the |
| 13567 |
RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13568 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13569 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13570 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13571 |
Edit the file /etc/sysconfig/iptables-config. Ensure that the space-separated |
| 13572 |
list of modules contains the FTP connection tracking module:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13573 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13574 |
IPTABLES_MODULES="ip_conntrack_ftp" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13575 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13576 |
These settings configure iptables to allow |
| 13577 |
connections to an FTP server. The first line allows initial connections to the FTP |
| 13578 |
server port. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13579 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13580 |
FTP is an older protocol which is not very compatible with firewalls. |
| 13581 |
During the initial FTP dialogue, the client and server negotiate an arbitrary port to be |
| 13582 |
used for data transfer. The ip conntrack ftp module is used by iptables to listen to |
| 13583 |
that dialogue and allow connections to the data ports which FTP negotiates. This allows |
| 13584 |
an FTP server to operate on a machine which is running a firewall.</xccdf:description> |
| 13585 |
</xccdf:Group> |
| 13586 |
</xccdf:Group> |
| 13587 |
</xccdf:Group> |
| 13588 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16"> |
| 13589 |
<xccdf:title xml:lang="en">Web Server</xccdf:title> |
| 13590 |
<xccdf:description xml:lang="en"> |
| 13591 |
The web server is responsible for providing access to content via |
| 13592 |
the HTTP protocol. Web servers represent a significant security risk because: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13593 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13594 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 13595 |
<xhtml:li>The HTTP port is commonly probed by malicious sources </xhtml:li> |
| 13596 |
<xhtml:li>Web server software is very complex, and includes a long history of vulnerabilities </xhtml:li> |
| 13597 |
<xhtml:li>The HTTP protocol is unencrypted and vulnerable to passive monitoring </xhtml:li> |
| 13598 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13599 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13600 |
The system's default web server software is Apache 2 and is provided |
| 13601 |
in the RPM package httpd.</xccdf:description> |
| 13602 |
<xccdf:reference>Ristic, I. Apache Security. O’Reilly and Associates, Mar 2005</xccdf:reference> |
| 13603 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.1"> |
| 13604 |
<xccdf:title xml:lang="en">Disable Apache if Possible</xccdf:title> |
| 13605 |
<xccdf:description xml:lang="en"> |
| 13606 |
If Apache was installed and activated, but the system does not |
| 13607 |
need to act as a web server, then it should be disabled and removed from the system: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13608 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13609 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig httpd off <xhtml:br/> |
| 13610 |
# yum erase httpd</xhtml:code></xccdf:description> |
| 13611 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.1.a" selected="false" severity="low" weight="10.0"> |
| 13612 |
<xccdf:title>Disable Apache if Possible</xccdf:title> |
| 13613 |
<xccdf:description>The httpd service should be disabled.</xccdf:description> |
| 13614 |
<xccdf:ident system="http://cce.mitre.org">CCE-4338-0</xccdf:ident> |
| 13615 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 13616 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13617 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20322"/> |
| 13618 |
</xccdf:check> |
| 13619 |
</xccdf:Rule> |
| 13620 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.1.b" selected="false" weight="10.0"> |
| 13621 |
<xccdf:title>Uninstall Apache if Possible</xccdf:title> |
| 13622 |
<xccdf:description>The httpd package should be uninstalled.</xccdf:description> |
| 13623 |
<xccdf:ident system="http://cce.mitre.org">CCE-4514-6</xccdf:ident> |
| 13624 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 13625 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13626 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20323"/> |
| 13627 |
</xccdf:check> |
| 13628 |
</xccdf:Rule> |
| 13629 |
</xccdf:Group> |
| 13630 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.2"> |
| 13631 |
<xccdf:title xml:lang="en">Install Apache if Necessary</xccdf:title> |
| 13632 |
<xccdf:description xml:lang="en"> |
| 13633 |
If the Apache web server must be run, follow these guidelines to |
| 13634 |
install it defensively. Then follow the guidelines in the remainder of Section 3.16 to |
| 13635 |
configure the web server machine and software as securely as possible.</xccdf:description> |
| 13636 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.2.1"> |
| 13637 |
<xccdf:title xml:lang="en">Install Apache Software Safely</xccdf:title> |
| 13638 |
<xccdf:description xml:lang="en"> |
| 13639 |
Install the Apache 2 package from the standard Red Hat |
| 13640 |
distribution channel: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13641 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13642 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install httpd <xhtml:br/></xhtml:code> |
| 13643 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13644 |
Note: This method of installation is |
| 13645 |
recommended over installing the 'Web Server' package group during the system |
| 13646 |
installation process. The Web Server package group includes many packages which are |
| 13647 |
likely extraneous, while the command-line method installs only the required httpd |
| 13648 |
package itself.</xccdf:description> |
| 13649 |
</xccdf:Group> |
| 13650 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.2.2"> |
| 13651 |
<xccdf:title xml:lang="en">Confirm Minimal Built-in Modules</xccdf:title> |
| 13652 |
<xccdf:description xml:lang="en"> |
| 13653 |
The default Apache installation minimizes the number of modules |
| 13654 |
that are compiled directly into the binary (core prefork http core mod so). This |
| 13655 |
minimizes risk by limiting the capabilities allowed by the webserver. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13656 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13657 |
Query the set of compiled-in modules using the following command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13658 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13659 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">$ httpd -l <xhtml:br/></xhtml:code> |
| 13660 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13661 |
If the number of compiled-in |
| 13662 |
modules is significantly larger than the aforementioned set, this guide recommends |
| 13663 |
reinstallating Apache with a reduced configuration.</xccdf:description> |
| 13664 |
</xccdf:Group> |
| 13665 |
</xccdf:Group> |
| 13666 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3"> |
| 13667 |
<xccdf:title xml:lang="en">Secure the Apache Configuration</xccdf:title> |
| 13668 |
<xccdf:description xml:lang="en"> |
| 13669 |
The Apache configuration file is /etc/httpd/conf/httpd.conf. |
| 13670 |
Apply the recommendations in the remainder of this section to this file.</xccdf:description> |
| 13671 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.1"> |
| 13672 |
<xccdf:title xml:lang="en">Restrict Information Leakage</xccdf:title> |
| 13673 |
<xccdf:description xml:lang="en"> |
| 13674 |
The ServerTokens and ServerSignature directives determine how |
| 13675 |
much information the web server discloses about the configuration of the system. |
| 13676 |
ServerTokens Prod restricts information in page headers, returning only the word |
| 13677 |
'Apache.' ServerSignature Off keeps Apache from displaying the server version on error |
| 13678 |
pages. It is a good security practice to limit the information provided to clients. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13679 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13680 |
Add |
| 13681 |
or correct the following directives in /etc/httpd/conf/httpd.conf so that as little |
| 13682 |
information as possible is released: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13683 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13684 |
ServerTokens Prod <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13685 |
ServerSignature Off</xccdf:description> |
| 13686 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.3.1.a" operator="equals" type="string"> |
| 13687 |
<xccdf:title>value of ServerTokens</xccdf:title> |
| 13688 |
<xccdf:description xml:lang="en">Tells apache to only return Apache in the Server header, returned on every page request.</xccdf:description> |
| 13689 |
<xccdf:question xml:lang="en">Specify restrictions of of provided information in page headers for web server</xccdf:question> |
| 13690 |
<xccdf:value>Prod</xccdf:value> |
| 13691 |
<xccdf:value selector="prod">Prod</xccdf:value> |
| 13692 |
</xccdf:Value> |
| 13693 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.3.1.b" operator="equals" type="string"> |
| 13694 |
<xccdf:title>value of ServerSignature</xccdf:title> |
| 13695 |
<xccdf:description xml:lang="en">Tells apache not to display the server version on error pages, or other pages it generates.</xccdf:description> |
| 13696 |
<xccdf:question xml:lang="en">Enable/Disable Apache displaying the server version on error pages</xccdf:question> |
| 13697 |
<xccdf:value>Off</xccdf:value> |
| 13698 |
<xccdf:value selector="off">Off</xccdf:value> |
| 13699 |
</xccdf:Value> |
| 13700 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.3.1.a" selected="false" weight="10.0"> |
| 13701 |
<xccdf:title>Restrict Information Leakageusing ServerTokens</xccdf:title> |
| 13702 |
<xccdf:description>The apache2 server's ServerTokens value should be set appropriately</xccdf:description> |
| 13703 |
<xccdf:ident system="http://cce.mitre.org">CCE-4474-3</xccdf:ident> |
| 13704 |
<xccdf:fixtext>(1) via /etc/httpd/conf/httpd.conf</xccdf:fixtext> |
| 13705 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13706 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20324" value-id="xccdf_cdf_value_var-3.16.3.1.a"/> |
| 13707 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20324"/> |
| 13708 |
</xccdf:check> |
| 13709 |
</xccdf:Rule> |
| 13710 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.3.1.b" selected="false" weight="10.0"> |
| 13711 |
<xccdf:title>Restrict Information Leakage using ServerSignature</xccdf:title> |
| 13712 |
<xccdf:description>The apache2 server's ServerSignature value should be set appropriately</xccdf:description> |
| 13713 |
<xccdf:ident system="http://cce.mitre.org">CCE-3756-4</xccdf:ident> |
| 13714 |
<xccdf:fixtext>(1) via /etc/httpd/conf/httpd.conf</xccdf:fixtext> |
| 13715 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 13716 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20325" value-id="xccdf_cdf_value_var-3.16.3.1.b"/> |
| 13717 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20325"/> |
| 13718 |
</xccdf:check> |
| 13719 |
</xccdf:Rule> |
| 13720 |
</xccdf:Group> |
| 13721 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2"> |
| 13722 |
<xccdf:title xml:lang="en">Minimize Loadable Modules</xccdf:title> |
| 13723 |
<xccdf:description xml:lang="en"> |
| 13724 |
A default installation of Apache includes a plethora of |
| 13725 |
'dynamically shared objects' (DSO) that are loaded at run-time. Unlike the |
| 13726 |
aforementioned 'compiled-in' modules, a DSO can be disabled in the configuration file by |
| 13727 |
removing the corresponding LoadModule directive. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13728 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13729 |
Note: A DSO only provides additional |
| 13730 |
functionality if associated directives are included in the Apache configuration file. It |
| 13731 |
should also be noted that removing a DSO will produce errors on Apache startup if the |
| 13732 |
configuration file contains directives that apply to that module. Refer to |
| 13733 |
http://httpd.apache.org/docs/ for details on which directives are associated with each |
| 13734 |
DSO. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13735 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13736 |
Follow each DSO removal, the configuration can be tested with the following command |
| 13737 |
to check if everything still works: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13738 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13739 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># service httpd configtest <xhtml:br/></xhtml:code> |
| 13740 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13741 |
The purpose of each of |
| 13742 |
the modules loaded by default will now be addressed one at a time. If none of a module's |
| 13743 |
directives are being used, remove it.</xccdf:description> |
| 13744 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.1"> |
| 13745 |
<xccdf:title xml:lang="en">Apache Core Modules</xccdf:title> |
| 13746 |
<xccdf:description xml:lang="en"> |
| 13747 |
These modules comprise a basic subset of modules that are |
| 13748 |
likely needed for base Apache functionality; ensure they are not commented out in |
| 13749 |
/etc/httpd/conf/httpd.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13750 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13751 |
LoadModule auth_basic_module modules/mod_auth_basic.so<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13752 |
LoadModule authn_default_module modules/mod_authn_default.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13753 |
LoadModule authz_host_module modules/mod_authz_host.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13754 |
LoadModule authz_user_module modules/mod_authz_user.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13755 |
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13756 |
LoadModule authz_default_module modules/mod_authz_default.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13757 |
LoadModule log_config_module modules/mod_log_config.so<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13758 |
LoadModule logio_module modules/mod_logio.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13759 |
LoadModule setenvif_module modules/mod_setenvif.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13760 |
LoadModule mime_module modules/mod_mome.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13761 |
LoadModule autoindex_module modules/mod_autoindex.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13762 |
LoadModule negotiation_module modules/mod_negotiation.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13763 |
LoadModule dir_module modules/mod_dir.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13764 |
LoadModule alias_module modules/mod_alias.so</xccdf:description> |
| 13765 |
</xccdf:Group> |
| 13766 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.2"> |
| 13767 |
<xccdf:title xml:lang="en">HTTP Basic Authentication</xccdf:title> |
| 13768 |
<xccdf:description xml:lang="en"> |
| 13769 |
The following modules are necessary if this web server will |
| 13770 |
provide content that will be restricted by a password. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13771 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13772 |
Authentication can be performed |
| 13773 |
using local plain text password files (authn file), local DBM password files (authn |
| 13774 |
dbm) or an LDAP directory (see Section 3.16.3.2.5). The only module required by the |
| 13775 |
web server depends on your choice of authentication. Comment out the modules you don't |
| 13776 |
need from the following: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13777 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13778 |
LoadModule authn_file_module modules/mod_authn_file.so<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13779 |
LoadModule authn_dbm_module modules/mod_authn_dbm.so <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13780 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13781 |
authn_alias allows for |
| 13782 |
authentication based on aliases. authn_anon allows anonymous authentication similar to |
| 13783 |
that of anonymous ftp sites. authz owner allows authorization based on file ownership. |
| 13784 |
authz dbm allows for authorization based on group membership if the web server is |
| 13785 |
using DBM authentication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13786 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13787 |
If the above functionality is unnecessary, comment out the |
| 13788 |
related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13789 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13790 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule authn_alias_module modules/mod_authn_alias.so <xhtml:br/> |
| 13791 |
#LoadModule authn_anon_module modules/mod_authn_anon.so <xhtml:br/> |
| 13792 |
#LoadModule authz_owner_module modules/mod_authz_owner.so <xhtml:br/> |
| 13793 |
#LoadModule authz_dbm_module modules/mod_authz_dbm.so</xhtml:code></xccdf:description> |
| 13794 |
</xccdf:Group> |
| 13795 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.3"> |
| 13796 |
<xccdf:title xml:lang="en">HTTP Digest Authentication</xccdf:title> |
| 13797 |
<xccdf:description xml:lang="en"> |
| 13798 |
This module provides encrypted authentication sessions. |
| 13799 |
However, this module is rarely used and considered experimental. Alternate methods of |
| 13800 |
encrypted authentication are recommended, such as SSL (Section 3.16.4.1) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13801 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13802 |
If the above |
| 13803 |
functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13804 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13805 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule auth_digest_module modules/mod_auth_digest.so</xhtml:code></xccdf:description> |
| 13806 |
</xccdf:Group> |
| 13807 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.4"> |
| 13808 |
<xccdf:title xml:lang="en">mod rewrite</xccdf:title> |
| 13809 |
<xccdf:description xml:lang="en"> |
| 13810 |
The mod rewrite module is very powerful and can protect |
| 13811 |
against certain classes of web attacks. However, it is also very complex and has a |
| 13812 |
significant history of vulnerabilities itself. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13813 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13814 |
If the above functionality is |
| 13815 |
unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13816 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13817 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule rewrite_module modules/mod_rewrite.so</xhtml:code></xccdf:description> |
| 13818 |
</xccdf:Group> |
| 13819 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.5"> |
| 13820 |
<xccdf:title xml:lang="en">LDAP Support</xccdf:title> |
| 13821 |
<xccdf:description xml:lang="en"> |
| 13822 |
This module provides HTTP authentication via an LDAP |
| 13823 |
directory. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13824 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13825 |
If the above functionality is unnecessary, comment out the related modules:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13826 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13827 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule ldap_module modules/mod_ldap.so <xhtml:br/> |
| 13828 |
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so <xhtml:br/></xhtml:code> |
| 13829 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13830 |
If LDAP is to be used, SSL encryption (Section 3.16.4.1) |
| 13831 |
should be used as well.</xccdf:description> |
| 13832 |
</xccdf:Group> |
| 13833 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.6"> |
| 13834 |
<xccdf:title xml:lang="en">Server Side Includes</xccdf:title> |
| 13835 |
<xccdf:description xml:lang="en"> |
| 13836 |
Server Side Includes provide a method of dynamically |
| 13837 |
generating web pages through the insertion of server-side code. However, the |
| 13838 |
technology is also deprecated and introduces significant security concerns. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13839 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13840 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13841 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13842 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule include_module modules/mod_include.so <xhtml:br/></xhtml:code> |
| 13843 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13844 |
If there is a critical need for Server Side |
| 13845 |
Includes, they should be enabled with the option IncludesNoExec to prevent arbitrary |
| 13846 |
code execution. Additionally, user supplied data should be encoded to prevent |
| 13847 |
cross-site scripting vulnerabilities.</xccdf:description> |
| 13848 |
</xccdf:Group> |
| 13849 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.7"> |
| 13850 |
<xccdf:title xml:lang="en">MIME Magic</xccdf:title> |
| 13851 |
<xccdf:description xml:lang="en"> |
| 13852 |
This module provides a second layer of MIME support that in |
| 13853 |
most configurations is likely extraneous. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13854 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13855 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13856 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13857 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule mime_magic_module modules/mod_mime_magic.so</xhtml:code></xccdf:description> |
| 13858 |
</xccdf:Group> |
| 13859 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.8"> |
| 13860 |
<xccdf:title xml:lang="en">WebDAV (Distributed Authoring and Versioning)</xccdf:title> |
| 13861 |
<xccdf:description xml:lang="en"> |
| 13862 |
WebDAV is an extension of the HTTP protocol that provides |
| 13863 |
distributed and collaborative access to web content. Due to a number of security |
| 13864 |
concerns with WebDAV, its use is not recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13865 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13866 |
If the above functionality is unnecessary, comment out the related modules: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13867 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13868 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule dav_module modules/mod_dav.so <xhtml:br/> |
| 13869 |
#LoadModule dav_fs_module modules/mod_dav_fs.so <xhtml:br/></xhtml:code> |
| 13870 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13871 |
If there is a |
| 13872 |
critical need for WebDAV, extra care should be taken in its configuration. Since DAV |
| 13873 |
access allows remote clients to manipulate server files, any location on the server |
| 13874 |
that is DAV enabled should be protected by encrypted authentication.</xccdf:description> |
| 13875 |
</xccdf:Group> |
| 13876 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.9"> |
| 13877 |
<xccdf:title xml:lang="en">Server Activity Status</xccdf:title> |
| 13878 |
<xccdf:description xml:lang="en"> |
| 13879 |
This module provides real-time access to statistics on the |
| 13880 |
internal operation of the web server. This is an unnecessary information leak and |
| 13881 |
should be disabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13882 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13883 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13884 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13885 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule status_module modules/mod_status.so <xhtml:br/></xhtml:code> |
| 13886 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13887 |
If there is a critical need |
| 13888 |
for this module, ensure that access to the status page is properly restricted to a |
| 13889 |
limited set of hosts in the status handler configuration.</xccdf:description> |
| 13890 |
</xccdf:Group> |
| 13891 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.10"> |
| 13892 |
<xccdf:title xml:lang="en">Web Server Configuration Display</xccdf:title> |
| 13893 |
<xccdf:description xml:lang="en"> |
| 13894 |
This module creates a web page illustrating the configuration |
| 13895 |
of the web server. This is an unnecessary security leak and should be disabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13896 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13897 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13898 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13899 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule info_module modules/mod_info.so <xhtml:br/></xhtml:code> |
| 13900 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13901 |
If there is a critical need for this module, use the |
| 13902 |
Location directive to provide an access control list to restrict access to the |
| 13903 |
information.</xccdf:description> |
| 13904 |
</xccdf:Group> |
| 13905 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.11"> |
| 13906 |
<xccdf:title xml:lang="en">URL Correction on Misspelled Entries</xccdf:title> |
| 13907 |
<xccdf:description xml:lang="en"> |
| 13908 |
This module attempts to find a document match by allowing one |
| 13909 |
misspelling in an otherwise failed request. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13910 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13911 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13912 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13913 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule speling_module modules/mod_speling.so <xhtml:br/></xhtml:code> |
| 13914 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13915 |
This functionality weakens server security by making site enumeration easier.</xccdf:description> |
| 13916 |
</xccdf:Group> |
| 13917 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.12"> |
| 13918 |
<xccdf:title xml:lang="en">User-specific directories</xccdf:title> |
| 13919 |
<xccdf:description xml:lang="en"> |
| 13920 |
The UserDir directive provides user-specific directory |
| 13921 |
translation, allowing URLs based on associated usernames. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13922 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13923 |
If the above functionality is unnecessary, comment out the related module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13924 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13925 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule userdir_module modules/mod_userdir.so <xhtml:br/></xhtml:code> |
| 13926 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13927 |
If there is a critical need for this module, include the line |
| 13928 |
UserDir disabled root (at a minimum) in the configuration file. Ideally, UserDir |
| 13929 |
should be disabled, and then enabled on a case-by-case basis for specific users that |
| 13930 |
require this functionality. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13931 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13932 |
Note: A web server's users can be trivially enumerated |
| 13933 |
using this module.</xccdf:description> |
| 13934 |
</xccdf:Group> |
| 13935 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.13"> |
| 13936 |
<xccdf:title xml:lang="en">Proxy Support</xccdf:title> |
| 13937 |
<xccdf:description xml:lang="en"> |
| 13938 |
This module provides proxying support, allowing Apache to |
| 13939 |
forward requests and serve as a gateway for other servers. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13940 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13941 |
If the above functionality is unnecessary, comment out the related modules: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13942 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13943 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule proxy_module modules/mod_proxy.so <xhtml:br/> |
| 13944 |
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so<xhtml:br/> |
| 13945 |
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so <xhtml:br/> |
| 13946 |
#LoadModule proxy_http_module modules/mod_proxy_http.so <xhtml:br/> |
| 13947 |
#LoadModule proxy_connect_module modules/mod_proxy_connect.so <xhtml:br/></xhtml:code> |
| 13948 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13949 |
If proxy support is needed, load proxy and the |
| 13950 |
appropriate proxy protocol handler module (one of proxy http, proxy ftp, or proxy |
| 13951 |
connect). Additionally, make certain that a server is secure before enabling proxying, |
| 13952 |
as open proxy servers are a security risk. proxy balancer enables load balancing, but |
| 13953 |
requires that mod status be enabled. Since mod status is not recommended, proxy |
| 13954 |
balancer should be avoided as well.</xccdf:description> |
| 13955 |
</xccdf:Group> |
| 13956 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.14"> |
| 13957 |
<xccdf:title xml:lang="en">Cache Support</xccdf:title> |
| 13958 |
<xccdf:description xml:lang="en"> |
| 13959 |
This module allows Apache to cache data, optimizing access to |
| 13960 |
frequently accessed content. However, not only is it an experimental module, but it |
| 13961 |
also introduces potential security flaws into the web server such as the possibility |
| 13962 |
of circumventing Allow and Deny directives. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13963 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13964 |
If the above functionality is unnecessary, comment out the related modules: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13965 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13966 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule cache_module modules/mod_cache.so<xhtml:br/> |
| 13967 |
#LoadModule disk_cache_module modules/mod_disk_cache.so <xhtml:br/> |
| 13968 |
#LoadModule file_cache_module modules/mod_file_cache.so <xhtml:br/> |
| 13969 |
#LoadModule mem_cache_module modules/mod_mem_cache.so <xhtml:br/></xhtml:code> |
| 13970 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13971 |
If caching is required, it should not be enabled for any limited-access content.</xccdf:description> |
| 13972 |
</xccdf:Group> |
| 13973 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.15"> |
| 13974 |
<xccdf:title xml:lang="en">CGI Support (and Related Modules)</xccdf:title> |
| 13975 |
<xccdf:description xml:lang="en"> |
| 13976 |
This module allows HTML to interact with the CGI web |
| 13977 |
programming language. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13978 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13979 |
If the above functionality is unnecessary, comment out the related modules: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13980 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#LoadModule cgi_module modules/mod_cgi.so <xhtml:br/> |
| 13981 |
#LoadModule env_module modules/mod_env.so <xhtml:br/> |
| 13982 |
#LoadModule actions_module modules/mod_actions.so <xhtml:br/> |
| 13983 |
#LoadModule suexec_module modules/mod_suexec.so <xhtml:br/></xhtml:code> |
| 13984 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13985 |
If the web server requires the use of CGI, enable |
| 13986 |
the cgi module. If extended CGI functionality is required, include the appropriate |
| 13987 |
modules. env allows for control of the environment passed to CGI scripts. actions |
| 13988 |
allows CGI events to be triggered when files of a certain type are requested. su exec |
| 13989 |
allows CGI scripts to run as a specified user/group instead of as the server's |
| 13990 |
user/group.</xccdf:description> |
| 13991 |
</xccdf:Group> |
| 13992 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.2.16"> |
| 13993 |
<xccdf:title xml:lang="en">Various Optional Components</xccdf:title> |
| 13994 |
<xccdf:description xml:lang="en"> |
| 13995 |
The following modules perform very specific tasks, sometimes |
| 13996 |
providing access to just a few additional directives. If this functionality is not |
| 13997 |
required (or if you are not using these directives), comment out the associated |
| 13998 |
module: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 13999 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14000 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 14001 |
<xhtml:li>External filtering (response passed through external program prior to client delivery) <xhtml:br/> |
| 14002 |
<xhtml:br/> |
| 14003 |
<xhtml:code>#LoadModule ext_filter_module modules/mod_ext_filter.so </xhtml:code></xhtml:li> |
| 14004 |
<xhtml:li>User-specified |
| 14005 |
Cache Control and Expiration <xhtml:br/> |
| 14006 |
<xhtml:br/> |
| 14007 |
<xhtml:code>#LoadModule expires_module modules/mod_expires.so</xhtml:code> </xhtml:li> |
| 14008 |
<xhtml:li>Compression Output Filter (provides content compression prior to client delivery)<xhtml:br/> |
| 14009 |
<xhtml:br/> |
| 14010 |
<xhtml:code>#LoadModule deflate_module modules/mod_deflate.so </xhtml:code></xhtml:li> |
| 14011 |
<xhtml:li>HTTP Response/Request Header Customization <xhtml:br/> |
| 14012 |
<xhtml:br/> |
| 14013 |
<xhtml:code>#LoadModule headers_module modules/mod_headers.so</xhtml:code> </xhtml:li> |
| 14014 |
<xhtml:li>User activity monitoring via cookies <xhtml:br/> |
| 14015 |
<xhtml:br/> |
| 14016 |
<xhtml:code>#LoadModule usertrack_module modules/mod_usertrack.so </xhtml:code></xhtml:li> |
| 14017 |
<xhtml:li>Dynamically configured mass virtual hosting <xhtml:br/> |
| 14018 |
<xhtml:br/> |
| 14019 |
<xhtml:code>#LoadModule vhost_alias_module modules/mod_vhost_alias.so</xhtml:code></xhtml:li> |
| 14020 |
</xhtml:ul> |
| 14021 |
</xccdf:description> |
| 14022 |
</xccdf:Group> |
| 14023 |
</xccdf:Group> |
| 14024 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.3"> |
| 14025 |
<xccdf:title xml:lang="en">Minimize Configuration Files Included</xccdf:title> |
| 14026 |
<xccdf:description xml:lang="en"> |
| 14027 |
The Include directive directs Apache to load supplementary |
| 14028 |
configuration files from a provided path. The default configuration loads all files that |
| 14029 |
end in .conf from the /etc/httpd/conf.d directory. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14030 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14031 |
To restrict excess configuration, the |
| 14032 |
following line should be commented out and replaced with Include directives that only |
| 14033 |
reference required configuration files: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14034 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14035 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml">#Include conf.d/*.conf <xhtml:br/></xhtml:code> |
| 14036 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14037 |
If the above change was |
| 14038 |
made, ensure that the SSL encryption remains loaded by explicitly including the |
| 14039 |
corresponding configuration file: (see Section 3.16.4.1 for further details on SSL |
| 14040 |
configuration) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14041 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14042 |
Include conf.d/ssl.conf <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14043 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14044 |
If PHP is necessary, a similar alteration must be |
| 14045 |
made: (see Section 3.16.4.4.1 for further details on PHP configuration) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14046 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14047 |
Include conf.d/php.conf</xccdf:description> |
| 14048 |
</xccdf:Group> |
| 14049 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.4"> |
| 14050 |
<xccdf:title xml:lang="en">Directory Restrictions</xccdf:title> |
| 14051 |
<xccdf:description xml:lang="en"> |
| 14052 |
The Directory tags in the web server configuration file allow |
| 14053 |
finer grained access control for a specified directory. All web directories should be |
| 14054 |
configured on a case-by-case basis, allowing access only where needed.</xccdf:description> |
| 14055 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.4.1"> |
| 14056 |
<xccdf:title xml:lang="en">Restrict Root Directory</xccdf:title> |
| 14057 |
<xccdf:description xml:lang="en"> |
| 14058 |
The Apache root directory should always have the most |
| 14059 |
restrictive configuration enabled. |
| 14060 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14061 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14062 |
<Directory |
| 14063 |
/> |
| 14064 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14065 |
Options None |
| 14066 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14067 |
AllowOverride None |
| 14068 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14069 |
Order |
| 14070 |
allow,deny |
| 14071 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14072 |
</Directory> |
| 14073 |
</xccdf:description> |
| 14074 |
</xccdf:Group> |
| 14075 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.4.2"> |
| 14076 |
<xccdf:title xml:lang="en">Restrict Web Directory</xccdf:title> |
| 14077 |
<xccdf:description xml:lang="en"> |
| 14078 |
The default configuration for the web (/var/www/html) |
| 14079 |
Directory allows directory indexing (Indexes)and the following of symbolic links |
| 14080 |
(FollowSymLinks). Neither of these is recommended.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14081 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14082 |
The |
| 14083 |
/var/www/html directory hierarchy should not be viewable via the web, and symlinks |
| 14084 |
should only be followed if the owner of the symlink also owns the linked |
| 14085 |
file.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14086 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14087 |
Ensure that this policy is adhered to by altering the |
| 14088 |
related section of the configuration:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14089 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14090 |
<Directory |
| 14091 |
"/var/www/html"> |
| 14092 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14093 |
# ... |
| 14094 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14095 |
Options SymLinksIfOwnerMatch |
| 14096 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14097 |
# ... |
| 14098 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14099 |
</Directory> |
| 14100 |
</xccdf:description> |
| 14101 |
</xccdf:Group> |
| 14102 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.4.3"> |
| 14103 |
<xccdf:title xml:lang="en">Restrict Other Critical Directories</xccdf:title> |
| 14104 |
<xccdf:description xml:lang="en"> |
| 14105 |
All accessible web directories should be configured with |
| 14106 |
similar restrictive settings. The Options directive should be limited to necessary |
| 14107 |
functionality and the AllowOverride directive should be used only if needed. The Order |
| 14108 |
and Deny access control tags should be used to deny access by default, allowing access |
| 14109 |
only where necessary.</xccdf:description> |
| 14110 |
</xccdf:Group> |
| 14111 |
</xccdf:Group> |
| 14112 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.5"> |
| 14113 |
<xccdf:title xml:lang="en">Configure Authentication if Applicable</xccdf:title> |
| 14114 |
<xccdf:description xml:lang="en"> |
| 14115 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 14116 |
<xhtml:li>Set up a password file. <xhtml:br/> |
| 14117 |
<xhtml:br/> |
| 14118 |
If a password file doesn't yet exist, one must be generated with the following command: <xhtml:br/> |
| 14119 |
<xhtml:br/> |
| 14120 |
<xhtml:code># htpasswd -cs passwdfile user <xhtml:br/></xhtml:code> |
| 14121 |
<xhtml:br/> |
| 14122 |
<xhtml:em>WARNING: This command will overwrite an existing file at this location.</xhtml:em> |
| 14123 |
<xhtml:br/> |
| 14124 |
Once a password file has been generated, subsequent users can be added with the |
| 14125 |
following command: <xhtml:br/> |
| 14126 |
<xhtml:br/> |
| 14127 |
<xhtml:code># htpasswd -s passwdfile user </xhtml:code></xhtml:li> |
| 14128 |
<xhtml:li>Optionally, set up a group file (if using group authentication). <xhtml:br/> |
| 14129 |
<xhtml:br/> |
| 14130 |
The group file is a plain text file of the following format |
| 14131 |
(each group is on its own line, followed by a colon and a list of users that belong to |
| 14132 |
that group, separated by spaces): <xhtml:br/> |
| 14133 |
<xhtml:br/> |
| 14134 |
group : user1 user2 <xhtml:br/> |
| 14135 |
group2 : user3 </xhtml:li> |
| 14136 |
<xhtml:li>Modify file |
| 14137 |
permissions so that Apache can read the group and passwd files: <xhtml:br/> |
| 14138 |
<xhtml:br/> |
| 14139 |
<xhtml:code># chgrp apache passwdfile groupfile <xhtml:br/> |
| 14140 |
# chmod 640 passwdfile groupfile </xhtml:code></xhtml:li> |
| 14141 |
<xhtml:li>Turn on authentication for desired directories <xhtml:br/> |
| 14142 |
<xhtml:br/> |
| 14143 |
Add the following options inside the appropriate Directory tag: <xhtml:br/> |
| 14144 |
<xhtml:br/> |
| 14145 |
<xhtml:ul> |
| 14146 |
<xhtml:li>For single-user authentication: <xhtml:br/> |
| 14147 |
<Directory "directory "> <xhtml:br/> |
| 14148 |
# ... AuthName "Private Data" <xhtml:br/> |
| 14149 |
AuthType Basic <xhtml:br/> |
| 14150 |
AuthUserFile passwdfile <xhtml:br/> |
| 14151 |
require user user <xhtml:br/> |
| 14152 |
# ...<xhtml:br/> |
| 14153 |
</Directory> </xhtml:li> |
| 14154 |
<xhtml:li>For multiple-user authentication restricted by groups:<xhtml:br/> |
| 14155 |
<Directory "directory "> <xhtml:br/> |
| 14156 |
# ... <xhtml:br/> |
| 14157 |
AuthName "Private Data" <xhtml:br/> |
| 14158 |
AuthType Basic<xhtml:br/> |
| 14159 |
<xhtml:br/> |
| 14160 |
AuthUserFile passwdfile <xhtml:br/> |
| 14161 |
AuthGroupFile groupfile <xhtml:br/> |
| 14162 |
require group group <xhtml:br/> |
| 14163 |
# ...<xhtml:br/> |
| 14164 |
</Directory> </xhtml:li> |
| 14165 |
<xhtml:li>For multiple-user authentication restricted by valid user accounts: <xhtml:br/> |
| 14166 |
<xhtml:br/> |
| 14167 |
<Directory "directory "> <xhtml:br/> |
| 14168 |
# ... <xhtml:br/> |
| 14169 |
AuthName "Private Data" <xhtml:br/> |
| 14170 |
AuthType Basic <xhtml:br/> |
| 14171 |
AuthUserFile passwdfile <xhtml:br/> |
| 14172 |
require valid-user <xhtml:br/> |
| 14173 |
# ... <xhtml:br/> |
| 14174 |
</Directory> </xhtml:li> |
| 14175 |
</xhtml:ul> |
| 14176 |
</xhtml:li> |
| 14177 |
</xhtml:ol> |
| 14178 |
The AuthName directive specifies a label for the protected content. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14179 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14180 |
The AuthType directive |
| 14181 |
specifies the kind of authentication (if using Digest authentication, this line would |
| 14182 |
instead read AuthType Digest) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14183 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14184 |
The AuthUserFile and AuthGroupFile directives point to the |
| 14185 |
password and group files (if using Digest authentication, these directives would instead |
| 14186 |
be AuthDigestFile and AuthDigestGroupFile.)<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14187 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14188 |
The require user directive restricts access |
| 14189 |
to a single user. The require group directive restricts access to multiple users in a |
| 14190 |
designated group. The short-hand require valid-user directive restricts access to any |
| 14191 |
user in the passwdfile <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14192 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14193 |
Note: Make sure the AuthUserFile and AuthGroupFile locations are |
| 14194 |
outside the web server document tree to prevent remote clients from having access to |
| 14195 |
restricted usernames and passwords. This guide recommends /etc/httpd/conf as a location |
| 14196 |
for these files.</xccdf:description> |
| 14197 |
<xccdf:warning xml:lang="en">Basic authentication is handled in plaintext over the network. |
| 14198 |
Therefore, all login attempts are vulnerable to password sniffing. For increased |
| 14199 |
protection against passive monitoring, encrypted authentication over a secure channel |
| 14200 |
such as SSL (Section 3.16.4.1) is recommended. </xccdf:warning> |
| 14201 |
</xccdf:Group> |
| 14202 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.3.6"> |
| 14203 |
<xccdf:title xml:lang="en">Limit Available Methods</xccdf:title> |
| 14204 |
<xccdf:description xml:lang="en"> |
| 14205 |
Web server methods are defined in section 9 of RFC 2616 |
| 14206 |
(http://www.ietf.org/rfc/rfc2616.txt). If a web server does not require the |
| 14207 |
implementation of all available methods, they should be disabled. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14208 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14209 |
Note: GET and POST are |
| 14210 |
the most common methods. A majority of the others are limited to the WebDAV protocol.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14211 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14212 |
<Directory /var/www/html> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14213 |
# ... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14214 |
# Only allow specific methods (this command is case-sensitive!) <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14215 |
<LimitExcept GET POST> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14216 |
Order allow,deny<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14217 |
</LimitExcept> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14218 |
# ... <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14219 |
</Directory></xccdf:description> |
| 14220 |
</xccdf:Group> |
| 14221 |
</xccdf:Group> |
| 14222 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4"> |
| 14223 |
<xccdf:title xml:lang="en">Use Appropriate Modules to Improve Apaches Security'</xccdf:title> |
| 14224 |
<xccdf:description xml:lang="en"> |
| 14225 |
Among the modules available for Apache are several whose use may |
| 14226 |
improve the security of the web server installation. This section recommends and discusses |
| 14227 |
the deployment of security-relevant modules.</xccdf:description> |
| 14228 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.1"> |
| 14229 |
<xccdf:title xml:lang="en">Deploy mod ssl</xccdf:title> |
| 14230 |
<xccdf:description xml:lang="en"> |
| 14231 |
Because HTTP is a plain text protocol, all traffic is |
| 14232 |
susceptible to passive monitoring. If there is a need for confidentiality, SSL should be |
| 14233 |
configured and enabled to encrypt content. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14234 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14235 |
Note: mod nss is a FIPS 140-2 certified |
| 14236 |
alternative to mod ssl. The modules share a considerable amount of code and should be |
| 14237 |
nearly identical in functionality. If FIPS 140-2 validation is required, then mod nss |
| 14238 |
should be used. If it provides some feature or its greater compatibility is required, |
| 14239 |
thenmod ssl should be used.</xccdf:description> |
| 14240 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.1.1"> |
| 14241 |
<xccdf:title xml:lang="en">Install mod ssl</xccdf:title> |
| 14242 |
<xccdf:description xml:lang="en"> |
| 14243 |
Install mod ssl: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14244 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14245 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># yum install mod ssl</xhtml:code></xccdf:description> |
| 14246 |
</xccdf:Group> |
| 14247 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.1.2"> |
| 14248 |
<xccdf:title xml:lang="en">Create an SSL Certificate</xccdf:title> |
| 14249 |
<xccdf:description xml:lang="en"> |
| 14250 |
On your CA (if you are using your own) or on another |
| 14251 |
physically secure system, generate a key pair for the web server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14252 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14253 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/pki/tls/certs <xhtml:br/> |
| 14254 |
# openssl genrsa -des3 -out httpserverkey.pem 2048 <xhtml:br/></xhtml:code> |
| 14255 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14256 |
When prompted, |
| 14257 |
enter a strong, unique passphrase to protect the web server key pair. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14258 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14259 |
Next, generate a Certificate Signing Request (CSR) from the key for the CA: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14260 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14261 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl req -new -key httpserverkey.pem -out httpserver.csr <xhtml:br/></xhtml:code> |
| 14262 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14263 |
Enter the passphrase for the web server key pair |
| 14264 |
and then fill out the fields as completely as possible (or hit return to accept |
| 14265 |
defaults); the Common Name field is especially important. It must match the |
| 14266 |
fullyqualified domain name of your server exactly (e.g. www.example.com) or the |
| 14267 |
certificate will not work. The /etc/pki/tls/openssl.conf file will determine which |
| 14268 |
other fields (e.g. Country Name, Organization Name, etc) must match between the server |
| 14269 |
request and the CA. Leave the challenge password and an optional company name blank. |
| 14270 |
Next, the web server CSR must be signed to create the web server certificate. You can |
| 14271 |
either send the CSR to an established CA or sign it with your CA. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14272 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14273 |
To sign httpserver.csr using your CA: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14274 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14275 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl ca -in httpserver.csr -out httpservercert.pem<xhtml:br/></xhtml:code> |
| 14276 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14277 |
When prompted, enter the CA passphrase to continue and then complete the process. The |
| 14278 |
httpservercert. pem certificate needed to enable SSL on the web server is now in the |
| 14279 |
directory. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14280 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14281 |
Finally, the web server key and certificate file need to be moved to the |
| 14282 |
web server. Use removable media if possible. Place the server key and certificate file |
| 14283 |
in /etc/pki/tls/http/, naming them serverkey.pem and servercert.pem, respectively.</xccdf:description> |
| 14284 |
</xccdf:Group> |
| 14285 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.1.3"> |
| 14286 |
<xccdf:title xml:lang="en">Install SSL Certificate</xccdf:title> |
| 14287 |
<xccdf:description xml:lang="en"> |
| 14288 |
Add or modify the configuration file |
| 14289 |
/etc/httpd/conf.d/ssl.conf to match the following: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14290 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14291 |
# establish new listening port<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14292 |
Listen 443 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14293 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14294 |
# seed appropriately <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14295 |
SSLRandomSeed startup file:/dev/urandom 1024<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14296 |
SSLRandomSeed connect file:/dev/urandom 1024 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14297 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14298 |
<VirtualHost site-on-certificate.com:443> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14299 |
# Enable SSL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14300 |
SSLEngine On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14301 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14302 |
# Path to server certificate + private key <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14303 |
SSLCertificateFile /etc/pki/tls/http/servercert.pem<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14304 |
SSLCertificateKeyFile /etc/pki/tls/http/serverkey.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14305 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14306 |
SSLProtocol All -SSLv2 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14307 |
# Weak ciphers and null authentication should be denied unless absolutely necessary <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14308 |
# (and even then, such cipher weakening should occur within a Location enclosure)<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14309 |
SSLCipherSuite HIGH:MEDIUM:!aNULL:+MD5 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14310 |
</VirtualHost> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14311 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14312 |
Ensure that all |
| 14313 |
directories that house SSL content are restricted to SSL access only in |
| 14314 |
/etc/httpd/conf/ httpd.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14315 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14316 |
<Directory /var/www/html/secure> <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14317 |
# require SSL for access <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14318 |
SSLRequireSSL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14319 |
SSLOptions +StrictRequire <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14320 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14321 |
# require domain to match certificate domain <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14322 |
SSLRequire %{HTTP HOST} eq "site-on-certificate.com" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14323 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14324 |
# rather than reply with 403 error, redirect user to appropriate site <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14325 |
# this is OPTIONAL - uncomment to apply <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14326 |
# ErrorDocument 403 https://site-on-certificate.com<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14327 |
</Directory></xccdf:description> |
| 14328 |
</xccdf:Group> |
| 14329 |
</xccdf:Group> |
| 14330 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.2"> |
| 14331 |
<xccdf:title xml:lang="en">Deploy mod security</xccdf:title> |
| 14332 |
<xccdf:description xml:lang="en"> |
| 14333 |
mod security provides an application level firewall for Apache. |
| 14334 |
Following the installation of mod security with the base ruleset, specific configuration |
| 14335 |
advice can be found at http://www.modsecurity.org/ to design a policy that best matches |
| 14336 |
the security needs of the web applications.</xccdf:description> |
| 14337 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.2.1"> |
| 14338 |
<xccdf:title xml:lang="en">Install mod security</xccdf:title> |
| 14339 |
<xccdf:description xml:lang="en"> |
| 14340 |
Install mod security: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14341 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14342 |
# yum install mod_security</xccdf:description> |
| 14343 |
</xccdf:Group> |
| 14344 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.2.2"> |
| 14345 |
<xccdf:title xml:lang="en">Configure mod security Filtering</xccdf:title> |
| 14346 |
<xccdf:description xml:lang="en"> |
| 14347 |
mod security supports a significant number of options, far |
| 14348 |
too many to be fully covered in this guide. However, the following list comprises a |
| 14349 |
smaller subset of suggested filters to be added to /etc/httpd/conf/ httpd.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14350 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14351 |
# enable mod_security <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14352 |
SecFilterEngine On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14353 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14354 |
# enable POST filtering <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14355 |
SecFilterScanPost On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14356 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14357 |
# Make sure that URL encoding is valid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14358 |
SecFilterCheckURLEncoding On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14359 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14360 |
# Accept almost all byte values <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14361 |
SecFilterForceByteRange 1 255 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14362 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14363 |
# Prevent directory traversal <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14364 |
SecFilter "\.\./" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14365 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14366 |
# Filter on specific system specific paths <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14367 |
SecFilter /etc/passwd <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14368 |
SecFilter /bin/ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14369 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14370 |
# Prevent cross-site scripting <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14371 |
SecFilter "<[[:space:]]* script" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14372 |
# Prevent SQL injection <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14373 |
SecFilter "delete[[:space:]]+from" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14374 |
SecFilter "insert[[:space:]]+into"<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14375 |
SecFilter "select.+from"</xccdf:description> |
| 14376 |
</xccdf:Group> |
| 14377 |
</xccdf:Group> |
| 14378 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.3"> |
| 14379 |
<xccdf:title xml:lang="en">Use Denial-of-Service Protection Modules</xccdf:title> |
| 14380 |
<xccdf:description xml:lang="en"> |
| 14381 |
Denial-of-service attacks are difficult to detect and prevent |
| 14382 |
while maintaining acceptable access to authorized users. However, there are a number of |
| 14383 |
traffic-shaping modules that attempt to address the problem. Well-known DoS protection |
| 14384 |
modules include: mod_throttle mod_bwshare mod_limitipconn mod_dosevasive It is |
| 14385 |
recommended that denial-of-service prevention be implemented for the web server. |
| 14386 |
However, this guide leaves specific configuration details to the discretion of the |
| 14387 |
reader.</xccdf:description> |
| 14388 |
</xccdf:Group> |
| 14389 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.4"> |
| 14390 |
<xccdf:title xml:lang="en">Configure Supplemental Modules Appropriately</xccdf:title> |
| 14391 |
<xccdf:description xml:lang="en">Any required functionality added to the web server via additional modules should be configured appropriately.</xccdf:description> |
| 14392 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.4.4.1"> |
| 14393 |
<xccdf:title xml:lang="en">Configure PHP Securely</xccdf:title> |
| 14394 |
<xccdf:description xml:lang="en"> |
| 14395 |
PHP is a widely used and often misconfigured server-side |
| 14396 |
scripting language. It should be used with caution, but configured appropriately when |
| 14397 |
needed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14398 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14399 |
Make the following changes to /etc/php.ini: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14400 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14401 |
# Do not expose PHP error messages to external users <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14402 |
display_errors = Off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14403 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14404 |
# Enable safe mode <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14405 |
safe_mode = On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14406 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14407 |
# Only allow access to executables in isolated directory <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14408 |
safe_mode_exec_dir = php-required-executables-path <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14409 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14410 |
# Limit external access to PHP environment<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14411 |
safe_mode_allowed_env_vars = PHP_ <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14412 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14413 |
# Restrict PHP information leakage <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14414 |
expose_php = Off<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14415 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14416 |
# Log all errors <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14417 |
log_errors = On <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14418 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14419 |
# Do not register globals for input data<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14420 |
register_globals = Off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14421 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14422 |
# Minimize allowable PHP post size <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14423 |
post_max_size = 1K <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14424 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14425 |
# Ensure PHP redirects appropriately <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14426 |
cgi.force_redirect = 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14427 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14428 |
# Disallow uploading unless necessary <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14429 |
file_uploads = Off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14430 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14431 |
# Disallow treatment of file requests as fopen calls<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14432 |
allow_url_fopen = Off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14433 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14434 |
# Enable SQL safe mode <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14435 |
sql.safe_mode = On</xccdf:description> |
| 14436 |
</xccdf:Group> |
| 14437 |
</xccdf:Group> |
| 14438 |
</xccdf:Group> |
| 14439 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.5"> |
| 14440 |
<xccdf:title xml:lang="en">Configure Operating System to Protect Web Server</xccdf:title> |
| 14441 |
<xccdf:description xml:lang="en"> |
| 14442 |
The following configuration steps should be taken on the machine |
| 14443 |
which hosts the web server, in order to provide as safe an environment as possible for the |
| 14444 |
web server.</xccdf:description> |
| 14445 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.5.1"> |
| 14446 |
<xccdf:title xml:lang="en">Restrict File and Directory Access</xccdf:title> |
| 14447 |
<xccdf:description xml:lang="en"> |
| 14448 |
Minimize access to critical Apache files and directories: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14449 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14450 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chmod 511 /usr/sbin/httpd <xhtml:br/> |
| 14451 |
# chmod 750 /var/log/httpd/ <xhtml:br/> |
| 14452 |
# chmod 750 /etc/httpd/conf/ <xhtml:br/> |
| 14453 |
# chmod 640 /etc/httpd/conf/* <xhtml:br/> |
| 14454 |
# chgrp -R apache /etc/httpd/conf</xhtml:code></xccdf:description> |
| 14455 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.5.1.a" operator="equals" type="string"> |
| 14456 |
<xccdf:title>Directory permissions on /etc/httpd/conf</xccdf:title> |
| 14457 |
<xccdf:description xml:lang="en">Specify directory permissions on /etc/httpd/conf</xccdf:description> |
| 14458 |
<xccdf:question xml:lang="en">Specify directory permissions of /etc/httpd/conf</xccdf:question> |
| 14459 |
<xccdf:value>111101000</xccdf:value> |
| 14460 |
<xccdf:value selector="750">111101000</xccdf:value> |
| 14461 |
<xccdf:match>^[01]+$</xccdf:match> |
| 14462 |
</xccdf:Value> |
| 14463 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.5.1.b" operator="equals" type="string"> |
| 14464 |
<xccdf:title>File permissions on /etc/httpd/conf/*</xccdf:title> |
| 14465 |
<xccdf:description xml:lang="en">Specify file permissions on /etc/httpd/conf/*</xccdf:description> |
| 14466 |
<xccdf:question xml:lang="en">Specify file permissions of /etc/httpd/conf/*</xccdf:question> |
| 14467 |
<xccdf:value>110100000</xccdf:value> |
| 14468 |
<xccdf:value selector="640">110100000</xccdf:value> |
| 14469 |
<xccdf:match>^[01]+$</xccdf:match> |
| 14470 |
</xccdf:Value> |
| 14471 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.5.1.c" operator="equals" type="string"> |
| 14472 |
<xccdf:title>File permissions on /usr/sbin/httpd</xccdf:title> |
| 14473 |
<xccdf:description xml:lang="en">Specify file permissions on /usr/sbin/httpd</xccdf:description> |
| 14474 |
<xccdf:question xml:lang="en">Specify file permissions of /etc/sbin/httpd</xccdf:question> |
| 14475 |
<xccdf:value>101001001</xccdf:value> |
| 14476 |
<xccdf:value selector="511">101001001</xccdf:value> |
| 14477 |
<xccdf:match>^[01]+$</xccdf:match> |
| 14478 |
</xccdf:Value> |
| 14479 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.5.1.d" operator="equals" type="string"> |
| 14480 |
<xccdf:title>group owner of /etc/httpd/conf/*</xccdf:title> |
| 14481 |
<xccdf:description xml:lang="en">Specify group owner of /etc/httpd/conf/*</xccdf:description> |
| 14482 |
<xccdf:question xml:lang="en">Specify group owner of /etc/httpd/conf/*</xccdf:question> |
| 14483 |
<xccdf:value>apache</xccdf:value> |
| 14484 |
<xccdf:value selector="apache">apache</xccdf:value> |
| 14485 |
</xccdf:Value> |
| 14486 |
<xccdf:Value id="xccdf_cdf_value_var-3.16.5.1.e" operator="equals" type="string"> |
| 14487 |
<xccdf:title>File permissions on /var/log/httpd/</xccdf:title> |
| 14488 |
<xccdf:description xml:lang="en">Specify file permissions on /var/log/httpd/</xccdf:description> |
| 14489 |
<xccdf:question xml:lang="en">Specify file permissions of /var/log/httpd/</xccdf:question> |
| 14490 |
<xccdf:value>111101000</xccdf:value> |
| 14491 |
<xccdf:value selector="750">111101000</xccdf:value> |
| 14492 |
<xccdf:match>^[01]+$</xccdf:match> |
| 14493 |
</xccdf:Value> |
| 14494 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.5.1.a" selected="false" weight="10.0"> |
| 14495 |
<xccdf:title>Restrict permissions on /etc/httpd/conf</xccdf:title> |
| 14496 |
<xccdf:description>File permissions for /etc/httpd/conf should be set correctly.</xccdf:description> |
| 14497 |
<xccdf:ident system="http://cce.mitre.org">CCE-4509-6</xccdf:ident> |
| 14498 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 14499 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14500 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20326" value-id="xccdf_cdf_value_var-3.16.5.1.a"/> |
| 14501 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20326"/> |
| 14502 |
</xccdf:check> |
| 14503 |
</xccdf:Rule> |
| 14504 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.5.1.b" selected="false" weight="10.0"> |
| 14505 |
<xccdf:title>Restrict permissions on /etc/httpd/conf/*</xccdf:title> |
| 14506 |
<xccdf:description>File permissions for /etc/httpd/conf/* should be set correctly.</xccdf:description> |
| 14507 |
<xccdf:ident system="http://cce.mitre.org">CCE-4386-9</xccdf:ident> |
| 14508 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 14509 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14510 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20327" value-id="xccdf_cdf_value_var-3.16.5.1.b"/> |
| 14511 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20327"/> |
| 14512 |
</xccdf:check> |
| 14513 |
</xccdf:Rule> |
| 14514 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.5.1.c" selected="false" weight="10.0"> |
| 14515 |
<xccdf:title>Restrict permissions on /usr/sbin/httpd</xccdf:title> |
| 14516 |
<xccdf:description>File permissions for /usr/sbin/httpd should be set correctly.</xccdf:description> |
| 14517 |
<xccdf:ident system="http://cce.mitre.org">CCE-4029-5</xccdf:ident> |
| 14518 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 14519 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14520 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20328" value-id="xccdf_cdf_value_var-3.16.5.1.c"/> |
| 14521 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20328"/> |
| 14522 |
</xccdf:check> |
| 14523 |
</xccdf:Rule> |
| 14524 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.5.1.d" selected="false" weight="10.0"> |
| 14525 |
<xccdf:title>Restrict group access to /etc/httpd/conf/*</xccdf:title> |
| 14526 |
<xccdf:description>The /etc/httpd/conf/* files should be owned by the appropriate group.</xccdf:description> |
| 14527 |
<xccdf:ident system="http://cce.mitre.org">CCE-3581-6</xccdf:ident> |
| 14528 |
<xccdf:fixtext>(1) via chgrp</xccdf:fixtext> |
| 14529 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14530 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20329" value-id="xccdf_cdf_value_var-3.16.5.1.d"/> |
| 14531 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20329"/> |
| 14532 |
</xccdf:check> |
| 14533 |
</xccdf:Rule> |
| 14534 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.16.5.1.e" selected="false" weight="10.0"> |
| 14535 |
<xccdf:title>Restrict permissions on /var/log/httpd</xccdf:title> |
| 14536 |
<xccdf:description>File permissions for /var/log/httpd should be set correctly.</xccdf:description> |
| 14537 |
<xccdf:ident system="http://cce.mitre.org">CCE-4574-0</xccdf:ident> |
| 14538 |
<xccdf:fixtext>(1) via chmod</xccdf:fixtext> |
| 14539 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14540 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20330" value-id="xccdf_cdf_value_var-3.16.5.1.e"/> |
| 14541 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20330"/> |
| 14542 |
</xccdf:check> |
| 14543 |
</xccdf:Rule> |
| 14544 |
</xccdf:Group> |
| 14545 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.5.2"> |
| 14546 |
<xccdf:title xml:lang="en">Configure iptables to Allow Access to the Web Server</xccdf:title> |
| 14547 |
<xccdf:description xml:lang="en"> |
| 14548 |
Edit /etc/sysconfig/iptables. Add the following lines, ensuring |
| 14549 |
that they appear before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14550 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14551 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14552 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14553 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14554 |
The default |
| 14555 |
Iptables configuration does not allow inbound access to the HTTP (80) and HTTPS (443) |
| 14556 |
ports used by the web server. This modification allows that access, while keeping other |
| 14557 |
ports on the server in their default protected state. See Section 2.5.5 for more |
| 14558 |
information about Iptables.</xccdf:description> |
| 14559 |
</xccdf:Group> |
| 14560 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.5.3"> |
| 14561 |
<xccdf:title xml:lang="en">Run Apache in a chroot Jail if Possible</xccdf:title> |
| 14562 |
<xccdf:description xml:lang="en"> |
| 14563 |
Putting Apache in a chroot jail minimizes the damage done by a |
| 14564 |
potential break-in by isolating the web server to a small section of the filesystem. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14565 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14566 |
In |
| 14567 |
order to configure Apache to run from a chroot directory, edit the Apache configuration |
| 14568 |
file, /etc/httpd/ conf/httpd.conf, and add the directive: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14569 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14570 |
SecChrootDir /chroot/apache <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14571 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14572 |
It |
| 14573 |
is also necessary to place all files required by Apache inside the filesystem rooted at |
| 14574 |
/chroot/apache , including Apache's binaries, modules, configuration files, and served |
| 14575 |
web pages. The details of this configuration are beyond the scope of this guide.</xccdf:description> |
| 14576 |
</xccdf:Group> |
| 14577 |
</xccdf:Group> |
| 14578 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.16.6"> |
| 14579 |
<xccdf:title xml:lang="en">Additional Resources</xccdf:title> |
| 14580 |
<xccdf:description xml:lang="en"> |
| 14581 |
Further resources should be consulted if your web server requires |
| 14582 |
more extensive configuration guidance, especially if particular applications need to be |
| 14583 |
secured. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14584 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14585 |
In particular, [26] is recommended as a more comprehensive guide to securing Apache.</xccdf:description> |
| 14586 |
</xccdf:Group> |
| 14587 |
</xccdf:Group> |
| 14588 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17"> |
| 14589 |
<xccdf:title xml:lang="en">IMAP and POP3 Server</xccdf:title> |
| 14590 |
<xccdf:description xml:lang="en"> |
| 14591 |
Dovecot provides IMAP and POP3 services. It is not installed by |
| 14592 |
default. The project page at http://www.dovecot.org contains more detailed information |
| 14593 |
about Dovecot configuration.</xccdf:description> |
| 14594 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.1"> |
| 14595 |
<xccdf:title xml:lang="en">Disable Dovecot if Possible</xccdf:title> |
| 14596 |
<xccdf:description xml:lang="en"> |
| 14597 |
If the system does not need to operate as an IMAP or POP3 server, |
| 14598 |
disable and remove Dovecot if it was installed: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14599 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14600 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig dovecot off <xhtml:br/> |
| 14601 |
# yum erase dovecot</xhtml:code></xccdf:description> |
| 14602 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.1.a" selected="false" severity="low" weight="10.0"> |
| 14603 |
<xccdf:title>Disable Dovecot if Possible</xccdf:title> |
| 14604 |
<xccdf:description>The dovecot service should be disabled.</xccdf:description> |
| 14605 |
<xccdf:ident system="http://cce.mitre.org">CCE-3847-1</xccdf:ident> |
| 14606 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 14607 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14608 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20331"/> |
| 14609 |
</xccdf:check> |
| 14610 |
</xccdf:Rule> |
| 14611 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.1.b" selected="false" weight="10.0"> |
| 14612 |
<xccdf:title>Uninstall Dovecot if Possible</xccdf:title> |
| 14613 |
<xccdf:description>The dovecot package should be uninstalled.</xccdf:description> |
| 14614 |
<xccdf:ident system="http://cce.mitre.org">CCE-4239-0</xccdf:ident> |
| 14615 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 14616 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14617 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20332"/> |
| 14618 |
</xccdf:check> |
| 14619 |
</xccdf:Rule> |
| 14620 |
</xccdf:Group> |
| 14621 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2"> |
| 14622 |
<xccdf:title xml:lang="en">Configure Dovecot if Necessary</xccdf:title> |
| 14623 |
<xccdf:description xml:lang="en">Dovecot's main configuration file is /etc/dovecot.conf. The settings which appear, commented out, in the file are the defaults.</xccdf:description> |
| 14624 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.1"> |
| 14625 |
<xccdf:title xml:lang="en">Support Only the Necessary Protocols</xccdf:title> |
| 14626 |
<xccdf:description xml:lang="en"> |
| 14627 |
Edit /etc/dovecot.conf. Add or correct the following lines, |
| 14628 |
replacing PROTOCOL with only the subset of protocols (imap, imaps, pop3, pop3s) |
| 14629 |
required: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14630 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14631 |
protocols = PROTOCOL <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14632 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14633 |
Dovecot supports the IMAP and POP3 protocols, as well as |
| 14634 |
SSL-protected versions of those protocols. Configure the Dovecot server to support only |
| 14635 |
the protocols needed by your site. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14636 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14637 |
If possible, require SSL protection for all |
| 14638 |
transactions. The SSL protocol variants listen on alternate ports (995 instead of 110 |
| 14639 |
for pop3s, and 993 instead of 143 for imaps), and require SSL-aware clients. An |
| 14640 |
alternate approach is to listen on the standard port and require the client to use the |
| 14641 |
STARTTLS command before authenticating.</xccdf:description> |
| 14642 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.1.a" selected="false" weight="10.0"> |
| 14643 |
<xccdf:title>Dovecot should not support imaps</xccdf:title> |
| 14644 |
<xccdf:description>Dovecot should be configured to not support the imaps protocol</xccdf:description> |
| 14645 |
<xccdf:ident system="http://cce.mitre.org">CCE-4384-4</xccdf:ident> |
| 14646 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14647 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14648 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20333"/> |
| 14649 |
</xccdf:check> |
| 14650 |
</xccdf:Rule> |
| 14651 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.1.b" selected="false" weight="10.0"> |
| 14652 |
<xccdf:title>Dovecot should not support pop3s</xccdf:title> |
| 14653 |
<xccdf:description>Dovecot should be configured to not support the pop3s protocol</xccdf:description> |
| 14654 |
<xccdf:ident system="http://cce.mitre.org">CCE-3887-7</xccdf:ident> |
| 14655 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14656 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14657 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20334"/> |
| 14658 |
</xccdf:check> |
| 14659 |
</xccdf:Rule> |
| 14660 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.1.c" selected="false" weight="10.0"> |
| 14661 |
<xccdf:title>Dovecot should not support pop3</xccdf:title> |
| 14662 |
<xccdf:description>Dovecot should be configured to not support the pop3 protocol</xccdf:description> |
| 14663 |
<xccdf:ident system="http://cce.mitre.org">CCE-4530-2</xccdf:ident> |
| 14664 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14665 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14666 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20335"/> |
| 14667 |
</xccdf:check> |
| 14668 |
</xccdf:Rule> |
| 14669 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.1.d" selected="false" weight="10.0"> |
| 14670 |
<xccdf:title>Dovecot should not support imap</xccdf:title> |
| 14671 |
<xccdf:description>Dovecot should be configured to not support the imap protocol</xccdf:description> |
| 14672 |
<xccdf:ident system="http://cce.mitre.org">CCE-4547-6</xccdf:ident> |
| 14673 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14674 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14675 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20336"/> |
| 14676 |
</xccdf:check> |
| 14677 |
</xccdf:Rule> |
| 14678 |
</xccdf:Group> |
| 14679 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.2"> |
| 14680 |
<xccdf:title xml:lang="en">Enable SSL Support</xccdf:title> |
| 14681 |
<xccdf:description xml:lang="en"> |
| 14682 |
SSL should be used to encrypt network traffic between the |
| 14683 |
Dovecot server and its clients. Users must authenticate to the Dovecot server in order |
| 14684 |
to read their mail, and passwords should never be transmitted in clear text. In |
| 14685 |
addition, protecting mail as it is downloaded is a privacy measure, and clients may use |
| 14686 |
SSL certificates to authenticate the server, preventing another system from |
| 14687 |
impersonating the server. See Section 2.5.6 for general SSL information, including the |
| 14688 |
setup of a Certificate Authority (CA).</xccdf:description> |
| 14689 |
<xccdf:reference>Apache 2 with SSL/TLS: Step-by-step, Part 2. Tech. rep.</xccdf:reference> |
| 14690 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.2.1"> |
| 14691 |
<xccdf:title xml:lang="en">Create an SSL Certificate</xccdf:title> |
| 14692 |
<xccdf:description xml:lang="en"> |
| 14693 |
Note: The following steps should be performed on your CA |
| 14694 |
system, and not on the Dovecot server itself. If you will have a commercial CA sign |
| 14695 |
certificates, then these steps should be performed on a separate, physically secure |
| 14696 |
system devoted to that purpose. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14697 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14698 |
On your CA (if you are using your own) or on another |
| 14699 |
physically secure system, generate a key pair for the Dovecot server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14700 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14701 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># cd /etc/pki/tls/certs <xhtml:br/> |
| 14702 |
# openssl genrsa -out imapserverkey.pem 2048 <xhtml:br/></xhtml:code> |
| 14703 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14704 |
Next, generate a |
| 14705 |
certificate signing request (CSR) for the CA to sign, making sure to enter the |
| 14706 |
server's fully-qualified domain name when prompted for the Common Name: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14707 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14708 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl req -new -key imapserverkey.pem -out imapserver.csr <xhtml:br/></xhtml:code> |
| 14709 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14710 |
Next, the mail server CSR must be |
| 14711 |
signed to create the Dovecot server certificate. You can either send the CSR to an |
| 14712 |
established CA or sign it with your CA. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14713 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14714 |
To sign imapserver.csr using your CA: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14715 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14716 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># openssl ca -in imapserver.csr -out imapservercert.pem <xhtml:br/></xhtml:code> |
| 14717 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14718 |
This step creates a private key, |
| 14719 |
imapserverkey.pem, and a public certificate, imapservercert.pem. The Dovecot server |
| 14720 |
will use these to prove its identity by demonstrating that it has a certificate which |
| 14721 |
has been signed by a CA. POP3 or IMAP clients at your site should only be willing to |
| 14722 |
provide users' credentials to a server they can authenticate.</xccdf:description> |
| 14723 |
</xccdf:Group> |
| 14724 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.2.2"> |
| 14725 |
<xccdf:title xml:lang="en">Install the SSL Certificate</xccdf:title> |
| 14726 |
<xccdf:description xml:lang="en"> |
| 14727 |
Create the PKI directory for POP and IMAP certificates if it |
| 14728 |
does not already exist: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14729 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14730 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># mkdir /etc/pki/tls/imap <xhtml:br/> |
| 14731 |
# chown root:root /etc/pki/tls/imap<xhtml:br/> |
| 14732 |
# chmod 755 /etc/pki/tls/imap <xhtml:br/></xhtml:code> |
| 14733 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14734 |
Using removable media or some other secure transmission |
| 14735 |
format, install the files generated in the previous step onto the Dovecot server: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14736 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 14737 |
<xhtml:li>/etc/pki/tls/imap/serverkey.pem: the private key imapserverkey.pem</xhtml:li> |
| 14738 |
<xhtml:li>/etc/pki/tls/imap/servercert.pem: the certificate file imapservercert.pem</xhtml:li> |
| 14739 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14740 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14741 |
Verify thepermissions on these files: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14742 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14743 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:root /etc/pki/tls/imap/serverkey.pem <xhtml:br/> |
| 14744 |
# chown root:root /etc/pki/tls/imap/servercert.pem <xhtml:br/> |
| 14745 |
# chmod 600 /etc/pki/tls/imap/serverkey.pem<xhtml:br/> |
| 14746 |
# chmod 600 /etc/pki/tls/imap/servercert.pem <xhtml:br/></xhtml:code> |
| 14747 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14748 |
Verify that the CA's public certificate |
| 14749 |
file has been installed as /etc/pki/tls/CA/cacert.pem, and has the correct |
| 14750 |
permissions: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14751 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14752 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chown root:root /etc/pki/tls/CA/cacert.pem <xhtml:br/> |
| 14753 |
# chmod 644 /etc/pki/tls/CA/cacert.pem</xhtml:code></xccdf:description> |
| 14754 |
</xccdf:Group> |
| 14755 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.2.3"> |
| 14756 |
<xccdf:title xml:lang="en">Configure Dovecot to Use the SSL Certificate</xccdf:title> |
| 14757 |
<xccdf:description xml:lang="en"> |
| 14758 |
Edit /etc/dovecot.conf and add or correct the following lines |
| 14759 |
(ensuring they reference the appropriate files): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14760 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14761 |
ssl_cert_file = /etc/pki/tls/imap/servercert.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14762 |
ssl_key_file = /etc/pki/tls/imap/serverkey.pem<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14763 |
ssl_ca_file = /etc/pki/tls/CA/cacert.pem <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14764 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14765 |
These options tell Dovecot where to find the |
| 14766 |
TLS configuration, allowing clients to make encrypted connections.</xccdf:description> |
| 14767 |
</xccdf:Group> |
| 14768 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.2.4"> |
| 14769 |
<xccdf:title xml:lang="en">Disable Plaintext Authentication</xccdf:title> |
| 14770 |
<xccdf:description xml:lang="en"> |
| 14771 |
To prevent Dovecot from attempting plaintext authentication |
| 14772 |
of clients, edit /etc/dovecot.conf and add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14773 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14774 |
disable_plaintext_auth = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14775 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14776 |
The disable_plaintext_auth command disallows |
| 14777 |
login-related commands until an encrypted session has been negotiated using SSL. If |
| 14778 |
client compatibility requires you to allow connections to the pop3 or imap ports, |
| 14779 |
rather than the alternate SSL ports, you should use this command to require STARTTLS |
| 14780 |
before authentication.</xccdf:description> |
| 14781 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.2.4.a" selected="false" weight="10.0"> |
| 14782 |
<xccdf:title>Disable Plaintext Authentication</xccdf:title> |
| 14783 |
<xccdf:description>Dovecot plaintext authentication of clients should be disabled</xccdf:description> |
| 14784 |
<xccdf:ident system="http://cce.mitre.org">CCE-4552-6</xccdf:ident> |
| 14785 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14786 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14787 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20337"/> |
| 14788 |
</xccdf:check> |
| 14789 |
</xccdf:Rule> |
| 14790 |
</xccdf:Group> |
| 14791 |
</xccdf:Group> |
| 14792 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.3"> |
| 14793 |
<xccdf:title xml:lang="en">Enable Dovecot Options to Protect Against Code Flaws</xccdf:title> |
| 14794 |
<xccdf:description xml:lang="en"> |
| 14795 |
Edit /etc/dovecot.conf and add or correct the following line:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14796 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14797 |
login_process_per_connection = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14798 |
mail_drop_priv_before_exec = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14799 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14800 |
IMAP and POP3 are |
| 14801 |
remote authenticated protocols, meaning that the server must accept remote connections |
| 14802 |
from anyone, but provide substantial services only to clients who have successfully |
| 14803 |
authenticated. To protect against security problems, Dovecot splits these functions into |
| 14804 |
separate server processes. The imap-login and/or pop3-login processes accept connections |
| 14805 |
from unauthenticated users, and only spawn imap or pop3 processes on successful |
| 14806 |
authentication. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14807 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14808 |
However, the imap-login and pop3-login processes themselves may contain |
| 14809 |
vulnerabilities. Since each of these processes operates as a daemon, handling multiple |
| 14810 |
sequential client connections from different users, bugs in the code could allow |
| 14811 |
unauthenticated users to steal credential data. If the login_process_per_connection |
| 14812 |
option is enabled, then a separate imap-login or pop3-login process is created for each |
| 14813 |
new connection, protecting against this class of problems. This option has an efficiency |
| 14814 |
cost, but is strongly recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14815 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14816 |
If the mail_drop_priv_before_exec option is on, the |
| 14817 |
imap-login or pop3-login process will drop privileges to the user's ID after |
| 14818 |
authentication and before executing the imap or pop3 process itself. Under some very |
| 14819 |
limited circumstances, this could protect against privilege escalation by authenticated |
| 14820 |
users. However, if the mail executable option is used to run code before starting each |
| 14821 |
user's session, it is important to drop privileges to prevent the custom code from |
| 14822 |
running as root.</xccdf:description> |
| 14823 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.3.a" selected="false" weight="10.0"> |
| 14824 |
<xccdf:title>Enable Dovecot Option mail_drop_priv_before_exec</xccdf:title> |
| 14825 |
<xccdf:description>The Dovecot option to drop privileges to user before executing mail process should be enabled</xccdf:description> |
| 14826 |
<xccdf:ident system="http://cce.mitre.org">CCE-4371-1</xccdf:ident> |
| 14827 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14828 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14829 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20338"/> |
| 14830 |
</xccdf:check> |
| 14831 |
</xccdf:Rule> |
| 14832 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.17.2.3.b" selected="false" weight="10.0"> |
| 14833 |
<xccdf:title>Enable Dovecot Option mail_drop_priv_before_exec</xccdf:title> |
| 14834 |
<xccdf:description>The Dovecot option to spawn a new login process per connection should be enabled</xccdf:description> |
| 14835 |
<xccdf:ident system="http://cce.mitre.org">CCE-4410-7</xccdf:ident> |
| 14836 |
<xccdf:fixtext>(1) via /etc/dovecot.conf</xccdf:fixtext> |
| 14837 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14838 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20339"/> |
| 14839 |
</xccdf:check> |
| 14840 |
</xccdf:Rule> |
| 14841 |
</xccdf:Group> |
| 14842 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.17.2.4"> |
| 14843 |
<xccdf:title xml:lang="en">Allow IMAP Clients to Access the Server</xccdf:title> |
| 14844 |
<xccdf:description xml:lang="en"> |
| 14845 |
Edit /etc/sysconfig/iptables. Add the following line, ensuring |
| 14846 |
that it appears before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14847 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14848 |
-A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 143 -j ACCEPT <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14849 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14850 |
The default |
| 14851 |
iptables configuration does not allow inbound access to any services. This modification |
| 14852 |
will allow remote hosts to initiate connections to the IMAP daemon, while keeping all |
| 14853 |
other ports on the server in their default protected state. See Section 2.5.5 for more |
| 14854 |
information about iptables.</xccdf:description> |
| 14855 |
</xccdf:Group> |
| 14856 |
</xccdf:Group> |
| 14857 |
</xccdf:Group> |
| 14858 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18"> |
| 14859 |
<xccdf:title xml:lang="en">Samba(SMB) Microsoft Windows File Sharing Server</xccdf:title> |
| 14860 |
<xccdf:description xml:lang="en"> |
| 14861 |
When properly configured, the Samba service allows Linux machines |
| 14862 |
to provide file and print sharing to Microsoft Windows machines. There are two software |
| 14863 |
packages that provide Samba support. The first, samba-client, provides a series of command |
| 14864 |
line tools that enable a client machine to access Samba shares. The second, simply labeled |
| 14865 |
samba, provides the Samba service. It is this second package that allows a Linux machine to |
| 14866 |
act as an Active Directory server, a domain controller, or as a domain member. Only the |
| 14867 |
samba-client package is installed by default.</xccdf:description> |
| 14868 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.1"> |
| 14869 |
<xccdf:title xml:lang="en">Disable Samba if Possible</xccdf:title> |
| 14870 |
<xccdf:description xml:lang="en"> |
| 14871 |
If the Samba service has been enabled and will not be used, disable it: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14872 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14873 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig smb off <xhtml:br/></xhtml:code> |
| 14874 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14875 |
Even after the Samba server package has been installed, it |
| 14876 |
will remain disabled. Do not enable this service unless it is absolutely necessary to |
| 14877 |
provide Microsoft Windows file and print sharing functionality.</xccdf:description> |
| 14878 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.18.1.a" selected="false" severity="medium" weight="10.0"> |
| 14879 |
<xccdf:title>Disable Samba if Possible</xccdf:title> |
| 14880 |
<xccdf:description>The smb service should be disabled.</xccdf:description> |
| 14881 |
<xccdf:ident system="http://cce.mitre.org">CCE-4551-8</xccdf:ident> |
| 14882 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 14883 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 14884 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20340"/> |
| 14885 |
</xccdf:check> |
| 14886 |
</xccdf:Rule> |
| 14887 |
</xccdf:Group> |
| 14888 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2"> |
| 14889 |
<xccdf:title xml:lang="en">Configure Samba if Necessary</xccdf:title> |
| 14890 |
<xccdf:description xml:lang="en"> |
| 14891 |
All settings for the Samba daemon can be found in |
| 14892 |
/etc/samba/smb.conf. Settings are divided between a [global] configuration section and a |
| 14893 |
series of user created share definition sections meant to describe file or print shares on |
| 14894 |
the system. By default, Samba will operate in user mode and allow client machines to |
| 14895 |
access local home directories and printers. It is recommended that these settings be |
| 14896 |
changed or that additional limitations be set in place.</xccdf:description> |
| 14897 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.1"> |
| 14898 |
<xccdf:title xml:lang="en">Testing the Samba Configuration File</xccdf:title> |
| 14899 |
<xccdf:description xml:lang="en"> |
| 14900 |
To test the configuration file for syntax errors, use the |
| 14901 |
testparm command. It will also list all settings currently in place, including defaults |
| 14902 |
that may not appear in the configuration file. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14903 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14904 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># testparm -v</xhtml:code></xccdf:description> |
| 14905 |
</xccdf:Group> |
| 14906 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.2"> |
| 14907 |
<xccdf:title xml:lang="en">Choosing the Appropriate security Parameter</xccdf:title> |
| 14908 |
<xccdf:description xml:lang="en"> |
| 14909 |
There are two kinds of security in Samba, share-level (share) |
| 14910 |
and user-level. User-level security is further subdivided into four separate |
| 14911 |
implementations: user, domain, ads, and server. It is recommended that the share and |
| 14912 |
server security modes not be used. In share security, everyone is given the same |
| 14913 |
password for each share, preventing individual user accountability. server security mode |
| 14914 |
has been superseded by the domain and ads security modes. It may now be considered |
| 14915 |
obsolete. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14916 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14917 |
The security parameter is set in the [global] section of the Samba |
| 14918 |
configuration file. It determines how the server will handle user names and passwords. |
| 14919 |
Some security modes require additional parameters, such as workgroup, realm, or password |
| 14920 |
server names. All security modes will require that each remote user have a matching |
| 14921 |
local account. One workaround to this problem is to use the winbindd daemon. Please |
| 14922 |
consult the official Samba documentation to learn more.</xccdf:description> |
| 14923 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.2.1"> |
| 14924 |
<xccdf:title xml:lang="en">Use user Security for Servers Not in a Domain Context</xccdf:title> |
| 14925 |
<xccdf:description xml:lang="en"> |
| 14926 |
This is the default setting with a new Samba installation and |
| 14927 |
the best choice when operating outside of a domain security context. The relevant |
| 14928 |
parameters in /etc/samba/smb.conf will read as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14929 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14930 |
security = user <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14931 |
workgroup = MYGROUP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14932 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14933 |
Set the value of workgroup so that it matches the value of other machines on |
| 14934 |
the network. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14935 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14936 |
In user mode, authentication requests are handled locally and not passed |
| 14937 |
on to a separate authentication server. This is the desired behavior for standalone |
| 14938 |
servers and domain controllers.</xccdf:description> |
| 14939 |
</xccdf:Group> |
| 14940 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.2.2"> |
| 14941 |
<xccdf:title xml:lang="en">Use domain Security for Servers in a Domain Context</xccdf:title> |
| 14942 |
<xccdf:description xml:lang="en"> |
| 14943 |
First, change the security parameter to domain. |
| 14944 |
Next, set the workgroup and netbios name parameters (if necessary): <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14945 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14946 |
security = domain<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14947 |
workgroup = WORKGROUP <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14948 |
netbios name = NETBIOSNAME <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14949 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14950 |
domain mode is used for any machine |
| 14951 |
that will act as a domain member server. It lets Samba know that the authentication |
| 14952 |
information it needs can be found on another machine. Primary and Backup Domain |
| 14953 |
Controllers host copies of this information. Samba will try to automatically determine |
| 14954 |
which machine it should authenticate against on a domain network. If this detection |
| 14955 |
fails, it may be necessary to specify the location manually. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14956 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14957 |
Unlike the Microsoft |
| 14958 |
Windows implementation of the SMB standard, a Samba machine can freely change roles |
| 14959 |
within a domain without requiring that the machine be reinstalled (such roles include |
| 14960 |
primary and backup domain controllers, domain member servers, and ordinary domain |
| 14961 |
workstations). However, there are some limitations on how each machine can fulfill |
| 14962 |
each role in a mixed network.</xccdf:description> |
| 14963 |
<xccdf:warning xml:lang="en">When using Samba as a Primary or Backup Domain Controller, |
| 14964 |
use security = user, not security = domain. This tells Samba that the local machine is |
| 14965 |
hosting the authentication backend. </xccdf:warning> |
| 14966 |
</xccdf:Group> |
| 14967 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.2.3"> |
| 14968 |
<xccdf:title xml:lang="en">Use ads (Active Directory Service) Security For Servers in an ADS |
| 14969 |
Domain</xccdf:title> |
| 14970 |
<xccdf:description xml:lang="en"> |
| 14971 |
Context The security mode ads enables a Samba machine to act |
| 14972 |
as an ADS domain member server. Since ADS requires Kerberos, be sure to set the realm |
| 14973 |
parameter appropriately and configure the local copy of Kerberos. If necessary, it is |
| 14974 |
also possible to manually set the password server parameter. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14975 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14976 |
security = ads <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14977 |
realm = MY_REALM <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14978 |
password server = your.kerberos.server <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14979 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14980 |
Currently, it is possible to act as an |
| 14981 |
Active Directory domain member server, but not as a domain controller. Be sure to |
| 14982 |
operate in mixed mode. Native mode may not work yet in current versions of Samba. |
| 14983 |
Future support for ADS should be forthcoming in Samba 4. See the Samba project web |
| 14984 |
site at http://www.samba.org for more details.</xccdf:description> |
| 14985 |
</xccdf:Group> |
| 14986 |
</xccdf:Group> |
| 14987 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.3"> |
| 14988 |
<xccdf:title xml:lang="en">Disable Guest Access and Local Login Support</xccdf:title> |
| 14989 |
<xccdf:description xml:lang="en"> |
| 14990 |
Do not allow guest users to access local file or printer |
| 14991 |
shares. In global or in each share, set the parameter guest ok to no: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14992 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14993 |
[share] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14994 |
guest ok = no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14995 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 14996 |
It is safe to disable local login support for remote Samba users. Consider changing |
| 14997 |
the add user account script to set remote user shells to /sbin/nologin.</xccdf:description> |
| 14998 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.18.2.3.a" selected="false" weight="10.0"> |
| 14999 |
<xccdf:title>Disable Guest Access and Local Login Support</xccdf:title> |
| 15000 |
<xccdf:description>Do not allow guest users to access local file or printer shares. In global or in each share, set the parameter guest ok to no.</xccdf:description> |
| 15001 |
<xccdf:fixtext>(1) via /etc/samba/smb.conf in [share] guest ok = no </xccdf:fixtext> |
| 15002 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15003 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:203403"/> |
| 15004 |
</xccdf:check> |
| 15005 |
</xccdf:Rule> |
| 15006 |
</xccdf:Group> |
| 15007 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.4"> |
| 15008 |
<xccdf:title xml:lang="en">Disable Root Access</xccdf:title> |
| 15009 |
<xccdf:description xml:lang="en"> |
| 15010 |
Administrators should not use administrator accounts to access |
| 15011 |
Samba file and printer shares. If possible, disable the root user and the wheel |
| 15012 |
administrator group: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15013 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15014 |
[share] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15015 |
invalid users = root @wheel <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15016 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15017 |
If administrator accounts |
| 15018 |
cannot be disabled, ensure that local machine passwords and Samba service passwords do |
| 15019 |
not match. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15020 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15021 |
Typically, administrator access is required when Samba must create user and |
| 15022 |
machine accounts and shares. Domain member servers and standalone servers may not need |
| 15023 |
administrator access at all. If that is the case, add the invalid users parameter to |
| 15024 |
[global] instead.</xccdf:description> |
| 15025 |
</xccdf:Group> |
| 15026 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.5"> |
| 15027 |
<xccdf:title xml:lang="en">Set the Allowed Authentication Negotiation Levels</xccdf:title> |
| 15028 |
<xccdf:description xml:lang="en">By default, Samba will attempt to negotiate with Microsoft |
| 15029 |
Windows machines to set a common communication protocol. Whenever possible, be sure to |
| 15030 |
disable LANMAN authentication, as it is far weaker than the other supported protocols.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15031 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15032 |
[global] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15033 |
client lanman auth = no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15034 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15035 |
Newer versions of Microsoft Windows may require the use |
| 15036 |
of NTLMv2. NTLMv2 is the preferred protocol for authentication, but since older machines |
| 15037 |
do not support it, Samba has disabled it by default. If possible, reenable it. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15038 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15039 |
[global]<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15040 |
client ntlmv2 auth = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15041 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15042 |
For the sake of backwards compatibility, most modern Windows |
| 15043 |
machines will still allow other machines to communicate with them over weak protocols |
| 15044 |
such as LANMAN. On Samba, by enabling NTLMv2, you are also disabling LANMAN and NTLMv1. |
| 15045 |
If NTLMv1 is required, it is still possible to individually disable LANMAN.</xccdf:description> |
| 15046 |
</xccdf:Group> |
| 15047 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.6"> |
| 15048 |
<xccdf:title xml:lang="en">Let Domain Controllers Create Machine Trust Accounts On-the-Fly</xccdf:title> |
| 15049 |
<xccdf:description xml:lang="en"> |
| 15050 |
Add or correct an add machine script entry to the [global] |
| 15051 |
section of /etc/samba/smb.conf to allow Samba to dynamically create Machine Trust |
| 15052 |
Accounts: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15053 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15054 |
[global] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15055 |
add machine script = /usr/sbin/useradd -n -g machines -d /dev/null -s /sbin/nologin %u <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15056 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15057 |
Make sure that the group machines exists. If not, add it with the |
| 15058 |
following command: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15059 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15060 |
/usr/sbin/groupadd machines <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15061 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15062 |
When acting as a PDC, it becomes |
| 15063 |
necessary to create and store Machine Trust Accounts for each machine that joins the |
| 15064 |
domain. On a Microsoft Windows PDC, this account is created with the Server Manager |
| 15065 |
tool, but on a Samba PDC, two accounts must be created. The first is the local machine |
| 15066 |
account, and the second is the Samba account. For security purposes, it is recommended |
| 15067 |
to let Samba create these accounts on-the-fly. When Machine Trust Accounts are created |
| 15068 |
manually, there is a small window of opportunity in which a rogue machine could join the |
| 15069 |
domain in place of the new server.</xccdf:description> |
| 15070 |
</xccdf:Group> |
| 15071 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.7"> |
| 15072 |
<xccdf:title xml:lang="en">Restrict Access to the [IPC$] Share</xccdf:title> |
| 15073 |
<xccdf:description xml:lang="en"> |
| 15074 |
Limit access to the [IPC$] share so that only machines in your |
| 15075 |
network will be able to connect to it: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15076 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15077 |
[IPC$] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15078 |
hosts allow = 192.168.1. 127.0.0.1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15079 |
hosts deny = 0.0.0.0/0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15080 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15081 |
The [IPC$] share allows users to anonymously fetch a list of shared |
| 15082 |
resources from a server. It is intended to allow users to browse the list of available |
| 15083 |
shares. It also can be used as a point of attack into a system. Disabling it completely |
| 15084 |
may break some functionality, so it is recommended that you merely limit access to it |
| 15085 |
instead.</xccdf:description> |
| 15086 |
</xccdf:Group> |
| 15087 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.8"> |
| 15088 |
<xccdf:title xml:lang="en">Restrict File Sharing</xccdf:title> |
| 15089 |
<xccdf:description xml:lang="en"> |
| 15090 |
Only users with local user accounts will be able to log in to |
| 15091 |
Samba shares by default. Shares can be limited to particular users or network addresses. |
| 15092 |
Use the hosts allow and hosts deny directives accordingly, and consider setting the |
| 15093 |
valid users directive to a limited subset of users or to a group of users. Separate each |
| 15094 |
address, user, or user group with a space as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15095 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15096 |
[share] hosts allow = 192.168.1. 127.0.0.1 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15097 |
valid users = userone usertwo @usergroup <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15098 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15099 |
It is also possible to limit read and |
| 15100 |
write access to particular users with the read list and write list options, though the |
| 15101 |
permissions set by the system itself will override these settings. Set the read only |
| 15102 |
attribute for each share to ensure that global settings will not accidentally override |
| 15103 |
the individual share settings. Then, as with the valid users directive, separate each |
| 15104 |
user or group of users with a space: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15105 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15106 |
[share] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15107 |
read only = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15108 |
write list = userone usertwo @usergroup <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15109 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15110 |
The Samba service is only required for sharing files and printers |
| 15111 |
with Microsoft Windows workstations, and even then, other options may exist. Do not use |
| 15112 |
the Samba service to share files between Unix or Linux machines.</xccdf:description> |
| 15113 |
</xccdf:Group> |
| 15114 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.9"> |
| 15115 |
<xccdf:title xml:lang="en">Require Server SMB Packet Signing</xccdf:title> |
| 15116 |
<xccdf:description xml:lang="en"> |
| 15117 |
To make the server use packet signing, add the following to the [global] section of the Samba configuration |
| 15118 |
file:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15119 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15120 |
server signing = mandatory<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15121 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15122 |
The Samba server should only communicate with clients who can support SMB packet signing. Packet signing |
| 15123 |
can prevent man-in-the-middle attacks which modify SMB packets in transit.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15124 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15125 |
The Samba service is only required for sharing files and printers with Microsoft Windows workstations, and even |
| 15126 |
then, other options may exist. Do not use the Samba service to share files between Unix or Linux machines. |
| 15127 |
</xccdf:description> |
| 15128 |
</xccdf:Group> |
| 15129 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.10"> |
| 15130 |
<xccdf:title xml:lang="en">Require Client SMB Packet Signing, if using smbclient</xccdf:title> |
| 15131 |
<xccdf:description xml:lang="en"> |
| 15132 |
To require samba clients running smbclient to use packet signing, add the following to the [global] section |
| 15133 |
of the Samba configuration file:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15134 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15135 |
client signing = mandatory<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15136 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15137 |
A Samba client should only communicate with servers who can support SMB packet signing. Packet signing can |
| 15138 |
prevent man-in-the-middle attacks which modify SMB packets in transit. |
| 15139 |
</xccdf:description> |
| 15140 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.18.2.10.a" selected="false" weight="10.0"> |
| 15141 |
<xccdf:title>Require Client SMB Packet Signing, if using smbclient</xccdf:title> |
| 15142 |
<xccdf:description> |
| 15143 |
Require samba clients running smbclient to use packet signing. A Samba client should only communicate with servers who can support SMB packet signing. Packet signing can |
| 15144 |
prevent man-in-the-middle attacks which modify SMB packets in transit.</xccdf:description> |
| 15145 |
<xccdf:ident system="http://cce.mitre.org">CCE-4556-7</xccdf:ident> |
| 15146 |
<xccdf:fixtext>(1) via /etc/samba/smb.conf in [global] client signing = mandatory</xccdf:fixtext> |
| 15147 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15148 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:2034010"/> |
| 15149 |
</xccdf:check> |
| 15150 |
</xccdf:Rule> |
| 15151 |
</xccdf:Group> |
| 15152 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.11"> |
| 15153 |
<xccdf:title xml:lang="en">Require Client SMB Packet Signing, if using mount.cifs</xccdf:title> |
| 15154 |
<xccdf:description xml:lang="en"> |
| 15155 |
Require packet signing of clients who mount Samba shares using the mount.cifs program (e.g., those who |
| 15156 |
specify shares in /etc/fstab). To do so, ensure that signing options (either sec=krb5i or sec=ntlmv2i) are |
| 15157 |
used.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15158 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15159 |
See the mount.cifs(8) man page for more information. A Samba client should only communicate with servers |
| 15160 |
who can support SMB packet signing. Packet signing can prevent man-in-the-middle attacks which modify SMB |
| 15161 |
packets in transit. |
| 15162 |
</xccdf:description> |
| 15163 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.18.2.11.a" selected="false" weight="10.0"> |
| 15164 |
<xccdf:title>Require Client SMB Packet Signing, if using mount.cifs</xccdf:title> |
| 15165 |
<xccdf:description> |
| 15166 |
Require packet signing of clients who mount Samba shares using the mount.cifs program (e.g., those who |
| 15167 |
specify shares in /etc/fstab). To do so, ensure that signing options (either sec=krb5i or sec=ntlmv2i) are |
| 15168 |
used.<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15169 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15170 |
See the mount.cifs(8) man page for more information. A Samba client should only communicate with servers |
| 15171 |
who can support SMB packet signing. Packet signing can prevent man-in-the-middle attacks which modify SMB |
| 15172 |
packets in transit.</xccdf:description> |
| 15173 |
<xccdf:ident system="http://cce.mitre.org">CCE-4556-7</xccdf:ident> |
| 15174 |
<xccdf:fixtext>(1) via /etc/fstab</xccdf:fixtext> |
| 15175 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15176 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:2034011"/> |
| 15177 |
</xccdf:check> |
| 15178 |
</xccdf:Rule> |
| 15179 |
</xccdf:Group> |
| 15180 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.12"> |
| 15181 |
<xccdf:title xml:lang="en">Restrict Printer Sharing</xccdf:title> |
| 15182 |
<xccdf:description xml:lang="en"> |
| 15183 |
By default, Samba utilizes the CUPS printing service to enable |
| 15184 |
printer sharing with Microsoft Windows workstations. If there are no printers on the |
| 15185 |
local machine, or if printer sharing with Microsoft Windows is not required, disable the |
| 15186 |
printer sharing capability by commenting out the following lines, found in /etc/ |
| 15187 |
samba/smb.conf: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15188 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15189 |
[global] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15190 |
; load printers = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15191 |
; cups options = raw <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15192 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15193 |
[printers] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15194 |
comment = All Printers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15195 |
path = /usr/spool/samba <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15196 |
browseable = no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15197 |
guest ok = no <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15198 |
writable = no |
| 15199 |
printable = yes <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15200 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15201 |
There may be other options present, but these are the only options |
| 15202 |
enabled and uncommented by default. Removing the [printers] share should be enough for |
| 15203 |
most users. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15204 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15205 |
If the Samba printer sharing capability is needed, consider disabling the |
| 15206 |
Samba network browsing capability or restricting access to a particular set of users or |
| 15207 |
network addresses. Set the valid users parameter to a small subset of users or restrict |
| 15208 |
it to a particular group of users with the shorthand @. Separate each user or group of |
| 15209 |
users with a space. For example, under the [printers] share: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15210 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15211 |
[printers] <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15212 |
valid users = user @printerusers <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15213 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15214 |
The CUPS service is capable of sharing printers with other Unix and |
| 15215 |
Linux machines on the local network without the Samba service. The Samba service is only |
| 15216 |
required when a Microsoft Windows machine needs printer access on a Unix or Linux host.</xccdf:description> |
| 15217 |
</xccdf:Group> |
| 15218 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.2.13"> |
| 15219 |
<xccdf:title xml:lang="en">Configure iptables to Allow Access to the Samba Server</xccdf:title> |
| 15220 |
<xccdf:description xml:lang="en"> |
| 15221 |
Determine an appropriate network block, netwk , and network |
| 15222 |
mask, mask , representing the machines on your network which should operate as clients |
| 15223 |
of the Samba server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15224 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15225 |
Edit /etc/sysconfig/iptables. Add the following lines, ensuring |
| 15226 |
that they appear before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15227 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 137 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15228 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 138 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15229 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 139 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15230 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport 445 -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15231 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15232 |
The default Iptables configuration does not allow inbound access to the ports used by |
| 15233 |
the Samba service. This modification allows that access, while keeping other ports on |
| 15234 |
the server in their default protected state. Since these ports are frequent targets of |
| 15235 |
network scanning attacks, restricting access to only the network segments which need to |
| 15236 |
access the Samba server is strongly recommended. See Section 2.5.5 for more information |
| 15237 |
about Iptables.</xccdf:description> |
| 15238 |
</xccdf:Group> |
| 15239 |
</xccdf:Group> |
| 15240 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.18.3"> |
| 15241 |
<xccdf:title xml:lang="en">Avoid the Samba Web Administration Tool (SWAT)</xccdf:title> |
| 15242 |
<xccdf:description xml:lang="en"> |
| 15243 |
SWAT is a web based configuration tool provided by the Samba team |
| 15244 |
that enables both local and remote configuration management. It is not installed by |
| 15245 |
default. It is recommended that SWAT not be used, as it requires the use of a Samba |
| 15246 |
administrator account and sends that password in the clear over a network connection. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15247 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15248 |
If |
| 15249 |
SWAT is absolutely required, limit access to the local machine or tunnel SWAT connections |
| 15250 |
through SSL with stunnel.</xccdf:description> |
| 15251 |
</xccdf:Group> |
| 15252 |
</xccdf:Group> |
| 15253 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19"> |
| 15254 |
<xccdf:title xml:lang="en">Proxy Server</xccdf:title> |
| 15255 |
<xccdf:description xml:lang="en"> |
| 15256 |
A proxy server is a very desirable target for a potential adversary |
| 15257 |
because much (or all) sensitive data for a given infrastructure may flow through it. |
| 15258 |
Therefore, if one is required, the machine acting as a proxy server should be dedicated to |
| 15259 |
that purpose alone and be stored in a physically secure location. The system's default proxy |
| 15260 |
server software is Squid, and provided in an RPM package of the same name.</xccdf:description> |
| 15261 |
<xccdf:reference>Galarneua, E. Security Considerations with Squid proxy server. Tech. rep., Apr 2003</xccdf:reference> |
| 15262 |
<xccdf:reference>Wessels, D. Squid: The Definitive Guide. O’Reilly and Associates, Jan 2004</xccdf:reference> |
| 15263 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.1"> |
| 15264 |
<xccdf:title xml:lang="en">Disable Squid if Possible</xccdf:title> |
| 15265 |
<xccdf:description xml:lang="en"> |
| 15266 |
If Squid was installed and activated, but the system does not |
| 15267 |
need to act as a proxy server, then it should be disabled and removed: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15268 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15269 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig squid off <xhtml:br/> |
| 15270 |
# yum erase squid</xhtml:code></xccdf:description> |
| 15271 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.1.a" selected="false" severity="low" weight="10.0"> |
| 15272 |
<xccdf:title>Disable Squid if Possible</xccdf:title> |
| 15273 |
<xccdf:description>The squid service should be disabled.</xccdf:description> |
| 15274 |
<xccdf:ident system="http://cce.mitre.org">CCE-4556-7</xccdf:ident> |
| 15275 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 15276 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15277 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20341"/> |
| 15278 |
</xccdf:check> |
| 15279 |
</xccdf:Rule> |
| 15280 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.1.b" selected="false" weight="10.0"> |
| 15281 |
<xccdf:title>Uninstall Squid if Possible</xccdf:title> |
| 15282 |
<xccdf:description>The squid package should be uninstalled.</xccdf:description> |
| 15283 |
<xccdf:ident system="http://cce.mitre.org">CCE-4076-6</xccdf:ident> |
| 15284 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 15285 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15286 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20342"/> |
| 15287 |
</xccdf:check> |
| 15288 |
</xccdf:Rule> |
| 15289 |
</xccdf:Group> |
| 15290 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2"> |
| 15291 |
<xccdf:title xml:lang="en">Configure Squid if Necessary</xccdf:title> |
| 15292 |
<xccdf:description xml:lang="en"> |
| 15293 |
The Squid configuration file is /etc/squid/squid.conf. The |
| 15294 |
following recommendations can be applied to this file. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15295 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15296 |
Note: If a particular tag is not |
| 15297 |
present in the configuration file, Squid falls back to the default setting (which is often |
| 15298 |
illustrated by a comment).</xccdf:description> |
| 15299 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.1"> |
| 15300 |
<xccdf:title xml:lang="en">Listen on Uncommon Port</xccdf:title> |
| 15301 |
<xccdf:description xml:lang="en"> |
| 15302 |
The default listening port for the Squid service is 3128. As |
| 15303 |
such, it is frequently scanned by adversaries looking for proxy servers. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15304 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15305 |
Select an |
| 15306 |
arbitrary (but uncommon) high port to use as the Squid listening port and make the |
| 15307 |
corresponding change to the configuration file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15308 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15309 |
http_port port <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15310 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15311 |
Run the following command |
| 15312 |
to add a new SELinux port mapping for the service: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15313 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15314 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># semanage port -a -t http_cache_port_t -p tcp port</xhtml:code></xccdf:description> |
| 15315 |
</xccdf:Group> |
| 15316 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.2"> |
| 15317 |
<xccdf:title xml:lang="en">Verify Default Secure Settings</xccdf:title> |
| 15318 |
<xccdf:description xml:lang="en"> |
| 15319 |
Several security-enhancing settings in the Squid configuration |
| 15320 |
file are enabled by default, but appear as comments in the configuration file (as |
| 15321 |
mentioned in Section 3.19.2). In these instances, the explicit directive is not present, |
| 15322 |
which means it is implicitly enabled. If you are operating with a default configuration |
| 15323 |
file, this section can be ignored. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15324 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15325 |
Ensure that the following security settings are NOT |
| 15326 |
explicitly changed from their default values: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15327 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15328 |
ftp_passive on <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15329 |
ftp_sanitycheck on<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15330 |
check_hostnames on <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15331 |
request_header_max_size 20 KB <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15332 |
reply_header_max_size 20 KB<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15333 |
cache_effective_user squid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15334 |
cache_effective_group squid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15335 |
ignore_unknown_nameservers on <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15336 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15337 |
ftp_passive forces FTP passive connections. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15338 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15339 |
ftp_sanitycheck performs additional sanity checks on FTP data connections. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15340 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15341 |
check_hostnames ensures that hostnames meet RFC compliance. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15342 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15343 |
request_header_max_size and reply_header_max_size place an upper limit on |
| 15344 |
HTTP header length, precautions against denial-of-service and buffer overflow |
| 15345 |
vulnerabilities. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15346 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15347 |
cache_effective_user and cache_effective_group designate the EUID and |
| 15348 |
EGID of Squid following initialization (it is essential that the EUID/EGID be set to an |
| 15349 |
unprivileged sandbox account). <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15350 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15351 |
ignore_unknown_nameservers checks to make sure that DNS |
| 15352 |
responses come from the same IP the request was sent to.</xccdf:description> |
| 15353 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.2.d" operator="equals" type="string"> |
| 15354 |
<xccdf:title>request_header_max_size</xccdf:title> |
| 15355 |
<xccdf:description xml:lang="en">Place an upper limit on HTTP request header length, precautions against denial-of-service and buffer overflow vulnerabilities.</xccdf:description> |
| 15356 |
<xccdf:question xml:lang="en">Specify an upper limit on HTTP request header length</xccdf:question> |
| 15357 |
<xccdf:value>20kb</xccdf:value> |
| 15358 |
<xccdf:value selector="20kb">20kb</xccdf:value> |
| 15359 |
<xccdf:match>^[\d][KMGkmg]?[Bb]?$</xccdf:match> |
| 15360 |
</xccdf:Value> |
| 15361 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.2.e" operator="equals" type="string"> |
| 15362 |
<xccdf:title>reply_header_max_size</xccdf:title> |
| 15363 |
<xccdf:description xml:lang="en">Place an upper limit on HTTP reply header length, precautions against denial-of-service and buffer overflow vulnerabilities.</xccdf:description> |
| 15364 |
<xccdf:question xml:lang="en">Specify an upper limit on HTTP reply header length</xccdf:question> |
| 15365 |
<xccdf:value>20kb</xccdf:value> |
| 15366 |
<xccdf:value selector="20kb">20kb</xccdf:value> |
| 15367 |
<xccdf:match>^[\d][KMGkmg]?[Bb]?$</xccdf:match> |
| 15368 |
</xccdf:Value> |
| 15369 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.2.f" operator="equals" type="string"> |
| 15370 |
<xccdf:title>cache_effective_user</xccdf:title> |
| 15371 |
<xccdf:description xml:lang="en">Designate the EUID of Squid following initialization (it is essential that the EUID be set to an unprivileged sandbox account)..</xccdf:description> |
| 15372 |
<xccdf:question xml:lang="en">Designate the EUID of Squid following initialization</xccdf:question> |
| 15373 |
<xccdf:value>squid</xccdf:value> |
| 15374 |
<xccdf:value selector="squid">squid</xccdf:value> |
| 15375 |
</xccdf:Value> |
| 15376 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.2.g" operator="equals" type="string"> |
| 15377 |
<xccdf:title>cache_effective_group</xccdf:title> |
| 15378 |
<xccdf:description xml:lang="en">Designate the EGID of Squid following initialization (it is essential that the EGID be set to an unprivileged sandbox account)..</xccdf:description> |
| 15379 |
<xccdf:question xml:lang="en">Designate the EGID of Squid following initialization</xccdf:question> |
| 15380 |
<xccdf:value>squid</xccdf:value> |
| 15381 |
<xccdf:value selector="squid">squid</xccdf:value> |
| 15382 |
</xccdf:Value> |
| 15383 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.a" selected="false" weight="10.0"> |
| 15384 |
<xccdf:title>Verify ftp_passive setting</xccdf:title> |
| 15385 |
<xccdf:description>The Squid option to force FTP passive connections should be enabled</xccdf:description> |
| 15386 |
<xccdf:ident system="http://cce.mitre.org">CCE-4454-5</xccdf:ident> |
| 15387 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15388 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15389 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20343"/> |
| 15390 |
</xccdf:check> |
| 15391 |
</xccdf:Rule> |
| 15392 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.b" selected="false" weight="10.0"> |
| 15393 |
<xccdf:title>Verify ftp_sanitycheck setting</xccdf:title> |
| 15394 |
<xccdf:description>The Squid option to perform FTP sanity checks should be enabled</xccdf:description> |
| 15395 |
<xccdf:ident system="http://cce.mitre.org">CCE-4459-4</xccdf:ident> |
| 15396 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15397 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15398 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20344"/> |
| 15399 |
</xccdf:check> |
| 15400 |
</xccdf:Rule> |
| 15401 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.c" selected="false" weight="10.0"> |
| 15402 |
<xccdf:title>Verify check_hostnames stting</xccdf:title> |
| 15403 |
<xccdf:description>The Squid option to check for RFC compliant hostnames should be enabled</xccdf:description> |
| 15404 |
<xccdf:ident system="http://cce.mitre.org">CCE-4503-9</xccdf:ident> |
| 15405 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15406 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15407 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20345"/> |
| 15408 |
</xccdf:check> |
| 15409 |
</xccdf:Rule> |
| 15410 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.d" selected="false" weight="10.0"> |
| 15411 |
<xccdf:title>Verify request_header_max_size setting</xccdf:title> |
| 15412 |
<xccdf:description>The Squid max request HTTP header length should be set to an appropriate value</xccdf:description> |
| 15413 |
<xccdf:ident system="http://cce.mitre.org">CCE-4353-9</xccdf:ident> |
| 15414 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15415 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15416 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20346" value-id="xccdf_cdf_value_var-3.19.2.2.d"/> |
| 15417 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20346"/> |
| 15418 |
</xccdf:check> |
| 15419 |
</xccdf:Rule> |
| 15420 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.e" selected="false" weight="10.0"> |
| 15421 |
<xccdf:title>Verify reply_header_max_size setting</xccdf:title> |
| 15422 |
<xccdf:description>The Squid max reply HTTP header length should be set to an appropriate value</xccdf:description> |
| 15423 |
<xccdf:ident system="http://cce.mitre.org">CCE-4419-8</xccdf:ident> |
| 15424 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15425 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15426 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20347" value-id="xccdf_cdf_value_var-3.19.2.2.e"/> |
| 15427 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20347"/> |
| 15428 |
</xccdf:check> |
| 15429 |
</xccdf:Rule> |
| 15430 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.f" selected="false" weight="10.0"> |
| 15431 |
<xccdf:title>Verify cache_effective_user setting</xccdf:title> |
| 15432 |
<xccdf:description>The Squid EUID should be set to an appropriate user</xccdf:description> |
| 15433 |
<xccdf:ident system="http://cce.mitre.org">CCE-3692-1</xccdf:ident> |
| 15434 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15435 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15436 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20348" value-id="xccdf_cdf_value_var-3.19.2.2.f"/> |
| 15437 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20348"/> |
| 15438 |
</xccdf:check> |
| 15439 |
</xccdf:Rule> |
| 15440 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.g" selected="false" weight="10.0"> |
| 15441 |
<xccdf:title>Verify cache_effective_group setting</xccdf:title> |
| 15442 |
<xccdf:description>The Squid GUID should be set to an appropriate group</xccdf:description> |
| 15443 |
<xccdf:ident system="http://cce.mitre.org">CCE-4476-8</xccdf:ident> |
| 15444 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15445 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15446 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20349" value-id="xccdf_cdf_value_var-3.19.2.2.g"/> |
| 15447 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20349"/> |
| 15448 |
</xccdf:check> |
| 15449 |
</xccdf:Rule> |
| 15450 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.2.h" selected="false" weight="10.0"> |
| 15451 |
<xccdf:title>Verify ignore_unknown_nameservers setting</xccdf:title> |
| 15452 |
<xccdf:description>The Squid option to ignore unknown nameservers should be enabled</xccdf:description> |
| 15453 |
<xccdf:ident system="http://cce.mitre.org">CCE-3585-7</xccdf:ident> |
| 15454 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15455 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15456 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20350"/> |
| 15457 |
</xccdf:check> |
| 15458 |
</xccdf:Rule> |
| 15459 |
</xccdf:Group> |
| 15460 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.3"> |
| 15461 |
<xccdf:title xml:lang="en">Change Default Insecure Settings</xccdf:title> |
| 15462 |
<xccdf:description xml:lang="en"> |
| 15463 |
The default configuration settings for the following tags are |
| 15464 |
considered to be weak security and NOT recommended. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15465 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15466 |
Add or modify the configuration file to include the following lines: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15467 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15468 |
allow_underscore off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15469 |
httpd_suppress_version_string on<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15470 |
forwarded_for off <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15471 |
log_mime_hdrs on <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15472 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15473 |
allow_underscore enforces RFC 1034 compliance on |
| 15474 |
hostnames by disallowing the use of underscores. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15475 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15476 |
httpd_suppress_version string prevents |
| 15477 |
Squid from revealing version information in web headers and error pages. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15478 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15479 |
forwarded_for |
| 15480 |
reveals proxy client IP addresses in HTTP headers and should be disabled to prevent the |
| 15481 |
leakage of internal network configuration details. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15482 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15483 |
log_mime_hdrs enables logging of HTTP |
| 15484 |
response/request headers.</xccdf:description> |
| 15485 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.3.a" operator="equals" type="string"> |
| 15486 |
<xccdf:title>allow_underscore</xccdf:title> |
| 15487 |
<xccdf:description xml:lang="en">allow_underscore enforces RFC 1034 compliance on hostnames by disallowing the use of underscores.</xccdf:description> |
| 15488 |
<xccdf:question xml:lang="en">Enable/Disable enforcing RFC 1034 compliance on hostnames</xccdf:question> |
| 15489 |
<xccdf:value>off</xccdf:value> |
| 15490 |
<xccdf:value selector="enabled">on</xccdf:value> |
| 15491 |
<xccdf:value selector="disabled">off</xccdf:value> |
| 15492 |
<xccdf:match>on|off</xccdf:match> |
| 15493 |
<xccdf:choices mustMatch="1"> |
| 15494 |
<xccdf:choice>on</xccdf:choice> |
| 15495 |
<xccdf:choice>off</xccdf:choice> |
| 15496 |
</xccdf:choices> |
| 15497 |
</xccdf:Value> |
| 15498 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.3.b" operator="equals" type="string"> |
| 15499 |
<xccdf:title>httpd_suppress_version</xccdf:title> |
| 15500 |
<xccdf:description xml:lang="en">httpd_suppress_version string prevents Squid from revealing version information in web headers and error pages.</xccdf:description> |
| 15501 |
<xccdf:question xml:lang="en">Enable/Disable preventing squid from revealing version information in web headers and error pages</xccdf:question> |
| 15502 |
<xccdf:value>on</xccdf:value> |
| 15503 |
<xccdf:value selector="enabled">on</xccdf:value> |
| 15504 |
<xccdf:value selector="disabled">off</xccdf:value> |
| 15505 |
<xccdf:match>on|off</xccdf:match> |
| 15506 |
<xccdf:choices mustMatch="1"> |
| 15507 |
<xccdf:choice>on</xccdf:choice> |
| 15508 |
<xccdf:choice>off</xccdf:choice> |
| 15509 |
</xccdf:choices> |
| 15510 |
</xccdf:Value> |
| 15511 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.3.c" operator="equals" type="string"> |
| 15512 |
<xccdf:title>forwarded_for</xccdf:title> |
| 15513 |
<xccdf:description xml:lang="en">forwarded_for reveals proxy client IP addresses in HTTP headers and should be disabled to prevent the leakage of internal network configuration details. </xccdf:description> |
| 15514 |
<xccdf:question xml:lang="en">Enable/Disable revealing proxy client IP addresses in HTTP headers</xccdf:question> |
| 15515 |
<xccdf:value>off</xccdf:value> |
| 15516 |
<xccdf:value selector="enabled">on</xccdf:value> |
| 15517 |
<xccdf:value selector="disabled">off</xccdf:value> |
| 15518 |
<xccdf:match>on|off</xccdf:match> |
| 15519 |
<xccdf:choices mustMatch="1"> |
| 15520 |
<xccdf:choice>on</xccdf:choice> |
| 15521 |
<xccdf:choice>off</xccdf:choice> |
| 15522 |
</xccdf:choices> |
| 15523 |
</xccdf:Value> |
| 15524 |
<xccdf:Value id="xccdf_cdf_value_var-3.19.2.3.d" operator="equals" type="string"> |
| 15525 |
<xccdf:title>log_mime_hdrs</xccdf:title> |
| 15526 |
<xccdf:description xml:lang="en">log_mime_hdrs enables logging of HTTP response/request headers.</xccdf:description> |
| 15527 |
<xccdf:question xml:lang="en">Enable/Disable logging of HTTP response/request headers</xccdf:question> |
| 15528 |
<xccdf:value>on</xccdf:value> |
| 15529 |
<xccdf:value selector="enabled">on</xccdf:value> |
| 15530 |
<xccdf:value selector="disabled">off</xccdf:value> |
| 15531 |
<xccdf:match>on|off</xccdf:match> |
| 15532 |
<xccdf:choices mustMatch="1"> |
| 15533 |
<xccdf:choice>on</xccdf:choice> |
| 15534 |
<xccdf:choice>off</xccdf:choice> |
| 15535 |
</xccdf:choices> |
| 15536 |
</xccdf:Value> |
| 15537 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.3.a" selected="false" weight="10.0"> |
| 15538 |
<xccdf:title>Check allow_underscore setting</xccdf:title> |
| 15539 |
<xccdf:description>The Squid option to allow underscores in hostnames should be disabled</xccdf:description> |
| 15540 |
<xccdf:ident system="http://cce.mitre.org">CCE-4344-8</xccdf:ident> |
| 15541 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15542 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15543 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20351" value-id="xccdf_cdf_value_var-3.19.2.3.a"/> |
| 15544 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20351"/> |
| 15545 |
</xccdf:check> |
| 15546 |
</xccdf:Rule> |
| 15547 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.3.b" selected="false" weight="10.0"> |
| 15548 |
<xccdf:title>Check httpd_suppress_version setting</xccdf:title> |
| 15549 |
<xccdf:description>The Squid option to suppress the httpd version string should be enabled</xccdf:description> |
| 15550 |
<xccdf:ident system="http://cce.mitre.org">CCE-4494-1</xccdf:ident> |
| 15551 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15552 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15553 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20352" value-id="xccdf_cdf_value_var-3.19.2.3.b"/> |
| 15554 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20352"/> |
| 15555 |
</xccdf:check> |
| 15556 |
</xccdf:Rule> |
| 15557 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.3.c" selected="false" weight="10.0"> |
| 15558 |
<xccdf:title>Check forwarded_for setting</xccdf:title> |
| 15559 |
<xccdf:description>The Squid option to show proxy client IP addresses in HTTP headers should be disabled</xccdf:description> |
| 15560 |
<xccdf:ident system="http://cce.mitre.org">CCE-4181-4</xccdf:ident> |
| 15561 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15562 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15563 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20353" value-id="xccdf_cdf_value_var-3.19.2.3.c"/> |
| 15564 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20353"/> |
| 15565 |
</xccdf:check> |
| 15566 |
</xccdf:Rule> |
| 15567 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.3.d" selected="false" weight="10.0"> |
| 15568 |
<xccdf:title>Check log_mime_hdrs setting</xccdf:title> |
| 15569 |
<xccdf:description>The Squid option to log HTTP MIME headers should be enabled</xccdf:description> |
| 15570 |
<xccdf:ident system="http://cce.mitre.org">CCE-4577-3</xccdf:ident> |
| 15571 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15572 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15573 |
<xccdf:check-export export-name="oval:org.open-scap.f14:var:20354" value-id="xccdf_cdf_value_var-3.19.2.3.d"/> |
| 15574 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20354"/> |
| 15575 |
</xccdf:check> |
| 15576 |
</xccdf:Rule> |
| 15577 |
</xccdf:Group> |
| 15578 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.4"> |
| 15579 |
<xccdf:title xml:lang="en">Configure Authentication if Applicable</xccdf:title> |
| 15580 |
<xccdf:description xml:lang="en"> |
| 15581 |
Note: Authentication cannot be used in the case of transparent |
| 15582 |
proxies due to limitations of the TCP/IP protocol. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15583 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15584 |
Similar to web servers, two of the |
| 15585 |
available options are Basic and Digest authentication. The other options are NTLM and |
| 15586 |
Negotiate authentication. As noted in Section 3.16.3.5, Basic authentication transmits |
| 15587 |
passwords in plain-text and is susceptible to passive monitoring. If network sniffing is |
| 15588 |
a concern, basic authentication should not be used. Negotiate is the newest and most |
| 15589 |
secure protocol. It attempts to use Kerberos authentication and falls back to NTLM if it |
| 15590 |
cannot. It should be noted that Kerberos requires a third-party Key Distribution Center |
| 15591 |
(KDC) to function properly, whereas the other methods of authentication are two-party |
| 15592 |
schemes. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15593 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15594 |
Squid also offers the ability to choose a custom external authenticator. |
| 15595 |
Designating an external authenticator (also known as a 'helper' module) allows Squid to |
| 15596 |
offer pluggable third-party authentication schemes. LDAP is one example of a helper |
| 15597 |
module that exists and is in use today. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15598 |
There are comments under the auth_param tag |
| 15599 |
inside /etc/squid/squid.conf that provide extensive detail on how to configure each of |
| 15600 |
these methods. If authentication is necessary, choose a method of authentication and |
| 15601 |
configure appropriately. The recommended minimum configurations illustrated for each |
| 15602 |
method are acceptable. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15603 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15604 |
To force an ACL (as discussed in Section 3.19.2.5) to require |
| 15605 |
authentication, use the following directive: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15606 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15607 |
acl name-of-ACL proxy_auth REQUIRED <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15608 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15609 |
Note: |
| 15610 |
The keyword REQUIRED can be replaced with a user or list of users to further restrict |
| 15611 |
access to a smaller subset of users.</xccdf:description> |
| 15612 |
</xccdf:Group> |
| 15613 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.5"> |
| 15614 |
<xccdf:title xml:lang="en">Access Control Lists (ACL)</xccdf:title> |
| 15615 |
<xccdf:description xml:lang="en"> |
| 15616 |
The acl and http access tags are used in combination to allow filtering based on a series of |
| 15617 |
access control lists. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15618 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15619 |
Squid has a list of default ACLs for localhost, SSL ports, and |
| 15620 |
'safe' ports. Following the definition of these ACLs, a series of http access directives |
| 15621 |
establish the following default filtering policy: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15622 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15623 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 15624 |
<xhtml:li>Allow cachemgr access only from localhost </xhtml:li> |
| 15625 |
<xhtml:li>Allow access to only ports in the 'safe' access control list</xhtml:li> |
| 15626 |
<xhtml:li>Limit CONNECT method to SSL ports only</xhtml:li> |
| 15627 |
<xhtml:li>Allow access from localhost</xhtml:li> |
| 15628 |
<xhtml:li>Deny all other requests</xhtml:li> |
| 15629 |
</xhtml:ul><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15630 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15631 |
The |
| 15632 |
default ACL policies are reasonable from a security standpoint. However, the number of |
| 15633 |
ports listed as 'safe' could be significantly trimmed depending on the needs of your |
| 15634 |
network. Out of the box, ports 21, 70, 80, 210, 280, 443, 488, 591, 777, and 1025 |
| 15635 |
through 65535 are all considered safe. Some of these ports are associated with |
| 15636 |
deprecated or rarely used protocols. As such, this list could be trimmed to further |
| 15637 |
tighten filtering. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15638 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15639 |
The following actions should be taken to tighten the ACL policies: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15640 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15641 |
<xhtml:ol xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 15642 |
<xhtml:li>There is a filter line in the configuration file that is recommended but commented out. |
| 15643 |
This line should be uncommented or added to prevent access to localhost from the proxy:<xhtml:br/> |
| 15644 |
<xhtml:br/> |
| 15645 |
http access deny to_localhost </xhtml:li> |
| 15646 |
<xhtml:li>An access list should be setup for the specific network |
| 15647 |
or networks that the proxy is intended to serve. Only this subset of IP addresses should |
| 15648 |
be allowed access. <xhtml:br/> |
| 15649 |
<xhtml:br/> |
| 15650 |
Add these lines where the following comment appears: <xhtml:br/> |
| 15651 |
<xhtml:br/> |
| 15652 |
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS <xhtml:br/> |
| 15653 |
acl your-network-acl-name src ip-range <xhtml:br/> |
| 15654 |
http_access allow your-network-acl-name <xhtml:br/> |
| 15655 |
<xhtml:br/> |
| 15656 |
Note: ip-range is of the format xxx.xxx.xxx.xxx/xx</xhtml:li> |
| 15657 |
<xhtml:li>Ensure that the final http access line to appear in the document |
| 15658 |
is the following: <xhtml:br/> |
| 15659 |
<xhtml:br/> |
| 15660 |
http_access deny all <xhtml:br/> |
| 15661 |
<xhtml:br/> |
| 15662 |
This guarantees that all traffic not meeting an |
| 15663 |
explicit filtering rule is denied. <xhtml:br/> |
| 15664 |
<xhtml:br/> |
| 15665 |
Further filters should be established to meet the |
| 15666 |
specific needs of a network, explicitly allowing access only where necessary.</xhtml:li> |
| 15667 |
<xhtml:li>Consult |
| 15668 |
the chart below. Corresponding acl entries for unused protocols should be commented out |
| 15669 |
and thus denied. </xhtml:li> |
| 15670 |
</xhtml:ol><xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15671 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15672 |
<xhtml:table xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 15673 |
<xhtml:thead> |
| 15674 |
<xhtml:tr> |
| 15675 |
<xhtml:td>Port</xhtml:td><xhtml:td>Service</xhtml:td><xhtml:td>Summary</xhtml:td><xhtml:td>Recommendation</xhtml:td> |
| 15676 |
</xhtml:tr> |
| 15677 |
</xhtml:thead> |
| 15678 |
<xhtml:tbody> |
| 15679 |
<xhtml:tr> |
| 15680 |
<xhtml:td>21</xhtml:td> |
| 15681 |
<xhtml:td>ftp</xhtml:td> |
| 15682 |
<xhtml:td>File Transfer Protocol(FTP) |
| 15683 |
is a widely used file transfer protocol. </xhtml:td> |
| 15684 |
<xhtml:td>ALLOW</xhtml:td> |
| 15685 |
</xhtml:tr> |
| 15686 |
<xhtml:tr> |
| 15687 |
<xhtml:td>70</xhtml:td> |
| 15688 |
<xhtml:td>gopher</xhtml:td> |
| 15689 |
<xhtml:td>The gopher protocol is a |
| 15690 |
deprecated search and retrieval protocol that is almost extinct, with as few as 100 |
| 15691 |
gopher servers present worldwide. Support for gopher is disabled in most modern |
| 15692 |
browsers. </xhtml:td> |
| 15693 |
<xhtml:td>DENY</xhtml:td> |
| 15694 |
</xhtml:tr> |
| 15695 |
<xhtml:tr> |
| 15696 |
<xhtml:td>80</xhtml:td> |
| 15697 |
<xhtml:td>http</xhtml:td> |
| 15698 |
<xhtml:td>A web proxy needs to allow access to HTTP traffic. </xhtml:td> |
| 15699 |
<xhtml:td>ALLOW</xhtml:td> |
| 15700 |
</xhtml:tr> |
| 15701 |
<xhtml:tr> |
| 15702 |
<xhtml:td>210</xhtml:td> |
| 15703 |
<xhtml:td>wais</xhtml:td> |
| 15704 |
<xhtml:td>The Wide Area Information Server port is similar to gopher, serving as a text searching |
| 15705 |
system to scour indexes on remote machines. Today, it is deprecated and nearly |
| 15706 |
non-existent on the Internet. </xhtml:td> |
| 15707 |
<xhtml:td>DENY</xhtml:td> |
| 15708 |
</xhtml:tr> |
| 15709 |
<xhtml:tr> |
| 15710 |
<xhtml:td>280</xhtml:td> |
| 15711 |
<xhtml:td>http-mgmt</xhtml:td> |
| 15712 |
<xhtml:td>No documentation of any kind could be |
| 15713 |
found on the obscure service that resides on this port. </xhtml:td> |
| 15714 |
<xhtml:td>DENY</xhtml:td> |
| 15715 |
</xhtml:tr> |
| 15716 |
<xhtml:tr> |
| 15717 |
<xhtml:td>443</xhtml:td> |
| 15718 |
<xhtml:td>https</xhtml:td> |
| 15719 |
<xhtml:td>SSL traffic is |
| 15720 |
likely (and recommended) for any proxy and should be allowed. </xhtml:td> |
| 15721 |
<xhtml:td>ALLOW</xhtml:td> |
| 15722 |
</xhtml:tr> |
| 15723 |
<xhtml:tr> |
| 15724 |
<xhtml:td>488</xhtml:td> |
| 15725 |
<xhtml:td>gss-http</xhtml:td> |
| 15726 |
<xhtml:td>No |
| 15727 |
documentation of any kind could be found on the obscure service that resides on this |
| 15728 |
port. </xhtml:td> |
| 15729 |
<xhtml:td>DENY</xhtml:td> |
| 15730 |
</xhtml:tr> |
| 15731 |
<xhtml:tr> |
| 15732 |
<xhtml:td>591</xhtml:td> |
| 15733 |
<xhtml:td>filemaker</xhtml:td> |
| 15734 |
<xhtml:td>Filemaker is a database application originally offered by Apple |
| 15735 |
in the 1980s. Although development continues and it remains in use today, it should be |
| 15736 |
disabled if your network does not require such traffic. </xhtml:td> |
| 15737 |
<xhtml:td>DENY</xhtml:td> |
| 15738 |
</xhtml:tr> |
| 15739 |
<xhtml:tr> |
| 15740 |
<xhtml:td>777</xhtml:td> |
| 15741 |
<xhtml:td>multiling http</xhtml:td> |
| 15742 |
<xhtml:td>No documentation of any kind could be found on |
| 15743 |
the obscure service that resides on this port</xhtml:td> |
| 15744 |
<xhtml:td>DENY</xhtml:td> |
| 15745 |
</xhtml:tr> |
| 15746 |
<xhtml:tr> |
| 15747 |
<xhtml:td>1025-65535</xhtml:td> |
| 15748 |
<xhtml:td>unregistered ports http</xhtml:td> |
| 15749 |
<xhtml:td>unregistered |
| 15750 |
ports Random high ports are used by a variety of applications and should be allowed.</xhtml:td> |
| 15751 |
<xhtml:td>ALLOW</xhtml:td> |
| 15752 |
</xhtml:tr> |
| 15753 |
</xhtml:tbody> |
| 15754 |
</xhtml:table></xccdf:description> |
| 15755 |
<xccdf:warning xml:lang="en">Be very careful with the order of access control tags. Access |
| 15756 |
control is handled top-down. The first rule that matches is the only rule adhered to. |
| 15757 |
The last rule on the list defines the default behavior in the case of no rule match. </xccdf:warning> |
| 15758 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.a" selected="false" weight="10.0"> |
| 15759 |
<xccdf:title>Restrict gss-http traffic</xccdf:title> |
| 15760 |
<xccdf:description>Squid should be configured to not allow gss-http traffic</xccdf:description> |
| 15761 |
<xccdf:ident system="http://cce.mitre.org">CCE-4511-2</xccdf:ident> |
| 15762 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15763 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15764 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20355"/> |
| 15765 |
</xccdf:check> |
| 15766 |
</xccdf:Rule> |
| 15767 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.b" selected="false" weight="10.0"> |
| 15768 |
<xccdf:title>Restrict https traffic</xccdf:title> |
| 15769 |
<xccdf:description>Squid should be configured to not allow https traffic</xccdf:description> |
| 15770 |
<xccdf:ident system="http://cce.mitre.org">CCE-4529-4</xccdf:ident> |
| 15771 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15772 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15773 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20356"/> |
| 15774 |
</xccdf:check> |
| 15775 |
</xccdf:Rule> |
| 15776 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.c" selected="false" weight="10.0"> |
| 15777 |
<xccdf:title>Restrict wais traffic</xccdf:title> |
| 15778 |
<xccdf:description>Squid should be configured to not allow wais traffic</xccdf:description> |
| 15779 |
<xccdf:ident system="http://cce.mitre.org">CCE-3610-3</xccdf:ident> |
| 15780 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15781 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15782 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20357"/> |
| 15783 |
</xccdf:check> |
| 15784 |
</xccdf:Rule> |
| 15785 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.d" selected="false" weight="10.0"> |
| 15786 |
<xccdf:title>Restrict multiling http traffic</xccdf:title> |
| 15787 |
<xccdf:description>Squid should be configured to not allow multiling http traffic</xccdf:description> |
| 15788 |
<xccdf:ident system="http://cce.mitre.org">CCE-4466-9</xccdf:ident> |
| 15789 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15790 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15791 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20358"/> |
| 15792 |
</xccdf:check> |
| 15793 |
</xccdf:Rule> |
| 15794 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.e" selected="false" weight="10.0"> |
| 15795 |
<xccdf:title>Restrict http traffic</xccdf:title> |
| 15796 |
<xccdf:description>Squid should be configured to not allow http traffic</xccdf:description> |
| 15797 |
<xccdf:ident system="http://cce.mitre.org">CCE-4607-8</xccdf:ident> |
| 15798 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15799 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15800 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20359"/> |
| 15801 |
</xccdf:check> |
| 15802 |
</xccdf:Rule> |
| 15803 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.f" selected="false" weight="10.0"> |
| 15804 |
<xccdf:title>Restrict ftp traffic</xccdf:title> |
| 15805 |
<xccdf:description>Squid should be configured to not allow ftp traffic</xccdf:description> |
| 15806 |
<xccdf:ident system="http://cce.mitre.org">CCE-4255-6</xccdf:ident> |
| 15807 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15808 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15809 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20360"/> |
| 15810 |
</xccdf:check> |
| 15811 |
</xccdf:Rule> |
| 15812 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.g" selected="false" weight="10.0"> |
| 15813 |
<xccdf:title>Restrict gopher traffic</xccdf:title> |
| 15814 |
<xccdf:description>Squid should be configured to not allow gopher traffic</xccdf:description> |
| 15815 |
<xccdf:ident system="http://cce.mitre.org">CCE-4127-7</xccdf:ident> |
| 15816 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15817 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15818 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20361"/> |
| 15819 |
</xccdf:check> |
| 15820 |
</xccdf:Rule> |
| 15821 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.h" selected="false" weight="10.0"> |
| 15822 |
<xccdf:title>Restrict filemaker traffic</xccdf:title> |
| 15823 |
<xccdf:description>Squid should be configured to not allow filemaker traffic</xccdf:description> |
| 15824 |
<xccdf:ident system="http://cce.mitre.org">CCE-4519-5</xccdf:ident> |
| 15825 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15826 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15827 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20362"/> |
| 15828 |
</xccdf:check> |
| 15829 |
</xccdf:Rule> |
| 15830 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.i" selected="false" weight="10.0"> |
| 15831 |
<xccdf:title>Restrict proxy access to localhost </xccdf:title> |
| 15832 |
<xccdf:description>Squid proxy access to localhost should be denied</xccdf:description> |
| 15833 |
<xccdf:ident system="http://cce.mitre.org">CCE-4413-1</xccdf:ident> |
| 15834 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15835 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15836 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20363"/> |
| 15837 |
</xccdf:check> |
| 15838 |
</xccdf:Rule> |
| 15839 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.19.2.5.j" selected="false" weight="10.0"> |
| 15840 |
<xccdf:title>Restrict http-mgmt traffic</xccdf:title> |
| 15841 |
<xccdf:description>Squid should be configured to not allow http-mgmt traffic</xccdf:description> |
| 15842 |
<xccdf:ident system="http://cce.mitre.org">CCE-4373-7</xccdf:ident> |
| 15843 |
<xccdf:fixtext>(1) via /etc/squid/squid.conf</xccdf:fixtext> |
| 15844 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15845 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20364"/> |
| 15846 |
</xccdf:check> |
| 15847 |
</xccdf:Rule> |
| 15848 |
</xccdf:Group> |
| 15849 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.6"> |
| 15850 |
<xccdf:title xml:lang="en">Configure Internet Cache Protocol (ICP) if Necessary</xccdf:title> |
| 15851 |
<xccdf:description xml:lang="en"> |
| 15852 |
The ICP protocol is a cache communication protocol that allows |
| 15853 |
multiple Squid servers to communicate. The ICP protocol was designed with no security in |
| 15854 |
mind, relying on user-defined access control lists alone to determine which ICP messages |
| 15855 |
to allow. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15856 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15857 |
If a Squid server is standalone, the ICP port should be disabled by adding or |
| 15858 |
correcting the following line in the configuration file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15859 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15860 |
icp_port 0 <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15861 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15862 |
If the Squid server |
| 15863 |
is meant to speak with peers, strict ACLs should be established to only allow ICP |
| 15864 |
traffic from trusted neighbors. To accomplish this, add or correct the following lines:<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15865 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15866 |
icp_access allow acl-defining-trusted-neighbors <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15867 |
icp_access deny all</xccdf:description> |
| 15868 |
</xccdf:Group> |
| 15869 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.7"> |
| 15870 |
<xccdf:title xml:lang="en">Configure iptables to Allow Access to the Proxy Server</xccdf:title> |
| 15871 |
<xccdf:description xml:lang="en"> |
| 15872 |
Determine an appropriate network block, netwk , and network |
| 15873 |
mask, mask , representing the machines on your network which should operate as clients |
| 15874 |
of the proxy server. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15875 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15876 |
Edit /etc/sysconfig/iptables. Add the following line, ensuring that |
| 15877 |
it appears before the final LOG and DROP lines for the RH-Firewall-1-INPUT chain: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15878 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15879 |
-A RH-Firewall-1-INPUT -s netwk /mask -m state --state NEW -p tcp --dport port -j ACCEPT<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15880 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15881 |
For port , use either the default 3128 or the alternate port was selected in Section |
| 15882 |
3.19.2.1. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15883 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15884 |
The default Iptables configuration does not allow inbound access to the Squid |
| 15885 |
proxy service. This modification allows that access, while keeping other ports on the |
| 15886 |
server in their default protected state. See Section 2.5.5 for more information about |
| 15887 |
Iptables.</xccdf:description> |
| 15888 |
</xccdf:Group> |
| 15889 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.8"> |
| 15890 |
<xccdf:title xml:lang="en">Forward Log Messages to Syslog Daemon</xccdf:title> |
| 15891 |
<xccdf:description xml:lang="en"> |
| 15892 |
The default behavior of Squid is to record its log messages in |
| 15893 |
/var/log/squid.log. This behavior can be supplemented so that Squid also sends messages |
| 15894 |
to syslog as well. This is useful for centralizing log data, particularly in instances |
| 15895 |
where multiple Squid servers are present. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15896 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15897 |
Squid provides a command line argument to |
| 15898 |
enable syslog forwarding. Modify the SQUID OPTS line in /etc/init.d/squid to include the |
| 15899 |
-s option: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15900 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15901 |
SQUID_OPTS="${SQUID_OPTS:-"-D"} -s"</xccdf:description> |
| 15902 |
</xccdf:Group> |
| 15903 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.9"> |
| 15904 |
<xccdf:title xml:lang="en">Do Not Run as Root</xccdf:title> |
| 15905 |
<xccdf:description xml:lang="en"> |
| 15906 |
Since Squid is loaded by the system's service utility, it |
| 15907 |
starts as root and then changes its effective UID to the UID specified by the cache |
| 15908 |
effective user directive. However, since it was still executed by root, the program |
| 15909 |
maintains a saved UID of root even after changing its effective UID. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15910 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15911 |
To prevent this |
| 15912 |
undesired behavior, Squid must either be configured to run in a chroot environment or it |
| 15913 |
must be executed by a non-privileged user in non-daemon mode (the service utility must |
| 15914 |
not be used).</xccdf:description> |
| 15915 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.9.1"> |
| 15916 |
<xccdf:title xml:lang="en">Run Squid in a chroot Jail</xccdf:title> |
| 15917 |
<xccdf:description xml:lang="en"> |
| 15918 |
Chrooting Squid can be a very complicated task. Documentation |
| 15919 |
for the process is vague and a great deal of trial and error may be required to |
| 15920 |
determine all the files that need to be transitioned over to the chroot environment. |
| 15921 |
Therefore, this guide recommends instead the method detailed in Section 3.19.2.9.2 to |
| 15922 |
lower privileges. If chrooting Squid is still desired, it can be enabled with the |
| 15923 |
following directive in the configuration file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15924 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15925 |
chroot chroot-path <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15926 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15927 |
Then, all the |
| 15928 |
necessary files used by Squid must be copied into the chroot-path directory. The |
| 15929 |
specifics of this step cannot be covered in this guide because they are highly |
| 15930 |
dependent on the external programs used in the Squid configuration. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15931 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15932 |
Note: The strace |
| 15933 |
utility is a valuable resource for discovering the files needed for the chroot |
| 15934 |
environment.</xccdf:description> |
| 15935 |
</xccdf:Group> |
| 15936 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.19.2.9.2"> |
| 15937 |
<xccdf:title xml:lang="en">Modify Service Entry to Lower Privileges</xccdf:title> |
| 15938 |
<xccdf:description xml:lang="en">T |
| 15939 |
he following modification to /etc/init.d/squid forces the |
| 15940 |
service utility to execute Squid as the squid user instead of the root user: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15941 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15942 |
# determine the name of the squid binary <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15943 |
[ -f /usr/sbin/squid ] && SQUID="sudo -u squid squid" <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15944 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15945 |
Making this change prevents Squid from writing its pid to |
| 15946 |
/var/run. This pid file is used by service to check to see if the program started |
| 15947 |
successfully. Therefore, a new location must be chosen for this pid file that the |
| 15948 |
squid user has access to, and the corresponding references in /etc/init.d/squid must |
| 15949 |
be altered to point to it. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15950 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15951 |
Make the following modification to the Squid configuration file: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15952 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15953 |
pid_filename /var/spool/squid/squid.pid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15954 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15955 |
Edit the file /etc/init.d/squid by |
| 15956 |
changing all occurrences of /var/run/squid.pid to /var/spool/squid/ squid.pid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15957 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15958 |
Also modify the following line in /etc/init.d/squid: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15959 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15960 |
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/squid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15961 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15962 |
and add the following lines immediately after it: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15963 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15964 |
rm -f /var/lock/subsys/squid <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15965 |
status squid</xccdf:description> |
| 15966 |
</xccdf:Group> |
| 15967 |
</xccdf:Group> |
| 15968 |
</xccdf:Group> |
| 15969 |
</xccdf:Group> |
| 15970 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.20"> |
| 15971 |
<xccdf:title xml:lang="en">SNMP Server</xccdf:title> |
| 15972 |
<xccdf:description xml:lang="en"> |
| 15973 |
The Simple Network Management Protocol allows administrators to |
| 15974 |
monitor the state of network devices, including computers. Older versions of SNMP were |
| 15975 |
well-known for weak security, such as plaintext transmission of the community string (used |
| 15976 |
for authentication) and also usage of easily-guessable choices for community string.</xccdf:description> |
| 15977 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.20.1"> |
| 15978 |
<xccdf:title xml:lang="en">Disable SNMP Server if Possible</xccdf:title> |
| 15979 |
<xccdf:description xml:lang="en"> |
| 15980 |
The system includes an SNMP daemon that allows for its remote |
| 15981 |
monitoring, though it not installed by default. If it was installed and activated, it is |
| 15982 |
important that the software be disabled and removed. <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15983 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15984 |
If there is not a mission-critical |
| 15985 |
need for hosts at this site to be remotely monitored by a SNMP tool, then disable and |
| 15986 |
remove SNMP as follows: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15987 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 15988 |
<xhtml:code xmlns:xhtml="http://www.w3.org/1999/xhtml"># chkconfig snmpd off <xhtml:br/> |
| 15989 |
# yum erase net-snmpd</xhtml:code></xccdf:description> |
| 15990 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.20.1.a" selected="false" severity="medium" weight="10.0"> |
| 15991 |
<xccdf:title>Disable snmpd if Possible</xccdf:title> |
| 15992 |
<xccdf:description>The snmpd service should be disabled.</xccdf:description> |
| 15993 |
<xccdf:ident system="http://cce.mitre.org">CCE-3765-5</xccdf:ident> |
| 15994 |
<xccdf:fixtext>(1) via chkconfig</xccdf:fixtext> |
| 15995 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 15996 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20365"/> |
| 15997 |
</xccdf:check> |
| 15998 |
</xccdf:Rule> |
| 15999 |
<xccdf:Rule id="xccdf_cdf_rule_rule-3.20.1.b" selected="false" weight="10.0"> |
| 16000 |
<xccdf:title>Uninstall net-snmp if Possible</xccdf:title> |
| 16001 |
<xccdf:description>The net-snmp package should be uninstalled.</xccdf:description> |
| 16002 |
<xccdf:ident system="http://cce.mitre.org">CCE-4404-0</xccdf:ident> |
| 16003 |
<xccdf:fixtext>(1) via yum</xccdf:fixtext> |
| 16004 |
<xccdf:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5"> |
| 16005 |
<xccdf:check-content-ref href="scap-fedora14-oval.xml" name="oval:org.open-scap.f14:def:20366"/> |
| 16006 |
</xccdf:check> |
| 16007 |
</xccdf:Rule> |
| 16008 |
</xccdf:Group> |
| 16009 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.20.2"> |
| 16010 |
<xccdf:title xml:lang="en">Configure SNMP Server if Necessary</xccdf:title> |
| 16011 |
<xccdf:description xml:lang="en"> |
| 16012 |
If it is necessary to run the snmpd agent on the system, some |
| 16013 |
best practices should be followed to minimize the security risk from the installation. The |
| 16014 |
multiple security models implemented by SNMP cannot be fully covered here so only the |
| 16015 |
following general configuration advice can be offered: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 16016 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 16017 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 16018 |
<xhtml:li>use only SNMP version 3 security |
| 16019 |
models and enable the use of authentication and encryption for those </xhtml:li> |
| 16020 |
<xhtml:li>write access to the |
| 16021 |
MIB (Management Information Base) should be allowed only if necessary </xhtml:li> |
| 16022 |
<xhtml:li>all access to the |
| 16023 |
MIB should be restricted following a principle of least privilege </xhtml:li> |
| 16024 |
<xhtml:li>network access should |
| 16025 |
be limited to the maximum extent possible including restricting to expected network |
| 16026 |
addresses both in the configuration files and in the system firewall rules </xhtml:li> |
| 16027 |
<xhtml:li>ensure SNMP |
| 16028 |
agents send traps only to, and accept SNMP queries only from, authorized management |
| 16029 |
stations </xhtml:li> |
| 16030 |
<xhtml:li>ensure that permissions on the snmpd.conf configuration file (by default, in |
| 16031 |
/etc/snmp) are 640 or more restrictive </xhtml:li> |
| 16032 |
<xhtml:li>ensure that any MIB files' permissions are also |
| 16033 |
640 or more restrictive</xhtml:li> |
| 16034 |
</xhtml:ul></xccdf:description> |
| 16035 |
<xccdf:Group hidden="false" id="xccdf_cdf_group_group-3.20.2.1"> |
| 16036 |
<xccdf:title xml:lang="en">Further Resources</xccdf:title> |
| 16037 |
<xccdf:description xml:lang="en"> |
| 16038 |
The following resources provide more detailed information about the SNMP software: <xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 16039 |
<xhtml:br xmlns:xhtml="http://www.w3.org/1999/xhtml"/> |
| 16040 |
<xhtml:ul xmlns:xhtml="http://www.w3.org/1999/xhtml"> |
| 16041 |
<xhtml:li>The CERT SNMP Vulnerabilities FAQ at http://www.cert.org/tech |
| 16042 |
tips/snmp faq.html </xhtml:li> |
| 16043 |
<xhtml:li>The Net-SNMP project web page at http://net-snmp.sourceforge.net </xhtml:li> |
| 16044 |
<xhtml:li>The snmp config(5) man page </xhtml:li> |
| 16045 |
<xhtml:li>the snmpd.conf(5) man page</xhtml:li> |
| 16046 |
</xhtml:ul> |
| 16047 |
</xccdf:description> |
| 16048 |
</xccdf:Group> |
| 16049 |
</xccdf:Group> |
| 16050 |
</xccdf:Group> |
| 16051 |
</xccdf:Group> |
| 16052 |
</xccdf:Benchmark> |