/usr/share/scap-security-guide/ssg-centos6-xccdf.xml is in ssg-nondebian 0.1.31-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264 14265 14266 14267 14268 14269 14270 14271 14272 14273 14274 14275 14276 14277 14278 14279 14280 14281 14282 14283 14284 14285 14286 14287 14288 14289 14290 14291 14292 14293 14294 14295 14296 14297 14298 14299 14300 14301 14302 14303 14304 14305 14306 14307 14308 14309 14310 14311 14312 14313 14314 14315 14316 14317 14318 14319 14320 14321 14322 14323 14324 14325 14326 14327 14328 14329 14330 14331 14332 14333 14334 14335 14336 14337 14338 14339 14340 14341 14342 14343 14344 14345 14346 14347 14348 14349 14350 14351 14352 14353 14354 14355 14356 14357 14358 14359 14360 14361 14362 14363 14364 14365 14366 14367 14368 14369 14370 14371 14372 14373 14374 14375 14376 14377 14378 14379 14380 14381 14382 14383 14384 14385 14386 14387 14388 14389 14390 14391 14392 14393 14394 14395 14396 14397 14398 14399 14400 14401 14402 14403 14404 14405 14406 14407 14408 14409 14410 14411 14412 14413 14414 14415 14416 14417 14418 14419 14420 14421 14422 14423 14424 14425 14426 14427 14428 14429 14430 14431 14432 14433 14434 14435 14436 14437 14438 14439 14440 14441 14442 14443 14444 14445 14446 14447 14448 14449 14450 14451 14452 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 14464 14465 14466 14467 14468 14469 14470 14471 14472 14473 14474 14475 14476 14477 14478 14479 14480 14481 14482 14483 14484 14485 14486 14487 14488 14489 14490 14491 14492 14493 14494 14495 14496 14497 14498 14499 14500 14501 14502 14503 14504 14505 14506 14507 14508 14509 14510 14511 14512 14513 14514 14515 14516 14517 14518 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 14558 14559 14560 14561 14562 14563 14564 14565 14566 14567 14568 14569 14570 14571 14572 14573 14574 14575 14576 14577 14578 14579 14580 14581 14582 14583 14584 14585 14586 14587 14588 14589 14590 14591 14592 14593 14594 14595 14596 14597 14598 14599 14600 14601 14602 14603 14604 14605 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 14619 14620 14621 14622 14623 14624 14625 14626 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 14643 14644 14645 14646 14647 14648 14649 14650 14651 14652 14653 14654 14655 14656 14657 14658 14659 14660 14661 14662 14663 14664 14665 14666 14667 14668 14669 14670 14671 14672 14673 14674 14675 14676 14677 14678 14679 14680 14681 14682 14683 14684 14685 14686 14687 14688 14689 14690 14691 14692 14693 14694 14695 14696 14697 14698 14699 14700 14701 14702 14703 14704 14705 14706 14707 14708 14709 14710 14711 14712 14713 14714 14715 14716 14717 14718 14719 14720 14721 14722 14723 14724 14725 14726 14727 14728 14729 14730 14731 14732 14733 14734 14735 14736 14737 14738 14739 14740 14741 14742 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 14753 14754 14755 14756 14757 14758 14759 14760 14761 14762 14763 14764 14765 14766 14767 14768 14769 14770 14771 14772 14773 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784 14785 14786 14787 14788 14789 14790 14791 14792 14793 14794 14795 14796 14797 14798 14799 14800 14801 14802 14803 14804 14805 14806 14807 14808 14809 14810 14811 14812 14813 14814 14815 14816 14817 14818 14819 14820 14821 14822 14823 14824 14825 14826 14827 14828 14829 14830 14831 14832 14833 14834 14835 14836 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848 14849 14850 14851 14852 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898 14899 14900 14901 14902 14903 14904 14905 14906 14907 14908 14909 14910 14911 14912 14913 14914 14915 14916 14917 14918 14919 14920 14921 14922 14923 14924 14925 14926 14927 14928 14929 14930 14931 14932 14933 14934 14935 14936 14937 14938 14939 14940 14941 14942 14943 14944 14945 14946 14947 14948 14949 14950 14951 14952 14953 14954 14955 14956 14957 14958 14959 14960 14961 14962 14963 14964 14965 14966 14967 14968 14969 14970 14971 14972 14973 14974 14975 14976 14977 14978 14979 14980 14981 14982 14983 14984 14985 14986 14987 14988 14989 14990 14991 14992 14993 14994 14995 14996 14997 14998 14999 15000 15001 15002 15003 15004 15005 15006 15007 15008 15009 15010 15011 15012 15013 15014 15015 15016 15017 15018 15019 15020 15021 15022 15023 15024 15025 15026 15027 15028 15029 15030 15031 15032 15033 15034 15035 15036 15037 15038 15039 15040 15041 15042 15043 15044 15045 15046 15047 15048 15049 15050 15051 15052 15053 15054 15055 15056 15057 15058 15059 15060 15061 15062 15063 15064 15065 15066 15067 15068 15069 15070 15071 15072 15073 15074 15075 15076 15077 15078 15079 15080 15081 15082 15083 15084 15085 15086 15087 15088 15089 15090 15091 15092 15093 15094 15095 15096 15097 15098 15099 15100 15101 15102 15103 15104 15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147 15148 15149 15150 15151 15152 15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 15174 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 15224 15225 15226 15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 15248 15249 15250 15251 15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 15273 15274 15275 15276 15277 15278 15279 15280 15281 15282 15283 15284 15285 15286 15287 15288 15289 15290 15291 15292 15293 15294 15295 15296 15297 15298 15299 15300 15301 15302 15303 15304 15305 15306 15307 15308 15309 15310 15311 15312 15313 15314 15315 15316 15317 15318 15319 15320 15321 15322 15323 15324 15325 15326 15327 15328 15329 15330 15331 15332 15333 15334 15335 15336 15337 15338 15339 15340 15341 15342 15343 15344 15345 15346 15347 15348 15349 15350 15351 15352 15353 15354 15355 15356 15357 15358 15359 15360 15361 15362 15363 15364 15365 15366 15367 15368 15369 15370 15371 15372 15373 15374 15375 15376 15377 15378 15379 15380 15381 15382 15383 15384 15385 15386 15387 15388 15389 15390 15391 15392 15393 15394 15395 15396 15397 15398 15399 15400 15401 15402 15403 15404 15405 15406 15407 15408 15409 15410 15411 15412 15413 15414 15415 15416 15417 15418 15419 15420 15421 15422 15423 15424 15425 15426 15427 15428 15429 15430 15431 15432 15433 15434 15435 15436 15437 15438 15439 15440 15441 15442 15443 15444 15445 15446 15447 15448 15449 15450 15451 15452 15453 15454 15455 15456 15457 15458 15459 15460 15461 15462 15463 15464 15465 15466 15467 15468 15469 15470 15471 15472 15473 15474 15475 15476 15477 15478 15479 15480 15481 15482 15483 15484 15485 15486 15487 15488 15489 15490 15491 15492 15493 15494 15495 15496 15497 15498 15499 15500 15501 15502 15503 15504 15505 15506 15507 15508 15509 15510 15511 15512 15513 15514 15515 15516 15517 15518 15519 15520 15521 15522 15523 15524 15525 15526 15527 15528 15529 15530 15531 15532 15533 15534 15535 15536 15537 15538 15539 15540 15541 15542 15543 15544 15545 15546 15547 15548 15549 15550 15551 15552 15553 15554 15555 15556 15557 15558 15559 15560 15561 15562 15563 15564 15565 15566 15567 15568 15569 15570 15571 15572 15573 15574 15575 15576 15577 15578 15579 15580 15581 15582 15583 15584 15585 15586 15587 15588 15589 15590 15591 15592 15593 15594 15595 15596 15597 15598 15599 15600 15601 15602 15603 15604 15605 15606 15607 15608 15609 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621 15622 15623 15624 15625 15626 15627 15628 15629 15630 15631 15632 15633 15634 15635 15636 15637 15638 15639 15640 15641 15642 15643 15644 15645 15646 15647 15648 15649 15650 15651 15652 15653 15654 15655 15656 15657 15658 15659 15660 15661 15662 15663 15664 15665 15666 15667 15668 15669 15670 15671 15672 15673 15674 15675 15676 15677 15678 15679 15680 15681 15682 15683 15684 15685 15686 15687 15688 15689 15690 15691 15692 15693 15694 15695 15696 15697 15698 15699 15700 15701 15702 15703 15704 15705 15706 15707 15708 15709 15710 15711 15712 15713 15714 15715 15716 15717 15718 15719 15720 15721 15722 15723 15724 15725 15726 15727 15728 15729 15730 15731 15732 15733 15734 15735 15736 15737 15738 15739 15740 15741 15742 15743 15744 15745 15746 15747 15748 15749 15750 15751 15752 15753 15754 15755 15756 15757 15758 15759 15760 15761 15762 15763 15764 15765 15766 15767 15768 15769 15770 15771 15772 15773 15774 15775 15776 15777 15778 15779 15780 15781 15782 15783 15784 15785 15786 15787 15788 15789 15790 15791 15792 15793 15794 15795 15796 15797 15798 15799 15800 15801 15802 15803 15804 15805 15806 15807 15808 15809 15810 15811 15812 15813 15814 15815 15816 15817 15818 15819 15820 15821 15822 15823 15824 15825 15826 15827 15828 15829 15830 15831 15832 15833 15834 15835 15836 15837 15838 15839 15840 15841 15842 15843 15844 15845 15846 15847 15848 15849 15850 15851 15852 15853 15854 15855 15856 15857 15858 15859 15860 15861 15862 15863 15864 15865 15866 15867 15868 15869 15870 15871 15872 15873 15874 15875 15876 15877 15878 15879 15880 15881 15882 15883 15884 15885 15886 15887 15888 15889 15890 15891 15892 15893 15894 15895 15896 15897 15898 15899 15900 15901 15902 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 15966 15967 15968 15969 15970 15971 15972 15973 15974 15975 15976 15977 15978 15979 15980 15981 15982 15983 15984 15985 15986 15987 15988 15989 15990 15991 15992 15993 15994 15995 15996 15997 15998 15999 16000 16001 16002 16003 16004 16005 16006 16007 16008 16009 16010 16011 16012 16013 16014 16015 16016 16017 16018 16019 16020 16021 16022 16023 16024 16025 16026 16027 16028 16029 16030 16031 16032 16033 16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 16055 16056 16057 16058 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 16105 16106 16107 16108 16109 16110 16111 16112 16113 16114 16115 16116 16117 16118 16119 16120 16121 16122 16123 16124 16125 16126 16127 16128 16129 16130 16131 16132 16133 16134 16135 16136 16137 16138 16139 16140 16141 16142 16143 16144 16145 16146 16147 16148 16149 16150 16151 16152 16153 16154 16155 16156 16157 16158 16159 16160 16161 16162 16163 16164 16165 16166 16167 16168 16169 16170 16171 16172 16173 16174 16175 16176 16177 16178 16179 16180 16181 16182 16183 16184 16185 16186 16187 16188 16189 16190 16191 16192 16193 16194 16195 16196 16197 16198 16199 16200 16201 16202 16203 16204 16205 16206 16207 16208 16209 16210 16211 16212 16213 16214 16215 16216 16217 16218 16219 16220 16221 16222 16223 16224 16225 16226 16227 16228 16229 16230 16231 16232 16233 16234 16235 16236 16237 16238 16239 16240 16241 16242 16243 16244 16245 16246 16247 16248 16249 16250 16251 16252 16253 16254 16255 16256 16257 16258 16259 16260 16261 16262 16263 16264 16265 16266 16267 16268 16269 16270 16271 16272 16273 16274 16275 16276 16277 16278 16279 16280 16281 16282 16283 16284 16285 16286 16287 16288 16289 16290 16291 16292 16293 16294 16295 16296 16297 16298 16299 16300 16301 16302 16303 16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 16325 16326 16327 16328 16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 16350 16351 16352 16353 16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 16375 16376 16377 16378 16379 16380 16381 16382 16383 16384 16385 16386 16387 16388 16389 16390 16391 16392 16393 16394 16395 16396 16397 16398 16399 16400 16401 16402 16403 16404 16405 16406 16407 16408 16409 16410 16411 16412 16413 16414 16415 16416 16417 16418 16419 16420 16421 16422 16423 16424 16425 16426 16427 16428 16429 16430 16431 16432 16433 16434 16435 16436 16437 16438 16439 16440 16441 16442 16443 16444 16445 16446 16447 16448 16449 16450 16451 16452 16453 16454 16455 16456 16457 16458 16459 16460 16461 16462 16463 16464 16465 16466 16467 16468 16469 16470 16471 16472 16473 16474 16475 16476 16477 16478 16479 16480 16481 16482 16483 16484 16485 16486 16487 16488 16489 16490 16491 16492 16493 16494 16495 16496 16497 16498 16499 16500 16501 16502 16503 16504 16505 16506 16507 16508 16509 16510 16511 16512 16513 16514 16515 16516 16517 16518 16519 16520 16521 16522 16523 16524 16525 16526 16527 16528 16529 16530 16531 16532 16533 16534 16535 16536 16537 16538 16539 16540 16541 16542 16543 16544 16545 16546 16547 16548 16549 16550 16551 16552 16553 16554 16555 16556 16557 16558 16559 16560 16561 16562 16563 16564 16565 16566 16567 16568 16569 16570 16571 16572 16573 16574 16575 16576 16577 16578 16579 16580 16581 16582 16583 16584 16585 16586 16587 16588 16589 16590 16591 16592 16593 16594 16595 16596 16597 16598 16599 16600 16601 16602 16603 16604 16605 16606 16607 16608 16609 16610 16611 16612 16613 16614 16615 16616 16617 16618 16619 16620 16621 16622 16623 16624 16625 16626 16627 16628 16629 16630 16631 16632 16633 16634 16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 16649 16650 16651 16652 16653 16654 16655 16656 16657 16658 16659 16660 16661 16662 16663 16664 16665 16666 16667 16668 16669 16670 16671 16672 16673 16674 16675 16676 16677 16678 16679 16680 16681 16682 16683 16684 16685 16686 16687 16688 16689 16690 16691 16692 16693 16694 16695 16696 16697 16698 16699 16700 16701 16702 16703 16704 16705 16706 16707 16708 16709 16710 16711 16712 16713 16714 16715 16716 16717 16718 16719 16720 16721 16722 16723 16724 16725 16726 16727 16728 16729 16730 16731 16732 16733 16734 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 16776 16777 16778 16779 16780 16781 16782 16783 16784 16785 16786 16787 16788 16789 16790 16791 16792 16793 16794 16795 16796 16797 16798 16799 16800 16801 16802 16803 16804 16805 16806 16807 16808 16809 16810 16811 16812 16813 16814 16815 16816 16817 16818 16819 16820 16821 16822 16823 16824 16825 16826 16827 16828 16829 16830 16831 16832 16833 16834 16835 16836 16837 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 16854 16855 16856 16857 16858 16859 16860 16861 16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 16874 16875 16876 16877 16878 16879 16880 16881 16882 16883 16884 16885 16886 16887 16888 16889 16890 16891 16892 16893 16894 16895 16896 16897 16898 16899 16900 16901 16902 16903 16904 16905 16906 16907 16908 16909 16910 16911 16912 16913 16914 16915 16916 16917 16918 16919 16920 16921 16922 16923 16924 16925 16926 16927 16928 16929 16930 16931 16932 16933 16934 16935 16936 16937 16938 16939 16940 16941 16942 16943 16944 16945 16946 16947 16948 16949 16950 16951 16952 16953 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 16986 16987 16988 16989 16990 16991 16992 16993 16994 16995 16996 16997 16998 16999 17000 17001 17002 17003 17004 17005 17006 17007 17008 17009 17010 17011 17012 17013 17014 17015 17016 17017 17018 17019 17020 17021 17022 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032 17033 17034 17035 17036 17037 17038 17039 17040 17041 17042 17043 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 17197 17198 17199 17200 17201 17202 17203 17204 17205 17206 17207 17208 17209 17210 17211 17212 17213 17214 17215 17216 17217 17218 17219 17220 17221 17222 17223 17224 17225 17226 17227 17228 17229 17230 17231 17232 17233 17234 17235 17236 17237 17238 17239 17240 17241 17242 17243 17244 17245 17246 17247 17248 17249 17250 17251 17252 17253 17254 17255 17256 17257 17258 17259 17260 17261 17262 17263 17264 17265 17266 17267 17268 17269 17270 17271 17272 17273 17274 17275 17276 17277 17278 17279 17280 17281 17282 17283 17284 17285 17286 17287 17288 17289 17290 17291 17292 17293 17294 17295 17296 17297 17298 17299 17300 17301 17302 17303 17304 17305 17306 17307 17308 17309 17310 17311 17312 17313 17314 17315 17316 17317 17318 17319 17320 17321 17322 17323 17324 17325 17326 17327 17328 17329 17330 17331 17332 17333 17334 17335 17336 17337 17338 17339 17340 17341 17342 17343 17344 17345 17346 17347 17348 17349 17350 17351 17352 17353 17354 17355 17356 17357 17358 17359 17360 17361 17362 17363 17364 17365 17366 17367 17368 17369 17370 17371 17372 17373 17374 17375 17376 17377 17378 17379 17380 17381 17382 17383 17384 17385 17386 17387 17388 17389 17390 17391 17392 17393 17394 17395 17396 17397 17398 17399 17400 17401 17402 17403 17404 17405 17406 17407 17408 17409 17410 17411 17412 17413 17414 17415 17416 17417 17418 17419 17420 17421 17422 17423 17424 17425 17426 17427 17428 17429 17430 17431 17432 17433 17434 17435 17436 17437 17438 17439 17440 17441 17442 17443 17444 17445 17446 17447 17448 17449 17450 17451 17452 17453 17454 17455 17456 17457 17458 17459 17460 17461 17462 17463 17464 17465 17466 17467 17468 17469 17470 17471 17472 17473 17474 17475 17476 17477 17478 17479 17480 17481 17482 17483 17484 17485 17486 17487 17488 17489 17490 17491 17492 17493 17494 17495 17496 17497 17498 17499 17500 17501 17502 17503 17504 17505 17506 17507 17508 17509 17510 17511 17512 17513 17514 17515 17516 17517 17518 17519 17520 17521 17522 17523 17524 17525 17526 17527 17528 17529 17530 17531 17532 17533 17534 17535 17536 17537 17538 17539 17540 17541 17542 17543 17544 17545 17546 17547 17548 17549 17550 17551 17552 17553 17554 17555 17556 17557 17558 17559 17560 17561 17562 17563 17564 17565 17566 17567 17568 17569 17570 17571 17572 17573 17574 17575 17576 17577 17578 17579 17580 17581 17582 17583 17584 17585 17586 17587 17588 17589 17590 17591 17592 17593 17594 17595 17596 17597 17598 17599 17600 17601 17602 17603 17604 17605 17606 17607 17608 17609 17610 17611 17612 17613 17614 17615 17616 17617 17618 17619 17620 17621 17622 17623 17624 17625 17626 17627 17628 17629 17630 17631 17632 17633 17634 17635 17636 17637 17638 17639 17640 17641 17642 17643 17644 17645 17646 17647 17648 17649 17650 17651 17652 17653 17654 17655 17656 17657 17658 17659 17660 17661 17662 17663 17664 17665 17666 17667 17668 17669 17670 17671 17672 17673 17674 17675 17676 17677 17678 17679 17680 17681 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 17745 17746 17747 17748 17749 17750 17751 17752 17753 17754 17755 17756 17757 17758 17759 17760 17761 17762 17763 17764 17765 17766 17767 17768 17769 17770 17771 17772 17773 17774 17775 17776 17777 17778 17779 17780 17781 17782 17783 17784 17785 17786 17787 17788 17789 17790 17791 17792 17793 17794 17795 17796 17797 17798 17799 17800 17801 17802 17803 17804 17805 17806 17807 17808 17809 17810 17811 17812 17813 17814 17815 17816 17817 17818 17819 17820 17821 17822 17823 17824 17825 17826 17827 17828 17829 17830 17831 17832 17833 17834 17835 17836 17837 17838 17839 17840 17841 17842 17843 17844 17845 17846 17847 17848 17849 17850 17851 17852 17853 17854 17855 17856 17857 17858 17859 17860 17861 17862 17863 17864 17865 17866 17867 17868 17869 17870 17871 17872 17873 17874 17875 17876 17877 17878 17879 17880 17881 17882 17883 17884 17885 17886 17887 17888 17889 17890 17891 17892 17893 17894 17895 17896 17897 17898 17899 17900 17901 17902 17903 17904 17905 17906 17907 17908 17909 17910 17911 17912 17913 17914 17915 17916 17917 17918 17919 17920 17921 17922 17923 17924 17925 17926 17927 17928 17929 17930 17931 17932 17933 17934 17935 17936 17937 17938 17939 17940 17941 17942 17943 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 18037 18038 18039 18040 18041 18042 18043 18044 18045 18046 18047 18048 18049 18050 18051 18052 18053 18054 18055 18056 18057 18058 18059 18060 18061 18062 18063 18064 18065 18066 18067 18068 18069 18070 18071 18072 18073 18074 18075 18076 18077 18078 18079 18080 18081 18082 18083 18084 18085 18086 18087 18088 18089 18090 18091 18092 18093 18094 18095 18096 18097 18098 18099 18100 18101 18102 18103 18104 18105 18106 18107 18108 18109 18110 18111 18112 18113 18114 18115 18116 18117 18118 18119 18120 18121 18122 18123 18124 18125 18126 18127 18128 18129 18130 18131 18132 18133 18134 18135 18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 18190 18191 18192 18193 18194 18195 18196 18197 18198 18199 18200 18201 18202 18203 18204 18205 18206 18207 18208 18209 18210 18211 18212 18213 18214 18215 18216 18217 18218 18219 18220 18221 18222 18223 18224 18225 18226 18227 18228 18229 18230 18231 18232 18233 18234 18235 18236 18237 18238 18239 18240 18241 18242 18243 18244 18245 18246 18247 18248 18249 18250 18251 18252 18253 18254 18255 18256 18257 18258 18259 18260 18261 18262 18263 18264 18265 18266 18267 18268 18269 18270 18271 18272 18273 18274 18275 18276 18277 18278 18279 18280 18281 18282 18283 18284 18285 18286 18287 18288 18289 18290 18291 18292 18293 18294 18295 18296 18297 18298 18299 18300 18301 18302 18303 18304 18305 18306 18307 18308 18309 18310 18311 18312 18313 18314 18315 18316 18317 18318 18319 18320 18321 18322 18323 18324 18325 18326 18327 18328 18329 18330 18331 18332 18333 18334 18335 18336 18337 18338 18339 18340 18341 18342 18343 18344 18345 18346 18347 18348 18349 18350 18351 18352 18353 18354 18355 18356 18357 18358 18359 18360 18361 18362 18363 18364 18365 18366 18367 18368 18369 18370 18371 18372 18373 18374 18375 18376 18377 18378 18379 18380 18381 18382 18383 18384 18385 18386 18387 18388 18389 18390 18391 18392 18393 18394 18395 18396 18397 18398 18399 18400 18401 18402 18403 18404 18405 18406 18407 18408 18409 18410 18411 18412 18413 18414 18415 18416 18417 18418 18419 18420 18421 18422 18423 18424 18425 18426 18427 18428 18429 18430 18431 18432 18433 18434 18435 18436 18437 18438 18439 18440 18441 18442 18443 18444 18445 18446 18447 18448 18449 18450 18451 18452 18453 18454 18455 18456 18457 18458 18459 18460 18461 18462 18463 18464 18465 18466 18467 18468 18469 18470 18471 18472 18473 18474 18475 18476 18477 18478 18479 18480 18481 18482 18483 18484 18485 18486 18487 18488 18489 18490 18491 18492 18493 18494 18495 18496 18497 18498 18499 18500 18501 18502 18503 18504 18505 18506 18507 18508 18509 18510 18511 18512 18513 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575 18576 18577 18578 18579 18580 18581 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599 18600 18601 18602 18603 18604 18605 18606 18607 18608 18609 18610 18611 18612 18613 18614 18615 18616 18617 18618 18619 18620 18621 18622 18623 18624 18625 18626 18627 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 18641 18642 18643 18644 18645 18646 18647 18648 18649 18650 18651 18652 18653 18654 18655 18656 18657 18658 18659 18660 18661 18662 18663 18664 18665 18666 18667 18668 18669 18670 18671 18672 18673 18674 18675 18676 18677 18678 18679 18680 18681 18682 18683 18684 18685 18686 18687 18688 18689 18690 18691 18692 18693 18694 18695 18696 18697 18698 18699 18700 18701 18702 18703 18704 18705 18706 18707 18708 18709 18710 18711 18712 18713 18714 18715 18716 18717 18718 18719 18720 18721 18722 18723 18724 18725 18726 18727 18728 18729 18730 18731 18732 18733 18734 18735 18736 18737 18738 18739 18740 18741 18742 18743 18744 18745 18746 18747 18748 18749 18750 18751 18752 18753 18754 18755 18756 18757 18758 18759 18760 18761 18762 18763 18764 18765 18766 18767 18768 18769 18770 18771 18772 18773 18774 18775 18776 18777 18778 18779 18780 18781 18782 18783 18784 18785 18786 18787 18788 18789 18790 18791 18792 18793 18794 18795 18796 18797 18798 18799 18800 18801 18802 18803 18804 18805 18806 18807 18808 18809 18810 18811 18812 18813 18814 18815 18816 18817 18818 18819 18820 18821 18822 18823 18824 18825 18826 18827 18828 18829 18830 18831 18832 18833 18834 18835 18836 18837 18838 18839 18840 18841 18842 18843 18844 18845 18846 18847 18848 18849 18850 18851 18852 18853 18854 18855 18856 18857 18858 18859 18860 18861 18862 18863 18864 18865 18866 18867 18868 18869 18870 18871 18872 18873 18874 18875 18876 18877 18878 18879 18880 18881 18882 18883 18884 18885 18886 18887 18888 18889 18890 18891 18892 18893 18894 18895 18896 18897 18898 18899 18900 18901 18902 18903 18904 18905 18906 18907 18908 18909 18910 18911 18912 18913 18914 18915 18916 18917 18918 18919 18920 18921 18922 18923 18924 18925 18926 18927 18928 18929 18930 18931 18932 18933 18934 18935 18936 18937 18938 18939 18940 18941 18942 18943 18944 18945 18946 18947 18948 18949 18950 18951 18952 18953 18954 18955 18956 18957 18958 18959 18960 18961 18962 18963 18964 18965 18966 18967 18968 18969 18970 18971 18972 18973 18974 18975 18976 18977 18978 18979 18980 18981 18982 18983 18984 18985 18986 18987 18988 18989 18990 18991 18992 18993 18994 18995 18996 18997 18998 18999 19000 19001 19002 19003 19004 19005 19006 19007 19008 19009 19010 19011 19012 19013 19014 19015 19016 19017 19018 19019 19020 19021 19022 19023 19024 19025 19026 19027 19028 19029 19030 19031 19032 19033 19034 19035 19036 19037 19038 19039 19040 19041 19042 19043 19044 19045 19046 19047 19048 19049 19050 19051 19052 19053 19054 19055 19056 19057 19058 19059 19060 19061 19062 19063 19064 19065 19066 19067 19068 19069 19070 19071 19072 19073 19074 19075 19076 19077 19078 19079 19080 19081 19082 19083 19084 19085 19086 19087 19088 19089 19090 19091 19092 19093 19094 19095 19096 19097 19098 19099 19100 19101 19102 19103 19104 19105 19106 19107 19108 19109 19110 19111 19112 19113 19114 19115 19116 19117 19118 19119 19120 19121 19122 19123 19124 19125 19126 19127 19128 19129 19130 19131 19132 19133 19134 19135 19136 19137 19138 19139 19140 19141 19142 19143 19144 19145 19146 19147 19148 19149 19150 19151 19152 19153 19154 19155 19156 19157 19158 19159 19160 19161 19162 19163 19164 19165 19166 19167 19168 19169 19170 19171 19172 19173 19174 19175 19176 19177 19178 19179 19180 19181 19182 19183 19184 19185 19186 19187 19188 19189 19190 19191 19192 19193 19194 19195 19196 19197 19198 19199 19200 19201 19202 19203 19204 19205 19206 19207 19208 19209 19210 19211 19212 19213 19214 19215 19216 19217 19218 19219 19220 19221 19222 19223 19224 19225 19226 19227 19228 19229 19230 19231 19232 19233 19234 19235 19236 19237 19238 19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 19251 19252 19253 19254 19255 19256 19257 19258 19259 19260 19261 19262 19263 19264 19265 19266 19267 19268 19269 19270 19271 19272 19273 19274 19275 19276 19277 19278 19279 19280 19281 19282 19283 19284 19285 19286 19287 19288 19289 19290 19291 19292 19293 19294 19295 19296 19297 19298 19299 19300 19301 19302 19303 19304 19305 19306 19307 19308 19309 19310 19311 19312 19313 19314 19315 19316 19317 19318 19319 19320 19321 19322 19323 19324 19325 19326 19327 19328 19329 19330 19331 19332 19333 19334 19335 19336 19337 19338 19339 19340 19341 19342 19343 19344 19345 19346 19347 19348 19349 19350 19351 19352 19353 19354 19355 19356 19357 19358 19359 19360 19361 19362 19363 19364 19365 19366 19367 19368 19369 19370 19371 19372 19373 19374 19375 19376 19377 19378 19379 19380 19381 19382 19383 19384 19385 19386 19387 19388 19389 19390 19391 19392 19393 19394 19395 19396 19397 19398 19399 19400 19401 19402 19403 19404 19405 19406 19407 19408 19409 19410 19411 19412 19413 19414 19415 19416 19417 19418 19419 19420 19421 19422 19423 19424 19425 19426 19427 19428 19429 19430 19431 19432 19433 19434 19435 19436 19437 19438 19439 19440 19441 19442 19443 19444 19445 19446 19447 19448 19449 19450 19451 19452 19453 19454 19455 19456 19457 19458 19459 19460 19461 19462 19463 19464 19465 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 19483 19484 19485 19486 19487 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 19504 19505 19506 19507 19508 19509 19510 19511 19512 19513 19514 19515 19516 19517 19518 19519 19520 19521 19522 19523 19524 19525 19526 19527 19528 19529 19530 19531 19532 19533 19534 19535 19536 19537 19538 19539 19540 19541 19542 19543 19544 19545 19546 19547 19548 19549 19550 19551 19552 19553 19554 19555 19556 19557 19558 19559 19560 19561 19562 19563 19564 19565 19566 19567 19568 19569 19570 19571 19572 19573 19574 19575 19576 19577 19578 19579 19580 19581 19582 19583 19584 19585 19586 19587 19588 19589 19590 19591 19592 19593 19594 19595 19596 19597 19598 19599 19600 19601 19602 19603 19604 19605 19606 19607 19608 19609 19610 19611 19612 19613 19614 19615 19616 19617 19618 19619 19620 19621 19622 19623 19624 19625 19626 19627 19628 19629 19630 19631 19632 19633 19634 19635 19636 19637 19638 19639 19640 19641 19642 19643 19644 19645 19646 19647 19648 19649 19650 19651 19652 19653 19654 19655 19656 19657 19658 19659 19660 19661 19662 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 19679 19680 19681 19682 19683 19684 19685 19686 19687 19688 19689 19690 19691 19692 19693 19694 19695 19696 19697 19698 19699 19700 19701 19702 19703 19704 19705 19706 19707 19708 19709 19710 19711 19712 19713 19714 19715 19716 19717 19718 19719 19720 19721 19722 19723 19724 19725 19726 19727 19728 19729 19730 19731 19732 19733 19734 19735 19736 19737 19738 19739 19740 19741 19742 19743 19744 19745 19746 19747 19748 19749 19750 19751 19752 19753 19754 19755 19756 19757 19758 19759 19760 19761 19762 19763 19764 19765 19766 19767 19768 19769 19770 19771 19772 19773 19774 19775 19776 19777 19778 19779 19780 19781 19782 19783 19784 19785 19786 19787 19788 19789 19790 19791 19792 19793 19794 19795 19796 19797 19798 19799 19800 19801 19802 19803 19804 19805 19806 19807 19808 19809 19810 19811 19812 19813 19814 19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857 19858 19859 19860 19861 19862 19863 19864 19865 19866 19867 19868 19869 19870 19871 19872 19873 19874 19875 19876 19877 19878 19879 19880 19881 19882 19883 19884 19885 19886 19887 19888 19889 19890 19891 19892 19893 19894 19895 19896 19897 19898 19899 19900 19901 19902 19903 19904 19905 19906 19907 19908 19909 19910 19911 19912 19913 19914 19915 19916 19917 19918 19919 19920 19921 19922 19923 19924 19925 19926 19927 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 19945 19946 19947 19948 19949 19950 19951 19952 19953 19954 19955 19956 19957 19958 19959 19960 19961 19962 19963 19964 19965 19966 19967 19968 19969 19970 19971 19972 19973 19974 19975 19976 19977 19978 19979 19980 19981 19982 19983 19984 19985 19986 19987 19988 19989 19990 19991 19992 19993 19994 19995 19996 19997 19998 19999 20000 20001 20002 20003 20004 20005 20006 20007 20008 20009 20010 20011 20012 20013 20014 20015 20016 20017 20018 20019 20020 20021 20022 20023 20024 20025 20026 20027 20028 20029 20030 20031 20032 20033 20034 20035 20036 20037 20038 20039 20040 20041 20042 20043 20044 20045 20046 20047 20048 20049 20050 20051 20052 20053 20054 20055 20056 20057 20058 20059 20060 20061 20062 20063 20064 20065 20066 20067 20068 20069 20070 20071 20072 20073 20074 20075 20076 20077 20078 20079 20080 20081 20082 20083 20084 20085 20086 20087 20088 20089 20090 20091 20092 20093 20094 20095 20096 20097 20098 20099 20100 20101 20102 20103 20104 20105 20106 20107 20108 20109 20110 20111 20112 20113 20114 20115 20116 20117 20118 20119 20120 20121 20122 20123 20124 20125 20126 20127 20128 20129 20130 20131 20132 20133 20134 20135 20136 20137 20138 20139 20140 20141 20142 20143 20144 20145 20146 20147 20148 20149 20150 20151 20152 20153 20154 20155 20156 20157 20158 20159 20160 20161 20162 20163 20164 20165 20166 20167 20168 20169 20170 20171 20172 20173 20174 20175 20176 20177 20178 20179 20180 20181 20182 20183 20184 20185 20186 20187 20188 20189 20190 20191 20192 20193 20194 20195 20196 20197 20198 20199 20200 20201 20202 20203 20204 20205 20206 20207 20208 20209 20210 20211 20212 20213 20214 20215 20216 20217 20218 20219 20220 20221 20222 20223 20224 20225 20226 20227 20228 20229 20230 20231 20232 20233 20234 20235 20236 20237 20238 20239 20240 20241 20242 20243 20244 20245 20246 20247 20248 20249 20250 20251 20252 20253 20254 20255 20256 20257 20258 20259 20260 20261 20262 20263 20264 20265 20266 20267 20268 20269 20270 20271 20272 20273 20274 20275 20276 20277 20278 20279 20280 20281 20282 20283 20284 20285 20286 20287 20288 20289 20290 20291 20292 20293 20294 20295 20296 20297 20298 20299 20300 20301 20302 20303 20304 20305 20306 20307 20308 20309 20310 20311 20312 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 20345 20346 20347 20348 20349 20350 20351 20352 20353 20354 20355 20356 20357 20358 20359 20360 20361 20362 20363 20364 20365 20366 20367 20368 20369 20370 20371 20372 20373 20374 20375 20376 20377 20378 20379 20380 20381 20382 20383 20384 20385 20386 20387 20388 20389 20390 20391 20392 20393 20394 20395 20396 20397 20398 20399 20400 20401 20402 20403 20404 20405 20406 20407 20408 20409 20410 20411 20412 20413 20414 20415 20416 20417 20418 20419 20420 20421 20422 20423 20424 20425 20426 20427 20428 20429 20430 20431 20432 20433 20434 20435 20436 20437 20438 20439 20440 20441 20442 20443 20444 20445 20446 20447 20448 20449 20450 20451 20452 20453 20454 20455 20456 20457 20458 20459 20460 20461 20462 20463 20464 20465 20466 20467 20468 20469 20470 20471 20472 20473 20474 20475 20476 20477 20478 20479 20480 20481 20482 20483 20484 20485 20486 20487 20488 20489 20490 20491 20492 20493 20494 20495 20496 20497 20498 20499 20500 20501 20502 20503 20504 20505 20506 20507 20508 20509 20510 20511 20512 20513 20514 20515 20516 20517 20518 20519 20520 20521 20522 20523 20524 20525 20526 20527 20528 20529 20530 20531 20532 20533 20534 20535 20536 20537 20538 20539 20540 20541 20542 20543 20544 20545 20546 20547 20548 20549 20550 20551 20552 20553 20554 20555 20556 20557 20558 20559 20560 20561 20562 20563 20564 20565 20566 20567 20568 20569 20570 20571 20572 20573 20574 20575 20576 20577 20578 20579 20580 20581 20582 20583 20584 20585 20586 20587 20588 20589 20590 20591 20592 20593 20594 20595 20596 20597 20598 20599 20600 20601 20602 20603 20604 20605 20606 20607 20608 20609 20610 20611 20612 20613 20614 20615 20616 20617 20618 20619 20620 20621 20622 20623 20624 20625 20626 20627 20628 20629 20630 20631 20632 20633 20634 20635 20636 20637 20638 20639 20640 20641 20642 20643 20644 20645 20646 20647 20648 20649 20650 20651 20652 20653 20654 20655 20656 20657 20658 20659 20660 20661 20662 20663 20664 20665 20666 20667 20668 20669 20670 20671 20672 20673 20674 20675 20676 20677 20678 20679 20680 20681 20682 20683 20684 20685 20686 20687 20688 20689 20690 20691 20692 20693 20694 20695 20696 20697 20698 20699 20700 20701 20702 20703 20704 20705 20706 20707 20708 20709 20710 20711 20712 20713 20714 20715 20716 20717 20718 20719 20720 20721 20722 20723 20724 20725 20726 20727 20728 20729 20730 20731 20732 20733 20734 20735 20736 20737 20738 20739 20740 20741 20742 20743 20744 20745 20746 20747 20748 20749 20750 20751 20752 20753 20754 20755 20756 20757 20758 20759 20760 20761 20762 20763 20764 20765 20766 20767 20768 20769 20770 20771 20772 20773 20774 20775 20776 20777 20778 20779 20780 20781 20782 20783 20784 20785 20786 20787 20788 20789 20790 20791 20792 20793 20794 20795 20796 20797 20798 20799 20800 20801 20802 20803 20804 20805 20806 20807 20808 20809 20810 20811 20812 20813 20814 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824 20825 20826 20827 20828 20829 20830 20831 20832 20833 20834 20835 20836 20837 20838 20839 20840 20841 20842 20843 20844 20845 20846 20847 20848 20849 20850 20851 20852 20853 20854 20855 20856 20857 20858 20859 20860 20861 20862 20863 20864 20865 20866 20867 20868 20869 20870 20871 20872 20873 20874 20875 20876 20877 20878 20879 20880 20881 20882 20883 20884 20885 20886 20887 20888 20889 20890 20891 20892 20893 20894 20895 20896 20897 20898 20899 20900 20901 20902 20903 20904 20905 20906 20907 20908 20909 20910 20911 20912 20913 20914 20915 20916 20917 20918 20919 20920 20921 20922 20923 20924 20925 20926 20927 20928 20929 20930 20931 20932 20933 20934 20935 20936 20937 20938 20939 20940 20941 20942 20943 20944 20945 20946 20947 20948 20949 20950 20951 20952 20953 20954 20955 20956 20957 20958 20959 20960 20961 20962 20963 20964 20965 20966 20967 20968 20969 20970 20971 20972 20973 20974 20975 20976 20977 20978 20979 20980 20981 20982 20983 20984 20985 20986 20987 20988 20989 20990 20991 20992 20993 20994 20995 20996 20997 20998 20999 21000 21001 21002 21003 21004 21005 21006 21007 21008 21009 21010 21011 21012 21013 21014 21015 21016 21017 21018 21019 21020 21021 21022 21023 21024 21025 21026 21027 21028 21029 21030 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 21094 21095 21096 21097 21098 21099 21100 21101 21102 21103 21104 21105 21106 21107 21108 21109 21110 21111 21112 21113 21114 21115 21116 21117 21118 21119 21120 21121 21122 21123 21124 21125 21126 21127 21128 21129 21130 21131 21132 21133 21134 21135 21136 21137 21138 21139 21140 21141 21142 21143 21144 21145 21146 21147 21148 21149 21150 21151 21152 21153 21154 21155 21156 21157 21158 21159 21160 21161 21162 21163 21164 21165 21166 21167 21168 21169 21170 21171 21172 21173 21174 21175 21176 21177 21178 21179 21180 21181 21182 21183 21184 21185 21186 21187 21188 21189 21190 21191 21192 21193 21194 21195 21196 21197 21198 21199 21200 21201 21202 21203 21204 21205 21206 21207 21208 21209 21210 21211 21212 21213 21214 21215 21216 21217 21218 21219 21220 21221 21222 21223 21224 21225 21226 21227 21228 21229 21230 21231 21232 21233 21234 21235 21236 21237 21238 21239 21240 21241 21242 21243 21244 21245 21246 21247 21248 21249 21250 21251 21252 21253 21254 21255 21256 21257 21258 21259 21260 21261 21262 21263 21264 21265 21266 21267 21268 21269 21270 21271 21272 21273 21274 21275 21276 21277 21278 21279 21280 21281 21282 21283 21284 21285 21286 21287 21288 21289 21290 21291 21292 21293 21294 21295 21296 21297 21298 21299 21300 21301 21302 21303 21304 21305 21306 21307 21308 21309 21310 21311 21312 21313 21314 21315 21316 21317 21318 21319 21320 21321 21322 21323 21324 21325 21326 21327 21328 21329 21330 21331 21332 21333 21334 21335 21336 21337 21338 21339 21340 21341 21342 21343 21344 21345 21346 21347 21348 21349 21350 21351 21352 21353 21354 21355 21356 21357 21358 21359 21360 21361 21362 21363 21364 21365 21366 21367 21368 21369 21370 21371 21372 21373 21374 21375 21376 21377 21378 21379 21380 21381 21382 21383 21384 21385 21386 21387 21388 21389 21390 21391 21392 21393 21394 21395 21396 21397 21398 21399 21400 21401 21402 21403 21404 21405 21406 21407 21408 21409 21410 21411 21412 21413 21414 21415 21416 21417 21418 21419 21420 21421 21422 21423 21424 21425 21426 21427 21428 21429 21430 21431 21432 21433 21434 21435 21436 21437 21438 21439 21440 21441 21442 21443 21444 21445 21446 21447 21448 21449 21450 21451 21452 21453 21454 21455 21456 21457 21458 21459 21460 21461 21462 21463 21464 21465 21466 21467 21468 21469 21470 21471 21472 21473 21474 21475 21476 21477 21478 21479 21480 21481 21482 21483 21484 21485 21486 21487 21488 21489 21490 21491 21492 21493 21494 21495 21496 21497 21498 21499 21500 21501 21502 21503 21504 21505 21506 21507 21508 21509 21510 21511 21512 21513 21514 21515 21516 21517 21518 21519 21520 21521 21522 21523 21524 21525 21526 21527 21528 21529 21530 21531 21532 21533 21534 21535 21536 21537 21538 21539 21540 21541 21542 21543 21544 21545 21546 21547 21548 21549 21550 21551 21552 21553 21554 21555 21556 21557 21558 21559 21560 21561 21562 21563 21564 21565 21566 21567 21568 21569 21570 21571 21572 21573 21574 21575 21576 21577 21578 21579 21580 21581 21582 21583 21584 21585 21586 21587 21588 21589 21590 21591 21592 21593 21594 21595 21596 21597 21598 21599 21600 21601 21602 21603 21604 21605 21606 21607 21608 21609 21610 21611 21612 21613 21614 21615 21616 21617 21618 21619 21620 21621 21622 21623 21624 21625 21626 21627 21628 21629 21630 21631 21632 21633 21634 21635 21636 21637 21638 21639 21640 21641 21642 21643 21644 21645 21646 21647 21648 21649 21650 21651 21652 21653 21654 21655 21656 21657 21658 21659 21660 21661 21662 21663 21664 21665 21666 21667 21668 21669 21670 21671 21672 21673 21674 21675 21676 21677 21678 21679 21680 21681 21682 21683 21684 21685 21686 21687 21688 21689 21690 21691 21692 21693 21694 21695 21696 21697 21698 21699 21700 21701 21702 21703 21704 21705 21706 21707 21708 21709 21710 21711 21712 21713 21714 21715 21716 21717 21718 21719 21720 21721 21722 21723 21724 21725 21726 21727 21728 21729 21730 21731 21732 21733 21734 21735 21736 21737 21738 21739 21740 21741 21742 21743 21744 21745 21746 21747 21748 21749 21750 21751 21752 21753 21754 21755 21756 21757 21758 21759 21760 21761 21762 21763 21764 21765 21766 21767 21768 21769 21770 21771 21772 21773 21774 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 21814 21815 21816 21817 21818 21819 21820 21821 21822 21823 21824 21825 21826 21827 21828 21829 21830 21831 21832 21833 21834 21835 21836 21837 21838 21839 21840 21841 21842 21843 21844 21845 21846 21847 21848 21849 21850 21851 21852 21853 21854 21855 21856 21857 21858 21859 21860 21861 21862 21863 21864 21865 21866 21867 21868 21869 21870 21871 21872 21873 21874 21875 21876 21877 21878 21879 21880 21881 21882 21883 21884 21885 21886 21887 21888 21889 21890 21891 21892 21893 21894 21895 21896 21897 21898 21899 21900 21901 21902 21903 21904 21905 21906 21907 21908 21909 21910 21911 21912 21913 21914 21915 21916 21917 21918 21919 21920 21921 21922 21923 21924 21925 21926 21927 21928 21929 21930 21931 21932 21933 21934 21935 21936 21937 21938 21939 21940 21941 21942 21943 21944 21945 21946 21947 21948 21949 21950 21951 21952 21953 21954 21955 21956 21957 21958 21959 21960 21961 21962 21963 21964 21965 21966 21967 21968 21969 21970 21971 21972 21973 21974 21975 21976 21977 21978 21979 21980 21981 21982 21983 21984 21985 21986 21987 21988 21989 21990 21991 21992 21993 21994 21995 21996 21997 21998 21999 22000 22001 22002 22003 22004 22005 22006 22007 22008 22009 22010 22011 22012 22013 22014 22015 22016 22017 22018 22019 22020 22021 22022 22023 22024 22025 22026 22027 22028 22029 22030 22031 22032 22033 22034 22035 22036 22037 22038 22039 22040 22041 22042 22043 22044 22045 22046 22047 22048 22049 22050 22051 22052 22053 22054 22055 22056 22057 22058 22059 22060 22061 22062 22063 22064 22065 22066 22067 22068 22069 22070 22071 22072 22073 22074 22075 22076 22077 22078 22079 22080 22081 22082 22083 22084 22085 22086 22087 22088 22089 22090 22091 22092 22093 22094 22095 22096 22097 22098 22099 22100 22101 22102 22103 22104 22105 22106 22107 22108 22109 22110 22111 22112 22113 22114 22115 22116 22117 22118 22119 22120 22121 22122 22123 22124 22125 22126 22127 22128 22129 22130 22131 22132 22133 22134 22135 22136 22137 22138 22139 22140 22141 22142 22143 22144 22145 22146 22147 22148 22149 22150 22151 22152 22153 22154 22155 22156 22157 22158 22159 22160 22161 22162 22163 22164 22165 22166 22167 22168 22169 22170 22171 22172 22173 22174 22175 22176 22177 22178 22179 22180 22181 22182 22183 22184 22185 22186 22187 22188 22189 22190 22191 22192 22193 22194 22195 22196 22197 22198 22199 22200 22201 22202 22203 22204 22205 22206 22207 22208 22209 22210 22211 22212 22213 22214 22215 22216 22217 22218 22219 22220 22221 22222 22223 22224 22225 22226 22227 22228 22229 22230 22231 22232 22233 22234 22235 22236 22237 22238 22239 22240 22241 22242 22243 22244 22245 22246 22247 22248 22249 22250 22251 22252 22253 22254 22255 22256 22257 22258 22259 22260 22261 22262 22263 22264 22265 22266 22267 22268 22269 22270 22271 22272 22273 22274 22275 22276 22277 22278 22279 22280 22281 22282 22283 22284 22285 22286 22287 22288 22289 22290 22291 22292 22293 22294 22295 22296 22297 22298 22299 22300 22301 22302 22303 22304 22305 22306 22307 22308 22309 22310 22311 22312 22313 22314 22315 22316 22317 22318 22319 22320 22321 22322 22323 22324 22325 22326 22327 22328 22329 22330 22331 22332 22333 22334 22335 22336 22337 22338 22339 22340 22341 22342 22343 22344 22345 22346 22347 22348 22349 22350 22351 22352 22353 22354 22355 22356 22357 22358 22359 22360 22361 22362 22363 22364 22365 22366 22367 22368 22369 22370 22371 22372 22373 22374 22375 22376 22377 22378 22379 22380 22381 22382 22383 22384 22385 22386 22387 22388 22389 22390 22391 22392 22393 22394 22395 22396 22397 22398 22399 22400 22401 22402 22403 22404 22405 22406 22407 22408 22409 22410 22411 22412 22413 22414 22415 22416 22417 22418 22419 22420 22421 22422 22423 22424 22425 22426 22427 22428 22429 22430 22431 22432 22433 22434 22435 22436 22437 22438 22439 22440 22441 22442 22443 22444 22445 22446 22447 22448 22449 22450 22451 22452 22453 22454 22455 22456 22457 22458 22459 22460 22461 22462 22463 22464 22465 22466 22467 22468 22469 22470 22471 22472 22473 22474 22475 22476 22477 22478 22479 22480 22481 22482 22483 22484 22485 22486 22487 22488 22489 22490 22491 22492 22493 22494 22495 22496 22497 22498 22499 22500 22501 22502 22503 22504 22505 22506 22507 22508 22509 22510 22511 22512 22513 22514 22515 22516 22517 22518 22519 22520 22521 22522 22523 22524 22525 22526 22527 22528 22529 22530 22531 22532 22533 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549 22550 22551 22552 22553 22554 22555 22556 22557 22558 22559 22560 22561 22562 22563 22564 22565 22566 22567 22568 22569 22570 22571 22572 22573 22574 22575 22576 22577 22578 22579 22580 22581 22582 22583 22584 22585 22586 22587 22588 22589 22590 22591 22592 22593 22594 22595 22596 22597 22598 22599 22600 22601 22602 22603 22604 22605 22606 22607 22608 22609 22610 22611 22612 22613 22614 22615 22616 22617 22618 22619 22620 22621 22622 22623 22624 22625 22626 22627 22628 22629 22630 22631 22632 22633 22634 22635 22636 22637 22638 22639 22640 22641 22642 22643 22644 22645 22646 22647 22648 22649 22650 22651 22652 22653 22654 22655 22656 22657 22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 22751 22752 22753 22754 22755 22756 22757 22758 22759 22760 22761 22762 22763 22764 22765 22766 22767 22768 22769 22770 22771 22772 22773 22774 22775 22776 22777 22778 22779 22780 22781 22782 22783 22784 22785 22786 22787 22788 22789 22790 22791 22792 22793 22794 22795 22796 22797 22798 22799 22800 22801 22802 22803 22804 22805 22806 22807 22808 22809 22810 22811 22812 22813 22814 22815 22816 22817 22818 22819 22820 22821 22822 22823 22824 22825 22826 22827 22828 22829 22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 22912 22913 22914 22915 22916 22917 22918 22919 22920 22921 22922 22923 22924 22925 22926 22927 22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 23050 23051 23052 23053 23054 23055 23056 23057 23058 23059 23060 23061 23062 23063 23064 23065 23066 23067 23068 23069 23070 23071 23072 23073 23074 23075 23076 23077 23078 23079 23080 23081 23082 23083 23084 23085 23086 23087 23088 23089 23090 23091 23092 23093 23094 23095 23096 23097 23098 23099 23100 23101 23102 23103 23104 23105 23106 23107 23108 23109 23110 23111 23112 23113 23114 23115 23116 23117 23118 23119 23120 23121 23122 23123 23124 23125 23126 23127 23128 23129 23130 23131 23132 23133 23134 23135 23136 23137 23138 23139 23140 23141 23142 23143 23144 23145 23146 23147 23148 23149 23150 23151 23152 23153 23154 23155 23156 23157 23158 23159 23160 23161 23162 23163 23164 23165 23166 23167 23168 23169 23170 23171 23172 23173 23174 23175 23176 23177 23178 23179 23180 23181 23182 23183 23184 23185 23186 23187 23188 23189 23190 23191 23192 23193 23194 23195 23196 23197 23198 23199 23200 23201 23202 23203 23204 23205 23206 23207 23208 23209 23210 23211 23212 23213 23214 23215 23216 23217 23218 23219 23220 23221 23222 23223 23224 23225 23226 23227 23228 23229 23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 23306 23307 23308 23309 23310 23311 23312 23313 23314 23315 23316 23317 23318 23319 23320 23321 23322 23323 23324 23325 23326 23327 23328 23329 23330 23331 23332 23333 23334 23335 23336 23337 23338 23339 23340 23341 23342 23343 23344 23345 23346 23347 23348 23349 23350 23351 23352 23353 23354 23355 23356 23357 23358 23359 23360 23361 23362 23363 23364 23365 23366 23367 23368 23369 23370 23371 23372 23373 23374 23375 23376 23377 23378 23379 23380 23381 23382 23383 23384 23385 23386 23387 23388 23389 23390 23391 23392 23393 23394 23395 23396 23397 23398 23399 23400 23401 23402 23403 23404 23405 23406 23407 23408 23409 23410 23411 23412 23413 23414 23415 23416 23417 23418 23419 23420 23421 23422 23423 23424 23425 23426 23427 23428 23429 23430 23431 23432 23433 23434 23435 23436 23437 23438 23439 23440 23441 23442 23443 23444 23445 23446 23447 23448 23449 23450 23451 23452 23453 23454 23455 23456 23457 23458 23459 23460 23461 23462 23463 23464 23465 23466 23467 23468 23469 23470 23471 23472 23473 23474 23475 23476 23477 23478 23479 23480 23481 23482 23483 23484 23485 23486 23487 23488 23489 23490 23491 23492 23493 23494 23495 23496 23497 23498 23499 23500 23501 23502 23503 23504 23505 23506 23507 23508 23509 23510 23511 23512 23513 23514 23515 23516 23517 23518 23519 23520 23521 23522 23523 23524 23525 23526 23527 23528 23529 23530 23531 23532 23533 23534 23535 23536 23537 23538 23539 23540 23541 23542 23543 23544 23545 23546 23547 23548 23549 23550 23551 23552 23553 23554 23555 23556 23557 23558 23559 23560 23561 23562 23563 23564 23565 23566 23567 23568 23569 23570 23571 23572 23573 23574 23575 23576 23577 23578 23579 23580 23581 23582 23583 23584 23585 23586 23587 23588 23589 23590 23591 23592 23593 23594 23595 23596 23597 23598 23599 23600 23601 23602 23603 23604 23605 23606 23607 23608 23609 23610 23611 23612 23613 23614 23615 23616 23617 23618 23619 23620 23621 23622 23623 23624 23625 23626 23627 23628 23629 23630 23631 23632 23633 23634 23635 23636 23637 23638 23639 23640 23641 23642 23643 23644 23645 23646 23647 23648 23649 23650 23651 | <ns0:Benchmark xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:ns0="http://checklists.nist.gov/xccdf/1.1" id="RHEL-6" resolved="1" style="SCAP_1.1" xml:lang="en-US">
<ns0:status date="2017-08-11">draft</ns0:status>
<ns0:title xml:lang="en-US">Guide to the Secure Configuration of Red Hat Enterprise Linux 6</ns0:title>
<ns0:description xml:lang="en-US">This guide presents a catalog of security-relevant
configuration settings for Red Hat Enterprise Linux 6. It is a rendering of
content structured in the eXtensible Configuration Checklist Description Format (XCCDF)
in order to support security automation. The SCAP content is
is available in the <html:code>scap-security-guide</html:code> package which is developed at
<html:a href="https://www.open-scap.org/security-policies/scap-security-guide">https://www.open-scap.org/security-policies/scap-security-guide</html:a>.
<html:br />
<html:br />
Providing system administrators with such guidance informs them how to securely
configure systems under their control in a variety of network roles. Policy
makers and baseline creators can use this catalog of settings, with its
associated references to higher-level security control catalogs, in order to
assist them in security baseline creation. This guide is a <html:i>catalog, not a
checklist,</html:i> and satisfaction of every item is not likely to be possible or
sensible in many operational scenarios. However, the XCCDF format enables
granular selection and adjustment of settings, and their association with OVAL
and OCIL content provides an automated checking capability. Transformations of
this document, and its associated automated checking content, are capable of
providing baselines that meet a diverse set of policy objectives. Some example
XCCDF <html:i>Profiles</html:i>, which are selections of items that form checklists and
can be used as baselines, are available with this guide. They can be
processed, in an automated fashion, with tools that support the Security
Content Automation Protocol (SCAP). The DISA STIG for Red Hat Enterprise Linux 6,
which provides required settings for US Department of Defense systems, is
one example of a baseline created from this guidance.
</ns0:description>
<ns0:notice id="centos_warning"><html:div>
<html:p>This benchmark is a direct port of a <html:i>SCAP Security Guide </html:i> benchmark developed for <html:i>Red Hat Enterprise Linux</html:i>. It has been modified through an automated process to remove specific dependencies on <html:i>Red Hat Enterprise Linux</html:i> and to function with <html:i>CentOS</html:i>. The result is a generally useful <html:i>SCAP Security Guide</html:i> benchmark with the following caveats:</html:p>
<html:ul>
<html:li><html:i>CentOS</html:i> is not an exact copy of <html:i>Red Hat Enterprise Linux</html:i>. There may be configuration differences that produce false positives and/or false negatives. If this occurs please file a bug report.</html:li>
<html:li><html:i>CentOS</html:i> has its own build system, compiler options, patchsets, and is a community supported, non-commercial operating system. <html:i>CentOS</html:i> does not inherit certifications or evaluations from <html:i>Red Hat Enterprise Linux</html:i>. As such, some configuration rules (such as those requiring <html:i>FIPS 140-2</html:i> encryption) will continue to fail on <html:i>CentOS</html:i>.</html:li>
</html:ul>
<html:p>Members of the <html:i>CentOS</html:i> community are invited to participate in <html:a href="http://open-scap.org">OpenSCAP</html:a> and <html:a href="https://github.com/OpenSCAP/scap-security-guide">SCAP Security Guide</html:a> development. Bug reports and patches can be sent to GitHub: <html:a href="https://github.com/OpenSCAP/scap-security-guide">https://github.com/OpenSCAP/scap-security-guide</html:a>. The mailing list is at <html:a href="https://fedorahosted.org/mailman/listinfo/scap-security-guide">https://fedorahosted.org/mailman/listinfo/scap-security-guide</html:a>.</html:p></html:div></ns0:notice>
<ns0:notice id="terms_of_use" xml:lang="en-US">Do not attempt to implement any of the settings in
this guide without first testing them in a non-operational environment. The
creators of this guidance assume no responsibility whatsoever for its use by
other parties, and makes no guarantees, expressed or implied, about its
quality, reliability, or any other characteristic.</ns0:notice>
<ns0:front-matter xml:lang="en-US">The SCAP Security Guide Project<html:br />
<html:a href="https://www.open-scap.org/security-policies/scap-security-guide">https://www.open-scap.org/security-policies/scap-security-guide</html:a></ns0:front-matter>
<ns0:rear-matter xml:lang="en-US">Red Hat and Red Hat Enterprise Linux are either registered
trademarks or trademarks of Red Hat, Inc. in the United States and other
countries. All other names are registered trademarks or trademarks of their
respective companies.</ns0:rear-matter>
<ns0:platform idref="cpe:/o:redhat:enterprise_linux:6" />
<ns0:platform idref="cpe:/o:centos:centos:6" />
<ns0:platform idref="cpe:/o:redhat:enterprise_linux:6::client" />
<ns0:platform idref="cpe:/o:redhat:enterprise_linux:6::computenode" />
<ns0:version update="https://github.com/OpenSCAP/scap-security-guide/releases/latest">0.1.31</ns0:version>
<ns0:metadata>
<dc:publisher>SCAP Security Guide Project</dc:publisher>
<dc:creator>SCAP Security Guide Project</dc:creator>
<dc:contributor>Gabe Alford <redhatrises@gmail.com></dc:contributor>
<dc:contributor>Christopher Anderson <cba@fedoraproject.org></dc:contributor>
<dc:contributor>Chuck Atkins <chuck.atkins@kitware.com></dc:contributor>
<dc:contributor>Molly Jo Bault <Molly.Jo.Bault@ballardtech.com></dc:contributor>
<dc:contributor>Joseph Bisch <joseph.bisch@gmail.com></dc:contributor>
<dc:contributor>Jeffrey Blank <blank@eclipse.ncsc.mil></dc:contributor>
<dc:contributor>Blake Burkhart <blake.burkhart@us.af.mil></dc:contributor>
<dc:contributor>Patrick Callahan <pmc@patrickcallahan.com></dc:contributor>
<dc:contributor>Nick Carboni <ncarboni@redhat.com></dc:contributor>
<dc:contributor>Frank Caviggia <fcaviggi@ra.iad.redhat.com></dc:contributor>
<dc:contributor>Eric Christensen <echriste@redhat.com></dc:contributor>
<dc:contributor>Caleb Cooper <coopercd@ornl.gov></dc:contributor>
<dc:contributor>Maura Dailey <maura@eclipse.ncsc.mil></dc:contributor>
<dc:contributor>Klaas Demter <demter@atix.de></dc:contributor>
<dc:contributor>Jean-Baptiste Donnette <jean-baptiste.donnette@epita.fr></dc:contributor>
<dc:contributor>drax <applezip@gmail.com></dc:contributor>
<dc:contributor>Greg Elin <gregelin@gitmachines.com></dc:contributor>
<dc:contributor>Andrew Gilmore <agilmore2@gmail.com></dc:contributor>
<dc:contributor>Joshua Glemza <jglemza@nasa.gov></dc:contributor>
<dc:contributor>Steve Grubb <sgrubb@redhat.com></dc:contributor>
<dc:contributor>Trey Henefield <thenefield@gmail.com></dc:contributor>
<dc:contributor>Robin Price II <robin@redhat.com></dc:contributor>
<dc:contributor>Jeremiah Jahn <jeremiah@goodinassociates.com></dc:contributor>
<dc:contributor>Stephan Joerrens <Stephan.Joerrens@fiduciagad.de></dc:contributor>
<dc:contributor>Yuli Khodorkovskiy <ykhodorkovskiy@tresys.com></dc:contributor>
<dc:contributor>Luke Kordell <luke.t.kordell@lmco.com></dc:contributor>
<dc:contributor>kspargur <kspargur@kspargur.csb></dc:contributor>
<dc:contributor>Fen Labalme <fen@civicactions.com></dc:contributor>
<dc:contributor>Jan Lieskovsky <jlieskov@redhat.com></dc:contributor>
<dc:contributor>Šimon Lukašík <slukasik@redhat.com></dc:contributor>
<dc:contributor>Jamie Lorwey Martin <jlmartin@redhat.com></dc:contributor>
<dc:contributor>Michael McConachie <michael@redhat.com></dc:contributor>
<dc:contributor>Rodney Mercer <rmercer@harris.com></dc:contributor>
<dc:contributor>Brian Millett <bmillett@gmail.com></dc:contributor>
<dc:contributor>mmosel <mmosel@kde.example.com></dc:contributor>
<dc:contributor>Zbynek Moravec <zmoravec@redhat.com></dc:contributor>
<dc:contributor>Kazuo Moriwaka <moriwaka@users.noreply.github.com></dc:contributor>
<dc:contributor>Michael Moseley <michael@eclipse.ncsc.mil></dc:contributor>
<dc:contributor>Joe Nall <joe@nall.com></dc:contributor>
<dc:contributor>Michele Newman <mnewman@redhat.com></dc:contributor>
<dc:contributor>Kaustubh Padegaonkar <theTuxRacer@gmail.com></dc:contributor>
<dc:contributor>Michael Palmiotto <mpalmiotto@tresys.com></dc:contributor>
<dc:contributor>pcactr <paul.c.arnold4.ctr@mail.mil></dc:contributor>
<dc:contributor>Kenneth Peeples <kennethwpeeples@gmail.com></dc:contributor>
<dc:contributor>Frank Lin PIAT <fpiat@klabs.be></dc:contributor>
<dc:contributor>Martin Preisler <mpreisle@redhat.com></dc:contributor>
<dc:contributor>T.O. Radzy Radzykewycz <radzy@windriver.com></dc:contributor>
<dc:contributor>Rick Renshaw <Richard_Renshaw@xtoenergy.com></dc:contributor>
<dc:contributor>Chris Reynolds <c.reynolds82@gmail.com></dc:contributor>
<dc:contributor>Pat Riehecky <riehecky@fnal.gov></dc:contributor>
<dc:contributor>Joshua Roys <roysjosh@gmail.com></dc:contributor>
<dc:contributor>rrenshaw <bofh69@yahoo.com></dc:contributor>
<dc:contributor>Ray Shaw (Cont ARL/CISD) rvshaw <rvshaw@esme.arl.army.mil></dc:contributor>
<dc:contributor>Willy Santos <wsantos@redhat.com></dc:contributor>
<dc:contributor>Gautam Satish <gautams@hpe.com></dc:contributor>
<dc:contributor>Watson Sato <wsato@redhat.com></dc:contributor>
<dc:contributor>Satoru SATOH <satoru.satoh@gmail.com></dc:contributor>
<dc:contributor>Spencer Shimko <sshimko@tresys.com></dc:contributor>
<dc:contributor>Francisco Slavin <fslavin@tresys.com></dc:contributor>
<dc:contributor>David Smith <dsmith@eclipse.ncsc.mil></dc:contributor>
<dc:contributor>Kevin Spargur <kspargur@redhat.com></dc:contributor>
<dc:contributor>Kenneth Stailey <kstailey.lists@gmail.com></dc:contributor>
<dc:contributor>Leland Steinke <leland.j.steinke.ctr@mail.mil></dc:contributor>
<dc:contributor>Philippe Thierry <phil@reseau-libre.net></dc:contributor>
<dc:contributor>Paul Tittle <ptittle@cmf.nrl.navy.mil></dc:contributor>
<dc:contributor>Jeb Trayer <jeb.d.trayer@uscg.mil></dc:contributor>
<dc:contributor>Shawn Wells <shawn@redhat.com></dc:contributor>
<dc:contributor>Rob Wilmoth <rwilmoth@redhat.com></dc:contributor>
<dc:contributor>Lucas Yamanishi <lucas.yamanishi@onyxpoint.com></dc:contributor>
<dc:contributor>Kevin Zimmerman <kevin.zimmerman@kitware.com></dc:contributor>
<dc:contributor>Jan Černý <jcerny@redhat.com></dc:contributor>
<dc:contributor>Michal Šrubař <msrubar@redhat.com></dc:contributor>
<dc:source>https://github.com/OpenSCAP/scap-security-guide/releases/latest</dc:source>
</ns0:metadata>
<ns0:model system="urn:xccdf:scoring:default" />
<ns0:Profile id="standard">
<ns0:title xml:lang="en-US">Standard System Security Profile</ns0:title>
<ns0:description xml:lang="en-US">This profile contains rules to ensure standard security baseline of Red Hat Enterprise Linux 6 system.
Regardless of your system's workload all of these checks should pass.</ns0:description>
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="file_permissions_unauthorized_sgid" selected="true" />
<ns0:select idref="file_permissions_unauthorized_suid" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="accounts_root_path_dirs_no_write" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="disk_partitioning" selected="false" />
<ns0:select idref="aide" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_screen_locking" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="partitions" selected="false" />
<ns0:select idref="mounting" selected="false" />
<ns0:select idref="permissions_important_account_files" selected="false" />
<ns0:select idref="permissions_within_important_dirs" selected="false" />
<ns0:select idref="restrictions" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_execshield_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="selinux" selected="false" />
<ns0:select idref="root_logins" selected="false" />
<ns0:select idref="password_expiration" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="accounts-pam" selected="false" />
<ns0:select idref="password_quality" selected="false" />
<ns0:select idref="password_quality_pamcracklib" selected="false" />
<ns0:select idref="locking_out_password_attempts" selected="false" />
<ns0:select idref="set_password_hashing_algorithm" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="accounts-physical" selected="false" />
<ns0:select idref="bootloader" selected="false" />
<ns0:select idref="screen_locking" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="accounts-banners" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-kernel" selected="false" />
<ns0:select idref="network_host_parameters" selected="false" />
<ns0:select idref="network_host_and_router_parameters" selected="false" />
<ns0:select idref="network-wireless" selected="false" />
<ns0:select idref="wireless_software" selected="false" />
<ns0:select idref="network-ipv6" selected="false" />
<ns0:select idref="disabling_ipv6" selected="false" />
<ns0:select idref="configuring_ipv6" selected="false" />
<ns0:select idref="disabling_ipv6_autoconfig" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="network-iptables" selected="false" />
<ns0:select idref="iptables_activation" selected="false" />
<ns0:select idref="ruleset_modifications" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-uncommon" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="logging" selected="false" />
<ns0:select idref="ensure_rsyslog_log_file_configuration" selected="false" />
<ns0:select idref="rsyslog_sending_messages" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="log_rotation" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="auditing" selected="false" />
<ns0:select idref="configure_auditd_data_retention" selected="false" />
<ns0:select idref="auditd_configure_rules" selected="false" />
<ns0:select idref="audit_time_rules" selected="false" />
<ns0:select idref="audit_dac_actions" selected="false" />
<ns0:select idref="services" selected="false" />
<ns0:select idref="obsolete" selected="false" />
<ns0:select idref="inetd_and_xinetd" selected="false" />
<ns0:select idref="telnet" selected="false" />
<ns0:select idref="r_services" selected="false" />
<ns0:select idref="nis" selected="false" />
<ns0:select idref="tftp" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="base" selected="false" />
<ns0:select idref="cron_and_at" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="ssh" selected="false" />
<ns0:select idref="ssh_server" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi" selected="false" />
<ns0:select idref="service_avahi-daemon_disabled_group" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="ntp" selected="false" />
<ns0:select idref="mail" selected="false" />
<ns0:select idref="postfix_client" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="openldap_server" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_and_rpc" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_clients" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
</ns0:Profile>
<ns0:Profile id="CS2">
<ns0:title xml:lang="en-US">Example Server Profile</ns0:title>
<ns0:description xml:lang="en-US">This profile is an example of a customized server profile.</ns0:description>
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="true" />
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="true" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="bootloader_nousb_argument" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="install_PAE_kernel_on_x86-32" selected="true" />
<ns0:select idref="disable_prelink" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="root_paths" selected="true" />
<ns0:select idref="accounts_root_path_dirs_no_write" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_login_defs" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="root_path_default" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_umask_etc_csh_cshrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="disable_logwatch_for_logserver" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_nolisten" selected="true" />
<ns0:select idref="logwatch_configured_splithosts" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_ownership_var_log_audit" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="no_direct_root_logins" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="file_permissions_home_dirs" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="sysctl_fs_suid_dumpable" selected="true" />
<ns0:select idref="service_restorecond_enabled" selected="true" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="gconf_gnome_disable_thumbnailers" selected="true" />
<ns0:select idref="gconf_gnome_disable_automount" selected="true" />
<ns0:select idref="network_disable_zeroconf" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="network_ipv6_disable_interfaces" selected="true" />
<ns0:select idref="network_ipv6_disable_rpc" selected="true" />
<ns0:select idref="network_ipv6_static_address" selected="true" />
<ns0:select idref="network_ipv6_privacy_extensions" selected="true" />
<ns0:select idref="network_ipv6_default_gateway" selected="true" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_ra" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="network_sniffer_disabled" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_acpid_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_certmonger_disabled" selected="true" />
<ns0:select idref="service_cgconfig_disabled" selected="true" />
<ns0:select idref="service_cgred_disabled" selected="true" />
<ns0:select idref="service_cpuspeed_disabled" selected="true" />
<ns0:select idref="service_haldaemon_disabled" selected="true" />
<ns0:select idref="service_irqbalance_enabled" selected="true" />
<ns0:select idref="service_kdump_disabled" selected="true" />
<ns0:select idref="service_mdmonitor_disabled" selected="true" />
<ns0:select idref="service_messagebus_disabled" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_portreserve_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="service_saslauthd_disabled" selected="true" />
<ns0:select idref="service_rhsmcertd_disabled" selected="true" />
<ns0:select idref="service_smartd_disabled" selected="true" />
<ns0:select idref="service_sysstat_disabled" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="service_sshd_disabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_limit_user_access" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="xwindows_runlevel_setting" selected="true" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="true" />
<ns0:select idref="service_cups_disabled" selected="true" />
<ns0:select idref="cups_disable_browsing" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="dhcp_server_disable_ddns" selected="true" />
<ns0:select idref="dhcp_server_deny_decline" selected="true" />
<ns0:select idref="dhcp_server_deny_bootp" selected="true" />
<ns0:select idref="dhcp_server_minimize_served_info" selected="true" />
<ns0:select idref="dhcp_server_configure_logging" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="service_postfix_enabled" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="service_nfslock_disabled" selected="true" />
<ns0:select idref="service_rpcgssd_disabled" selected="true" />
<ns0:select idref="service_rpcidmapd_disabled" selected="true" />
<ns0:select idref="service_netfs_disabled" selected="true" />
<ns0:select idref="nfs_fixed_lockd_tcp_port" selected="true" />
<ns0:select idref="nfs_fixed_lockd_udp_port" selected="true" />
<ns0:select idref="nfs_fixed_statd_port" selected="true" />
<ns0:select idref="nfs_fixed_mountd_port" selected="true" />
<ns0:select idref="service_nfs_disabled" selected="true" />
<ns0:select idref="service_rpcsvcgssd_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="use_root_squashing_all_exports" selected="true" />
<ns0:select idref="restrict_nfs_clients_to_privileged_ports" selected="true" />
<ns0:select idref="no_insecure_locks_exports" selected="true" />
<ns0:select idref="nfs_no_anonymous" selected="true" />
<ns0:select idref="service_named_disabled" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="dns_server_disable_dynamic_updates" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_vsftpd_disabled" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="ftp_log_transactions" selected="true" />
<ns0:select idref="ftp_present_banner" selected="true" />
<ns0:select idref="package_httpd_removed" selected="true" />
<ns0:select idref="httpd_servertokens_prod" selected="true" />
<ns0:select idref="httpd_mod_rewrite" selected="true" />
<ns0:select idref="httpd_server_side_includes" selected="true" />
<ns0:select idref="httpd_webdav" selected="true" />
<ns0:select idref="httpd_server_activity_status" selected="true" />
<ns0:select idref="httpd_server_configuration_display" selected="true" />
<ns0:select idref="httpd_url_correction" selected="true" />
<ns0:select idref="httpd_proxy_support" selected="true" />
<ns0:select idref="httpd_cache_support" selected="true" />
<ns0:select idref="httpd_cgi_support" selected="true" />
<ns0:select idref="httpd_digest_authentication" selected="true" />
<ns0:select idref="httpd_ldap_support" selected="true" />
<ns0:select idref="httpd_mime_magic" selected="true" />
<ns0:select idref="httpd_restrict_root_directory" selected="true" />
<ns0:select idref="httpd_restrict_web_directory" selected="true" />
<ns0:select idref="httpd_restrict_critical_directories" selected="true" />
<ns0:select idref="httpd_limit_available_methods" selected="true" />
<ns0:select idref="httpd_install_mod_ssl" selected="true" />
<ns0:select idref="httpd_install_mod_security" selected="true" />
<ns0:select idref="dir_perms_etc_httpd_conf" selected="true" />
<ns0:select idref="file_permissions_httpd_server_conf_files" selected="true" />
<ns0:select idref="service_dovecot_disabled" selected="true" />
<ns0:select idref="package_dovecot_removed" selected="true" />
<ns0:select idref="dovecot_enable_ssl" selected="true" />
<ns0:select idref="dovecot_configure_ssl_cert" selected="true" />
<ns0:select idref="dovecot_configure_ssl_key" selected="true" />
<ns0:select idref="service_smb_disabled" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="smb_server_disable_root" selected="true" />
<ns0:select idref="service_squid_disabled" selected="true" />
<ns0:select idref="package_squid_removed" selected="true" />
<ns0:select idref="service_snmpd_disabled" selected="true" />
<ns0:select idref="package_net-snmp_removed" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="avahi_ip_only" selected="true" />
<ns0:select idref="avahi_check_ttl" selected="true" />
<ns0:select idref="avahi_prevent_port_sharing" selected="true" />
<ns0:select idref="avahi_disable_publishing" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-iptables" selected="false" />
<ns0:select idref="iptables_activation" selected="false" />
<ns0:select idref="ruleset_modifications" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="configure_auditd_data_retention" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_client" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="openldap_server" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="14" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="1" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="180" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="10" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="3" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="login_banner_text" selector="dod_default" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="60_minutes" />
</ns0:Profile>
<ns0:Profile id="common">
<ns0:title xml:lang="en-US">Common Profile for General-Purpose Systems</ns0:title>
<ns0:description xml:lang="en-US">This profile contains items common to general-purpose desktop and server installations.</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-wireless" selected="false" />
<ns0:select idref="wireless_software" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
</ns0:Profile>
<ns0:Profile id="desktop">
<ns0:title override="true" xml:lang="en-US">Desktop Baseline</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is for a desktop installation of Red Hat Enterprise Linux 6.</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="service_vsftpd_disabled" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="service_named_disabled" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="service_httpd_disabled" selected="true" />
<ns0:select idref="package_httpd_removed" selected="true" />
<ns0:select idref="service_smb_disabled" selected="true" />
<ns0:select idref="service_squid_disabled" selected="true" />
<ns0:select idref="package_squid_removed" selected="true" />
<ns0:select idref="service_snmpd_disabled" selected="true" />
<ns0:select idref="package_net-snmp_removed" selected="true" />
<ns0:select idref="service_dovecot_disabled" selected="true" />
<ns0:select idref="package_dovecot_removed" selected="true" />
<ns0:select idref="service_nfs_disabled" selected="true" />
<ns0:select idref="service_rpcsvcgssd_disabled" selected="true" />
<ns0:select idref="service_nfslock_disabled" selected="true" />
<ns0:select idref="service_rpcgssd_disabled" selected="true" />
<ns0:select idref="service_rpcidmapd_disabled" selected="true" />
<ns0:select idref="service_netfs_disabled" selected="true" />
<ns0:select idref="service_dhcpd_disabled" selected="true" />
<ns0:select idref="package_dhcp_removed" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-wireless" selected="false" />
<ns0:select idref="wireless_software" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
</ns0:Profile>
<ns0:Profile id="server">
<ns0:title override="true" xml:lang="en-US">Server Baseline</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is for Red Hat Enterprise Linux 6 acting as a server.</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="xwindows_runlevel_setting" selected="true" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
</ns0:Profile>
<ns0:Profile id="ftp-server">
<ns0:title override="true" xml:lang="en-US">ftp</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is for FTP servers.</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="xwindows_runlevel_setting" selected="true" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="package_vsftpd_installed" selected="true" />
<ns0:select idref="ftp_log_transactions" selected="true" />
<ns0:select idref="ftp_present_banner" selected="true" />
<ns0:select idref="ftp_restrict_to_anon" selected="true" />
<ns0:select idref="ftp_disable_uploads" selected="true" />
<ns0:select idref="ftp_home_partition" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
</ns0:Profile>
<ns0:Profile id="stig-rhel6-workstation-upstream">
<ns0:title override="true" xml:lang="en-US">Upstream STIG for Red Hat Enterprise Linux 6 Workstation</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is developed under the DoD consensus model and DISA FSO Vendor STIG process,
serving as the upstream development environment for the Red Hat Enterprise Linux 6 Server STIG.
As a result of the upstream/downstream relationship between the SCAP Security Guide project
and the official DISA FSO STIG baseline, users should expect variance between SSG and DISA FSO content.
For official DISA FSO STIG content, refer to http://iase.disa.mil/stigs/os/unix-linux/Pages/red-hat.aspx.
While this profile is packaged by Red Hat as part of the SCAP Security Guide package, please note
that commercial support of this SCAP content is NOT available. This profile is provided as example
SCAP content with no endorsement for suitability or production readiness. Support for this
profile is provided by the upstream SCAP Security Guide community on a best-effort basis. The
upstream project homepage is https://www.open-scap.org/security-policies/scap-security-guide/.
</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="encrypt_partitions" selected="true" />
<ns0:select idref="kernel_disable_entropy_contribution_for_solid_state_drives" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="install_antivirus" selected="true" />
<ns0:select idref="install_hids" selected="true" />
<ns0:select idref="disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="service_postfix_enabled" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="accounts_password_pam_maxrepeat" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="no_insecure_locks_exports" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="ftp_log_transactions" selected="true" />
<ns0:select idref="snmpd_use_newer_protocol" selected="true" />
<ns0:select idref="snmpd_not_default_password" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_csh_cshrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="accounts_umask_etc_login_defs" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="ftp_present_banner" selected="true" />
<ns0:select idref="smartcard_auth" selected="true" />
<ns0:select idref="display_login_attempts" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="true" />
<ns0:select idref="service_atd_disabled" selected="false" />
<ns0:select idref="ldap_client_start_tls" selected="false" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="false" />
<ns0:select idref="xwindows_runlevel_setting" selected="false" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="false" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="gconf_gnome_disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="10" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="604800" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="60" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="1" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="1" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="1" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="login_banner_text" selector="dod_default" />
</ns0:Profile>
<ns0:Profile id="stig-rhel6-server-gui-upstream">
<ns0:title override="true" xml:lang="en-US">Upstream STIG for Red Hat Enterprise Linux 6 Server Running GUIs</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is developed under the DoD consensus model and DISA FSO Vendor STIG process,
serving as the upstream development environment for the Red Hat Enterprise Linux 6 Server STIG.
As a result of the upstream/downstream relationship between the SCAP Security Guide project
and the official DISA FSO STIG baseline, users should expect variance between SSG and DISA FSO content.
For official DISA FSO STIG content, refer to http://iase.disa.mil/stigs/os/unix-linux/Pages/red-hat.aspx.
While this profile is packaged by Red Hat as part of the SCAP Security Guide package, please note
that commercial support of this SCAP content is NOT available. This profile is provided as example
SCAP content with no endorsement for suitability or production readiness. Support for this
profile is provided by the upstream SCAP Security Guide community on a best-effort basis. The
upstream project homepage is https://www.open-scap.org/security-policies/scap-security-guide/.
</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="encrypt_partitions" selected="true" />
<ns0:select idref="kernel_disable_entropy_contribution_for_solid_state_drives" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="install_antivirus" selected="true" />
<ns0:select idref="install_hids" selected="true" />
<ns0:select idref="disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="service_postfix_enabled" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="accounts_password_pam_maxrepeat" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="no_insecure_locks_exports" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="ftp_log_transactions" selected="true" />
<ns0:select idref="snmpd_use_newer_protocol" selected="true" />
<ns0:select idref="snmpd_not_default_password" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_csh_cshrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="accounts_umask_etc_login_defs" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="ftp_present_banner" selected="true" />
<ns0:select idref="smartcard_auth" selected="true" />
<ns0:select idref="display_login_attempts" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="true" />
<ns0:select idref="service_atd_disabled" selected="false" />
<ns0:select idref="ldap_client_start_tls" selected="false" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="false" />
<ns0:select idref="xwindows_runlevel_setting" selected="false" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="false" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="gconf_gnome_disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="10" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="604800" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="60" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="1" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="1" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="1" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="login_banner_text" selector="dod_default" />
</ns0:Profile>
<ns0:Profile id="stig-rhel6-server-upstream">
<ns0:title override="true" xml:lang="en-US">Upstream STIG for Red Hat Enterprise Linux 6 Server</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile is developed under the DoD consensus model and DISA FSO Vendor STIG process,
serving as the upstream development environment for the Red Hat Enterprise Linux 6 Server STIG.
As a result of the upstream/downstream relationship between the SCAP Security Guide project
and the official DISA FSO STIG baseline, users should expect variance between SSG and DISA FSO content.
For official DISA FSO STIG content, refer to http://iase.disa.mil/stigs/os/unix-linux/Pages/red-hat.aspx.
While this profile is packaged by Red Hat as part of the SCAP Security Guide package, please note
that commercial support of this SCAP content is NOT available. This profile is provided as example
SCAP content with no endorsement for suitability or production readiness. Support for this
profile is provided by the upstream SCAP Security Guide community on a best-effort basis. The
upstream project homepage is https://www.open-scap.org/security-policies/scap-security-guide/.
</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="encrypt_partitions" selected="true" />
<ns0:select idref="kernel_disable_entropy_contribution_for_solid_state_drives" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="install_antivirus" selected="true" />
<ns0:select idref="install_hids" selected="true" />
<ns0:select idref="disable_ctrlaltdel_reboot" selected="true" />
<ns0:select idref="service_postfix_enabled" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="xwindows_runlevel_setting" selected="true" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="accounts_password_pam_maxrepeat" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="no_insecure_locks_exports" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="ftp_log_transactions" selected="true" />
<ns0:select idref="snmpd_use_newer_protocol" selected="true" />
<ns0:select idref="snmpd_not_default_password" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_csh_cshrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="accounts_umask_etc_login_defs" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="ftp_present_banner" selected="true" />
<ns0:select idref="smartcard_auth" selected="true" />
<ns0:select idref="display_login_attempts" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="true" />
<ns0:select idref="service_atd_disabled" selected="false" />
<ns0:select idref="ldap_client_start_tls" selected="false" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="false" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="10" />
<ns0:refine-value idref="login_banner_text" selector="dod_default" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="604800" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="60" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="1" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="1" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="1" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="15_minutes" />
</ns0:Profile>
<ns0:Profile id="usgcb-rhel6-server">
<ns0:title xml:lang="en-US">United States Government Configuration Baseline (USGCB)</ns0:title>
<ns0:description xml:lang="en-US">This profile is a working draft for a USGCB submission against RHEL6 Server.</ns0:description>
<ns0:select idref="kernel_disable_entropy_contribution_for_solid_state_drives" selected="true" />
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="mount_option_nodev_nonroot_local_partitions" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="file_permissions_unauthorized_sgid" selected="true" />
<ns0:select idref="file_permissions_unauthorized_suid" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="sysctl_fs_suid_dumpable" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="install_PAE_kernel_on_x86-32" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="root_path_no_dot" selected="true" />
<ns0:select idref="accounts_root_path_dirs_no_write" selected="true" />
<ns0:select idref="file_permissions_home_dirs" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_csh_cshrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="accounts_umask_etc_login_defs" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="network_ipv6_disable_rpc" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_ra" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="rsyslog_nolisten" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="service_kdump_disabled" selected="true" />
<ns0:select idref="network_disable_zeroconf" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_dhcpd_disabled" selected="true" />
<ns0:select idref="package_dhcp_removed" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="service_nfslock_disabled" selected="true" />
<ns0:select idref="service_rpcgssd_disabled" selected="true" />
<ns0:select idref="service_rpcidmapd_disabled" selected="true" />
<ns0:select idref="service_netfs_disabled" selected="true" />
<ns0:select idref="service_portreserve_disabled" selected="true" />
<ns0:select idref="service_rpcsvcgssd_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="service_named_disabled" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="service_vsftpd_disabled" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="service_httpd_disabled" selected="true" />
<ns0:select idref="package_httpd_removed" selected="true" />
<ns0:select idref="service_dovecot_disabled" selected="true" />
<ns0:select idref="package_dovecot_removed" selected="true" />
<ns0:select idref="service_smb_disabled" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="service_squid_disabled" selected="true" />
<ns0:select idref="package_squid_removed" selected="true" />
<ns0:select idref="service_snmpd_disabled" selected="true" />
<ns0:select idref="package_net-snmp_removed" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="permissions_within_important_dirs" selected="false" />
<ns0:select idref="screen_locking" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="configure_auditd_data_retention" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="14" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="60" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="12" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="1" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="1" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="5" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="24" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv6_conf_default_accept_ra_value" selector="disabled" />
<ns0:refine-value idref="var_account_disable_post_pw_expiration" selector="30" />
</ns0:Profile>
<ns0:Profile id="rht-ccp">
<ns0:title xml:lang="en-US">Red Hat Corporate Profile for Certified Cloud Providers (RH CCP)</ns0:title>
<ns0:description xml:lang="en-US">This is a *draft* SCAP profile for Red Hat Certified Cloud Providers</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_screen_locking" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="partitions" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="account_expiration" selected="false" />
<ns0:select idref="accounts-session" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="screen_locking" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="accounts-banners" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-kernel" selected="false" />
<ns0:select idref="network_host_parameters" selected="false" />
<ns0:select idref="network_host_and_router_parameters" selected="false" />
<ns0:select idref="network-wireless" selected="false" />
<ns0:select idref="wireless_software" selected="false" />
<ns0:select idref="configuring_ipv6" selected="false" />
<ns0:select idref="disabling_ipv6_autoconfig" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="logging" selected="false" />
<ns0:select idref="ensure_rsyslog_log_file_configuration" selected="false" />
<ns0:select idref="rsyslog_sending_messages" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="log_rotation" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="configure_auditd_data_retention" selected="false" />
<ns0:select idref="audit_time_rules" selected="false" />
<ns0:select idref="audit_dac_actions" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="ntp" selected="false" />
<ns0:select idref="mail" selected="false" />
<ns0:select idref="postfix_client" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="openldap_server" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_and_rpc" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_clients" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="6" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="5" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
</ns0:Profile>
<ns0:Profile id="CSCF-RHEL6-MLS">
<ns0:title xml:lang="en-US">CSCF RHEL6 MLS Core Baseline</ns0:title>
<ns0:description xml:lang="en-US"> This profile reflects the Centralized Super Computing Facility
(CSCF) baseline for Red Hat Enterprise Linux 6. This baseline has received
government ATO through the ICD 503 process, utilizing the CNSSI 1253 cross
domain overlay. This profile should be considered in active development.
Additional tailoring will be needed, such as the creation of RBAC roles
for production deployment.</ns0:description>
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="false" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="false" />
<ns0:select idref="audit_rules_file_deletion_events" selected="false" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_ownership_var_log_audit" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="false" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="bios_disable_usb_boot" selected="true" />
<ns0:select idref="bootloader_nousb_argument" selected="false" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="auditd_audispd_syslog_plugin_activated" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="cups_disable_browsing" selected="false" />
<ns0:select idref="cups_disable_printserver" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="false" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="false" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="false" />
<ns0:select idref="dhcp_server_deny_bootp" selected="true" />
<ns0:select idref="dhcp_server_deny_decline" selected="true" />
<ns0:select idref="dhcp_server_disable_ddns" selected="true" />
<ns0:select idref="disable_anacron" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="service_dhcpd_disabled" selected="true" />
<ns0:select idref="service_named_disabled" selected="true" />
<ns0:select idref="gconf_gnome_disable_thumbnailers" selected="true" />
<ns0:select idref="service_httpd_disabled" selected="false" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="false" />
<ns0:select idref="disable_prelink" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="false" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="service_vsftpd_disabled" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="dns_server_authenticate_zone_transfers" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="false" />
<ns0:select idref="gconf_gnome_disable_automount" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_httpd_server_conf_files" selected="true" />
<ns0:select idref="dir_perms_var_log_httpd" selected="true" />
<ns0:select idref="httpd_servertokens_prod" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="false" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="false" />
<ns0:select idref="mount_option_nodev_nonroot_local_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="false" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="false" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="false" />
<ns0:select idref="network_disable_zeroconf" selected="true" />
<ns0:select idref="network_ipv6_disable_rpc" selected="true" />
<ns0:select idref="network_sniffer_disabled" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="false" />
<ns0:select idref="no_files_unowned_by_user" selected="false" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="no_direct_root_logins" selected="true" />
<ns0:select idref="file_permissions_unauthorized_sgid" selected="true" />
<ns0:select idref="file_permissions_unauthorized_suid" selected="false" />
<ns0:select idref="ntpd_specify_multiple_servers" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="partition_for_var_log" selected="false" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_maxrepeat" selected="false" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="false" />
<ns0:select idref="rpm_verify_permissions" selected="false" />
<ns0:select idref="rsyslog_nolisten" selected="true" />
<ns0:select idref="rsyslog_listen_tcp" selected="true" />
<ns0:select idref="rsyslog_accept_remote_messages_udp" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="false" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_acpid_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="service_certmonger_disabled" selected="true" />
<ns0:select idref="service_cgconfig_disabled" selected="true" />
<ns0:select idref="service_cpuspeed_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="service_cups_disabled" selected="true" />
<ns0:select idref="service_haldaemon_disabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="service_irqbalance_enabled" selected="false" />
<ns0:select idref="service_kdump_disabled" selected="false" />
<ns0:select idref="service_mdmonitor_disabled" selected="true" />
<ns0:select idref="service_messagebus_disabled" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_portreserve_disabled" selected="true" />
<ns0:select idref="service_psacct_enabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_quota_nld_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="service_rhsmcertd_disabled" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="service_saslauthd_disabled" selected="true" />
<ns0:select idref="service_smartd_disabled" selected="true" />
<ns0:select idref="service_sysstat_disabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="false" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="false" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="banner_etc_issue" selected="false" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="false" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="package_dhcp_removed" selected="true" />
<ns0:select idref="package_httpd_removed" selected="false" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="false" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="false" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="false" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="install_hids" selected="true" />
<ns0:select idref="install_antivirus" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="bios_enable_execution_restrictions" selected="true" />
<ns0:select idref="sysctl_fs_suid_dumpable" selected="true" />
<ns0:select idref="xwindows_runlevel_setting" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="false" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="updating" selected="false" />
<ns0:select idref="rpm_verification" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="accounts-session" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="screen_locking" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="configuring_ipv6" selected="false" />
<ns0:select idref="disabling_ipv6_autoconfig" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_sending_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="inetd_and_xinetd" selected="false" />
<ns0:select idref="telnet" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_and_rpc" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_clients" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="keep_logs" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="3" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="180" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="12" />
<ns0:refine-value idref="var_selinux_policy_name" selector="mls" />
</ns0:Profile>
<ns0:Profile id="C2S">
<ns0:title xml:lang="en-US">C2S for Red Hat Enterprise Linux 6</ns0:title>
<ns0:description xml:lang="en-US">This profile demonstrates compliance against the
U.S. Government Commercial Cloud Services (C2S) baseline.
This baseline was inspired by the Center for Internet Security
(CIS) Red Hat Enterprise Linux 6 Benchmark, v1.2.0 - 06-25-2013.
For the SCAP Security Guide project to remain in compliance with
CIS' terms and conditions, specifically Restrictions(8), note
there is no representation or claim that the C2S profile will
ensure a system is in compliance or consistency with the CIS
baseline.
</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="mount_option_nodev_nonroot_local_partitions" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="disable_prelink" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="package_setroubleshoot_removed" selected="true" />
<ns0:select idref="package_mcstrans_removed" selected="true" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="disable_users_coredumps" selected="true" />
<ns0:select idref="sysctl_fs_suid_dumpable" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="package_telnet_removed" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="package_rsh_removed" selected="true" />
<ns0:select idref="package_ypbind_removed" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="package_tftp_removed" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="package_talk_removed" selected="true" />
<ns0:select idref="package_talk-server_removed" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="package_xorg-x11-server-common_removed" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_cups_disabled" selected="true" />
<ns0:select idref="package_dhcp_removed" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="ntpd_specify_multiple_servers" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="service_nfslock_disabled" selected="true" />
<ns0:select idref="service_rpcgssd_disabled" selected="true" />
<ns0:select idref="service_rpcidmapd_disabled" selected="true" />
<ns0:select idref="service_rpcsvcgssd_disabled" selected="true" />
<ns0:select idref="service_rpcbind_disabled" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="package_httpd_removed" selected="true" />
<ns0:select idref="package_dovecot_removed" selected="true" />
<ns0:select idref="package_samba_removed" selected="true" />
<ns0:select idref="package_squid_removed" selected="true" />
<ns0:select idref="package_net-snmp_removed" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_ra" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="network_ipv6_disable_interfaces" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="rsyslog_nolisten" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_dac_actions" selected="false" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_limit_user_access" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="set_password_hashing_algorithm" selected="false" />
<ns0:select idref="password_quality_pamcracklib" selected="false" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="no_direct_root_logins" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="accounts_umask_etc_bashrc" selected="true" />
<ns0:select idref="accounts_umask_etc_profile" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="file_permissions_unauthorized_suid" selected="true" />
<ns0:select idref="file_permissions_unauthorized_sgid" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="root_path_default" selected="true" />
<ns0:select idref="file_permissions_home_dirs" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_screen_locking" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="password_quality" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="screen_locking" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="ruleset_modifications" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="var_umask_for_daemons" selector="027" />
<ns0:refine-value idref="var_accounts_user_umask" selector="027" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
</ns0:Profile>
<ns0:Profile id="pci-dss">
<ns0:title xml:lang="en-US">PCI-DSS v3 Control Baseline for Red Hat Enterprise Linux 6</ns0:title>
<ns0:description xml:lang="en-US">This is a *draft* profile for PCI-DSS v3</ns0:description>
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="auditd_audispd_syslog_plugin_activated" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_ownership_var_log_audit" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="ntpd_specify_multiple_servers" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="install_hids" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="disable_prelink" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="account_unique_name" selected="true" />
<ns0:select idref="gid_passwd_group_same" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="display_login_attempts" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="accounts_password_pam_minlen" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="smartcard_auth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="package_openswan_installed" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="disk_partitioning" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="partitions" selected="false" />
<ns0:select idref="mounting" selected="false" />
<ns0:select idref="permissions_within_important_dirs" selected="false" />
<ns0:select idref="restrictions" selected="false" />
<ns0:select idref="daemon_umask" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_execshield_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="selinux" selected="false" />
<ns0:select idref="root_logins" selected="false" />
<ns0:select idref="accounts-session" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="console_screen_locking" selected="false" />
<ns0:select idref="accounts-banners" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network-kernel" selected="false" />
<ns0:select idref="network_host_parameters" selected="false" />
<ns0:select idref="network_host_and_router_parameters" selected="false" />
<ns0:select idref="network-wireless" selected="false" />
<ns0:select idref="wireless_software" selected="false" />
<ns0:select idref="network-ipv6" selected="false" />
<ns0:select idref="disabling_ipv6" selected="false" />
<ns0:select idref="configuring_ipv6" selected="false" />
<ns0:select idref="disabling_ipv6_autoconfig" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="network-iptables" selected="false" />
<ns0:select idref="iptables_activation" selected="false" />
<ns0:select idref="ruleset_modifications" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-uncommon" selected="false" />
<ns0:select idref="rsyslog_sending_messages" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="obsolete" selected="false" />
<ns0:select idref="inetd_and_xinetd" selected="false" />
<ns0:select idref="telnet" selected="false" />
<ns0:select idref="r_services" selected="false" />
<ns0:select idref="nis" selected="false" />
<ns0:select idref="tftp" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="base" selected="false" />
<ns0:select idref="cron_and_at" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi" selected="false" />
<ns0:select idref="service_avahi-daemon_disabled_group" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="mail" selected="false" />
<ns0:select idref="postfix_client" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="openldap_server" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_and_rpc" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_clients" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="4" />
<ns0:refine-value idref="var_account_disable_post_pw_expiration" selector="90" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="6" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="1800" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="var_password_pam_minlen" selector="7" />
<ns0:refine-value idref="var_password_pam_minclass" selector="2" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
</ns0:Profile>
<ns0:Profile id="nist-cl-il-al">
<ns0:title override="true" xml:lang="en-US">CNSSI 1253 Low/Low/Low Control Baseline for Red Hat Enterprise Linux 6</ns0:title>
<ns0:description override="true" xml:lang="en-US">This profile follows the Committee on National Security Systems Instruction
(CNSSI) No. 1253, "Security Categorization and Control Selection for National Security
Systems" on security controls to meet low confidentiality, low integrity, and low
assurance."</ns0:description>
<ns0:select idref="partition_for_tmp" selected="true" />
<ns0:select idref="partition_for_var" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="partition_for_home" selected="true" />
<ns0:select idref="ensure_redhat_gpgkey_installed" selected="true" />
<ns0:select idref="security_patches_up_to_date" selected="true" />
<ns0:select idref="ensure_gpgcheck_globally_activated" selected="true" />
<ns0:select idref="ensure_gpgcheck_never_disabled" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="no_shelllogin_for_systemaccounts" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_dcredit" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="file_user_owner_grub_conf" selected="true" />
<ns0:select idref="file_group_owner_grub_conf" selected="true" />
<ns0:select idref="file_permissions_grub_conf" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="disable_interactive_boot" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="sysctl_kernel_randomize_va_space" selected="true" />
<ns0:select idref="sysctl_kernel_exec_shield" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="service_rsyslog_enabled" selected="true" />
<ns0:select idref="rsyslog_files_permissions" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="package_rsh-server_removed" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="sshd_set_idle_timeout" selected="true" />
<ns0:select idref="sshd_set_keepalive" selected="true" />
<ns0:select idref="sshd_disable_rhosts" selected="true" />
<ns0:select idref="disable_host_auth" selected="true" />
<ns0:select idref="sshd_disable_empty_passwords" selected="true" />
<ns0:select idref="sshd_enable_warning_banner" selected="true" />
<ns0:select idref="sshd_do_not_permit_user_env" selected="true" />
<ns0:select idref="postfix_network_listening_disabled" selected="true" />
<ns0:select idref="ldap_client_start_tls" selected="true" />
<ns0:select idref="ldap_client_tls_cacertpath" selected="true" />
<ns0:select idref="accounts_tmout" selected="true" />
<ns0:select idref="mount_option_nodev_remote_filesystems" selected="true" />
<ns0:select idref="mount_option_nosuid_remote_filesystems" selected="true" />
<ns0:select idref="require_smb_client_signing" selected="true" />
<ns0:select idref="mount_option_smb_client_signing" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="service_restorecond_enabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_ownership_var_log_audit" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="gconf_gdm_enable_warning_gui_banner" selected="true" />
<ns0:select idref="gconf_gdm_set_login_banner_text" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_delay" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_idle_activation_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_lock_enabled" selected="true" />
<ns0:select idref="gconf_gnome_screensaver_mode_blank" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="package_rsh_removed" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="package_tftp_removed" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_kdump_disabled" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_portreserve_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="service_saslauthd_disabled" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="bootloader_nousb_argument" selected="true" />
<ns0:select idref="bios_disable_usb_boot" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="gconf_gnome_disable_automount" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="auditd_audispd_syslog_plugin_activated" selected="true" />
<ns0:select idref="rsyslog_remote_loghost" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="ntpd_specify_multiple_servers" selected="true" />
<ns0:select idref="service_psacct_enabled" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="disable_prelink" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="rpm_verify_hashes" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="network_ipv6_disable_rpc" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_ra" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="network_disable_zeroconf" selected="true" />
<ns0:select idref="network_sniffer_disabled" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="true" />
<ns0:select idref="gconf_gnome_disable_thumbnailers" selected="true" />
<ns0:select idref="mount_option_nodev_nonroot_local_partitions" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="true" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="true" />
<ns0:select idref="service_cups_disabled" selected="true" />
<ns0:select idref="cups_disable_browsing" selected="true" />
<ns0:select idref="cups_disable_printserver" selected="true" />
<ns0:select idref="service_dhcpd_disabled" selected="true" />
<ns0:select idref="package_dhcp_removed" selected="true" />
<ns0:select idref="sysconfig_networking_bootproto_ifcfg" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="service_named_disabled" selected="true" />
<ns0:select idref="package_bind_removed" selected="true" />
<ns0:select idref="package_openldap-servers_removed" selected="true" />
<ns0:select idref="package_sendmail_removed" selected="true" />
<ns0:select idref="service_acpid_disabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_certmonger_disabled" selected="true" />
<ns0:select idref="service_cgconfig_disabled" selected="true" />
<ns0:select idref="service_cgred_disabled" selected="true" />
<ns0:select idref="service_cpuspeed_disabled" selected="true" />
<ns0:select idref="service_haldaemon_disabled" selected="true" />
<ns0:select idref="service_irqbalance_enabled" selected="true" />
<ns0:select idref="service_mdmonitor_disabled" selected="true" />
<ns0:select idref="service_messagebus_disabled" selected="true" />
<ns0:select idref="service_quota_nld_disabled" selected="true" />
<ns0:select idref="service_rhsmcertd_disabled" selected="true" />
<ns0:select idref="service_smartd_disabled" selected="true" />
<ns0:select idref="service_sysstat_disabled" selected="true" />
<ns0:select idref="service_httpd_disabled" selected="true" />
<ns0:select idref="package_httpd_removed" selected="true" />
<ns0:select idref="disabling_vsftpd" selected="true" />
<ns0:select idref="package_vsftpd_removed" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_accepting_remote_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_accounts_tmout" selector="10_min" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="15" />
<ns0:refine-value idref="var_accounts_maximum_age_login_defs" selector="90" />
<ns0:refine-value idref="var_accounts_minimum_age_login_defs" selector="7" />
<ns0:refine-value idref="var_accounts_password_warn_age_login_defs" selector="7" />
<ns0:refine-value idref="var_password_pam_retry" selector="3" />
<ns0:refine-value idref="var_password_pam_minlen" selector="14" />
<ns0:refine-value idref="var_password_pam_dcredit" selector="1" />
<ns0:refine-value idref="var_password_pam_ucredit" selector="2" />
<ns0:refine-value idref="var_password_pam_ocredit" selector="2" />
<ns0:refine-value idref="var_password_pam_lcredit" selector="2" />
<ns0:refine-value idref="var_password_pam_difok" selector="3" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="5" />
<ns0:refine-value idref="var_accounts_user_umask" selector="077" />
<ns0:refine-value idref="var_auditd_num_logs" selector="5" />
<ns0:refine-value idref="var_auditd_max_log_file" selector="6" />
<ns0:refine-value idref="var_auditd_max_log_file_action" selector="rotate" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="single" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_tcp_syncookies_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_rp_filter_value" selector="enabled" />
<ns0:refine-value idref="file_owner_logfiles_value" selector="root" />
<ns0:refine-value idref="file_groupowner_logfiles_value" selector="root" />
<ns0:refine-value idref="sshd_idle_timeout_value" selector="5_minutes" />
<ns0:refine-value idref="var_account_disable_post_pw_expiration" selector="40" />
<ns0:refine-value idref="var_selinux_state" selector="enforcing" />
<ns0:refine-value idref="var_selinux_policy_name" selector="targeted" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_secure_redirects_value" selector="enabled" />
<ns0:refine-value idref="var_umask_for_daemons" selector="022" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="900" />
<ns0:refine-value idref="inactivity_timeout_value" selector="15_minutes" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_source_route_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_accept_redirects_value" selector="disabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_default_secure_redirects_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" selector="enabled" />
<ns0:refine-value idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" selector="enabled" />
</ns0:Profile>
<ns0:Profile id="fisma-medium-rhel6-server">
<ns0:title xml:lang="en-US">FISAMA Medium for Red Hat Enterprise Linux 6</ns0:title>
<ns0:description xml:lang="en-US">FISMA Medium for Red Hat Enterprise Linux 6</ns0:description>
<ns0:select idref="account_disable_post_pw_expiration" selected="true" />
<ns0:select idref="account_temp_expire_date" selected="true" />
<ns0:select idref="audit_rules_usergroup_modification" selected="true" />
<ns0:select idref="audit_rules_sysadmin_actions" selected="true" />
<ns0:select idref="enable_selinux_bootloader" selected="true" />
<ns0:select idref="selinux_state" selected="true" />
<ns0:select idref="selinux_policytype" selected="true" />
<ns0:select idref="service_restorecond_enabled" selected="true" />
<ns0:select idref="sshd_use_approved_ciphers" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_accept_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_secure_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_tcp_syncookies" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_rp_filter" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_default_rp_filter" selected="true" />
<ns0:select idref="service_ip6tables_enabled" selected="true" />
<ns0:select idref="service_iptables_enabled" selected="true" />
<ns0:select idref="sshd_disable_root_login" selected="true" />
<ns0:select idref="umask_for_daemons" selected="true" />
<ns0:select idref="userowner_shadow_file" selected="true" />
<ns0:select idref="groupowner_shadow_file" selected="true" />
<ns0:select idref="file_permissions_etc_shadow" selected="true" />
<ns0:select idref="file_owner_etc_group" selected="true" />
<ns0:select idref="file_groupowner_etc_group" selected="true" />
<ns0:select idref="file_permissions_etc_group" selected="true" />
<ns0:select idref="file_owner_etc_gshadow" selected="true" />
<ns0:select idref="file_groupowner_etc_gshadow" selected="true" />
<ns0:select idref="file_permissions_etc_gshadow" selected="true" />
<ns0:select idref="file_owner_etc_passwd" selected="true" />
<ns0:select idref="file_groupowner_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_etc_passwd" selected="true" />
<ns0:select idref="file_permissions_library_dirs" selected="true" />
<ns0:select idref="file_ownership_library_dirs" selected="true" />
<ns0:select idref="file_permissions_binary_dirs" selected="true" />
<ns0:select idref="file_ownership_binary_dirs" selected="true" />
<ns0:select idref="dir_perms_world_writable_sticky_bits" selected="true" />
<ns0:select idref="file_permissions_unauthorized_world_writable" selected="true" />
<ns0:select idref="no_files_unowned_by_user" selected="true" />
<ns0:select idref="file_permissions_ungroupowned" selected="true" />
<ns0:select idref="dir_perms_world_writable_system_owned" selected="true" />
<ns0:select idref="selinux_confinement_of_daemons" selected="true" />
<ns0:select idref="selinux_all_devicefiles_labeled" selected="true" />
<ns0:select idref="rsyslog_files_ownership" selected="true" />
<ns0:select idref="rsyslog_files_groupownership" selected="true" />
<ns0:select idref="file_permissions_var_log_audit" selected="true" />
<ns0:select idref="file_ownership_var_log_audit" selected="true" />
<ns0:select idref="audit_rules_immutable" selected="true" />
<ns0:select idref="accounts_no_uid_except_zero" selected="true" />
<ns0:select idref="rpm_verify_permissions" selected="true" />
<ns0:select idref="securetty_root_login_console_only" selected="true" />
<ns0:select idref="restrict_serial_port_logins" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_deny" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_interval" selected="true" />
<ns0:select idref="accounts_passwords_pam_faillock_unlock_time" selected="true" />
<ns0:select idref="banner_etc_issue" selected="true" />
<ns0:select idref="accounts_max_concurrent_login_sessions" selected="true" />
<ns0:select idref="package_screen_installed" selected="true" />
<ns0:select idref="service_auditd_enabled" selected="true" />
<ns0:select idref="bootloader_audit_argument" selected="true" />
<ns0:select idref="audit_rules_time_adjtimex" selected="true" />
<ns0:select idref="audit_rules_time_settimeofday" selected="true" />
<ns0:select idref="audit_rules_time_stime" selected="true" />
<ns0:select idref="audit_rules_time_clock_settime" selected="true" />
<ns0:select idref="audit_rules_time_watch_localtime" selected="true" />
<ns0:select idref="audit_rules_networkconfig_modification" selected="true" />
<ns0:select idref="audit_rules_mac_modification" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_chown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmod" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchmodat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fchownat" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_fsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lchown" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lremovexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_lsetxattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_removexattr" selected="true" />
<ns0:select idref="audit_rules_dac_modification_setxattr" selected="true" />
<ns0:select idref="audit_rules_login_events" selected="true" />
<ns0:select idref="audit_rules_session_events" selected="true" />
<ns0:select idref="audit_rules_unsuccessful_file_modification" selected="true" />
<ns0:select idref="audit_rules_privileged_commands" selected="true" />
<ns0:select idref="audit_rules_media_export" selected="true" />
<ns0:select idref="audit_rules_file_deletion_events" selected="true" />
<ns0:select idref="audit_rules_kernel_module_loading" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_log_martians" selected="true" />
<ns0:select idref="sshd_allow_only_protocol2" selected="true" />
<ns0:select idref="service_xinetd_disabled" selected="true" />
<ns0:select idref="package_xinetd_removed" selected="true" />
<ns0:select idref="service_telnetd_disabled" selected="true" />
<ns0:select idref="package_telnet-server_removed" selected="true" />
<ns0:select idref="package_rsh_removed" selected="true" />
<ns0:select idref="service_rexec_disabled" selected="true" />
<ns0:select idref="service_rsh_disabled" selected="true" />
<ns0:select idref="service_rlogin_disabled" selected="true" />
<ns0:select idref="no_rsh_trust_files" selected="true" />
<ns0:select idref="package_ypserv_removed" selected="true" />
<ns0:select idref="service_ypbind_disabled" selected="true" />
<ns0:select idref="service_tftp_disabled" selected="true" />
<ns0:select idref="package_tftp-server_removed" selected="true" />
<ns0:select idref="tftpd_uses_secure_mode" selected="true" />
<ns0:select idref="service_abrtd_disabled" selected="true" />
<ns0:select idref="service_kdump_disabled" selected="true" />
<ns0:select idref="service_netconsole_disabled" selected="true" />
<ns0:select idref="service_ntpdate_disabled" selected="true" />
<ns0:select idref="service_portreserve_disabled" selected="true" />
<ns0:select idref="service_qpidd_disabled" selected="true" />
<ns0:select idref="service_rdisc_disabled" selected="true" />
<ns0:select idref="service_rhnsd_disabled" selected="true" />
<ns0:select idref="service_saslauthd_disabled" selected="true" />
<ns0:select idref="wireless_disable_in_bios" selected="true" />
<ns0:select idref="wireless_disable_interfaces" selected="true" />
<ns0:select idref="service_bluetooth_disabled" selected="true" />
<ns0:select idref="kernel_module_bluetooth_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_removable_partitions" selected="true" />
<ns0:select idref="mount_option_noexec_removable_partitions" selected="true" />
<ns0:select idref="mount_option_nosuid_removable_partitions" selected="true" />
<ns0:select idref="kernel_module_usb-storage_disabled" selected="true" />
<ns0:select idref="bootloader_nousb_argument" selected="true" />
<ns0:select idref="bios_disable_usb_boot" selected="true" />
<ns0:select idref="service_autofs_disabled" selected="true" />
<ns0:select idref="auditd_data_retention_num_logs" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file" selected="true" />
<ns0:select idref="auditd_data_retention_max_log_file_action" selected="true" />
<ns0:select idref="auditd_data_retention_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_admin_space_left_action" selected="true" />
<ns0:select idref="auditd_data_retention_action_mail_acct" selected="true" />
<ns0:select idref="auditd_audispd_syslog_plugin_activated" selected="true" />
<ns0:select idref="partition_for_var_log_audit" selected="true" />
<ns0:select idref="service_ntpd_enabled" selected="true" />
<ns0:select idref="ntpd_specify_remote_server" selected="true" />
<ns0:select idref="ntpd_specify_multiple_servers" selected="true" />
<ns0:select idref="package_rsyslog_installed" selected="true" />
<ns0:select idref="rsyslog_nolisten" selected="true" />
<ns0:select idref="ensure_logrotate_activated" selected="true" />
<ns0:select idref="partition_for_var_log" selected="true" />
<ns0:select idref="package_aide_installed" selected="true" />
<ns0:select idref="aide_build_database" selected="true" />
<ns0:select idref="aide_periodic_cron_checking" selected="true" />
<ns0:select idref="service_acpid_disabled" selected="true" />
<ns0:select idref="service_certmonger_disabled" selected="true" />
<ns0:select idref="service_cgconfig_disabled" selected="true" />
<ns0:select idref="service_cgred_disabled" selected="true" />
<ns0:select idref="service_cpuspeed_disabled" selected="true" />
<ns0:select idref="service_haldaemon_disabled" selected="true" />
<ns0:select idref="service_irqbalance_enabled" selected="true" />
<ns0:select idref="service_mdmonitor_disabled" selected="true" />
<ns0:select idref="service_messagebus_disabled" selected="true" />
<ns0:select idref="service_oddjobd_disabled" selected="true" />
<ns0:select idref="service_quota_nld_disabled" selected="true" />
<ns0:select idref="service_rhsmcertd_disabled" selected="true" />
<ns0:select idref="service_smartd_disabled" selected="true" />
<ns0:select idref="service_sysstat_disabled" selected="true" />
<ns0:select idref="service_crond_enabled" selected="true" />
<ns0:select idref="service_atd_disabled" selected="true" />
<ns0:select idref="service_avahi-daemon_disabled" selected="true" />
<ns0:select idref="mount_option_nodev_nonroot_local_partitions" selected="true" />
<ns0:select idref="mount_option_tmp_nodev" selected="true" />
<ns0:select idref="mount_option_tmp_noexec" selected="true" />
<ns0:select idref="mount_option_tmp_nosuid" selected="true" />
<ns0:select idref="mount_option_dev_shm_nodev" selected="true" />
<ns0:select idref="mount_option_dev_shm_noexec" selected="true" />
<ns0:select idref="mount_option_dev_shm_nosuid" selected="true" />
<ns0:select idref="mount_option_var_tmp_bind" selected="true" />
<ns0:select idref="kernel_module_cramfs_disabled" selected="true" />
<ns0:select idref="kernel_module_freevxfs_disabled" selected="true" />
<ns0:select idref="kernel_module_jffs2_disabled" selected="true" />
<ns0:select idref="kernel_module_hfs_disabled" selected="true" />
<ns0:select idref="kernel_module_hfsplus_disabled" selected="true" />
<ns0:select idref="kernel_module_squashfs_disabled" selected="true" />
<ns0:select idref="kernel_module_udf_disabled" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_send_redirects" selected="true" />
<ns0:select idref="sysctl_net_ipv4_ip_forward" selected="true" />
<ns0:select idref="sysctl_net_ipv4_conf_all_accept_source_route" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="true" />
<ns0:select idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="true" />
<ns0:select idref="set_ip6tables_default_rule" selected="true" />
<ns0:select idref="set_iptables_default_rule" selected="true" />
<ns0:select idref="set_iptables_default_rule_forward" selected="true" />
<ns0:select idref="kernel_module_dccp_disabled" selected="true" />
<ns0:select idref="kernel_module_sctp_disabled" selected="true" />
<ns0:select idref="kernel_module_rds_disabled" selected="true" />
<ns0:select idref="kernel_module_tipc_disabled" selected="true" />
<ns0:select idref="network_disable_zeroconf" selected="true" />
<ns0:select idref="network_sniffer_disabled" selected="true" />
<ns0:select idref="kernel_module_ipv6_option_disabled" selected="true" />
<ns0:select idref="network_ipv6_disable_rpc" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_ra" selected="true" />
<ns0:select idref="sysctl_net_ipv6_conf_default_accept_redirects" selected="true" />
<ns0:select idref="bootloader_password" selected="true" />
<ns0:select idref="accounts_password_pam_retry" selected="true" />
<ns0:select idref="accounts_password_pam_maxrepeat" selected="true" />
<ns0:select idref="accounts_password_pam_ucredit" selected="true" />
<ns0:select idref="accounts_password_pam_ocredit" selected="true" />
<ns0:select idref="accounts_password_pam_lcredit" selected="true" />
<ns0:select idref="accounts_password_pam_unix_remember" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_systemauth" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_logindefs" selected="true" />
<ns0:select idref="set_password_hashing_algorithm_libuserconf" selected="true" />
<ns0:select idref="no_empty_passwords" selected="true" />
<ns0:select idref="accounts_password_all_shadowed" selected="true" />
<ns0:select idref="no_netrc_files" selected="true" />
<ns0:select idref="accounts_password_minlen_login_defs" selected="true" />
<ns0:select idref="accounts_minimum_age_login_defs" selected="true" />
<ns0:select idref="accounts_maximum_age_login_defs" selected="true" />
<ns0:select idref="accounts_password_warn_age_login_defs" selected="true" />
<ns0:select idref="require_singleuser_auth" selected="true" />
<ns0:select idref="accounts_password_pam_difok" selected="true" />
<ns0:select idref="remediation_functions" selected="false" />
<ns0:select idref="intro" selected="false" />
<ns0:select idref="general-principles" selected="false" />
<ns0:select idref="principle-encrypt-transmitted-data" selected="false" />
<ns0:select idref="principle-minimize-software" selected="false" />
<ns0:select idref="principle-separate-servers" selected="false" />
<ns0:select idref="principle-use-security-tools" selected="false" />
<ns0:select idref="principle-least-privilege" selected="false" />
<ns0:select idref="how-to-use" selected="false" />
<ns0:select idref="intro-read-sections-completely" selected="false" />
<ns0:select idref="intro-test-non-production" selected="false" />
<ns0:select idref="intro-root-shell-assumed" selected="false" />
<ns0:select idref="intro-formatting-conventions" selected="false" />
<ns0:select idref="intro-reboot-required" selected="false" />
<ns0:select idref="entropy" selected="false" />
<ns0:select idref="updating" selected="false" />
<ns0:select idref="additional_security_software" selected="false" />
<ns0:select idref="fips" selected="false" />
<ns0:select idref="certified-vendor" selected="false" />
<ns0:select idref="gnome" selected="false" />
<ns0:select idref="gnome_login_screen" selected="false" />
<ns0:select idref="gnome_screen_locking" selected="false" />
<ns0:select idref="gnome_system_settings" selected="false" />
<ns0:select idref="gnome_network_settings" selected="false" />
<ns0:select idref="gnome_remote_access_settings" selected="false" />
<ns0:select idref="gnome_media_settings" selected="false" />
<ns0:select idref="coredumps" selected="false" />
<ns0:select idref="enable_execshield_settings" selected="false" />
<ns0:select idref="enable_nx" selected="false" />
<ns0:select idref="root_paths" selected="false" />
<ns0:select idref="user_umask" selected="false" />
<ns0:select idref="smart_card_login" selected="false" />
<ns0:select idref="gui_login_banner" selected="false" />
<ns0:select idref="network_disable_unused_interfaces" selected="false" />
<ns0:select idref="network_ipv6_limit_requests" selected="false" />
<ns0:select idref="iptables_icmp_disabled" selected="false" />
<ns0:select idref="iptables_log_and_drop_suspicious" selected="false" />
<ns0:select idref="network_ssl" selected="false" />
<ns0:select idref="network-ipsec" selected="false" />
<ns0:select idref="rsyslog_sending_messages" selected="false" />
<ns0:select idref="configure_logwatch_on_logserver" selected="false" />
<ns0:select idref="talk" selected="false" />
<ns0:select idref="restrict_at_cron_users" selected="false" />
<ns0:select idref="sshd_strengthen_firewall" selected="false" />
<ns0:select idref="sssd" selected="false" />
<ns0:select idref="xwindows" selected="false" />
<ns0:select idref="disabling_xwindows" selected="false" />
<ns0:select idref="avahi_configuration" selected="false" />
<ns0:select idref="printing" selected="false" />
<ns0:select idref="configure_printing" selected="false" />
<ns0:select idref="dhcp" selected="false" />
<ns0:select idref="disabling_dhcp_server" selected="false" />
<ns0:select idref="dhcp_server_configuration" selected="false" />
<ns0:select idref="disabling_dhcp_client" selected="false" />
<ns0:select idref="dhcp_client_configuration" selected="false" />
<ns0:select idref="mail" selected="false" />
<ns0:select idref="postfix_client" selected="false" />
<ns0:select idref="postfix_harden_os" selected="false" />
<ns0:select idref="postfix_configure_ssl_certs" selected="false" />
<ns0:select idref="postfix_install_ssl_cert" selected="false" />
<ns0:select idref="postfix_server_configuration" selected="false" />
<ns0:select idref="postfix_server_denial_of_service" selected="false" />
<ns0:select idref="postfix_server_mail_relay" selected="false" />
<ns0:select idref="postfix_server_mail_relay_set_trusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_relay_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_smtpd_recipient_restrictions" selected="false" />
<ns0:select idref="postfix_server_mail_relay_smtp_auth_for_untrusted_networks" selected="false" />
<ns0:select idref="postfix_server_mail_relay_require_tls_for_smtp_auth" selected="false" />
<ns0:select idref="ldap" selected="false" />
<ns0:select idref="openldap_client" selected="false" />
<ns0:select idref="openldap_server" selected="false" />
<ns0:select idref="ldap_server_config_certificate_files" selected="false" />
<ns0:select idref="nfs_and_rpc" selected="false" />
<ns0:select idref="disabling_nfs" selected="false" />
<ns0:select idref="disabling_nfs_services" selected="false" />
<ns0:select idref="disabling_netfs" selected="false" />
<ns0:select idref="nfs_configuring_all_machines" selected="false" />
<ns0:select idref="nfs_client_or_server_not_both" selected="false" />
<ns0:select idref="nfs_configure_fixed_ports" selected="false" />
<ns0:select idref="nfs_configuring_clients" selected="false" />
<ns0:select idref="disabling_nfsd" selected="false" />
<ns0:select idref="mounting_remote_filesystems" selected="false" />
<ns0:select idref="nfs_configuring_servers" selected="false" />
<ns0:select idref="configure_exports_restrictively" selected="false" />
<ns0:select idref="use_acl_enforce_auth_restrictions" selected="false" />
<ns0:select idref="export_filesystems_read_only" selected="false" />
<ns0:select idref="dns" selected="false" />
<ns0:select idref="disabling_dns_server" selected="false" />
<ns0:select idref="dns_server_isolation" selected="false" />
<ns0:select idref="dns_server_dedicated" selected="false" />
<ns0:select idref="dns_server_chroot" selected="false" />
<ns0:select idref="dns_server_protection" selected="false" />
<ns0:select idref="dns_server_separate_internal_external" selected="false" />
<ns0:select idref="dns_server_partition_with_views" selected="false" />
<ns0:select idref="ftp" selected="false" />
<ns0:select idref="disabling_vsftpd" selected="false" />
<ns0:select idref="ftp_use_vsftpd" selected="false" />
<ns0:select idref="ftp_configure_vsftpd" selected="false" />
<ns0:select idref="ftp_restrict_users" selected="false" />
<ns0:select idref="http" selected="false" />
<ns0:select idref="disabling_httpd" selected="false" />
<ns0:select idref="installing_httpd" selected="false" />
<ns0:select idref="httpd_minimal_modules_installed" selected="false" />
<ns0:select idref="securing_httpd" selected="false" />
<ns0:select idref="httpd_restrict_info_leakage" selected="false" />
<ns0:select idref="httpd_minimize_loadable_modules" selected="false" />
<ns0:select idref="httpd_core_modules" selected="false" />
<ns0:select idref="httpd_basic_authentication" selected="false" />
<ns0:select idref="httpd_optional_components" selected="false" />
<ns0:select idref="httpd_minimize_config_files_included" selected="false" />
<ns0:select idref="httpd_directory_restrictions" selected="false" />
<ns0:select idref="httpd_modules_improve_security" selected="false" />
<ns0:select idref="httpd_deploy_mod_ssl" selected="false" />
<ns0:select idref="httpd_deploy_mod_security" selected="false" />
<ns0:select idref="httpd_use_dos_protection_modules" selected="false" />
<ns0:select idref="httpd_configure_php_securely" selected="false" />
<ns0:select idref="httpd_configure_os_protect_web_server" selected="false" />
<ns0:select idref="httpd_restrict_file_dir_access" selected="false" />
<ns0:select idref="httpd_configure_iptables" selected="false" />
<ns0:select idref="httpd_chroot" selected="false" />
<ns0:select idref="imap" selected="false" />
<ns0:select idref="disabling_dovecot" selected="false" />
<ns0:select idref="configure_dovecot" selected="false" />
<ns0:select idref="dovecot_support_necessary_protocols" selected="false" />
<ns0:select idref="dovecot_enabling_ssl" selected="false" />
<ns0:select idref="dovecot_allow_imap_access" selected="false" />
<ns0:select idref="smb" selected="false" />
<ns0:select idref="disabling_samba" selected="false" />
<ns0:select idref="configuring_samba" selected="false" />
<ns0:select idref="smb_restrict_file_sharing" selected="false" />
<ns0:select idref="smb_disable_printing" selected="false" />
<ns0:select idref="proxy" selected="false" />
<ns0:select idref="disabling_squid" selected="false" />
<ns0:select idref="snmp" selected="false" />
<ns0:select idref="disabling_snmp_service" selected="false" />
<ns0:select idref="snmp_configure_server" selected="false" />
<ns0:select idref="srg_support" selected="false" />
<ns0:refine-value idref="var_account_disable_post_pw_expiration" selector="90" />
<ns0:refine-value idref="var_umask_for_daemons" selector="022" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_deny" selector="3" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_fail_interval" selector="900" />
<ns0:refine-value idref="var_accounts_passwords_pam_faillock_unlock_time" selector="604800" />
<ns0:refine-value idref="login_banner_text" selector="usgcb_default" />
<ns0:refine-value idref="var_accounts_max_concurrent_login_sessions" selector="1" />
<ns0:refine-value idref="sysctl_net_ipv4_conf_all_log_martians_value" selector="0" />
<ns0:refine-value idref="var_auditd_admin_space_left_action" selector="halt" />
<ns0:refine-value idref="var_password_pam_unix_remember" selector="24" />
<ns0:refine-value idref="var_accounts_password_minlen_login_defs" selector="12" />
<ns0:refine-value idref="var_password_pam_difok" selector="1" />
</ns0:Profile>
<ns0:Group id="remediation_functions">
<ns0:title xml:lang="en-US">Remediation functions used by the SCAP Security Guide Project</ns0:title>
<ns0:description xml:lang="en-US">XCCDF form of the various remediation functions as used by
remediation scripts from the SCAP Security Guide Project</ns0:description>
<ns0:Value hidden="true" id="function_fix_audit_syscall_rule" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to fix syscall audit rule for given system call</ns0:title>
<ns0:description xml:lang="en-US">Function to fix syscall audit rule for given system call. It is
based on example audit syscall rule definitions as outlined in
/usr/share/doc/audit-2.3.7/stig.rules file provided with the audit package. It
will combine multiple system calls belonging to the same syscall group into one
audit rule (rather than to create audit rule per different system call) to
avoid audit infrastructure performance penalty in the case of
'one-audit-rule-definition-per-one-system-call'. See:
https://www.redhat.com/archives/linux-audit/2014-November/msg00009.html
for further details.
Expects five arguments (each of them is required) in the form of:
* audit tool tool used to load audit rules,
either 'auditctl', or 'augenrules
* audit rules' pattern audit rule skeleton for same syscall
* syscall group greatest common string this rule shares
with other rules from the same group
* architecture architecture this rule is intended for
* full form of new rule to add expected full form of audit rule as to
be added into audit.rules file
Note: The 2-th up to 4-th arguments are used to determine how many existing
audit rules will be inspected for resemblance with the new audit rule
(5-th argument) the function is going to add. The rule's similarity check
is performed to optimize audit.rules definition (merge syscalls of the same
group into one rule) to avoid the "single-syscall-per-audit-rule" performance
penalty.
Example call:
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k delete"
# Use escaped BRE regex to specify rule group
GROUP="\(rmdir\|unlink\|rename\)"
FULL_RULE="-a always,exit -F arch=$ARCH -S rmdir -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295 -k delete"
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
</ns0:description>
<ns0:value>
function fix_audit_syscall_rule {
# Load function arguments into local variables
local tool="$1"
local pattern="$2"
local group="$3"
local arch="$4"
local full_rule="$5"
# Check sanity of the input
if [ $# -ne "5" ]
then
echo "Usage: fix_audit_syscall_rule 'tool' 'pattern' 'group' 'arch' 'full rule'"
echo "Aborting."
exit 1
fi
# Create a list of audit *.rules files that should be inspected for presence and correctness
# of a particular audit rule. The scheme is as follows:
#
# -----------------------------------------------------------------------------------------
# Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
# -----------------------------------------------------------------------------------------
# auditctl | Doesn't matter | /etc/audit/audit.rules |
# -----------------------------------------------------------------------------------------
# augenrules | Yes | /etc/audit/rules.d/*.rules |
# augenrules | No | /etc/audit/rules.d/$key.rules |
# -----------------------------------------------------------------------------------------
#
declare -a files_to_inspect
# First check sanity of the specified audit tool
if [ "$tool" != 'auditctl' ] && [ "$tool" != 'augenrules' ]
then
echo "Unknown audit rules loading tool: $1. Aborting."
echo "Use either 'auditctl' or 'augenrules'!"
exit 1
# If audit tool is 'auditctl', then add '/etc/audit/audit.rules'
# file to the list of files to be inspected
elif [ "$tool" == 'auditctl' ]
then
files_to_inspect=("${files_to_inspect[@]}" '/etc/audit/audit.rules' )
# If audit tool is 'augenrules', then check if the audit rule is defined
# If rule is defined, add '/etc/audit/rules.d/*.rules' to the list for inspection
# If rule isn't defined yet, add '/etc/audit/rules.d/$key.rules' to the list for inspection
elif [ "$tool" == 'augenrules' ]
then
# Extract audit $key from audit rule so we can use it later
key=$(expr "$full_rule" : '.*-k[[:space:]]\([^[:space:]]\+\)')
# Check if particular audit rule is already defined
IFS=$'\n' matches=($(sed -s -n -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d;F" /etc/audit/rules.d/*.rules))
# Reset IFS back to default
unset $IFS
for match in "${matches[@]}"
do
files_to_inspect=("${files_to_inspect[@]}" "${match}")
done
# Case when particular rule isn't defined in /etc/audit/rules.d/*.rules yet
if [ ${#files_to_inspect[@]} -eq "0" ]
then
files_to_inspect="/etc/audit/rules.d/$key.rules"
if [ ! -e "$files_to_inspect" ]
then
touch "$files_to_inspect"
chmod 0640 "$files_to_inspect"
fi
fi
fi
#
# Indicator that we want to append $full_rule into $audit_file by default
local append_expected_rule=0
for audit_file in "${files_to_inspect[@]}"
do
# Filter existing $audit_file rules' definitions to select those that:
# * follow the rule pattern, and
# * meet the hardware architecture requirement, and
# * are current syscall group specific
IFS=$'\n' existing_rules=($(sed -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d" "$audit_file"))
# Reset IFS back to default
unset $IFS
# Process rules found case-by-case
for rule in "${existing_rules[@]}"
do
# Found rule is for same arch & key, but differs (e.g. in count of -S arguments)
if [ "${rule}" != "${full_rule}" ]
then
# If so, isolate just '(-S \w)+' substring of that rule
rule_syscalls=$(echo $rule | grep -o -P '(-S \w+ )+')
# Check if list of '-S syscall' arguments of that rule is subset
# of '-S syscall' list of expected $full_rule
if grep -q -- "$rule_syscalls" <<< "$full_rule"
then
# Rule is covered (i.e. the list of -S syscalls for this rule is
# subset of -S syscalls of $full_rule => existing rule can be deleted
# Thus delete the rule from audit.rules & our array
sed -i -e "/$rule/d" "$audit_file"
existing_rules=("${existing_rules[@]//$rule/}")
else
# Rule isn't covered by $full_rule - it besides -S syscall arguments
# for this group contains also -S syscall arguments for other syscall
# group. Example: '-S lchown -S fchmod -S fchownat' => group='chown'
# since 'lchown' & 'fchownat' share 'chown' substring
# Therefore:
# * 1) delete the original rule from audit.rules
# (original '-S lchown -S fchmod -S fchownat' rule would be deleted)
# * 2) delete the -S syscall arguments for this syscall group, but
# keep those not belonging to this syscall group
# (original '-S lchown -S fchmod -S fchownat' would become '-S fchmod'
# * 3) append the modified (filtered) rule again into audit.rules
# if the same rule not already present
#
# 1) Delete the original rule
sed -i -e "/$rule/d" "$audit_file"
# 2) Delete syscalls for this group, but keep those from other groups
# Convert current rule syscall's string into array splitting by '-S' delimiter
IFS=$'-S' read -a rule_syscalls_as_array <<< "$rule_syscalls"
# Reset IFS back to default
unset $IFS
# Declare new empty string to hold '-S syscall' arguments from other groups
new_syscalls_for_rule=''
# Walk through existing '-S syscall' arguments
for syscall_arg in "${rule_syscalls_as_array[@]}"
do
# Skip empty $syscall_arg values
if [ "$syscall_arg" == '' ]
then
continue
fi
# If the '-S syscall' doesn't belong to current group add it to the new list
# (together with adding '-S' delimiter back for each of such item found)
if grep -q -v -- "$group" <<< "$syscall_arg"
then
new_syscalls_for_rule="$new_syscalls_for_rule -S $syscall_arg"
fi
done
# Replace original '-S syscall' list with the new one for this rule
updated_rule=${rule//$rule_syscalls/$new_syscalls_for_rule}
# Squeeze repeated whitespace characters in rule definition (if any) into one
updated_rule=$(echo "$updated_rule" | tr -s '[:space:]')
# 3) Append the modified / filtered rule again into audit.rules
# (but only in case it's not present yet to prevent duplicate definitions)
if ! grep -q -- "$updated_rule" "$audit_file"
then
echo "$updated_rule" >> "$audit_file"
fi
fi
else
# $audit_file already contains the expected rule form for this
# architecture & key => don't insert it second time
append_expected_rule=1
fi
done
# We deleted all rules that were subset of the expected one for this arch & key.
# Also isolated rules containing system calls not from this system calls group.
# Now append the expected rule if it's not present in $audit_file yet
if [[ ${append_expected_rule} -eq "0" ]]
then
echo "$full_rule" >> "$audit_file"
fi
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_fix_audit_watch_rule" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to fix audit file system object watch rule for given path</ns0:title>
<ns0:description xml:lang="en-US">Function to fix audit file system object watch rule for given path:
* if rule exists, also verifies the -w bits match the requirements
* if rule doesn't exist yet, appends expected rule form to $files_to_inspect
audit rules file, depending on the tool which was used to load audit rules
Expects four arguments (each of them is required) in the form of:
* audit tool tool used to load audit rules,
either 'auditctl', or 'augenrules'
* path value of -w audit rule's argument
* required access bits value of -p audit rule's argument
* key value of -k audit rule's argument
Example call:
fix_audit_watch_rule "auditctl" "/etc/localtime" "wa" "audit_time_rules"
</ns0:description>
<ns0:value>
function fix_audit_watch_rule {
# Load function arguments into local variables
local tool="$1"
local path="$2"
local required_access_bits="$3"
local key="$4"
# Check sanity of the input
if [ $# -ne "4" ]
then
echo "Usage: fix_audit_watch_rule 'tool' 'path' 'bits' 'key'"
echo "Aborting."
exit 1
fi
# Create a list of audit *.rules files that should be inspected for presence and correctness
# of a particular audit rule. The scheme is as follows:
#
# -----------------------------------------------------------------------------------------
# Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
# -----------------------------------------------------------------------------------------
# auditctl | Doesn't matter | /etc/audit/audit.rules |
# -----------------------------------------------------------------------------------------
# augenrules | Yes | /etc/audit/rules.d/*.rules |
# augenrules | No | /etc/audit/rules.d/$key.rules |
# -----------------------------------------------------------------------------------------
declare -a files_to_inspect
# Check sanity of the specified audit tool
if [ "$tool" != 'auditctl' ] && [ "$tool" != 'augenrules' ]
then
echo "Unknown audit rules loading tool: $1. Aborting."
echo "Use either 'auditctl' or 'augenrules'!"
exit 1
# If the audit tool is 'auditctl', then add '/etc/audit/audit.rules'
# into the list of files to be inspected
elif [ "$tool" == 'auditctl' ]
then
files_to_inspect=("${files_to_inspect[@]}" '/etc/audit/audit.rules')
# If the audit is 'augenrules', then check if rule is already defined
# If rule is defined, add '/etc/audit/rules.d/*.rules' to list of files for inspection.
# If rule isn't defined, add '/etc/audit/rules.d/$key.rules' to list of files for inspection.
elif [ "$tool" == 'augenrules' ]
then
# Case when particular audit rule is already defined in some of /etc/audit/rules.d/*.rules file
# Get pair -- filepath : matching_row into @matches array
IFS=$'\n' matches=($(grep -P "[\s]*-w[\s]+$path" /etc/audit/rules.d/*.rules))
# Reset IFS back to default
unset $IFS
# For each of the matched entries
for match in "${matches[@]}"
do
# Extract filepath from the match
rulesd_audit_file=$(echo $match | cut -f1 -d ':')
# Append that path into list of files for inspection
files_to_inspect=("${files_to_inspect[@]}" "$rulesd_audit_file")
done
# Case when particular audit rule isn't defined yet
if [ ${#files_to_inspect[@]} -eq "0" ]
then
# Append '/etc/audit/rules.d/$key.rules' into list of files for inspection
files_to_inspect="/etc/audit/rules.d/$key.rules"
# If the $key.rules file doesn't exist yet, create it with correct permissions
if [ ! -e "$files_to_inspect" ]
then
touch "$files_to_inspect"
chmod 0640 "$files_to_inspect"
fi
fi
fi
# Finally perform the inspection and possible subsequent audit rule
# correction for each of the files previously identified for inspection
for audit_rules_file in "${files_to_inspect[@]}"
do
# Check if audit watch file system object rule for given path already present
if grep -q -P -- "[\s]*-w[\s]+$path" "$audit_rules_file"
then
# Rule is found => verify yet if existing rule definition contains
# all of the required access type bits
# Escape slashes in path for use in sed pattern below
local esc_path=${path//$'/'/$'\/'}
# Define BRE whitespace class shortcut
local sp="[[:space:]]"
# Extract current permission access types (e.g. -p [r|w|x|a] values) from audit rule
current_access_bits=$(sed -ne "s/$sp*-w$sp\+$esc_path$sp\+-p$sp\+\([rxwa]\{1,4\}\).*/\1/p" "$audit_rules_file")
# Split required access bits string into characters array
# (to check bit's presence for one bit at a time)
for access_bit in $(echo "$required_access_bits" | grep -o .)
do
# For each from the required access bits (e.g. 'w', 'a') check
# if they are already present in current access bits for rule.
# If not, append that bit at the end
if ! grep -q "$access_bit" <<< "$current_access_bits"
then
# Concatenate the existing mask with the missing bit
current_access_bits="$current_access_bits$access_bit"
fi
done
# Propagate the updated rule's access bits (original + the required
# ones) back into the /etc/audit/audit.rules file for that rule
sed -i "s/\($sp*-w$sp\+$esc_path$sp\+-p$sp\+\)\([rxwa]\{1,4\}\)\(.*\)/\1$current_access_bits\3/" "$audit_rules_file"
else
# Rule isn't present yet. Append it at the end of $audit_rules_file file
# with proper key
echo "-w $path -p $required_access_bits -k $key" >> "$audit_rules_file"
fi
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_package_command" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to to install or uninstall packages on RHEL and Fedora systems</ns0:title>
<ns0:description xml:lang="en-US">Function to install or uninstall packages on RHEL and Fedora systems.
Example Call(s):
package_command install aide
package_command remove telnet-server
</ns0:description>
<ns0:value>
function package_command {
# Load function arguments into local variables
local package_operation=$1
local package=$2
# Check sanity of the input
if [ $# -ne "2" ]
then
echo "Usage: package_command 'install/uninstall' 'rpm_package_name"
echo "Aborting."
exit 1
fi
# If dnf is installed, use dnf; otherwise, use yum
if [ -f "/usr/bin/dnf" ] ; then
install_util="/usr/bin/dnf"
else
install_util="/usr/bin/yum"
fi
if [ "$package_operation" != 'remove' ] ; then
# If the rpm is not installed, install the rpm
if ! /bin/rpm -q --quiet $package; then
$install_util -y $package_operation $package
fi
else
# If the rpm is installed, uninstall the rpm
if /bin/rpm -q --quiet $package; then
$install_util -y $package_operation $package
fi
fi
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_service_command" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to enable/disable and start/stop services on RHEL
and Fedora systems</ns0:title>
<ns0:description xml:lang="en-US">Function to enable/disable and start/stop services on RHEL and
Fedora systems.
Example Call(s):
service_command enable bluetooth
service_command disable bluetooth.service
Using xinetd:
service_command disable rsh.socket xinetd=rsh
</ns0:description>
<ns0:value>
function service_command {
# Load function arguments into local variables
local service_state=$1
local service=$2
local xinetd=$(echo $3 | cut -d'=' -f2)
# Check sanity of the input
if [ $# -lt "2" ]
then
echo "Usage: service_command 'enable/disable' 'service_name.service'"
echo
echo "To enable or disable xinetd services add \'xinetd=service_name\'"
echo "as the last argument"
echo "Aborting."
exit 1
fi
# If systemctl is installed, use systemctl command; otherwise, use the service/chkconfig commands
if [ -f "/usr/bin/systemctl" ] ; then
service_util="/usr/bin/systemctl"
else
service_util="/sbin/service"
chkconfig_util="/sbin/chkconfig"
fi
# If disable is not specified in arg1, set variables to enable services.
# Otherwise, variables are to be set to disable services.
if [ "$service_state" != 'disable' ] ; then
service_state="enable"
service_operation="start"
chkconfig_state="on"
else
service_state="disable"
service_operation="stop"
chkconfig_state="off"
fi
# If chkconfig_util is not empty, use chkconfig/service commands.
if ! [ "x$chkconfig_util" = x ] ; then
$service_util $service $service_operation
$chkconfig_util --level 0123456 $service $chkconfig_state
else
$service_util $service_operation $service
$service_util $service_state $service
fi
# Test if local variable xinetd is empty using non-bashism.
# If empty, then xinetd is not being used.
if ! [ "x$xinetd" = x ] ; then
grep -qi disable /etc/xinetd.d/$xinetd && \
if ! [ "$service_operation" != 'disable' ] ; then
sed -i "s/disable.*/disable = no/gI" /etc/xinetd.d/$xinetd
else
sed -i "s/disable.*/disable = yes/gI" /etc/xinetd.d/$xinetd
fi
fi
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_perform_audit_rules_privileged_commands_remediation" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to perform remediation for 'audit_rules_privileged_commands' rule</ns0:title>
<ns0:description xml:lang="en-US">Function to perform remediation for 'audit_rules_privileged_commands' rule
Expects two arguments:
audit_tool tool used to load audit rules
One of 'auditctl' or 'augenrules'
min_auid Minimum original ID the user logged in with
'500' for RHEL-6 and before, '1000' for RHEL-7 and after.
Example Call(s):
perform_audit_rules_privileged_commands_remediation "auditctl" "500"
perform_audit_rules_privileged_commands_remediation "augenrules" "1000"
</ns0:description>
<ns0:value>
function perform_audit_rules_privileged_commands_remediation {
#
# Load function arguments into local variables
local tool="$1"
local min_auid="$2"
# Check sanity of the input
if [ $# -ne "2" ]
then
echo "Usage: perform_audit_rules_privileged_commands_remediation 'auditctl | augenrules' '500 | 1000'"
echo "Aborting."
exit 1
fi
declare -a files_to_inspect=()
# Check sanity of the specified audit tool
if [ "$tool" != 'auditctl' ] && [ "$tool" != 'augenrules' ]
then
echo "Unknown audit rules loading tool: $1. Aborting."
echo "Use either 'auditctl' or 'augenrules'!"
exit 1
# If the audit tool is 'auditctl', then:
# * add '/etc/audit/audit.rules'to the list of files to be inspected,
# * specify '/etc/audit/audit.rules' as the output audit file, where
# missing rules should be inserted
elif [ "$tool" == 'auditctl' ]
then
files_to_inspect=("/etc/audit/audit.rules")
output_audit_file="/etc/audit/audit.rules"
#
# If the audit tool is 'augenrules', then:
# * add '/etc/audit/rules.d/*.rules' to the list of files to be inspected
# (split by newline),
# * specify /etc/audit/rules.d/privileged.rules' as the output file, where
# missing rules should be inserted
elif [ "$tool" == 'augenrules' ]
then
IFS=$'\n' files_to_inspect=($(find /etc/audit/rules.d -maxdepth 1 -type f -name *.rules -print))
output_audit_file="/etc/audit/rules.d/privileged.rules"
fi
# Obtain the list of SUID/SGID binaries on the particular system (split by newline)
# into privileged_binaries array
IFS=$'\n' privileged_binaries=($(find / -xdev -type f -perm -4000 -o -type f -perm -2000 2>/dev/null))
# Keep list of SUID/SGID binaries that have been already handled within some previous iteration
declare -a sbinaries_to_skip=()
# For each found sbinary in privileged_binaries list
for sbinary in "${privileged_binaries[@]}"
do
# Replace possible slash '/' character in sbinary definition so we could use it in sed expressions below
sbinary_esc=${sbinary//$'/'/$'\/'}
# Check if this sbinary wasn't already handled in some of the previous iterations
# Return match only if whole sbinary definition matched (not in the case just prefix matched!!!)
if [[ $(sed -ne "/${sbinary_esc}$/p" <<< ${sbinaries_to_skip[@]}) ]]
then
# If so, don't process it second time & go to process next sbinary
continue
fi
# Reset the counter of inspected files when starting to check
# presence of existing audit rule for new sbinary
local count_of_inspected_files=0
# For each audit rules file from the list of files to be inspected
for afile in "${files_to_inspect[@]}"
do
# Search current audit rules file's content for match. Match criteria:
# * existing rule is for the same SUID/SGID binary we are currently processing (but
# can contain multiple -F path= elements covering multiple SUID/SGID binaries)
# * existing rule contains all arguments from expected rule form (though can contain
# them in arbitrary order)
base_search=$(sed -e "/-a always,exit/!d" -e "/-F path=${sbinary_esc}$/!d" \
-e "/-F path=[^[:space:]]\+/!d" -e "/-F perm=.*/!d" \
-e "/-F auid>=${min_auid}/!d" -e "/-F auid!=4294967295/!d" \
-e "/-k privileged/!d" $afile)
# Increase the count of inspected files for this sbinary
count_of_inspected_files=$((count_of_inspected_files + 1))
# Define expected rule form for this binary
expected_rule="-a always,exit -F path=${sbinary} -F perm=x -F auid>=${min_auid} -F auid!=4294967295 -k privileged"
# Require execute access type to be set for existing audit rule
exec_access='x'
# Search current audit rules file's content for presence of rule pattern for this sbinary
if [[ $base_search ]]
then
# Current audit rules file already contains rule for this binary =>
# Store the exact form of found rule for this binary for further processing
concrete_rule=$base_search
# Select all other SUID/SGID binaries possibly also present in the found rule
IFS=$'\n' handled_sbinaries=($(grep -o -e "-F path=[^[:space:]]\+" <<< $concrete_rule))
IFS=$' ' handled_sbinaries=(${handled_sbinaries[@]//-F path=/})
# Merge the list of such SUID/SGID binaries found in this iteration with global list ignoring duplicates
sbinaries_to_skip=($(for i in "${sbinaries_to_skip[@]}" "${handled_sbinaries[@]}"; do echo $i; done | sort -du))
# Separate concrete_rule into three sections using hash '#'
# sign as a delimiter around rule's permission section borders
concrete_rule=$(echo $concrete_rule | sed -n "s/\(.*\)\+\(-F perm=[rwax]\+\)\+/\1#\2#/p")
# Split concrete_rule into head, perm, and tail sections using hash '#' delimiter
IFS=$'#' read rule_head rule_perm rule_tail <<< "$concrete_rule"
# Extract already present exact access type [r|w|x|a] from rule's permission section
access_type=${rule_perm//-F perm=/}
# Verify current permission access type(s) for rule contain 'x' (execute) permission
if ! grep -q "$exec_access" <<< "$access_type"
then
# If not, append the 'x' (execute) permission to the existing access type bits
access_type="$access_type$exec_access"
# Reconstruct the permissions section for the rule
new_rule_perm="-F perm=$access_type"
# Update existing rule in current audit rules file with the new permission section
sed -i "s#${rule_head}\(.*\)${rule_tail}#${rule_head}${new_rule_perm}${rule_tail}#" $afile
fi
# If the required audit rule for particular sbinary wasn't found yet, insert it under following conditions:
#
# * in the "auditctl" mode of operation insert particular rule each time
# (because in this mode there's only one file -- /etc/audit/audit.rules to be inspected for presence of this rule),
#
# * in the "augenrules" mode of operation insert particular rule only once and only in case we have already
# searched all of the files from /etc/audit/rules.d/*.rules location (since that audit rule can be defined
# in any of those files and if not, we want it to be inserted only once into /etc/audit/rules.d/privileged.rules file)
#
elif [ "$tool" == "auditctl" ] || [[ "$tool" == "augenrules" && $count_of_inspected_files -eq "${#files_to_inspect[@]}" ]]
then
# Current audit rules file's content doesn't contain expected rule for this
# SUID/SGID binary yet => append it
echo $expected_rule >> $output_audit_file
fi
done
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_populate" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to populate environment variables needed for unit testing</ns0:title>
<ns0:description xml:lang="en-US">The populate function isn't directly used by SSG at the moment but it can
ba used for testing purposes (to verify proper work of the remediation script directly
from the shell).</ns0:description>
<ns0:value>
function populate {
# Code to populate environment variables needed (for unit testing)
if [ -z "${!1}" ]; then
echo "$1 is not defined. Exiting."
exit
fi
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_rhel6_perform_audit_adjtimex_settimeofday_stime_remediation" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function for the 'adjtimex', 'settimeofday', and 'stime'
audit system calls on Red Hat Enterprise Linux 6</ns0:title>
<ns0:description xml:lang="en-US">Perform the remediation for the 'adjtimex', 'settimeofday', and 'stime' audit
# system calls on Red Hat Enterprise Linux 6 OS</ns0:description>
<ns0:value>
function fix_audit_syscall_rule {
# Load function arguments into local variables
local tool="$1"
local pattern="$2"
local group="$3"
local arch="$4"
local full_rule="$5"
# Check sanity of the input
if [ $# -ne "5" ]
then
echo "Usage: fix_audit_syscall_rule 'tool' 'pattern' 'group' 'arch' 'full rule'"
echo "Aborting."
exit 1
fi
# Create a list of audit *.rules files that should be inspected for presence and correctness
# of a particular audit rule. The scheme is as follows:
#
# -----------------------------------------------------------------------------------------
# Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
# -----------------------------------------------------------------------------------------
# auditctl | Doesn't matter | /etc/audit/audit.rules |
# -----------------------------------------------------------------------------------------
# augenrules | Yes | /etc/audit/rules.d/*.rules |
# augenrules | No | /etc/audit/rules.d/$key.rules |
# -----------------------------------------------------------------------------------------
#
declare -a files_to_inspect
# First check sanity of the specified audit tool
if [ "$tool" != 'auditctl' ] && [ "$tool" != 'augenrules' ]
then
echo "Unknown audit rules loading tool: $1. Aborting."
echo "Use either 'auditctl' or 'augenrules'!"
exit 1
# If audit tool is 'auditctl', then add '/etc/audit/audit.rules'
# file to the list of files to be inspected
elif [ "$tool" == 'auditctl' ]
then
files_to_inspect=("${files_to_inspect[@]}" '/etc/audit/audit.rules' )
# If audit tool is 'augenrules', then check if the audit rule is defined
# If rule is defined, add '/etc/audit/rules.d/*.rules' to the list for inspection
# If rule isn't defined yet, add '/etc/audit/rules.d/$key.rules' to the list for inspection
elif [ "$tool" == 'augenrules' ]
then
# Extract audit $key from audit rule so we can use it later
key=$(expr "$full_rule" : '.*-k[[:space:]]\([^[:space:]]\+\)')
# Check if particular audit rule is already defined
IFS=$'\n' matches=($(sed -s -n -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d;F" /etc/audit/rules.d/*.rules))
# Reset IFS back to default
unset $IFS
for match in "${matches[@]}"
do
files_to_inspect=("${files_to_inspect[@]}" "${match}")
done
# Case when particular rule isn't defined in /etc/audit/rules.d/*.rules yet
if [ ${#files_to_inspect[@]} -eq "0" ]
then
files_to_inspect="/etc/audit/rules.d/$key.rules"
if [ ! -e "$files_to_inspect" ]
then
touch "$files_to_inspect"
chmod 0640 "$files_to_inspect"
fi
fi
fi
#
# Indicator that we want to append $full_rule into $audit_file by default
local append_expected_rule=0
for audit_file in "${files_to_inspect[@]}"
do
# Filter existing $audit_file rules' definitions to select those that:
# * follow the rule pattern, and
# * meet the hardware architecture requirement, and
# * are current syscall group specific
IFS=$'\n' existing_rules=($(sed -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d" "$audit_file"))
# Reset IFS back to default
unset $IFS
# Process rules found case-by-case
for rule in "${existing_rules[@]}"
do
# Found rule is for same arch & key, but differs (e.g. in count of -S arguments)
if [ "${rule}" != "${full_rule}" ]
then
# If so, isolate just '(-S \w)+' substring of that rule
rule_syscalls=$(echo $rule | grep -o -P '(-S \w+ )+')
# Check if list of '-S syscall' arguments of that rule is subset
# of '-S syscall' list of expected $full_rule
if grep -q -- "$rule_syscalls" <<< "$full_rule"
then
# Rule is covered (i.e. the list of -S syscalls for this rule is
# subset of -S syscalls of $full_rule => existing rule can be deleted
# Thus delete the rule from audit.rules & our array
sed -i -e "/$rule/d" "$audit_file"
existing_rules=("${existing_rules[@]//$rule/}")
else
# Rule isn't covered by $full_rule - it besides -S syscall arguments
# for this group contains also -S syscall arguments for other syscall
# group. Example: '-S lchown -S fchmod -S fchownat' => group='chown'
# since 'lchown' & 'fchownat' share 'chown' substring
# Therefore:
# * 1) delete the original rule from audit.rules
# (original '-S lchown -S fchmod -S fchownat' rule would be deleted)
# * 2) delete the -S syscall arguments for this syscall group, but
# keep those not belonging to this syscall group
# (original '-S lchown -S fchmod -S fchownat' would become '-S fchmod'
# * 3) append the modified (filtered) rule again into audit.rules
# if the same rule not already present
#
# 1) Delete the original rule
sed -i -e "/$rule/d" "$audit_file"
# 2) Delete syscalls for this group, but keep those from other groups
# Convert current rule syscall's string into array splitting by '-S' delimiter
IFS=$'-S' read -a rule_syscalls_as_array <<< "$rule_syscalls"
# Reset IFS back to default
unset $IFS
# Declare new empty string to hold '-S syscall' arguments from other groups
new_syscalls_for_rule=''
# Walk through existing '-S syscall' arguments
for syscall_arg in "${rule_syscalls_as_array[@]}"
do
# Skip empty $syscall_arg values
if [ "$syscall_arg" == '' ]
then
continue
fi
# If the '-S syscall' doesn't belong to current group add it to the new list
# (together with adding '-S' delimiter back for each of such item found)
if grep -q -v -- "$group" <<< "$syscall_arg"
then
new_syscalls_for_rule="$new_syscalls_for_rule -S $syscall_arg"
fi
done
# Replace original '-S syscall' list with the new one for this rule
updated_rule=${rule//$rule_syscalls/$new_syscalls_for_rule}
# Squeeze repeated whitespace characters in rule definition (if any) into one
updated_rule=$(echo "$updated_rule" | tr -s '[:space:]')
# 3) Append the modified / filtered rule again into audit.rules
# (but only in case it's not present yet to prevent duplicate definitions)
if ! grep -q -- "$updated_rule" "$audit_file"
then
echo "$updated_rule" >> "$audit_file"
fi
fi
else
# $audit_file already contains the expected rule form for this
# architecture & key => don't insert it second time
append_expected_rule=1
fi
done
# We deleted all rules that were subset of the expected one for this arch & key.
# Also isolated rules containing system calls not from this system calls group.
# Now append the expected rule if it's not present in $audit_file yet
if [[ ${append_expected_rule} -eq "0" ]]
then
echo "$full_rule" >> "$audit_file"
fi
done
}
function rhel6_perform_audit_adjtimex_settimeofday_stime_remediation {
# Perform the remediation for the 'adjtimex', 'settimeofday', and 'stime' audit
# system calls on Red Hat Enterprise Linux 6 OS
#
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=${ARCH} -S .* -k *"
# Create expected audit group and audit rule form for particular system call & architecture
if [ ${ARCH} = "b32" ]
then
# stime system call is known at 32-bit arch (see e.g "$ ausyscall i386 stime" 's output)
# so append it to the list of time group system calls to be audited
GROUP="\(adjtimex\|settimeofday\|stime\)"
FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -S stime -k audit_time_rules"
elif [ ${ARCH} = "b64" ]
then
# stime system call isn't known at 64-bit arch (see "$ ausyscall x86_64 stime" 's output)
# therefore don't add it to the list of time group system calls to be audited
GROUP="\(adjtimex\|settimeofday\)"
FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -k audit_time_rules"
fi
# Perform the remediation itself
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_rhel7_fedora_perform_audit_adjtimex_settimeofday_stime_remediation" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function for the 'adjtimex', 'settimeofday', and 'stime'
audit system calls on Red Hat Enterprise Linux 7 or Fedora</ns0:title>
<ns0:description xml:lang="en-US">Perform the remediation for the 'adjtimex', 'settimeofday', and
'stime' audit system calls on Red Hat Enterprise Linux 7 or Fedora OSes</ns0:description>
<ns0:value>
function fix_audit_syscall_rule {
# Load function arguments into local variables
local tool="$1"
local pattern="$2"
local group="$3"
local arch="$4"
local full_rule="$5"
# Check sanity of the input
if [ $# -ne "5" ]
then
echo "Usage: fix_audit_syscall_rule 'tool' 'pattern' 'group' 'arch' 'full rule'"
echo "Aborting."
exit 1
fi
# Create a list of audit *.rules files that should be inspected for presence and correctness
# of a particular audit rule. The scheme is as follows:
#
# -----------------------------------------------------------------------------------------
# Tool used to load audit rules | Rule already defined | Audit rules file to inspect |
# -----------------------------------------------------------------------------------------
# auditctl | Doesn't matter | /etc/audit/audit.rules |
# -----------------------------------------------------------------------------------------
# augenrules | Yes | /etc/audit/rules.d/*.rules |
# augenrules | No | /etc/audit/rules.d/$key.rules |
# -----------------------------------------------------------------------------------------
#
declare -a files_to_inspect
# First check sanity of the specified audit tool
if [ "$tool" != 'auditctl' ] && [ "$tool" != 'augenrules' ]
then
echo "Unknown audit rules loading tool: $1. Aborting."
echo "Use either 'auditctl' or 'augenrules'!"
exit 1
# If audit tool is 'auditctl', then add '/etc/audit/audit.rules'
# file to the list of files to be inspected
elif [ "$tool" == 'auditctl' ]
then
files_to_inspect=("${files_to_inspect[@]}" '/etc/audit/audit.rules' )
# If audit tool is 'augenrules', then check if the audit rule is defined
# If rule is defined, add '/etc/audit/rules.d/*.rules' to the list for inspection
# If rule isn't defined yet, add '/etc/audit/rules.d/$key.rules' to the list for inspection
elif [ "$tool" == 'augenrules' ]
then
# Extract audit $key from audit rule so we can use it later
key=$(expr "$full_rule" : '.*-k[[:space:]]\([^[:space:]]\+\)')
# Check if particular audit rule is already defined
IFS=$'\n' matches=($(sed -s -n -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d;F" /etc/audit/rules.d/*.rules))
# Reset IFS back to default
unset $IFS
for match in "${matches[@]}"
do
files_to_inspect=("${files_to_inspect[@]}" "${match}")
done
# Case when particular rule isn't defined in /etc/audit/rules.d/*.rules yet
if [ ${#files_to_inspect[@]} -eq "0" ]
then
files_to_inspect="/etc/audit/rules.d/$key.rules"
if [ ! -e "$files_to_inspect" ]
then
touch "$files_to_inspect"
chmod 0640 "$files_to_inspect"
fi
fi
fi
#
# Indicator that we want to append $full_rule into $audit_file by default
local append_expected_rule=0
for audit_file in "${files_to_inspect[@]}"
do
# Filter existing $audit_file rules' definitions to select those that:
# * follow the rule pattern, and
# * meet the hardware architecture requirement, and
# * are current syscall group specific
IFS=$'\n' existing_rules=($(sed -e "/${pattern}/!d" -e "/${arch}/!d" -e "/${group}/!d" "$audit_file"))
# Reset IFS back to default
unset $IFS
# Process rules found case-by-case
for rule in "${existing_rules[@]}"
do
# Found rule is for same arch & key, but differs (e.g. in count of -S arguments)
if [ "${rule}" != "${full_rule}" ]
then
# If so, isolate just '(-S \w)+' substring of that rule
rule_syscalls=$(echo $rule | grep -o -P '(-S \w+ )+')
# Check if list of '-S syscall' arguments of that rule is subset
# of '-S syscall' list of expected $full_rule
if grep -q -- "$rule_syscalls" <<< "$full_rule"
then
# Rule is covered (i.e. the list of -S syscalls for this rule is
# subset of -S syscalls of $full_rule => existing rule can be deleted
# Thus delete the rule from audit.rules & our array
sed -i -e "/$rule/d" "$audit_file"
existing_rules=("${existing_rules[@]//$rule/}")
else
# Rule isn't covered by $full_rule - it besides -S syscall arguments
# for this group contains also -S syscall arguments for other syscall
# group. Example: '-S lchown -S fchmod -S fchownat' => group='chown'
# since 'lchown' & 'fchownat' share 'chown' substring
# Therefore:
# * 1) delete the original rule from audit.rules
# (original '-S lchown -S fchmod -S fchownat' rule would be deleted)
# * 2) delete the -S syscall arguments for this syscall group, but
# keep those not belonging to this syscall group
# (original '-S lchown -S fchmod -S fchownat' would become '-S fchmod'
# * 3) append the modified (filtered) rule again into audit.rules
# if the same rule not already present
#
# 1) Delete the original rule
sed -i -e "/$rule/d" "$audit_file"
# 2) Delete syscalls for this group, but keep those from other groups
# Convert current rule syscall's string into array splitting by '-S' delimiter
IFS=$'-S' read -a rule_syscalls_as_array <<< "$rule_syscalls"
# Reset IFS back to default
unset $IFS
# Declare new empty string to hold '-S syscall' arguments from other groups
new_syscalls_for_rule=''
# Walk through existing '-S syscall' arguments
for syscall_arg in "${rule_syscalls_as_array[@]}"
do
# Skip empty $syscall_arg values
if [ "$syscall_arg" == '' ]
then
continue
fi
# If the '-S syscall' doesn't belong to current group add it to the new list
# (together with adding '-S' delimiter back for each of such item found)
if grep -q -v -- "$group" <<< "$syscall_arg"
then
new_syscalls_for_rule="$new_syscalls_for_rule -S $syscall_arg"
fi
done
# Replace original '-S syscall' list with the new one for this rule
updated_rule=${rule//$rule_syscalls/$new_syscalls_for_rule}
# Squeeze repeated whitespace characters in rule definition (if any) into one
updated_rule=$(echo "$updated_rule" | tr -s '[:space:]')
# 3) Append the modified / filtered rule again into audit.rules
# (but only in case it's not present yet to prevent duplicate definitions)
if ! grep -q -- "$updated_rule" "$audit_file"
then
echo "$updated_rule" >> "$audit_file"
fi
fi
else
# $audit_file already contains the expected rule form for this
# architecture & key => don't insert it second time
append_expected_rule=1
fi
done
# We deleted all rules that were subset of the expected one for this arch & key.
# Also isolated rules containing system calls not from this system calls group.
# Now append the expected rule if it's not present in $audit_file yet
if [[ ${append_expected_rule} -eq "0" ]]
then
echo "$full_rule" >> "$audit_file"
fi
done
}
function rhel7_fedora_perform_audit_adjtimex_settimeofday_stime_remediation {
# Perform the remediation for the 'adjtimex', 'settimeofday', and 'stime' audit
# system calls on Red Hat Enterprise Linux 7 or Fedora OSes
#
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=${ARCH} -S .* -k *"
# Create expected audit group and audit rule form for particular system call & architecture
if [ ${ARCH} = "b32" ]
then
# stime system call is known at 32-bit arch (see e.g "$ ausyscall i386 stime" 's output)
# so append it to the list of time group system calls to be audited
GROUP="\(adjtimex\|settimeofday\|stime\)"
FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -S stime -k audit_time_rules"
elif [ ${ARCH} = "b64" ]
then
# stime system call isn't known at 64-bit arch (see "$ ausyscall x86_64 stime" 's output)
# therefore don't add it to the list of time group system calls to be audited
GROUP="\(adjtimex\|settimeofday\)"
FULL_RULE="-a always,exit -F arch=${ARCH} -S adjtimex -S settimeofday -k audit_time_rules"
fi
# Perform the remediation for both possible tools: 'auditctl' and 'augenrules'
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
fix_audit_syscall_rule "augenrules" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_replace_or_append" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to replace configuration setting in config file or
add the configuration setting if it does not exist yet</ns0:title>
<ns0:description xml:lang="en-US">Function to replace configuration setting in config file or add
the configuration setting if it does not exist.
Expects four arguments:
config_file: Configuration file that will be modified
key: Configuration option to change
value: Value of the configuration option to change
cce: The CCE identifier or '$CCENUM' if no CCE identifier exists
Optional arguments:
format: Optional argument to specify the format of how key/value should be
modified/appended in the configuration file. The default is key = value.
Example Call(s):
With default format of 'key = value':
replace_or_append '/etc/sysctl.conf' '^kernel.randomize_va_space' '2' '$CCENUM'
With custom key/value format:
replace_or_append '/etc/sysconfig/selinux' '^SELINUX=' 'disabled' '$CCENUM' '%s=%s'
With a variable:
replace_or_append '/etc/sysconfig/selinux' '^SELINUX=' $var_selinux_state '$CCENUM' '%s=%s'
</ns0:description>
<ns0:value>
function replace_or_append {
local config_file=$1
local key=$2
local value=$3
local cce=$4
local format=$5
# Check sanity of the input
if [ $# -lt "3" ]
then
echo "Usage: replace_or_append 'config_file_location' 'key_to_search' 'new_value'"
echo
echo "If symlinks need to be taken into account, add yes/no to the last argument"
echo "to allow to 'follow_symlinks'."
echo "Aborting."
exit 1
fi
# Test if the config_file is a symbolic link. If so, use --follow-symlinks with sed.
# Otherwise, regular sed command will do.
if test -L $config_file; then
sed_command="sed -i --follow-symlinks"
else
sed_command="sed -i"
fi
# Test that the cce arg is not empty or does not equal $CCENUM.
# If $CCENUM exists, it means that there is no CCE assigned.
if ! [ "x$cce" = x ] && [ "$cce" != '$CCENUM' ]; then
cce="CCE-${cce}"
else
cce="CCE"
fi
# Strip any search characters in the key arg so that the key can be replaced without
# adding any search characters to the config file.
stripped_key=$(sed "s/[\^=\$,;+]*//g" <<< $key)
# If there is no print format specified in the last arg, use the default format.
if ! [ "x$format" = x ] ; then
printf -v formatted_output "$format" $stripped_key $value
else
formatted_output="$stripped_key = $value"
fi
# If the key exists, change it. Otherwise, add it to the config_file.
if `grep -qi $key $config_file` ; then
$sed_command "s/$key.*/$formatted_output/g" $config_file
else
echo -ne "\n# Per $cce: Set $formatted_output in $config_file" >> $config_file
echo -ne "\n$formatted_output" >> $config_file
fi
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_firefox_js_setting" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to replace configuration setting(s) in the Firefox
preferences JavaScript file or add the preference if it does not exist yet</ns0:title>
<ns0:description xml:lang="en-US">Function to replace configuration setting(s) in the Firefox
preferences JavaScript file or add the preference if it does not exist.
Expects three arguments:
config_file: Configuration file that will be modified
key: Configuration option to change
value: Value of the configuration option to change
Example Call(s):
Without string or variable:
firefox_js_setting "stig_settings.js" "general.config.obscure_value" "0"
With string:
firefox_js_setting "stig_settings.js" "general.config.filename" "\"stig.cfg\""
With a string variable:
firefox_js_setting "stig_settings.js" "general.config.filename" "\"$var_config_file_name\""
</ns0:description>
<ns0:value>
function firefox_js_setting {
local firefox_js=$1
local key=$2
local value=$3
local firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
local firefox_pref="/defaults/pref"
local firefox_preferences="/defaults/preferences"
# Check sanity of input
if [ $# -lt "3" ]
then
echo "Usage: firefox_js_setting 'config_javascript_file' 'key_to_search' 'new_value'"
echo
echo "Aborting."
exit 1
fi
# Check the possible Firefox install directories
for firefox_dir in ${firefox_dirs}; do
# If the Firefox directory exists, then Firefox is installed
if [ -d "${firefox_dir}" ]; then
# Different versions of Firefox have different preferences directories, check for them and set the right one
if [ -d "${firefox_dir}/${firefox_pref}" ] ; then
local firefox_pref_dir="${firefox_dir}/${firefox_pref}"
elif [ -d "${firefox_dir}/${firefox_preferences}" ] ; then
local firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
else
mkdir -m 755 -p "${firefox_dir}/${firefox_preferences}"
local firefox_pref_dir="${firefox_dir}/${firefox_preferences}"
fi
# Make sure the Firefox .js file exists and has the appropriate permissions
if ! [ -f "${firefox_pref_dir}/${firefox_js}" ] ; then
touch "${firefox_pref_dir}/${firefox_js}"
chmod 644 "${firefox_pref_dir}/${firefox_js}"
fi
# If the key exists, change it. Otherwise, add it to the config_file.
if `grep -q "^pref(\"${key}\", " "${firefox_pref_dir}/${firefox_js}"` ; then
sed -i "s/pref(\"${key}\".*/pref(\"${key}\", ${value});/g" "${firefox_pref_dir}/${firefox_js}"
else
echo "pref(\"${key}\", ${value});" >> "${firefox_pref_dir}/${firefox_js}"
fi
fi
done
}
</ns0:value>
</ns0:Value>
<ns0:Value hidden="true" id="function_firefox_cfg_setting" operator="equals" prohibitChanges="true" type="string">
<ns0:title xml:lang="en-US">Remediation function to replace configuration setting(s) in the Firefox
preferences configuration (.cfg) file or add the preference if it does not exist yet</ns0:title>
<ns0:description xml:lang="en-US">Function to replace configuration setting(s) in the Firefox
preferences configuration (.cfg) file or add the preference if it does not exist.
Expects three arguments:
config_file: Configuration file that will be modified
key: Configuration option to change
value: Value of the configuration option to change
Example Call(s):
Without string or variable:
firefox_cfg_setting "stig.cfg" "extensions.update.enabled" "false"
With string:
firefox_cfg_setting "stig.cfg" "security.default_personal_cert" "\"Ask Every Time\""
With a string variable:
firefox_cfg_setting "stig.cfg" "browser.startup.homepage\" "\"${var_default_home_page}\""
</ns0:description>
<ns0:value>
function firefox_cfg_setting {
local firefox_cfg=$1
local key=$2
local value=$3
local firefox_dirs="/usr/lib/firefox /usr/lib64/firefox /usr/local/lib/firefox /usr/local/lib64/firefox"
# Check sanity of input
if [ $# -lt "3" ]
then
echo "Usage: firefox_cfg_setting 'config_cfg_file' 'key_to_search' 'new_value'"
echo
echo "Aborting."
exit 1
fi
# Check the possible Firefox install directories
for firefox_dir in ${firefox_dirs}; do
# If the Firefox directory exists, then Firefox is installed
if [ -d "${firefox_dir}" ]; then
# Make sure the Firefox .cfg file exists and has the appropriate permissions
if ! [ -f "${firefox_dir}/${firefox_cfg}" ] ; then
touch "${firefox_dir}/${firefox_cfg}"
chmod 644 "${firefox_dir}/${firefox_cfg}"
fi
# If the key exists, change it. Otherwise, add it to the config_file.
if `grep -q "^lockPref(\"${key}\", " "${firefox_dir}/${firefox_cfg}"` ; then
sed -i "s/lockPref(\"${key}\".*/lockPref(\"${key}\", ${value});/g" "${firefox_dir}/${firefox_cfg}"
else
echo "lockPref(\"${key}\", ${value});" >> "${firefox_dir}/${firefox_cfg}"
fi
fi
done
}
</ns0:value>
</ns0:Value>
</ns0:Group>
<ns0:Group id="intro">
<ns0:title xml:lang="en-US">Introduction</ns0:title>
<ns0:description xml:lang="en-US">
The purpose of this guidance is to provide security configuration
recommendations and baselines for the Red Hat Enterprise Linux 6 operating
system. Recommended settings for the basic operating system are provided,
as well as for many network services that the system can provide to other systems.
The guide is intended for system administrators. Readers are assumed to
possess basic system administration skills for Unix-like systems, as well
as some familiarity with the product's documentation and administration
conventions. Some instructions within this guide are complex.
All directions should be followed completely and with understanding of
their effects in order to avoid serious adverse effects on the system
and its security.
</ns0:description>
<ns0:Group id="general-principles">
<ns0:title xml:lang="en-US">General Principles</ns0:title>
<ns0:description xml:lang="en-US">
The following general principles motivate much of the advice in this
guide and should also influence any configuration decisions that are
not explicitly covered.
</ns0:description>
<ns0:Group id="principle-encrypt-transmitted-data">
<ns0:title xml:lang="en-US">Encrypt Transmitted Data Whenever Possible</ns0:title>
<ns0:description xml:lang="en-US">
Data transmitted over a network, whether wired or wireless, is susceptible
to passive monitoring. Whenever practical solutions for encrypting
such data exist, they should be applied. Even if data is expected to
be transmitted only over a local network, it should still be encrypted.
Encrypting authentication data, such as passwords, is particularly
important. Networks of Red Hat Enterprise Linux 6 machines can and should be configured
so that no unencrypted authentication data is ever transmitted between
machines.
</ns0:description>
</ns0:Group>
<ns0:Group id="principle-minimize-software">
<ns0:title xml:lang="en-US">Minimize Software to Minimize Vulnerability</ns0:title>
<ns0:description xml:lang="en-US">
The simplest way to avoid vulnerabilities in software is to avoid
installing that software. On Red Hat Enterprise Linux 6,
the RPM Package Manager (originally Red Hat
Package Manager, abbreviated RPM)
allows for careful management of
the set of software packages installed on a system. Installed software
contributes to system vulnerability in several ways. Packages that
include setuid programs may provide local attackers a potential path to
privilege escalation. Packages that include network services may give
this opportunity to network-based attackers. Packages that include
programs which are predictably executed by local users (e.g. after
graphical login) may provide opportunities for trojan horses or other
attack code to be run undetected. The number of software packages
installed on a system can almost always be significantly pruned to include
only the software for which there is an environmental or operational need.
</ns0:description>
</ns0:Group>
<ns0:Group id="principle-separate-servers">
<ns0:title xml:lang="en-US">Run Different Network Services on Separate Systems</ns0:title>
<ns0:description xml:lang="en-US">
Whenever possible, a server should be dedicated to serving exactly one
network service. This limits the number of other services that can
be compromised in the event that an attacker is able to successfully
exploit a software flaw in one network service.
</ns0:description>
</ns0:Group>
<ns0:Group id="principle-use-security-tools">
<ns0:title xml:lang="en-US">Configure Security Tools to Improve System Robustness</ns0:title>
<ns0:description xml:lang="en-US">
Several tools exist which can be effectively used to improve a system's
resistance to and detection of unknown attacks. These tools can improve
robustness against attack at the cost of relatively little configuration
effort. In particular, this guide recommends and discusses the use of
host-based firewalling, SELinux for protection against
vulnerable services, and a logging and auditing infrastructure for
detection of problems.
</ns0:description>
</ns0:Group>
<ns0:Group id="principle-least-privilege">
<ns0:title xml:lang="en-US">Least Privilege</ns0:title>
<ns0:description xml:lang="en-US">
Grant the least privilege necessary for user accounts and software to perform tasks.
For example, <html:code>sudo</html:code> can be implemented to limit authorization to super user
accounts on the system only to designated personnel. Another example is to limit
logins on server systems to only those administrators who need to log into them in
order to perform administration tasks. Using SELinux also follows the principle of
least privilege: SELinux policy can confine software to perform only actions on the
system that are specifically allowed. This can be far more restrictive than the
actions permissible by the traditional Unix permissions model.
</ns0:description>
</ns0:Group>
</ns0:Group>
<ns0:Group id="how-to-use">
<ns0:title xml:lang="en-US">How to Use This Guide</ns0:title>
<ns0:description xml:lang="en-US">
Readers should heed the following points when using the guide.
</ns0:description>
<ns0:Group id="intro-read-sections-completely">
<ns0:title xml:lang="en-US">Read Sections Completely and in Order</ns0:title>
<ns0:description xml:lang="en-US">
Each section may build on information and recommendations discussed in
prior sections. Each section should be read and understood completely;
instructions should never be blindly applied. Relevant discussion may
occur after instructions for an action.
</ns0:description>
</ns0:Group>
<ns0:Group id="intro-test-non-production">
<ns0:title xml:lang="en-US">Test in Non-Production Environment</ns0:title>
<ns0:description xml:lang="en-US">
This guidance should always be tested in a non-production environment
before deployment. This test environment should simulate the setup in
which the system will be deployed as closely as possible.
</ns0:description>
</ns0:Group>
<ns0:Group id="intro-root-shell-assumed">
<ns0:title xml:lang="en-US">Root Shell Environment Assumed</ns0:title>
<ns0:description xml:lang="en-US">
Most of the actions listed in this document are written with the
assumption that they will be executed by the root user running the
<html:code>/bin/bash</html:code> shell. Commands preceded with a hash mark (#)
assume that the administrator will execute the commands as root, i.e.
apply the command via <html:code>sudo</html:code> whenever possible, or use
<html:code>su</html:code> to gain root privileges if <html:code>sudo</html:code> cannot be
used. Commands which can be executed as a non-root user are are preceded
by a dollar sign ($) prompt.
</ns0:description>
</ns0:Group>
<ns0:Group id="intro-formatting-conventions">
<ns0:title xml:lang="en-US">Formatting Conventions</ns0:title>
<ns0:description xml:lang="en-US">
Commands intended for shell execution, as well as configuration file text,
are featured in a <html:code>monospace font</html:code>. <html:i>Italics</html:i> are used
to indicate instances where the system administrator must substitute
the appropriate information into a command or configuration file.
</ns0:description>
</ns0:Group>
<ns0:Group id="intro-reboot-required">
<ns0:title xml:lang="en-US">Reboot Required</ns0:title>
<ns0:description xml:lang="en-US">
A system reboot is implicitly required after some actions in order to
complete the reconfiguration of the system. In many cases, the changes
will not take effect until a reboot is performed. In order to ensure
that changes are applied properly and to test functionality, always
reboot the system after applying a set of recommendations from this guide.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="system">
<ns0:title xml:lang="en-US">System Settings</ns0:title>
<ns0:description xml:lang="en-US">Contains rules that check correct system settings.</ns0:description>
<ns0:Group id="entropy">
<ns0:title xml:lang="en-US">Protect Random-Number Entropy Pool</ns0:title>
<ns0:description xml:lang="en-US">
The I/O operations of the Linux kernel block layer due to their inherently
unpredictable execution times have been traditionally considered as a reliable
source to contribute to random-number entropy pool of the Linux kernel. This
has changed with introduction of solid-state storage devices (SSDs) though.
</ns0:description>
<ns0:Rule id="kernel_disable_entropy_contribution_for_solid_state_drives" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure Solid State Drives Do Not Contribute To Random-Number Entropy Pool</ns0:title>
<ns0:description xml:lang="en-US">For each solid-state drive on the system, run:
<html:pre> # echo 0 > /sys/block/DRIVE/queue/add_random</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
In contrast to traditional electromechanical magnetic disks, containing
spinning disks and / or movable read / write heads, the solid-state storage
devices (SSDs) do not contain moving / mechanical components. Therefore the
I/O operation completion times are much more predictable for them.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="kernel_disable_entropy_contribution_for_solid_state_drives" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# First obtain the list of block devices present on system into array
#
# Used lsblk options:
# -o NAME Display only block device name
# -a Display all devices (including empty ones) in the list
# -d Don't print device holders or slaves information
# -n Suppress printing of introductory heading line in the list
SYSTEM_BLOCK_DEVICES=($(/bin/lsblk -o NAME -a -d -n))
# For each SSD block device from that list
# (device where /sys/block/DEVICE/queue/rotation == 0)
for BLOCK_DEVICE in "${SYSTEM_BLOCK_DEVICES[@]}"
do
# Verify the block device is SSD
if grep -q "0" /sys/block/${BLOCK_DEVICE}/queue/rotational
then
# If particular SSD is configured to contribute to
# random-number entropy pool, disable it
if grep -q "1" /sys/block/${BLOCK_DEVICE}/queue/add_random
then
echo "0" > /sys/block/${BLOCK_DEVICE}/queue/add_random
fi
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_disable_entropy_contribution_for_solid_state_drives:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="software">
<ns0:title xml:lang="en-US">Installing and Maintaining Software</ns0:title>
<ns0:description xml:lang="en-US">The following sections contain information on
security-relevant choices during the initial operating system
installation process and the setup of software
updates.</ns0:description>
<ns0:Group id="disk_partitioning">
<ns0:title xml:lang="en-US">Disk Partitioning</ns0:title>
<ns0:description xml:lang="en-US">To ensure separation and protection of data, there
are top-level system directories which should be placed on their
own physical partition or logical volume. The installer's default
partitioning scheme creates separate logical volumes for
<html:code>/</html:code>, <html:code>/boot</html:code>, and <html:code>swap</html:code>.
<html:ul><html:li>If starting with any of the default layouts, check the box to
"Review and modify partitioning." This allows for the easy creation
of additional logical volumes inside the volume group already
created, though it may require making <html:code>/</html:code>'s logical volume smaller to
create space. In general, using logical volumes is preferable to
using partitions because they can be more easily adjusted
later.</html:li><html:li>If creating a custom layout, create the partitions mentioned in
the previous paragraph (which the installer will require anyway),
as well as separate ones described in the following sections.</html:li></html:ul>
If a system has already been installed, and the default
partitioning scheme was used, it is possible but nontrivial to
modify it to create separate logical volumes for the directories
listed above. The Logical Volume Manager (LVM) makes this possible.
See the LVM HOWTO at <html:a href="http://tldp.org/HOWTO/LVM-HOWTO/">http://tldp.org/HOWTO/LVM-HOWTO/</html:a> for more
detailed information on LVM.</ns0:description>
<ns0:Rule id="partition_for_tmp" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure /tmp Located On Separate Partition</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>/tmp</html:code> directory is a world-writable directory used
for temporary file storage. Ensure it has its own partition or
logical volume at installation time, or migrate it using LVM.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1208</ns0:reference>
<ns0:rationale xml:lang="en-US">
The <html:code>/tmp</html:code> partition is used as temporary storage by many programs.
Placing <html:code>/tmp</html:code> in its own partition enables the setting of more
restrictive mount options, which can help protect programs which use it.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-partition_for_tmp:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-partition_for_tmp_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="partition_for_var" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure /var Located On Separate Partition</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>/var</html:code> directory is used by daemons and other system
services to store frequently-changing data. Ensure that <html:code>/var</html:code> has its own partition
or logical volume at installation time, or migrate it using LVM.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1208</ns0:reference>
<ns0:rationale xml:lang="en-US">
Ensuring that <html:code>/var</html:code> is mounted on its own partition enables the
setting of more restrictive mount options. This helps protect
system services such as daemons or other programs which use it.
It is not uncommon for the <html:code>/var</html:code> directory to contain
world-writable directories installed by other software packages.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-partition_for_var:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-partition_for_var_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="partition_for_var_log" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure /var/log Located On Separate Partition</ns0:title>
<ns0:description xml:lang="en-US">
System logs are stored in the <html:code>/var/log</html:code> directory.
Ensure that it has its own partition or logical
volume at installation time, or migrate it using LVM.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1208</ns0:reference>
<ns0:rationale xml:lang="en-US">
Placing <html:code>/var/log</html:code> in its own partition
enables better separation between log files
and other files in <html:code>/var/</html:code>.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-partition_for_var_log:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-partition_for_var_log_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="partition_for_var_log_audit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure /var/log/audit Located On Separate Partition</ns0:title>
<ns0:description xml:lang="en-US">
Audit logs are stored in the <html:code>/var/log/audit</html:code> directory. Ensure that it
has its own partition or logical volume at installation time, or migrate it
later using LVM. Make absolutely certain that it is large enough to store all
audit logs that will be created by the auditing daemon.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">137</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">138</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1208</ns0:reference>
<ns0:rationale xml:lang="en-US">
Placing <html:code>/var/log/audit</html:code> in its own partition
enables better separation between audit files
and other files, and helps ensure that
auditing cannot be halted due to the partition running out
of space.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-partition_for_var_log_audit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-partition_for_var_log_audit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="partition_for_home" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure /home Located On Separate Partition</ns0:title>
<ns0:description xml:lang="en-US">
If user home directories will be stored locally, create a separate partition
for <html:code>/home</html:code> at installation time (or migrate it later using LVM). If
<html:code>/home</html:code> will be mounted from another system such as an NFS server, then
creating a separate partition is not necessary at installation time, and the
mountpoint can instead be configured later.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1208</ns0:reference>
<ns0:rationale xml:lang="en-US">
Ensuring that <html:code>/home</html:code> is mounted on its own partition enables the
setting of more restrictive mount options, and also helps ensure that
users cannot trivially fill partitions used for log or audit data storage.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-partition_for_home:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-partition_for_home_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="encrypt_partitions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Encrypt Partitions</ns0:title>
<ns0:description xml:lang="en-US">
Red Hat Enterprise Linux 6 natively supports partition encryption through the
Linux Unified Key Setup-on-disk-format (LUKS) technology. The easiest way to
encrypt a partition is during installation time.
<html:br /><html:br />
For manual installations, select the <html:code>Encrypt</html:code> checkbox during
partition creation to encrypt the partition. When this
option is selected the system will prompt for a passphrase to use in
decrypting the partition. The passphrase will subsequently need to be entered manually
every time the system boots.
<html:br /><html:br />
For automated/unattended installations, it is possible to use Kickstart by adding
the <html:code>--encrypted</html:code> and <html:code>--passphrase=</html:code> options to the definition of each partition to be
encrypted. For example, the following line would encrypt the root partition:
<html:pre>part / --fstype=ext3 --size=100 --onpart=hda1 --encrypted --passphrase=<html:i>PASSPHRASE</html:i></html:pre>
Any <html:i>PASSPHRASE</html:i> is stored in the Kickstart in plaintext, and the Kickstart must then be protected accordingly.
Omitting the <html:code>--passphrase=</html:code> option from the partition definition will cause the
installer to pause and interactively ask for the passphrase during installation.
<html:br /><html:br />
Detailed information on encrypting partitions using LUKS can be found on
the Red Hat Documentation web site:<html:br />
<html:a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/chap-Security_Guide-Encryption.html#sect-Security_Guide-LUKS_Disk_Encryption">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Security_Guide/chap-Security_Guide-Encryption.html#sect-Security_Guide-LUKS_Disk_Encryption</html:a>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-13</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1019</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1199</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1200</ns0:reference>
<ns0:rationale xml:lang="en-US">
The risk of a system's physical compromise, particularly mobile systems such as
laptops, places its data at risk of compromise. Encrypting this data mitigates
the risk of its loss if the system is lost.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-encrypt_partitions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="updating">
<ns0:title xml:lang="en-US">Updating Software</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>yum</html:code> command line tool is used to install and
update software packages. The system also provides a graphical
software update tool in the <html:b>System</html:b> menu, in the <html:b>Administration</html:b> submenu,
called <html:b>Software Update</html:b>.
<html:br /><html:br />
Red Hat Enterprise Linux systems contain an installed software catalog called
the RPM database, which records metadata of installed packages. Consistently using
<html:code>yum</html:code> or the graphical <html:b>Software Update</html:b> for all software installation
allows for insight into the current inventory of installed software on the system.
</ns0:description>
<ns0:Rule id="ensure_redhat_gpgkey_installed" selected="false" severity="high">
<ns0:title xml:lang="en-US">Ensure Red Hat GPG Key Installed</ns0:title>
<ns0:description xml:lang="en-US">
To ensure the system can cryptographically verify base software
packages come from Red Hat (and to connect to the Red Hat Network to
receive them), the Red Hat GPG key must properly be installed.
To install the Red Hat GPG key, run:
<html:pre>$ sudo rhn_register</html:pre>
If the system is not connected to the Internet or an RHN Satellite,
then install the Red Hat GPG key from trusted media such as
the Red Hat installation CD-ROM or DVD. Assuming the disc is mounted
in <html:code>/media/cdrom</html:code>, use the following command as the root user to import
it into the keyring:
<html:pre>$ sudo rpm --import /media/cdrom/RPM-GPG-KEY</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-1(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">351</ns0:reference>
<ns0:rationale xml:lang="en-US">
The Red Hat GPG key is necessary to cryptographically verify packages
are from Red Hat.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="ensure_redhat_gpgkey_installed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># The two fingerprints below are retrieved from https://access.redhat.com/security/team/key
readonly REDHAT_RELEASE_2_FINGERPRINT="567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51"
readonly REDHAT_AUXILIARY_FINGERPRINT="43A6 E49C 4A38 F4BE 9ABF 2A53 4568 9C88 2FA6 58E0"
# Location of the key we would like to import (once it's integrity verified)
readonly REDHAT_RELEASE_KEY="/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release"
RPM_GPG_DIR_PERMS=$(stat -c %a "$(dirname "$REDHAT_RELEASE_KEY")")
# Verify /etc/pki/rpm-gpg directory permissions are safe
if [ "${RPM_GPG_DIR_PERMS}" -le "755" ]
then
# If they are safe, try to obtain fingerprints from the key file
# (to ensure there won't be e.g. CRC error)
IFS=$'\n' GPG_OUT=($(gpg --with-fingerprint "${REDHAT_RELEASE_KEY}"))
GPG_RESULT=$?
# No CRC error, safe to proceed
if [ "${GPG_RESULT}" -eq "0" ]
then
for ITEM in "${GPG_OUT[@]}"
do
# Filter just hexadecimal fingerprints from gpg's output from
# processing of a key file
RESULT=$(echo ${ITEM} | sed -n "s/[[:space:]]*Key fingerprint = \(.*\)/\1/p" | tr -s '[:space:]')
# If fingerprint matches Red Hat's release 2 or auxiliary key import the key
if [[ ${RESULT} ]] && ([[ ${RESULT} = "${REDHAT_RELEASE_2_FINGERPRINT}" ]] || \
[[ ${RESULT} = "${REDHAT_AUXILIARY_FINGERPRINT}" ]])
then
rpm --import "${REDHAT_RELEASE_KEY}"
fi
done
fi
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ensure_redhat_gpgkey_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ensure_redhat_gpgkey_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ensure_gpgcheck_globally_activated" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure gpgcheck Enabled In Main Yum Configuration</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>gpgcheck</html:code> option controls whether
RPM packages' signatures are always checked prior to installation.
To configure yum to check package signatures before installing
them, ensure the following line appears in <html:code>/etc/yum.conf</html:code> in
the <html:code>[main]</html:code> section:
<html:pre>gpgcheck=1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-1(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">352</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">663</ns0:reference>
<ns0:rationale xml:lang="en-US">
Ensuring the validity of packages' cryptographic signatures prior to
installation ensures the authenticity of the software and
protects against malicious tampering.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="ensure_gpgcheck_globally_activated" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i 's/gpgcheck=.*/gpgcheck=1/g' /etc/yum.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ensure_gpgcheck_globally_activated:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ensure_gpgcheck_globally_activated_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ensure_gpgcheck_never_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure gpgcheck Enabled For All Yum Package Repositories</ns0:title>
<ns0:description xml:lang="en-US">To ensure signature checking is not disabled for
any repos, remove any lines from files in <html:code>/etc/yum.repos.d</html:code> of the form:
<html:pre>gpgcheck=0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-1(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">352</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">663</ns0:reference>
<ns0:rationale xml:lang="en-US">
Ensuring all packages' cryptographic signatures are valid prior to
installation ensures the authenticity of the software and
protects against malicious tampering.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="ensure_gpgcheck_never_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i 's/gpgcheck=.*/gpgcheck=1/g' /etc/yum.repos.d/*
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ensure_gpgcheck_never_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ensure_gpgcheck_never_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="security_patches_up_to_date" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure Software Patches Installed</ns0:title>
<ns0:description xml:lang="en-US">If the system is joined to the Red Hat Network, a Red Hat Satellite Server,
or a yum server, run the following command to install updates:
<html:pre>$ sudo yum update</html:pre>
If the system is not configured to use one of these sources, updates (in the form of RPM packages)
can be manually downloaded from the Red Hat Network and installed using <html:code>rpm</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-2</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-1(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1227</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1233</ns0:reference>
<ns0:rationale xml:lang="en-US">
Installing software updates is a fundamental mitigation against
the exploitation of publicly-known vulnerabilities.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="security_patches_up_to_date" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">yum -y update
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="http://www.redhat.com/security/data/oval/Red_Hat_Enterprise_Linux_6.xml" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-security_patches_up_to_date_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="integrity">
<ns0:title xml:lang="en-US">Software Integrity Checking</ns0:title>
<ns0:description xml:lang="en-US">
Both the AIDE (Advanced Intrusion Detection Environment)
software and the RPM package management system provide
mechanisms for verifying the integrity of installed software.
AIDE uses snapshots of file metadata (such as hashes) and compares these
to current system files in order to detect changes.
The RPM package management system can conduct integrity
checks by comparing information in its metadata database with
files installed on the system.
<html:br /><html:br />
Integrity checking cannot <html:i>prevent</html:i> intrusions,
but can detect that they have occurred. Requirements
for software integrity checking may be highly dependent on
the environment in which the system will be used. Snapshot-based
approaches such as AIDE may induce considerable overhead
in the presence of frequent software updates.
</ns0:description>
<ns0:Rule id="disable_prelink" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Prelinking</ns0:title>
<ns0:description xml:lang="en-US">
The prelinking feature changes binaries in an attempt to decrease their startup
time. In order to disable it, change or add the following line inside the file
<html:code>/etc/sysconfig/prelink</html:code>:
<html:pre>PRELINKING=no</html:pre>
Next, run the following command to return binaries to a normal, non-prelinked state:
<html:pre>$ sudo /usr/sbin/prelink -ua</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Because the prelinking feature changes binaries, it can interfere with the
operation of certain software and/or modes such as AIDE, FIPS, etc.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="disable_prelink" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Disable prelinking altogether
#
if grep -q ^PRELINKING /etc/sysconfig/prelink
then
sed -i 's/PRELINKING.*/PRELINKING=no/g' /etc/sysconfig/prelink
else
echo -e "\n# Set PRELINKING=no per security requirements" >> /etc/sysconfig/prelink
echo "PRELINKING=no" >> /etc/sysconfig/prelink
fi
#
# Undo previous prelink changes to binaries
#
/usr/sbin/prelink -ua
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-disable_prelink:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="aide">
<ns0:title xml:lang="en-US">Verify Integrity with AIDE</ns0:title>
<ns0:description xml:lang="en-US">AIDE conducts integrity checks by comparing information about
files with previously-gathered information. Ideally, the AIDE database is
created immediately after initial system configuration, and then again after any
software update. AIDE is highly configurable, with further configuration
information located in <html:code>/usr/share/doc/aide-<html:i>VERSION</html:i></html:code>.
</ns0:description>
<ns0:Rule id="package_aide_installed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Install AIDE</ns0:title>
<ns0:description xml:lang="en-US">
Install the AIDE package with the command:
<html:pre>$ sudo yum install aide</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1069</ns0:reference>
<ns0:rationale xml:lang="en-US">
The AIDE package must be installed if it is to be available for integrity checking.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_aide_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install aide
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_aide_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure aide is installed
package:
name="{{item}}"
state=present
with_items:
- aide
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_aide_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_aide
class install_aide {
package { 'aide':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_aide_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=aide
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_aide_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_aide_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="aide_build_database" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Build and Test AIDE Database</ns0:title>
<ns0:description xml:lang="en-US">Run the following command to generate a new database:
<html:pre>$ sudo /usr/sbin/aide --init</html:pre>
By default, the database will be written to the file <html:code>/var/lib/aide/aide.db.new.gz</html:code>.
Storing the database, the configuration file <html:code>/etc/aide.conf</html:code>, and the binary
<html:code>/usr/sbin/aide</html:code> (or hashes of these files), in a secure location (such as on read-only media) provides additional assurance about their integrity.
The newly-generated database can be installed as follows:
<html:pre>$ sudo cp /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz</html:pre>
To initiate a manual check, run the following command:
<html:pre>$ sudo /usr/sbin/aide --check</html:pre>
If this check produces any unexpected output, investigate.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">374</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">416</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1069</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1263</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1297</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1589</ns0:reference>
<ns0:rationale xml:lang="en-US">
For AIDE to be effective, an initial database of "known-good" information about files
must be captured and it should be able to be verified against the installed files.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="aide_build_database" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">/usr/sbin/aide --init
/bin/cp -p /var/lib/aide/aide.db.new.gz /var/lib/aide/aide.db.gz
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-aide_build_database:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-aide_build_database_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="aide_periodic_cron_checking" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Periodic Execution of AIDE</ns0:title>
<ns0:description xml:lang="en-US">
To implement a daily execution of AIDE at 4:05am using cron, add the following line to <html:code>/etc/crontab</html:code>:
<html:pre>05 4 * * * root /usr/sbin/aide --check</html:pre>
AIDE can be executed periodically through other means; this is merely one example.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-3(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">374</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">416</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1069</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1263</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1297</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1589</ns0:reference>
<ns0:rationale xml:lang="en-US">
By default, AIDE does not install itself for periodic execution. Periodically
running AIDE is necessary to reveal unexpected changes in installed files.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="aide_periodic_cron_checking" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">echo "05 4 * * * root /usr/sbin/aide --check" >> /etc/crontab
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-aide_periodic_cron_checking:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-aide_periodic_cron_checking_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="rpm_verification">
<ns0:title xml:lang="en-US">Verify Integrity with RPM</ns0:title>
<ns0:description xml:lang="en-US">The RPM package management system includes the ability
to 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. Although an attacker
could corrupt the RPM database (analogous to attacking the AIDE
database as described above), this check can still reveal
modification of important files. To list which files on the system differ from what is expected by the RPM database:
<html:pre>$ rpm -qVa</html:pre>
See the man page for <html:code>rpm</html:code> to see a complete explanation of each column.
</ns0:description>
<ns0:Rule id="rpm_verify_permissions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Verify and Correct File Permissions with RPM</ns0:title>
<ns0:description xml:lang="en-US">
The RPM package management system can check file access
permissions of installed software packages, including many that are
important to system security.
After locating a file with incorrect permissions, run the following command to determine which package owns it:
<html:pre>$ rpm -qf <html:i>FILENAME</html:i></html:pre>
Next, run the following command to reset its permissions to
the correct values:
<html:pre>$ sudo rpm --setperms <html:i>PACKAGENAME</html:i></html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">
<html:b>Note: Due to a bug in the <html:code>gdm</html:code> package,
the RPM verify command may continue to fail even after file permissions have
been correctly set on <html:code>/var/log/gdm</html:code>. This is being tracked in Red Hat
Bugzilla #1277603.</html:b>
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1493</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1494</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1495</ns0:reference>
<ns0:rationale xml:lang="en-US">
Permissions on system binaries and configuration files that are too generous
could allow an unauthorized user to gain privileges that they should not have.
The permissions set by the vendor should be maintained. Any deviations from
this baseline should be investigated.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="rpm_verify_permissions" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Declare array to hold list of RPM packages we need to correct permissions for
declare -a SETPERMS_RPM_LIST
# Create a list of files on the system having permissions different from what
# is expected by the RPM database
FILES_WITH_INCORRECT_PERMS=($(rpm -Va --nofiledigest | grep '^.M'))
# For each file path from that list:
# * Determine the RPM package the file path is shipped by,
# * Include it into SETPERMS_RPM_LIST array
for FILE_PATH in "${FILES_WITH_INCORRECT_PERMS[@]}"
do
RPM_PACKAGE=$(rpm -qf "$FILE_PATH")
SETPERMS_RPM_LIST=("${SETPERMS_RPM_LIST[@]}" "$RPM_PACKAGE")
done
# Remove duplicate mention of same RPM in $SETPERMS_RPM_LIST (if any)
SETPERMS_RPM_LIST=( $(echo "${SETPERMS_RPM_LIST[@]}" | sort -n | uniq) )
# For each of the RPM packages left in the list -- reset its permissions to the
# correct values
for RPM_PACKAGE in "${SETPERMS_RPM_LIST[@]}"
do
rpm --setperms "${RPM_PACKAGE}"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rpm_verify_permissions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rpm_verify_permissions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="rpm_verify_hashes" selected="false" severity="low">
<ns0:title xml:lang="en-US">Verify File Hashes with RPM</ns0:title>
<ns0:description xml:lang="en-US">The RPM package management system can check the hashes of
installed software packages, including many that are important to system
security. Run the following command to list which files on the system
have hashes that differ from what is expected by the RPM database:
<html:pre>$ rpm -Va | grep '^..5'</html:pre>
A "c" in the second column indicates that a file is a configuration file, which
may appropriately be expected to change. If the file was not expected to
change, investigate the cause of the change using audit logs or other means.
The package can then be reinstalled to restore the file.
Run the following command to determine which package owns the file:
<html:pre>$ rpm -qf <html:i>FILENAME</html:i></html:pre>
The package can be reinstalled from a yum repository using the command:
<html:pre>$ sudo yum reinstall <html:i>PACKAGENAME</html:i></html:pre>
Alternatively, the package can be reinstalled from trusted media using the command:
<html:pre>$ sudo rpm -Uvh <html:i>PACKAGENAME</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1496</ns0:reference>
<ns0:rationale xml:lang="en-US">
The hashes of important files like system executables should match the
information given by the RPM database. Executables with erroneous hashes could
be a sign of nefarious activity on the system.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rpm_verify_hashes:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rpm_verify_hashes_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="additional_security_software">
<ns0:title xml:lang="en-US">Additional Security Software</ns0:title>
<ns0:description xml:lang="en-US">
Additional security software that is not provided or supported
by Red Hat can be installed to provide complementary or duplicative
security capabilities to those provided by the base platform. Add-on
software may not be appropriate for some specialized systems.
</ns0:description>
<ns0:Rule id="install_hids" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Install Intrusion Detection Software</ns0:title>
<ns0:description xml:lang="en-US">
The base Red Hat platform already includes a sophisticated auditing system that
can detect intruder activity, as well as SELinux, which provides host-based
intrusion prevention capabilities by confining privileged programs and user
sessions which may become compromised.<html:br />
In DoD environments, supplemental intrusion detection tools, such as, the McAfee
Host-based Security System, are available to integrate with existing infrastructure.
When these supplemental tools interfere with the proper functioning of SELinux, SELinux
takes precedence.
<html:br />
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1263</ns0:reference>
<ns0:rationale xml:lang="en-US">
Host-based intrusion detection tools provide a system-level defense when an
intruder gains access to a system or network.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-install_hids_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="install_antivirus" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install Virus Scanning Software</ns0:title>
<ns0:description xml:lang="en-US">
Install virus scanning software, which uses signatures to search for the
presence of viruses on the filesystem.
The McAfee VirusScan Enterprise for Linux virus scanning tool is provided for DoD systems.
Ensure virus definition files are no older than 7 days, or their last release.
Configure the virus scanning software to perform scans dynamically on all
accessed files. If this is not possible, configure the
system to scan all altered files on the system on a daily
basis. If the system processes inbound SMTP mail, configure the virus scanner
to scan all received mail.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-28</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1239</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1668</ns0:reference>
<ns0:rationale xml:lang="en-US">
Virus scanning software can be used to detect if a system has been compromised by
computer viruses, as well as to limit their spread to other systems.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-install_antivirus:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-install_antivirus_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="fips">
<ns0:title xml:lang="en-US">Federal Information Processing Standard (FIPS)</ns0:title>
<ns0:description xml:lang="en-US">
The Federal Information Processing Standard (FIPS) is a computer security standard which
is developed by the U.S. Government and industry working groups to validate the quality
of cryptographic modules. The FIPS standard provides four security levels to ensure
adequate coverage of different industries, implementation of cryptographic modules, and
organizational sizes and requirements.
<html:br /><html:br />
FIPS 140-2 is the current standard for validating that mechanisms used to access cryptographic modules
utilize authentication that meets industry and government requirements. For government systems, this allows
Security Levels 1, 2, 3, or 4 for use on Red Hat Enterprise Linux.
<html:br /><html:br />
See <html:b><html:a href="http://csrc.nist.gov/publications/PubsFIPS.html">http://csrc.nist.gov/publications/PubsFIPS.html</html:a></html:b> for more information.
</ns0:description>
<ns0:Rule id="package_dracut-fips_installed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Install the dracut-fips Package</ns0:title>
<ns0:description xml:lang="en-US">
To enable FIPS, the system requires that the <html:code>dracut-fips</html:code>
package be installed.
The <html:code>dracut-fips</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install dracut-fips</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(2)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">2450</ns0:reference>
<ns0:rationale xml:lang="en-US">
Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to
protect data. The operating system must implement cryptographic modules adhering to the higher
standards approved by the federal government since this provides assurance they have been tested
and validated.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_dracut-fips_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_dracut-fips_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="grub_enable_fips_mode" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable FIPS Mode in GRUB</ns0:title>
<ns0:description xml:lang="en-US">
To ensure FIPS mode is enabled, rebuild <html:code>initramfs</html:code> by running the following command:
<html:pre>dracut -f</html:pre>
After the <html:code>dracut</html:code> command has been run, add the argument <html:code>fips=1</html:code> to the default
GRUB kernel line for the Linux operating system in
<html:code>/etc/grub.conf</html:code>, in the manner below:
<html:pre>kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet fips=1</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Running <html:pre>dracut -f</html:pre> will overwrite the existing initramfs file.</ns0:warning>
<ns0:warning category="general" xml:lang="en-US">The system needs to be rebooted for these changes to take effect.</ns0:warning>
<ns0:warning category="general" xml:lang="en-US">The ability to enable FIPS does not denote FIPS compliancy or certification.
Red Hat, Inc. and Red Hat Enterprise Linux are respectively FIPS certified and compliant. Community
projects such as CentOS, Scientific Linux, etc. do not necessarily meet FIPS certification and compliancy.
Therefore, non-certified vendors and/or projects do not meet this requirement even if technically feasible.
<html:br /><html:br />
See <html:b><html:a href="http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/1401vend.htm">http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/1401vend.htm</html:a></html:b> for a list of FIPS certified
vendors.</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(2)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">2450</ns0:reference>
<ns0:rationale xml:lang="en-US">
Use of weak or untested encryption algorithms undermines the purposes of utilizing encryption to
protect data. The operating system must implement cryptographic modules adhering to the higher
standards approved by the federal government since this provides assurance they have been tested
and validated.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-grub_enable_fips_mode:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-grub_enable_fips_mode_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="certified-vendor">
<ns0:title xml:lang="en-US">Operating System Vendor Support and Certification</ns0:title>
<ns0:description xml:lang="en-US">
The assurance of a vendor to provide operating system support and maintenance
for their product is an important criterion to ensure product stability and
security over the life of the product. A certified product that follows the
necessary standards and government certification requirements guarantees that
known software vulnerabilities will be remediated, and proper guidance for
protecting and securing the operating system will be given.
</ns0:description>
<ns0:Rule id="installed_OS_is_certified" selected="false" severity="high">
<ns0:title xml:lang="en-US">The Installed Operating System Is Vendor Supported and Certified</ns0:title>
<ns0:description xml:lang="en-US">
The installed operating system must be maintained and certified by a vendor.
Red Hat Enterprise Linux is supported by Red Hat, Inc. As the Red Hat Enterprise
Linux vendor, Red Hat, Inc. is responsible for providing security patches as well
as meeting and maintaining goverment certifications and standards.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-2(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
An operating system is considered "supported" if the vendor continues to provide
security patches for the product as well as maintain government certification requirements.
With an unsupported release, it will not be possible to resolve security issue discovered in
the system software as well as meet government certifications.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-installed_OS_is_certified:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-installed_OS_is_certified_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="gnome">
<ns0:title xml:lang="en-US">GNOME Desktop Environment</ns0:title>
<ns0:description xml:lang="en-US">
GNOME is a graphical desktop environment bundled with many Linux distributions that
allow users to easily interact with the operating system graphically rather than
textually. The GNOME Graphical Display Manager (GDM) provides login, logout, and user
switching contexts as well as display server management.
<html:br /><html:br />
GNOME is developed by the GNOME Project and is considered the default
Red Hat Graphical environment.
<html:br /><html:br />
For more information on GNOME and the GNOME Project, see <html:b><html:a href="https://www.gnome.org">https://www.gnome.org</html:a></html:b>
</ns0:description>
<ns0:Group id="gnome_login_screen">
<ns0:title xml:lang="en-US">Configure GNOME Login Screen</ns0:title>
<ns0:description xml:lang="en-US">In the default GNOME desktop, the login is displayed after system boot
and can display user accounts, allow users to reboot the system, and allow users to
login automatically and/or with a guest account. The login screen should be configured
to prevent such behavior.
<html:br /><html:br />
For more information about enforcing preferences in the GNOME environment using the GConf
configuration system, see <html:b><html:a href="http://projects.gnome.org/gconf">http://projects.gnome.org/gconf</html:a></html:b> and
the man page <html:code>gconftool-2(1)</html:code>.
</ns0:description>
<ns0:Rule id="gnome_gdm_disable_automatic_login" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable GDM Automatic Login</ns0:title>
<ns0:description xml:lang="en-US">The GNOME Display Manager (GDM) can allow users to automatically login without
user interaction or credentials. User should always be required to authenticate themselves
to the system that they are authorized to use. To disable user ability to automatically
login to the system, set the <html:code>AutomaticLoginEnable</html:code> to <html:code>false</html:code> in the
<html:code>[daemon]</html:code> section in <html:code>/etc/gdm/custom.conf</html:code>. For example:
<html:pre>[daemon]
AutomaticLoginEnable=false</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:reference href="">TBD</ns0:reference>
<ns0:rationale xml:lang="en-US">
Failure to restrict system access to authenticated users negatively impacts operating
system security.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gnome_gdm_disable_automatic_login:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gnome_gdm_disable_automatic_login_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gnome_gdm_disable_guest_login" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable GDM Guest Login</ns0:title>
<ns0:description xml:lang="en-US">The GNOME Display Manager (GDM) can allow users to login without credentials
which can be useful for public kiosk scenarios. Allowing users to login without credentials
or "guest" account access has inherent security risks and should be disabled. To do disable
timed logins or guest account access, set the <html:code>TimedLoginEnable</html:code> to <html:code>false</html:code> in
the <html:code>[daemon]</html:code> section in <html:code>/etc/gdm/custom.conf</html:code>. For example:
<html:pre>[daemon]
TimedLoginEnable=false</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:reference href="">TBD</ns0:reference>
<ns0:rationale xml:lang="en-US">
Failure to restrict system access to authenticated users negatively impacts operating
system security.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gnome_gdm_disable_guest_login:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gnome_gdm_disable_guest_login_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gdm_disable_user_list" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable the User List</ns0:title>
<ns0:description xml:lang="en-US">In the default graphical environment, users logging
directly into the system are greeted with a login screen that displays
all known users. This functionality should be disabled.
<html:br /><html:br />
Run the following command to disable the user list:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gdm/simple-greeter/disable_user_list true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-23</ns0:reference>
<ns0:rationale xml:lang="en-US">Leaving the user list enabled is a security risk since it allows anyone
with physical access to the system to quickly enumerate known user accounts
without logging in.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gdm_disable_user_list" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Disable displaying of all known system users in the GNOME Display Manager's
# login screen
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type bool \
--set /apps/gdm/simple-greeter/disable_user_list true
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gdm_disable_user_list:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gdm_disable_user_list_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_restart_shutdown" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable the GNOME Login Restart and Shutdown Buttons</ns0:title>
<ns0:description xml:lang="en-US">In the default graphical environment, users logging
directly into the system are greeted with a login screen that allows
any user, known or unknown, the ability shutdown or restart
the system. This functionality should be disabled by running the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gdm/simple-greeter/disable_restart_buttons true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:reference href="">TBD</ns0:reference>
<ns0:rationale xml:lang="en-US">
A user who is at the console can reboot the system at the login screen. If restart or shutdown buttons
are pressed at the login screen, this can create the risk of short-term loss of availability of systems
due to reboot.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_restart_shutdown:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_restart_shutdown_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="gnome_screen_locking">
<ns0:title xml:lang="en-US">Configure GNOME Screen Locking</ns0:title>
<ns0:description xml:lang="en-US">In the default GNOME desktop, the screen can be locked
by choosing <html:b>Lock Screen</html:b> from the <html:b>System</html:b> menu.
<html:br /><html:br />
The <html:code>gconftool-2</html:code> program can be used to enforce mandatory
screen locking settings for the default GNOME environment.
The
following sections detail commands to enforce idle activation of the screensaver,
screen locking, a blank-screen screensaver, and an idle
activation time.
<html:br /><html:br />
Because users should be trained to lock the screen when they
step away from the computer, the automatic locking feature is only
meant as a backup. The <html:b>Lock Screen</html:b> icon from the <html:b>System</html:b> menu can
also be dragged to the taskbar in order to facilitate even more
convenient screen-locking.
<html:br /><html:br />
The root account cannot be screen-locked, but this should
have no practical effect as the root account should <html:i>never</html:i> be used
to log into an X Windows environment, and should only be used to
for direct login via console in emergency circumstances.
<html:br /><html:br />
For more information about configuring GNOME screensaver, see
<html:b><html:a href="http://live.gnome.org/GnomeScreensaver">http://live.gnome.org/GnomeScreensaver</html:a></html:b>. For more information about
enforcing preferences in the GNOME environment using the GConf
configuration system, see <html:b><html:a href="http://projects.gnome.org/gconf">http://projects.gnome.org/gconf</html:a></html:b> and
the man page <html:code>gconftool-2(1)</html:code>.</ns0:description>
<ns0:Value id="inactivity_timeout_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">Inactivity timeout</ns0:title>
<ns0:description xml:lang="en-US">Choose allowed duration of inactive SSH connections, shells, and X sessions</ns0:description>
<ns0:value>900</ns0:value>
<ns0:value selector="5_minutes">300</ns0:value>
<ns0:value selector="10_minutes">600</ns0:value>
<ns0:value selector="15_minutes">900</ns0:value>
<ns0:value selector="30_minutes">1800</ns0:value>
</ns0:Value>
<ns0:Rule id="gconf_gnome_screensaver_idle_delay" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set GNOME Login Inactivity Timeout</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to set the idle time-out value for
inactivity in the GNOME desktop to <ns0:sub idref="inactivity_timeout_value" /> minutes:
<html:pre>$ sudo gconftool-2 \
--direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type int \
--set /desktop/gnome/session/idle_delay <ns0:sub idref="inactivity_timeout_value" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-11(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">57</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the idle delay controls when the
screensaver will start, and can be combined with
screen locking to prevent access from passersby.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gnome_screensaver_idle_delay" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
inactivity_timeout_value="<ns0:sub idref="inactivity_timeout_value" />"
# Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Set the idle time-out value for inactivity in the GNOME desktop to meet the
# requirement
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type int \
--set /desktop/gnome/session/idle_delay ${inactivity_timeout_value}
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-inactivity_timeout_value:var:1" value-id="inactivity_timeout_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_idle_delay:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_idle_delay_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_screensaver_idle_activation_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">GNOME Desktop Screensaver Mandatory Use</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to activate the screensaver
in the GNOME desktop after a period of inactivity:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gnome-screensaver/idle_activation_enabled true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-11(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">57</ns0:reference>
<ns0:rationale xml:lang="en-US">
Enabling idle activation of the screensaver ensures the screensaver will
be activated after the idle delay. Applications requiring continuous,
real-time screen display (such as network management products) require the
login session does not have administrator rights and the display station is located in a
controlled-access area.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gnome_screensaver_idle_activation_enabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Set the screensaver activation in the GNOME desktop after a period of inactivity
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type bool \
--set /apps/gnome-screensaver/idle_activation_enabled true
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_idle_activation_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_idle_activation_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_screensaver_lock_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable Screen Lock Activation After Idle Period</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to activate locking of the screensaver
in the GNOME desktop when it is activated:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gnome-screensaver/lock_enabled true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-11(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">57</ns0:reference>
<ns0:rationale xml:lang="en-US">
Enabling the activation of the screen lock after an idle period
ensures password entry will be required in order to
access the system, preventing access by passersby.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gnome_screensaver_lock_enabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Set the screensaver locking activation in the GNOME desktop when the
# screensaver is activated
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type bool \
--set /apps/gnome-screensaver/lock_enabled true
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_lock_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_lock_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_screensaver_mode_blank" selected="false" severity="low">
<ns0:title xml:lang="en-US">Implement Blank Screensaver</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to set the screensaver mode
in the GNOME desktop to a blank screen:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type string \
--set /apps/gnome-screensaver/mode blank-only</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-11(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">60</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the screensaver mode to blank-only conceals the
contents of the display from passersby.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gnome_screensaver_mode_blank" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Set the screensaver mode in the GNOME desktop to a blank screen
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type string \
--set /apps/gnome-screensaver/mode blank-only
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_mode_blank:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_mode_blank_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_screensaver_max_idle_time" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set GNOME Login Maximum Allowed Inactivity</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to set the maximum allowed period of inactivity for an
inactive user in the GNOME desktop to <ns0:sub idref="inactivity_timeout_value" /> minutes:
<html:pre>$ sudo gconftool-2 \
--direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type int \
--set /desktop/gnome/session/max_idle_time <ns0:sub idref="inactivity_timeout_value" /></html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Terminating an idle session within a short time period reduces the window of
opportunity for unauthorized personnel to take control of a management session
and will also free up resources utilized by an idle session.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-inactivity_timeout_value:var:1" value-id="inactivity_timeout_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_max_idle_time:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_max_idle_time_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_screensaver_max_idle_action" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set GNOME Login Maximum Allowed Inactivity Action</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to set force logout an inactive user when the
maximum allowed inactivity period has expired:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type string \
--set /desktop/gnome/session/max_idle_action "forced-logout"</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Terminating an idle session within a short time period reduces the window of
opportunity for unauthorized personnel to take control of a management session
and will also free up resources utilized by an idle session.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-inactivity_timeout_value:var:1" value-id="inactivity_timeout_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_screensaver_max_idle_action:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_screensaver_max_idle_action_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="gnome_system_settings">
<ns0:title xml:lang="en-US">GNOME System Settings</ns0:title>
<ns0:description xml:lang="en-US">
GNOME provides configuration and functionality to a graphical desktop environment
that changes grahical configurations or allow a user to perform
actions that users normally would not be able to do in non-graphical mode such as
remote access configuration, power policies, Geo-location, etc.
Configuring such settings in GNOME will prevent accidential graphical configuration
changes by users from taking place.
</ns0:description>
<ns0:Rule id="gconf_gnome_disable_ctrlaltdel_reboot" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable Ctrl-Alt-Del Reboot Key Sequence in GNOME</ns0:title>
<ns0:description xml:lang="en-US">
By default, <html:code>GNOME</html:code> will reboot the system if the <html:code>Ctrl-Alt-Del</html:code>
key sequence is pressed.
<html:br />
To configure the system to ignore the <html:code>Ctrl-Alt-Del</html:code> key sequence from the
Graphical User Interface (GUI) instead of rebooting the system, run the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type string \
--set /apps/gnome_settings_daemon/keybindings/power ""</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:reference href="">TBD</ns0:reference>
<ns0:rationale xml:lang="en-US">
A locally logged-in user who presses Ctrl-Alt-Del, when at the console,
can reboot the system. If accidentally pressed, as could happen in
the case of mixed OS environment, this can create the risk of short-term
loss of availability of systems due to unintentional reboot.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_ctrlaltdel_reboot:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_ctrlaltdel_reboot_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_clock_temperature" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable the GNOME Clock Temperature Feature</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to activate locking of the screensaver
in the GNOME desktop when it is activated:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/panel/applets/clock/prefs/show_temperature false</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Disabling the temperature feature in the GNOME clock prevents the
system from connecting to the internet and diclosing the system
location when set by a user.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_clock_temperature:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_clock_temperature_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_clock_weather" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable the GNOME Clock Weather Feature</ns0:title>
<ns0:description xml:lang="en-US">
Run the following command to activate locking of the screensaver
in the GNOME desktop when it is activated:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/panel/applets/clock/prefs/show_weather false</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Disabling the weather feature in the GNOME clock prevents the
system from connecting to the internet and diclosing the system
location when set by a user.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_clock_weather:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_clock_weather_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="gnome_network_settings">
<ns0:title xml:lang="en-US">GNOME Network Settings</ns0:title>
<ns0:description xml:lang="en-US">
GNOME network settings that apply to the graphical interface.
</ns0:description>
<ns0:Rule id="gconf_gnome_disable_wifi_create" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable WIFI Network Connection Creation in GNOME</ns0:title>
<ns0:description xml:lang="en-US"><html:code>GNOME</html:code> allows users to create ad-hoc wireless connections through the
<html:code>NetworkManager</html:code> applet. Wireless connections should be disabled by
running the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/nm-applet/disable-wifi-create true</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Wireless network connections should not be allowed to be configured by general
users on a given system as it could open the system to backdoor attacks.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_wifi_create:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_wifi_create_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_wifi_disconnect" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable WIFI Network Disconnect Notification in GNOME</ns0:title>
<ns0:description xml:lang="en-US">
By default, <html:code>GNOME</html:code> disables WIFI notification when disconnecting from a
wireless network. This should be permanently set so that users do not connect to
a wireless network when the system finds one. While useful for mobile devices,
this setting should be disabled for all other systems. To configure the system
to disable the WIFI notication, run the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/nm-applet/disable-disconnected-notifications true</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Wireless network connections should not be allowed to be configured by general
users on a given system as it could open the system to backdoor attacks.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_wifi_disconnect:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_wifi_disconnect_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_wifi_notification" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable WIFI Network Connection Notification in GNOME</ns0:title>
<ns0:description xml:lang="en-US">
By default, <html:code>GNOME</html:code> disables WIFI notification when connecting to a wireless
network. This should be permanently set so that users do not connect to a wireless
network when the system finds one. While useful for mobile devices, this setting
should be disabled for all other systems. To configure the system to disable the
WIFI notication, run the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/nm-applet/disable-connected-notifications true</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Wireless network connections should not be allowed to be configured by general
users on a given system as it could open the system to backdoor attacks.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_wifi_notification:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_wifi_notification_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="gnome_remote_access_settings">
<ns0:title xml:lang="en-US">GNOME Remote Access Settings</ns0:title>
<ns0:description xml:lang="en-US">
GNOME remote access settings that apply to the graphical interface.
</ns0:description>
</ns0:Group>
<ns0:Group id="gnome_media_settings">
<ns0:title xml:lang="en-US">GNOME Media Settings</ns0:title>
<ns0:description xml:lang="en-US">
GNOME media settings that apply to the graphical interface.
</ns0:description>
<ns0:Rule id="gconf_gnome_disable_automount" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable GNOME Automounting</ns0:title>
<ns0:description xml:lang="en-US">The system's default desktop environment, GNOME, will mount
devices and removable media (such as DVDs, CDs and USB flash drives) whenever
they are inserted into the system. Disable automount and autorun within GNOME
by running the following:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/nautilus/preferences/media_automount false
$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/nautilus/preferences/media_autorun_never true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:rationale xml:lang="en-US">Disabling automatic mounting in GNOME can prevent
the introduction of malware via removable media.
It will, however, also prevent desktop users from legitimate use
of removable media.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_automount:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_automount_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gnome_disable_thumbnailers" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable All GNOME Thumbnailers</ns0:title>
<ns0:description xml:lang="en-US">The system's default desktop environment, GNOME, uses
a number of different thumbnailer programs to generate thumbnails
for any new or modified content in an opened folder. The following
command can disable the execution of these thumbnail applications:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /desktop/gnome/thumbnailers/disable_all true</html:pre>
This effectively prevents an attacker from gaining access to a
system through a flaw in GNOME's Nautilus thumbnail creators.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">An attacker with knowledge of a flaw in a GNOME3 thumbnailer application could craft a malicious
file to exploit this flaw. Assuming the attacker could place the malicious file on the local filesystem
(via a web upload for example) and assuming a user browses the same location using Nautilus, the
malicious file would exploit the thumbnailer with the potential for malicious code execution. It
is best to disable these thumbnailer applications unless they are explicitly required.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gnome_disable_thumbnailers:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gnome_disable_thumbnailers_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="permissions">
<ns0:title xml:lang="en-US">File Permissions and Masks</ns0:title>
<ns0:description xml:lang="en-US">Traditional Unix security relies heavily on file and
directory permissions to prevent unauthorized users from reading or
modifying files to which they should not have access.
<html:br /><html:br />
Several of the commands in this section search filesystems
for files or directories with certain characteristics, and are
intended to be run on every local partition on a given system.
When the variable <html:i>PART</html:i> appears in one of the commands below,
it means that the command is intended to be run repeatedly, with the
name of each local partition substituted for <html:i>PART</html:i> in turn.
<html:br /><html:br />
The following command prints a list of all xfs partitions on the local
system, which is the default filesystem for Red Hat Enterprise Linux
7 installations:
<html:pre>$ mount -t xfs | awk '{print $3}'</html:pre>
For any systems that use a different
local filesystem type, modify this command as appropriate.
</ns0:description>
<ns0:Group id="partitions">
<ns0:title xml:lang="en-US">Restrict Partition Mount Options</ns0:title>
<ns0:description xml:lang="en-US">System partitions can be mounted with certain options
that limit what files on those partitions can do. These options
are set in the <html:code>/etc/fstab</html:code> configuration file, and can be
used to make certain types of malicious behavior more difficult.</ns0:description>
<ns0:Value id="var_removable_partition" operator="equals" type="string">
<ns0:title xml:lang="en-US">Removable Partition</ns0:title>
<ns0:description xml:lang="en-US">This value is used by the checks mount_option_nodev_removable_partitions, mount_option_nodev_removable_partitions,
and mount_option_nodev_removable_partitions to ensure that the correct mount options are set on partitions mounted from
removable media such as CD-ROMs, USB keys, and floppy drives. This value should be modified to reflect any removable
partitions that are required on the local system.</ns0:description>
<ns0:value selector="dev_cdrom">/dev/cdrom</ns0:value>
</ns0:Value>
<ns0:Rule id="mount_option_nodev_nonroot_local_partitions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nodev Option to Non-Root Local Partitions</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nodev</html:code> mount option prevents files from being
interpreted as character or block devices.
Legitimate character and block devices should exist only in
the <html:code>/dev</html:code> directory on the root partition or within chroot
jails built for system services.
Add the <html:code>nodev</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any non-root local partitions.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>nodev</html:code> mount option prevents files from being
interpreted as character or block devices. The only legitimate location
for device files is the <html:code>/dev</html:code> directory located on the root partition.
The only exception to this is chroot jails, for which it is not advised
to set <html:code>nodev</html:code> on these filesystems.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="mount_option_nodev_nonroot_local_partitions" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# NOTE: Run-time reconfiguration of partitions' mount options is not possible.
# After performing this remediation be sure to also subsequently reboot the
# system as soon as possible for the remediation to take the effect!
# Shortened ID for frequently used character class
SP="[:space:]"
# Load /etc/fstab's content with LABEL= and UUID= tags expanded to real
# device names into FSTAB_REAL_DEVICES array splitting items by newline
IFS=$'\n' FSTAB_REAL_DEVICES=($(findmnt --fstab --evaluate --noheadings))
for line in ${FSTAB_REAL_DEVICES[@]}
do
# For each line:
# * squeeze multiple space characters into one,
# * split line content info four columns (target, source, fstype, and
# mount options) by space delimiter
IFS=$' ' read TARGET SOURCE FSTYPE MOUNT_OPTIONS <<< "$(echo $line | tr -s ' ')"
# Filter the targets according to the following criteria:
# * don't include record for root partition,
# * include the target only if it has the form of '/word.*' (not to include
# special entries like e.g swap),
# * include the target only if its source has the form of '/dev.*'
# (to process only local partitions)
if [[ ! $TARGET =~ ^\/$ ]] && # Don't include root partition
[[ $TARGET =~ ^\/[A-Za-z0-9_] ]] && # Include if target =~ '/word.*'
[[ $SOURCE =~ ^\/dev ]] # Include if source =~ '/dev.*'
then
# Check the mount options column if it doesn't contain 'nodev' keyword yet
if ! grep -q "nodev" <<< "$MOUNT_OPTIONS"
then
# Check if current mount options is empty string ('') meaning
# particular /etc/fstab row contain just 'defaults' keyword
if [[ ${#MOUNT_OPTIONS} == "0" ]]
then
# If so, add 'defaults' back and append 'nodev' keyword
MOUNT_OPTIONS="defaults,nodev"
else
# Otherwise append just 'nodev' keyword
MOUNT_OPTIONS="$MOUNT_OPTIONS,nodev"
fi
# Escape possible slash ('/') characters in target for use as sed
# expression below
TARGET_ESCAPED=${TARGET//$'/'/$'\/'}
# This target doesn't contain 'nodev' in mount options yet (and meets
# the above filtering criteria). Therefore obtain particular /etc/fstab's
# row into FSTAB_TARGET_ROW variable separating the mount options field with
# hash '#' character
FSTAB_TARGET_ROW=$(sed -n "s/\(.*$TARGET_ESCAPED[$SP]\+$FSTYPE[$SP]\+\)\([^$SP]\+\)/\1#\2#/p" /etc/fstab)
# Split the retrieved value by the hash '#' delimiter to get the
# row's head & tail (i.e. columns other than mount options) which won't
# get modified
IFS=$'#' read TARGET_HEAD TARGET_OPTS TARGET_TAIL <<< "$FSTAB_TARGET_ROW"
# Replace old mount options for particular /etc/fstab's row (for this target
# and fstype) with new mount options
sed -i "s#${TARGET_HEAD}\(.*\)${TARGET_TAIL}#${TARGET_HEAD}${MOUNT_OPTIONS}${TARGET_TAIL}#" /etc/fstab
fi
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_nodev_nonroot_local_partitions:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_nodev_removable_partitions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nodev Option to Removable Media Partitions</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nodev</html:code> mount option prevents files from being
interpreted as character or block devices.
Legitimate character and block devices should exist only in
the <html:code>/dev</html:code> directory on the root partition or within chroot
jails built for system services.
Add the <html:code>nodev</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any removable media partitions.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The only legitimate location for device files is the <html:code>/dev</html:code> directory
located on the root partition. An exception to this is chroot jails, and it is
not advised to set <html:code>nodev</html:code> on partitions which contain their root
filesystems.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_removable_partition:var:1" value-id="var_removable_partition" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_nodev_removable_partitions:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_noexec_removable_partitions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add noexec Option to Removable Media Partitions</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>noexec</html:code> mount option prevents the direct
execution of binaries on the mounted filesystem.
Preventing the direct execution of binaries from removable media (such as a USB
key) provides a defense against malicious software that may be present on such
untrusted media.
Add the <html:code>noexec</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any removable media partitions.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">87</ns0:reference>
<ns0:rationale xml:lang="en-US">Allowing users to execute binaries from removable media such as USB keys exposes
the system to potential compromise.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_removable_partition:var:1" value-id="var_removable_partition" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_noexec_removable_partitions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-mount_option_noexec_removable_partitions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_nosuid_removable_partitions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nosuid Option to Removable Media Partitions</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nosuid</html:code> mount option prevents set-user-identifier (SUID)
and set-group-identifier (SGID) permissions from taking effect. These permissions
allow users to execute binaries with the same permissions as the owner and group
of the file respectively. Users should not be allowed to introduce SUID and SGID
files into the system via partitions mounted from removeable media.
Add the <html:code>nosuid</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any removable media partitions.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The presence of SUID and SGID executables should be tightly controlled. Allowing
users to introduce SUID or SGID binaries from partitions mounted off of
removable media would allow them to introduce their own highly-privileged programs.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_removable_partition:var:1" value-id="var_removable_partition" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_nosuid_removable_partitions:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_tmp_nodev" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nodev Option to /tmp</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>nodev</html:code> mount option can be used to prevent device files from
being created in <html:code>/tmp</html:code>.
Legitimate character and block devices should not exist
within temporary directories like <html:code>/tmp</html:code>.
Add the <html:code>nodev</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/tmp</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The only legitimate location for device files is the <html:code>/dev</html:code> directory
located on the root partition. The only exception to this is chroot jails.</ns0:rationale>
<ns0:fix complexity="low" disruption="high" id="mount_option_tmp_nodev" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
part /tmp -mountoptions="nodev"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_tmp_nodev:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_tmp_noexec" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add noexec Option to /tmp</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>noexec</html:code> mount option can be used to prevent binaries
from being executed out of <html:code>/tmp</html:code>.
Add the <html:code>noexec</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/tmp</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">Allowing users to execute binaries from world-writable directories
such as <html:code>/tmp</html:code> should never be necessary in normal operation and
can expose the system to potential compromise.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_tmp_noexec:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_tmp_nosuid" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nosuid Option to /tmp</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nosuid</html:code> mount option can be used to prevent
execution of setuid programs in <html:code>/tmp</html:code>. The SUID and SGID permissions
should not be required in these world-writable directories.
Add the <html:code>nosuid</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/tmp</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The presence of SUID and SGID executables should be tightly controlled. Users
should not be able to execute SUID or SGID binaries from temporary storage partitions.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_tmp_nosuid:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_dev_shm_nodev" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nodev Option to /dev/shm</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nodev</html:code> mount option can be used to prevent creation
of device files in <html:code>/dev/shm</html:code>.
Legitimate character and block devices should not exist
within temporary directories like <html:code>/dev/shm</html:code>.
Add the <html:code>nodev</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/dev/shm</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The only legitimate location for device files is the <html:code>/dev</html:code> directory
located on the root partition. The only exception to this is chroot jails.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="mount_option_dev_shm_nodev" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Load /etc/fstab's /dev/shm row into DEV_SHM_FSTAB variable separating start &
# end of the filesystem mount options (4-th field) with the '#' character
DEV_SHM_FSTAB=$(sed -n "s/\(.*[[:space:]]\+\/dev\/shm[[:space:]]\+tmpfs[[:space:]]\+\)\([^[:space:]]\+\)/\1#\2#/p" /etc/fstab)
#Rest of script can trash /etc/fstab if $DEV_SHM_FSTAB is empty, check before continuing.
echo $DEV_SHM_FSTAB | grep -q -P '/dev/shm'
if [ $? -eq 0 ]; then
# Save the:
# * 1-th, 2-nd, 3-rd fields into DEV_SHM_HEAD variable
# * 4-th field into DEV_SHM_OPTS variable, and
# * 5-th, and 6-th fields into DEV_SHM_TAIL variable
# splitting DEV_SHM_FSTAB variable value based on the '#' separator
IFS='#' read DEV_SHM_HEAD DEV_SHM_OPTS DEV_SHM_TAIL <<< "$DEV_SHM_FSTAB"
# Replace occurrence of 'defaults' key with the actual list of mount options
# for Red Hat Enterprise Linux 6
DEV_SHM_OPTS=${DEV_SHM_OPTS//defaults/rw,suid,dev,exec,auto,nouser,async,relatime}
# 'dev' option (not prefixed with 'no') present in the list?
echo $DEV_SHM_OPTS | grep -q -P '(?<!no)dev'
if [ $? -eq 0 ]
then
# 'dev' option found, replace with 'nodev'
DEV_SHM_OPTS=${DEV_SHM_OPTS//dev/nodev}
fi
# at least one 'nodev' present in the options list?
echo $DEV_SHM_OPTS | grep -q -v 'nodev'
if [ $? -eq 0 ]
then
# 'nodev' not found yet, append it
DEV_SHM_OPTS="$DEV_SHM_OPTS,nodev"
fi
# DEV_SHM_OPTS now contains final list of mount options. Replace original form of /dev/shm row
# in /etc/fstab with the corrected version
sed -i "s#${DEV_SHM_HEAD}\(.*\)${DEV_SHM_TAIL}#${DEV_SHM_HEAD}${DEV_SHM_OPTS}${DEV_SHM_TAIL}#" /etc/fstab
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_dev_shm_nodev:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_dev_shm_noexec" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add noexec Option to /dev/shm</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>noexec</html:code> mount option can be used to prevent binaries
from being executed out of <html:code>/dev/shm</html:code>.
It can be dangerous to allow the execution of binaries
from world-writable temporary storage directories such as <html:code>/dev/shm</html:code>.
Add the <html:code>noexec</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/dev/shm</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">Allowing users to execute binaries from world-writable directories
such as <html:code>/dev/shm</html:code> can expose the system to potential compromise.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="mount_option_dev_shm_noexec" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Load /etc/fstab's /dev/shm row into DEV_SHM_FSTAB variable separating start &
# end of the filesystem mount options (4-th field) with the '#' character
DEV_SHM_FSTAB=$(sed -n "s/\(.*[[:space:]]\+\/dev\/shm[[:space:]]\+tmpfs[[:space:]]\+\)\([^[:space:]]\+\)/\1#\2#/p" /etc/fstab)
#Rest of script can trash /etc/fstab if $DEV_SHM_FSTAB is empty, check before continuing.
echo $DEV_SHM_FSTAB | grep -q -P '/dev/shm'
if [ $? -eq 0 ]; then
# Save the:
# * 1-th, 2-nd, 3-rd fields into DEV_SHM_HEAD variable
# * 4-th field into DEV_SHM_OPTS variable, and
# * 5-th, and 6-th fields into DEV_SHM_TAIL variable
# splitting DEV_SHM_FSTAB variable value based on the '#' separator
IFS='#' read DEV_SHM_HEAD DEV_SHM_OPTS DEV_SHM_TAIL <<< "$DEV_SHM_FSTAB"
# Replace occurrence of 'defaults' key with the actual list of mount options
# for Red Hat Enterprise Linux 6
DEV_SHM_OPTS=${DEV_SHM_OPTS//defaults/rw,suid,dev,exec,auto,nouser,async,relatime}
# 'exec' option (not prefixed with 'no') present in the list?
echo $DEV_SHM_OPTS | grep -q -P '(?<!no)exec'
if [ $? -eq 0 ]
then
# 'exec' option found, replace with 'noexec'
DEV_SHM_OPTS=${DEV_SHM_OPTS//exec/noexec}
fi
# at least one 'noexec' present in the options list?
echo $DEV_SHM_OPTS | grep -q -v 'noexec'
if [ $? -eq 0 ]
then
# 'noexec' not found yet, append it
DEV_SHM_OPTS="$DEV_SHM_OPTS,noexec"
fi
# DEV_SHM_OPTS now contains final list of mount options. Replace original form of /dev/shm row
# in /etc/fstab with the corrected version
sed -i "s#${DEV_SHM_HEAD}\(.*\)${DEV_SHM_TAIL}#${DEV_SHM_HEAD}${DEV_SHM_OPTS}${DEV_SHM_TAIL}#" /etc/fstab
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_dev_shm_noexec:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_dev_shm_nosuid" selected="false" severity="low">
<ns0:title xml:lang="en-US">Add nosuid Option to /dev/shm</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>nosuid</html:code> mount option can be used to prevent execution
of setuid programs in <html:code>/dev/shm</html:code>. The SUID and SGID permissions should not
be required in these world-writable directories.
Add the <html:code>nosuid</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
<html:code>/dev/shm</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">The presence of SUID and SGID executables should be tightly controlled. Users
should not be able to execute SUID or SGID binaries from temporary storage partitions.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="mount_option_dev_shm_nosuid" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Load /etc/fstab's /dev/shm row into DEV_SHM_FSTAB variable separating start &
# end of the filesystem mount options (4-th field) with the '#' character
DEV_SHM_FSTAB=$(sed -n "s/\(.*[[:space:]]\+\/dev\/shm[[:space:]]\+tmpfs[[:space:]]\+\)\([^[:space:]]\+\)/\1#\2#/p" /etc/fstab)
#Rest of script can trash /etc/fstab if $DEV_SHM_FSTAB is empty, check before continuing.
echo $DEV_SHM_FSTAB | grep -q -P '/dev/shm'
if [ $? -eq 0 ]; then
# Save the:
# * 1-th, 2-nd, 3-rd fields into DEV_SHM_HEAD variable
# * 4-th field into DEV_SHM_OPTS variable, and
# * 5-th, and 6-th fields into DEV_SHM_TAIL variable
# splitting DEV_SHM_FSTAB variable value based on the '#' separator
IFS='#' read DEV_SHM_HEAD DEV_SHM_OPTS DEV_SHM_TAIL <<< "$DEV_SHM_FSTAB"
# Replace occurrence of 'defaults' key with the actual list of mount options
# for Red Hat Enterprise Linux 6
DEV_SHM_OPTS=${DEV_SHM_OPTS//defaults/rw,suid,dev,exec,auto,nouser,async,relatime}
# 'suid' option (not prefixed with 'no') present in the list?
echo $DEV_SHM_OPTS | grep -q -P '(?<!no)suid'
if [ $? -eq 0 ]
then
# 'suid' option found, replace with 'nosuid'
DEV_SHM_OPTS=${DEV_SHM_OPTS//suid/nosuid}
fi
# at least one 'nosuid' present in the options list?
echo $DEV_SHM_OPTS | grep -q -v 'nosuid'
if [ $? -eq 0 ]
then
# 'nosuid' not found yet, append it
DEV_SHM_OPTS="$DEV_SHM_OPTS,nosuid"
fi
# DEV_SHM_OPTS now contains final list of mount options. Replace original form of /dev/shm row
# in /etc/fstab with the corrected version
sed -i "s#${DEV_SHM_HEAD}\(.*\)${DEV_SHM_TAIL}#${DEV_SHM_HEAD}${DEV_SHM_OPTS}${DEV_SHM_TAIL}#" /etc/fstab
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_dev_shm_nosuid:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_var_tmp_bind" selected="false" severity="low">
<ns0:title xml:lang="en-US">Bind Mount /var/tmp To /tmp</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>/var/tmp</html:code> directory is a world-writable directory.
Bind-mount it to <html:code>/tmp</html:code> in order to consolidate temporary storage into
one location protected by the same techniques as <html:code>/tmp</html:code>. To do so, edit
<html:code>/etc/fstab</html:code> and add the following line:
<html:pre>/tmp /var/tmp none rw,nodev,noexec,nosuid,bind 0 0</html:pre>
See the <html:code>mount(8)</html:code> man page for further explanation of bind mounting.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Having multiple locations for temporary storage is not required. Unless absolutely
necessary to meet requirements, the storage location <html:code>/var/tmp</html:code> should be bind mounted to
<html:code>/tmp</html:code> and thus share the same protections.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="mount_option_var_tmp_bind" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Delete particular /etc/fstab's row if /var/tmp is already configured to
# represent a mount point (for some device or filesystem other than /tmp)
if grep -q -P '.*\/var\/tmp.*' /etc/fstab
then
sed -i '/.*\/var\/tmp.*/d' /etc/fstab
fi
# Bind-mount /var/tmp to /tmp via /etc/fstab (preserving the /etc/fstab form)
printf "%-24s%-24s%-8s%-32s%-3s\n" "/tmp" "/var/tmp" "none" "rw,nodev,noexec,nosuid,bind" "0 0" >> /etc/fstab
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_var_tmp_bind:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="mounting">
<ns0:title xml:lang="en-US">Restrict Dynamic Mounting and Unmounting of
Filesystems</ns0:title>
<ns0:description xml:lang="en-US">Linux includes a number of facilities for the automated addition
and removal of filesystems on a running system. These facilities may be
necessary in many environments, but this capability also carries some risk -- whether direct
risk from allowing users to introduce arbitrary filesystems,
or risk that software flaws in the automated mount facility itself could
allow an attacker to compromise the system.
<html:br /><html:br />
This command can be used to list the types of filesystems that are
available to the currently executing kernel:
<html:pre>$ find /lib/modules/`uname -r`/kernel/fs -type f -name '*.ko'</html:pre>
If these filesystems are not required then they can be explicitly disabled
in a configuratio file in <html:code>/etc/modprobe.d</html:code>.
</ns0:description>
<ns0:Rule id="kernel_module_usb-storage_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Modprobe Loading of USB Storage Driver</ns0:title>
<ns0:description xml:lang="en-US">
To prevent USB storage devices from being used, configure the kernel module loading system
to prevent automatic loading of the USB storage driver.
To configure the system to prevent the <html:code>usb-storage</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install usb-storage /bin/true</html:pre>
This will prevent the <html:code>modprobe</html:code> program from loading the <html:code>usb-storage</html:code>
module, but will not prevent an administrator (or another program) from using the
<html:code>insmod</html:code> program to load the module manually.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1250</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:rationale xml:lang="en-US">USB storage devices such as thumb drives can be used to introduce
malicious software.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_usb-storage_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install usb-storage /bin/true" > /etc/modprobe.d/usb-storage.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_usb-storage_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'usb-storage' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- usb-storage
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_usb-storage_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_usb-storage_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="bootloader_nousb_argument" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Kernel Support for USB via Bootloader Configuration</ns0:title>
<ns0:description xml:lang="en-US">
All USB support can be disabled by adding the <html:code>nousb</html:code>
argument to the kernel's boot loader configuration. To do so,
append "nousb" to the kernel line in <html:code>/etc/grub.conf</html:code> as shown:
<html:pre>kernel /vmlinuz-<html:i>VERSION</html:i> ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet nousb</html:pre>
<html:i><html:b>WARNING:</html:b> Disabling all kernel support for USB will cause problems for
systems with USB-based keyboards, mice, or printers. This configuration is
infeasible for systems which require USB devices, which is common.</html:i></ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1250</ns0:reference>
<ns0:rationale xml:lang="en-US">Disabling the USB subsystem within the Linux kernel at system boot will
protect against potentially malicious USB devices, although it is only practical
in specialized systems.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-bootloader_nousb_argument:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="bios_disable_usb_boot" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Booting from USB Devices in Boot Firmware</ns0:title>
<ns0:description xml:lang="en-US">Configure the system boot firmware (historically called BIOS on PC
systems) to disallow booting from USB drives.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1250</ns0:reference>
<ns0:rationale xml:lang="en-US">Booting a system from a USB device would allow an attacker to
circumvent any security measures provided by the operating system. Attackers
could mount partitions and modify the configuration of the OS.</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="bios_assign_password" selected="false" severity="low">
<ns0:title xml:lang="en-US">Assign Password to Prevent Changes to Boot Firmware Configuration</ns0:title>
<ns0:description xml:lang="en-US">Assign a password to the system boot firmware (historically called BIOS on PC
systems) to require a password for any configuration changes.
</ns0:description>
<ns0:rationale xml:lang="en-US">Assigning a password to the system boot firmware prevents anyone
with physical access from configuring the system to boot
from local media and circumvent the operating system's access controls.
For systems in physically secure locations, such as
a data center or Sensitive Compartmented Information Facility (SCIF), this risk must be weighed
against the risk of administrative personnel being unable to conduct recovery operations in
a timely fashion.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="service_autofs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable the Automounter</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>autofs</html:code> daemon mounts and unmounts filesystems, such as user
home directories shared via NFS, on demand. In addition, autofs can be used to handle
removable media, and the default configuration provides the cdrom device as <html:code>/misc/cd</html:code>.
However, this method of providing access to removable media is not common, so autofs
can almost always be disabled if NFS is not in use. Even if NFS is required, it may be
possible to configure filesystem mounts statically by editing <html:code>/etc/fstab</html:code>
rather than relying on the automounter.
<html:br /><html:br />
The <html:code>autofs</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig autofs off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-19(e)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Disabling the automounter permits the administrator to
statically control filesystem mounting through <html:code>/etc/fstab</html:code>.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_autofs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable autofs
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_autofs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service autofs
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- autofs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_autofs_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_autofs_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_cramfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of cramfs</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>cramfs</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install cramfs /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_cramfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install cramfs /bin/true" > /etc/modprobe.d/cramfs.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_cramfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'cramfs' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- cramfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_cramfs_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_freevxfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of freevxfs</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>freevxfs</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install freevxfs /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_freevxfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install freevxfs /bin/true" > /etc/modprobe.d/freevxfs.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_freevxfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'freevxfs' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- freevxfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_freevxfs_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_jffs2_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of jffs2</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>jffs2</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install jffs2 /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_jffs2_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install jffs2 /bin/true" > /etc/modprobe.d/jffs2.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_jffs2_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'jffs2' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- jffs2
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_jffs2_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_hfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of hfs</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>hfs</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install hfs /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_hfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install hfs /bin/true" > /etc/modprobe.d/hfs.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_hfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'hfs' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- hfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_hfs_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_hfsplus_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of hfsplus</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>hfsplus</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install hfsplus /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_hfsplus_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install hfsplus /bin/true" > /etc/modprobe.d/hfsplus.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_hfsplus_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'hfsplus' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- hfsplus
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_hfsplus_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_squashfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of squashfs</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>squashfs</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install squashfs /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_squashfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install squashfs /bin/true" > /etc/modprobe.d/squashfs.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_squashfs_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'squashfs' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- squashfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_squashfs_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_udf_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Mounting of udf</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to prevent the <html:code>udf</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install udf /bin/true</html:pre>
This effectively prevents usage of this uncommon filesystem.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Linux kernel modules which implement filesystems that are not needed by the
local system should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_udf_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install udf /bin/true" > /etc/modprobe.d/udf.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_udf_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'udf' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- udf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_udf_disabled:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="files">
<ns0:title xml:lang="en-US">Verify Permissions on Important Files and
Directories</ns0:title>
<ns0:description xml:lang="en-US">Permissions for many files on a system must be set
restrictively to ensure sensitive information is properly protected.
This section discusses important
permission restrictions which can be verified
to ensure that no harmful discrepancies have
arisen.</ns0:description>
<ns0:Group id="permissions_important_account_files">
<ns0:title xml:lang="en-US">Verify Permissions on Files with Local Account Information and Credentials</ns0:title>
<ns0:description xml:lang="en-US">The default restrictive permissions for files which act as
important security databases such as <html:code>passwd</html:code>, <html:code>shadow</html:code>,
<html:code>group</html:code>, and <html:code>gshadow</html:code> files must be maintained. Many utilities
need read access to the <html:code>passwd</html:code> file in order to function properly, but
read access to the <html:code>shadow</html:code> file allows malicious attacks against system
passwords, and should never be enabled.</ns0:description>
<ns0:Rule id="userowner_shadow_file" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify User Who Owns shadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the owner of <html:code>/etc/shadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /etc/shadow </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/shadow</html:code> file contains the list of local
system accounts and stores password hashes. Protection of this file is
critical for system security. Failure to give ownership of this file
to root provides the designated owner with access to sensitive information
which could weaken the system security posture.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="userowner_shadow_file" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chown root /etc/shadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-userowner_shadow_file:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-userowner_shadow_file_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="groupowner_shadow_file" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Group Who Owns shadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the group owner of <html:code>/etc/shadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chgrp root /etc/shadow </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/shadow</html:code> file stores password hashes. Protection of this file is
critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="groupowner_shadow_file" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chgrp root /etc/shadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-groupowner_shadow_file:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-groupowner_shadow_file_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_etc_shadow" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Permissions on shadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the permissions of <html:code>/etc/shadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chmod 0000 /etc/shadow</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/shadow</html:code> file contains the list of local
system accounts and stores password hashes. Protection of this file is
critical for system security. Failure to give ownership of this file
to root provides the designated owner with access to sensitive information
which could weaken the system security posture.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_etc_shadow" reboot="false" strategy="configure" system="urn:xccdf:fix:script:sh">chmod 0000 /etc/shadow
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="file_permissions_etc_shadow" reboot="false" strategy="configure" system="urn:xccdf:fix:script:ansible">- name: Ensure permission 0000 on /etc/shadow
file:
path="{{item}}"
mode=0000
with_items:
- /etc/shadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_etc_shadow:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_etc_shadow_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_owner_etc_group" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify User Who Owns group File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the owner of <html:code>/etc/group</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /etc/group </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/group</html:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_owner_etc_group" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chown root /etc/group
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_owner_etc_group:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_owner_etc_group_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_groupowner_etc_group" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Group Who Owns group File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the group owner of <html:code>/etc/group</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chgrp root /etc/group </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/group</html:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_groupowner_etc_group" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chgrp root /etc/group
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_groupowner_etc_group:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_groupowner_etc_group_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_etc_group" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Permissions on group File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the permissions of <html:code>/etc/group</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chmod 644 /etc/group</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/group</html:code> file contains information regarding groups that are configured
on the system. Protection of this file is important for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_etc_group" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chmod 644 /etc/group
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_etc_group:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_etc_group_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_owner_etc_gshadow" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify User Who Owns gshadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the owner of <html:code>/etc/gshadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /etc/gshadow </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/gshadow</html:code> file contains group password hashes. Protection of this file
is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_owner_etc_gshadow" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chown root /etc/gshadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_owner_etc_gshadow:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_owner_etc_gshadow_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_groupowner_etc_gshadow" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Group Who Owns gshadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the group owner of <html:code>/etc/gshadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chgrp root /etc/gshadow </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/gshadow</html:code> file contains group password hashes. Protection of this file
is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_groupowner_etc_gshadow" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chgrp root /etc/gshadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_groupowner_etc_gshadow:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_groupowner_etc_gshadow_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_etc_gshadow" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Permissions on gshadow File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the permissions of <html:code>/etc/gshadow</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chmod 0000 /etc/gshadow</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/gshadow</html:code> file contains group password hashes. Protection of this file
is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_etc_gshadow" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chmod 0000 /etc/gshadow
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_etc_gshadow:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_etc_gshadow_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_owner_etc_passwd" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify User Who Owns passwd File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the owner of <html:code>/etc/passwd</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /etc/passwd </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/passwd</html:code> file contains information about the users that are configured on
the system. Protection of this file is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_owner_etc_passwd" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chown root /etc/passwd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_owner_etc_passwd:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_owner_etc_passwd_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_groupowner_etc_passwd" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Group Who Owns passwd File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the group owner of <html:code>/etc/passwd</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chgrp root /etc/passwd </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>/etc/passwd</html:code> file contains information about the users that are configured on
the system. Protection of this file is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_groupowner_etc_passwd" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chgrp root /etc/passwd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_groupowner_etc_passwd:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_groupowner_etc_passwd_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_etc_passwd" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Permissions on passwd File</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the permissions of <html:code>/etc/passwd</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chmod 0644 /etc/passwd</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">If the <html:code>/etc/passwd</html:code> file is writable by a group-owner or the
world the risk of its compromise is increased. The file contains the list of
accounts on the system and associated information, and protection of this file
is critical for system security.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_etc_passwd" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chmod 0644 /etc/passwd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_etc_passwd:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_etc_passwd_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="permissions_within_important_dirs">
<ns0:title xml:lang="en-US">Verify File Permissions Within Some Important Directories</ns0:title>
<ns0:description xml:lang="en-US">Some directories contain files whose confidentiality or integrity
is notably important and may also be susceptible to misconfiguration over time, particularly if
unpackaged software is installed. As such,
an argument exists to verify that files' permissions within these directories remain
configured correctly and restrictively.
</ns0:description>
<ns0:Rule id="file_permissions_library_dirs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify that Shared Library Files Have Restrictive Permissions</ns0:title>
<ns0:description xml:lang="en-US">System-wide shared library files, which are linked to executables
during process load time or run time, are stored in the following directories
by default:
<html:pre>/lib
/lib64
/usr/lib
/usr/lib64
</html:pre>
Kernel modules, which can be added to the kernel during runtime, are
stored in <html:code>/lib/modules</html:code>. All files in these directories
should not be group-writable or world-writable. If any file in these
directories is found to be group-writable or world-writable, correct
its permission with the following command:
<html:pre>$ sudo chmod go-w <html:i>FILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1499</ns0:reference>
<ns0:rationale xml:lang="en-US">Files from shared library directories are loaded into the address
space of processes (including privileged ones) or of the kernel itself at
runtime. Restrictive permissions are necessary to protect the integrity of the system.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_library_dirs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">DIRS="/lib /lib64 /usr/lib /usr/lib64"
for dirPath in $DIRS; do
find $dirPath -perm /022 -type f -exec chmod go-w '{}' \;
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_library_dirs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_library_dirs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_ownership_library_dirs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify that Shared Library Files Have Root Ownership</ns0:title>
<ns0:description xml:lang="en-US">System-wide shared library files, which are linked to executables
during process load time or run time, are stored in the following directories
by default:
<html:pre>/lib
/lib64
/usr/lib
/usr/lib64
</html:pre>
Kernel modules, which can be added to the kernel during runtime, are also
stored in <html:code>/lib/modules</html:code>. All files in these directories should be
owned by the <html:code>root</html:code> user. If the directory, or any file in these
directories, is found to be owned by a user other than root correct its
ownership with the following command:
<html:pre>$ sudo chown root <html:i>FILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1499</ns0:reference>
<ns0:rationale xml:lang="en-US">Files from shared library directories are loaded into the address
space of processes (including privileged ones) or of the kernel itself at
runtime. Proper ownership is necessary to protect the integrity of the system.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_ownership_library_dirs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">for LIBDIR in /usr/lib /usr/lib64 /lib /lib64
do
if [ -d $LIBDIR ]
then
find -L $LIBDIR \! -user root -exec chown root {} \;
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_ownership_library_dirs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_ownership_library_dirs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_binary_dirs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify that System Executables Have Restrictive Permissions</ns0:title>
<ns0:description xml:lang="en-US">
System executables are stored in the following directories by default:
<html:pre>/bin
/sbin
/usr/bin
/usr/libexec
/usr/local/bin
/usr/local/sbin
/usr/sbin</html:pre>
All files in these directories should not be group-writable or world-writable.
If any file <html:i>FILE</html:i> in these directories is found
to be group-writable or world-writable, correct its permission with the
following command:
<html:pre>$ sudo chmod go-w <html:i>FILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1499</ns0:reference>
<ns0:rationale xml:lang="en-US">System binaries are executed by privileged users, as well as system services,
and restrictive permissions are necessary to ensure execution of these programs
cannot be co-opted.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_binary_dirs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">DIRS="/bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin /usr/libexec"
for dirPath in $DIRS; do
find "$dirPath" -perm /022 -exec chmod go-w '{}' \;
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_binary_dirs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_binary_dirs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_ownership_binary_dirs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify that System Executables Have Root Ownership</ns0:title>
<ns0:description xml:lang="en-US">
System executables are stored in the following directories by default:
<html:pre>/bin
/sbin
/usr/bin
/usr/libexec
/usr/local/bin
/usr/local/sbin
/usr/sbin</html:pre>
All files in these directories should be owned by the <html:code>root</html:code> user.
If any file <html:i>FILE</html:i> in these directories is found
to be owned by a user other than root, correct its ownership with the
following command:
<html:pre>$ sudo chown root <html:i>FILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1499</ns0:reference>
<ns0:rationale xml:lang="en-US">System binaries are executed by privileged users as well as system services,
and restrictive permissions are necessary to ensure that their
execution of these programs cannot be co-opted.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_ownership_binary_dirs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">find /bin/ \
/usr/bin/ \
/usr/local/bin/ \
/sbin/ \
/usr/sbin/ \
/usr/local/sbin/ \
/usr/libexec \
\! -user root -execdir chown root {} \;
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_ownership_binary_dirs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_ownership_binary_dirs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="dir_perms_world_writable_sticky_bits" selected="false" severity="low">
<ns0:title xml:lang="en-US">Verify that All World-Writable Directories Have Sticky Bits Set</ns0:title>
<ns0:description xml:lang="en-US">When the so-called 'sticky bit' is set on a directory,
only the owner of a given file may remove that file from the
directory. Without the sticky bit, any user with write access to a
directory may remove any file in the directory. Setting the sticky
bit prevents users from removing each other's files. In cases where
there is no reason for a directory to be world-writable, a better
solution is to remove that permission rather than to set the sticky
bit. However, if a directory is used by a particular application,
consult that application's documentation instead of blindly
changing modes.
<html:br />
To set the sticky bit on a world-writable directory <html:i>DIR</html:i>, run the
following command:
<html:pre>$ sudo chmod +t <html:i>DIR</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:rationale xml:lang="en-US">
Failing to set the sticky bit on public directories allows unauthorized users to delete files in the directory structure.
<html:br /><html:br />
The only authorized public directories are those temporary directories supplied with the system,
or those designed to be temporary file repositories. The setting is normally reserved for directories
used by the system, by users for temporary file storage (such as <html:code>/tmp</html:code>), and for directories
requiring global read/write access.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dir_perms_world_writable_sticky_bits:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-dir_perms_world_writable_sticky_bits_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_unauthorized_world_writable" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure No World-Writable Files Exist</ns0:title>
<ns0:description xml:lang="en-US">It is generally a good idea to remove global (other) write
access to a file when it is discovered. However, check with
documentation for specific applications before making changes.
Also, monitor for recurring world-writable files, as these may be
symptoms of a misconfigured application or user
account.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:rationale xml:lang="en-US">
Data in world-writable files can be modified by any
user on the system. In almost all circumstances, files can be
configured using a combination of user and group permissions to
support whatever legitimate access is needed without the risk
caused by world-writable files.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_unauthorized_world_writable:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_unauthorized_world_writable_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_unauthorized_sgid" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All SGID Executables Are Authorized</ns0:title>
<ns0:description xml:lang="en-US">The SGID (set group id) bit should be set only on files that were
installed via authorized means. A straightforward means of identifying
unauthorized SGID files is determine if any were not installed as part of an
RPM package, which is cryptographically verified. Investigate the origin
of any unpackaged SGID files.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(1)</ns0:reference>
<ns0:rationale xml:lang="en-US">Executable files with the SGID permission run with the privileges of
the owner of the file. SGID files of uncertain provenance could allow for
unprivileged users to elevate privileges. The presence of these files should be
strictly controlled on the system.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_unauthorized_sgid:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_unauthorized_sgid_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_unauthorized_suid" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All SUID Executables Are Authorized</ns0:title>
<ns0:description xml:lang="en-US">The SUID (set user id) bit should be set only on files that were
installed via authorized means. A straightforward means of identifying
unauthorized SGID files is determine if any were not installed as part of an
RPM package, which is cryptographically verified. Investigate the origin
of any unpackaged SUID files.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(1)</ns0:reference>
<ns0:rationale xml:lang="en-US">Executable files with the SUID permission run with the privileges of
the owner of the file. SUID files of uncertain provenance could allow for
unprivileged users to elevate privileges. The presence of these files should be
strictly controlled on the system.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_unauthorized_suid:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_unauthorized_suid_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="no_files_unowned_by_user" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All Files Are Owned by a User</ns0:title>
<ns0:description xml:lang="en-US">If any files are not owned by a user, then the
cause of their lack of ownership should be investigated.
Following this, the files should be deleted or assigned to an
appropriate user.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">224</ns0:reference>
<ns0:rationale xml:lang="en-US">
Unowned files do not directly imply a security problem, but they are generally
a sign that something is amiss. They may
be caused by an intruder, by incorrect software installation or
draft software removal, or by failure to remove all files belonging
to a deleted account. The files should be repaired so they
will not cause problems when accounts are created in the future,
and the cause should be discovered and addressed.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_files_unowned_by_user:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_files_unowned_by_user_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_ungroupowned" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All Files Are Owned by a Group</ns0:title>
<ns0:description xml:lang="en-US">If any files are not owned by a group, then the
cause of their lack of group-ownership should be investigated.
Following this, the files should be deleted or assigned to an
appropriate group.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">224</ns0:reference>
<ns0:rationale xml:lang="en-US">
Unowned files do not directly imply a security problem, but they are generally
a sign that something is amiss. They may
be caused by an intruder, by incorrect software installation or
draft software removal, or by failure to remove all files belonging
to a deleted account. The files should be repaired so they
will not cause problems when accounts are created in the future,
and the cause should be discovered and addressed.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_ungroupowned:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_ungroupowned_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dir_perms_world_writable_system_owned" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All World-Writable Directories Are Owned by a System Account</ns0:title>
<ns0:description xml:lang="en-US">All directories in local partitions which are
world-writable should be owned by root or another
system account. If any world-writable directories are not
owned by a system account, this should be investigated.
Following this, the files should be deleted or assigned to an
appropriate group.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:rationale xml:lang="en-US">
Allowing a user account to own a world-writable directory is
undesirable because it allows the owner of that directory to remove
or replace any files that may be placed in the directory by other
users.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dir_perms_world_writable_system_owned:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-dir_perms_world_writable_system_owned_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="restrictions">
<ns0:title xml:lang="en-US">Restrict Programs from Dangerous Execution Patterns</ns0:title>
<ns0:description xml:lang="en-US">The recommendations in this section are designed to
ensure that the system's features to protect against potentially
dangerous program execution are activated.
These protections are applied at the system initialization or
kernel level, and defend against certain types of badly-configured
or compromised programs.</ns0:description>
<ns0:Group id="daemon_umask">
<ns0:title xml:lang="en-US">Daemon Umask</ns0:title>
<ns0:description xml:lang="en-US">The umask is a per-process setting which limits
the default permissions for creation of new files and directories.
The system includes initialization scripts which set the default umask
for system daemons.
</ns0:description>
<ns0:Value id="var_umask_for_daemons" operator="equals" type="string">
<ns0:title xml:lang="en-US">daemon umask</ns0:title>
<ns0:description xml:lang="en-US">Enter umask for daemons</ns0:description>
<ns0:value>022</ns0:value>
<ns0:value selector="022">022</ns0:value>
<ns0:value selector="027">027</ns0:value>
</ns0:Value>
<ns0:Rule id="umask_for_daemons" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Daemon Umask</ns0:title>
<ns0:description xml:lang="en-US">The file <html:code>/etc/init.d/functions</html:code> includes initialization
parameters for most or all daemons started at boot time. The default umask of
022 prevents creation of group- or world-writable files. To set the default
umask for daemons, edit the following line, inserting 022 or 027 for
<html:i>umask</html:i> appropriately:
<html:pre>umask <html:i><ns0:sub idref="var_umask_for_daemons" /></html:i></html:pre>
Setting the umask to too restrictive a setting can cause serious errors at
runtime. Many daemons on the system already individually restrict themselves to
a umask of 077 in their own init scripts.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:rationale xml:lang="en-US">The umask influences the permissions assigned to files created by a
process at run time. An unnecessarily permissive umask could result in files
being created with insecure permissions.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="umask_for_daemons" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_umask_for_daemons="<ns0:sub idref="var_umask_for_daemons" />"
grep -q ^umask /etc/init.d/functions && \
sed -i "s/umask.*/umask $var_umask_for_daemons/g" /etc/init.d/functions
if ! [ $? -eq 0 ]; then
echo "umask $var_umask_for_daemons" >> /etc/init.d/functions
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_umask_for_daemons:var:1" value-id="var_umask_for_daemons" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-umask_for_daemons:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-umask_for_daemons_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="coredumps">
<ns0:title xml:lang="en-US">Disable Core Dumps</ns0:title>
<ns0:description xml:lang="en-US">A core dump file is the memory image of an executable
program when it was terminated by the operating system due to
errant behavior. In most cases, only software developers
legitimately need to access these files. The core dump files may
also contain sensitive information, or unnecessarily occupy large
amounts of disk space.
<html:br /><html:br />
Once a hard limit is set in <html:code>/etc/security/limits.conf</html:code>, a
user cannot increase that limit within his or her own session. If access
to core dumps is required, consider restricting them to only
certain users or groups. See the <html:code>limits.conf</html:code> man page for more
information.
<html:br /><html:br />
The core dumps of setuid programs are further protected. The
<html:code>sysctl</html:code> variable <html:code>fs.suid_dumpable</html:code> controls whether
the kernel allows core dumps from these programs at all. The default
value of 0 is recommended.</ns0:description>
<ns0:Rule id="disable_users_coredumps" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Core Dumps for All Users</ns0:title>
<ns0:description xml:lang="en-US">To disable core dumps for all users, add the following line to
<html:code>/etc/security/limits.conf</html:code>:
<html:pre>* hard core 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:rationale xml:lang="en-US">A core dump includes a memory image taken at the time the operating system
terminates an application. The memory image could contain sensitive data and is generally useful
only for developers trying to debug problems.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="disable_users_coredumps" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">echo "* hard core 0" >> /etc/security/limits.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-disable_users_coredumps:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-disable_users_coredumps_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_fs_suid_dumpable" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Core Dumps for SUID programs</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>fs.suid_dumpable</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w fs.suid_dumpable=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">fs.suid_dumpable = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-11</ns0:reference>
<ns0:rationale xml:lang="en-US">The core dump of a setuid program is more likely to contain
sensitive data, as the program itself runs with greater privileges than the
user who initiated execution of the program. Disabling the ability for any
setuid program to write a core file decreases the risk of unauthorized access
of such data.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_fs_suid_dumpable" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for fs.suid_dumpable
#
/sbin/sysctl -q -n -w fs.suid_dumpable=0
#
# If fs.suid_dumpable present in /etc/sysctl.conf, change value to "0"
# else, add "fs.suid_dumpable = 0" to /etc/sysctl.conf
#
if grep --silent ^fs.suid_dumpable /etc/sysctl.conf ; then
sed -i 's/^fs.suid_dumpable.*/fs.suid_dumpable = 0/g' /etc/sysctl.conf
else
echo -e "\n# Set fs.suid_dumpable to 0 per security requirements" >> /etc/sysctl.conf
echo "fs.suid_dumpable = 0" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_fs_suid_dumpable:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_fs_suid_dumpable_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="enable_execshield_settings">
<ns0:title xml:lang="en-US">Enable ExecShield</ns0:title>
<ns0:description xml:lang="en-US">ExecShield describes kernel features that provide
protection against exploitation of memory corruption errors such as buffer
overflows. These features include random placement of the stack and other
memory regions, prevention of execution in memory that should only hold data,
and special handling of text buffers. These protections are enabled by default and
controlled through <html:code>sysctl</html:code> variables <html:code>kernel.exec-shield</html:code> and
<html:code>kernel.randomize_va_space</html:code>.
</ns0:description>
<ns0:Rule id="sysctl_kernel_exec_shield" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable ExecShield</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>kernel.exec-shield</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w kernel.exec-shield=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">kernel.exec-shield = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-39</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">2530</ns0:reference>
<ns0:rationale xml:lang="en-US">ExecShield uses the segmentation feature on all x86 systems
to prevent execution in memory higher than a certain address. It
writes an address as a limit in the code segment descriptor, to
control where code can be executed, on a per-process basis. When
the kernel places a process's memory regions such as the stack and
heap higher than this address, the hardware prevents execution in that
address range.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_kernel_exec_shield" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for kernel.exec-shield
#
/sbin/sysctl -q -n -w kernel.exec-shield=1
#
# If kernel.exec-shield present in /etc/sysctl.conf, change value to "1"
# else, add "kernel.exec-shield = 1" to /etc/sysctl.conf
#
if grep --silent ^kernel.exec-shield /etc/sysctl.conf ; then
sed -i 's/^kernel.exec-shield.*/kernel.exec-shield = 1/g' /etc/sysctl.conf
else
echo -e "\n# Set kernel.exec-shield to 1 per security requirements" >> /etc/sysctl.conf
echo "kernel.exec-shield = 1" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_kernel_exec_shield:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_kernel_exec_shield_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_kernel_randomize_va_space" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable Randomized Layout of Virtual Address Space</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>kernel.randomize_va_space</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w kernel.randomize_va_space=2</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">kernel.randomize_va_space = 2</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-30(2)</ns0:reference>
<ns0:rationale xml:lang="en-US"> Address space layout randomization (ASLR) makes it more difficult
for an attacker to predict the location of attack code they have introduced
into a process's address space during an attempt at exploitation. Additionally, ASLR
makes it more difficult for an attacker to know the location of existing code
in order to re-purpose it using return oriented programming (ROP) techniques.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_kernel_randomize_va_space" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for kernel.randomize_va_space
#
/sbin/sysctl -q -n -w kernel.randomize_va_space=2
#
# If kernel.randomize_va_space present in /etc/sysctl.conf, change value to "2"
# else, add "kernel.randomize_va_space = 2" to /etc/sysctl.conf
#
if grep --silent ^kernel.randomize_va_space /etc/sysctl.conf ; then
sed -i 's/^kernel.randomize_va_space.*/kernel.randomize_va_space = 2/g' /etc/sysctl.conf
else
echo -e "\n# Set kernel.randomize_va_space to 2 per security requirements" >> /etc/sysctl.conf
echo "kernel.randomize_va_space = 2" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_kernel_randomize_va_space:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_kernel_randomize_va_space_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="enable_nx">
<ns0:title xml:lang="en-US">Enable Execute Disable (XD) or No Execute (NX) Support on
x86 Systems</ns0:title>
<ns0:description xml:lang="en-US">Recent processors in the x86 family support the
ability to prevent code execution on a per memory page basis.
Generically and on AMD processors, this ability is called No
Execute (NX), while on Intel processors it is called Execute
Disable (XD). This ability can help prevent exploitation of buffer
overflow vulnerabilities and should be activated whenever possible.
Extra steps must be taken to ensure that this protection is
enabled, particularly on 32-bit x86 systems. Other processors, such
as Itanium and POWER, have included such support since inception
and the standard kernel for those platforms supports the
feature.</ns0:description>
<ns0:Rule id="install_PAE_kernel_on_x86-32" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install PAE Kernel on Supported 32-bit x86 Systems</ns0:title>
<ns0:description xml:lang="en-US">Systems that are using the 64-bit x86 kernel package
do not need to install the kernel-PAE package because the 64-bit
x86 kernel already includes this support. However, if the system is
32-bit and also supports the PAE and NX features as
determined in the previous section, the kernel-PAE package should
be installed to enable XD or NX support:
<html:pre>$ sudo yum install kernel-PAE</html:pre>
The installation process should also have configured the
bootloader to load the new kernel at boot. Verify this at reboot
and modify <html:code>/etc/grub.conf</html:code> if necessary.</ns0:description>
<ns0:warning category="hardware" xml:lang="en-US">The kernel-PAE package should not be
installed on older systems that do not support the XD or NX bit, as
this may prevent them from booting.</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:rationale xml:lang="en-US">On 32-bit systems that support the XD or NX bit, the vendor-supplied
PAE kernel is required to enable either Execute Disable (XD) or No Execute (NX) support.</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="bios_enable_execution_restrictions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable NX or XD Support in the BIOS</ns0:title>
<ns0:description xml:lang="en-US">Reboot the system and enter the BIOS or Setup configuration menu.
Navigate the BIOS configuration menu and make sure that the option is enabled. The setting may be located
under a Security section. Look for Execute Disable (XD) on Intel-based systems and No Execute (NX)
on AMD-based systems.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:rationale xml:lang="en-US">Computers with the ability to prevent this type of code execution frequently put an option in the BIOS that will
allow users to turn the feature on or off at will.</ns0:rationale>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="sysctl_kernel_dmesg_restrict" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Access to Kernel Message Buffer</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>kernel.dmesg_restrict</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w kernel.dmesg_restrict=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">kernel.dmesg_restrict = 1</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Unprivileged access to the kernel syslog can expose sensitive kernel
address information.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_kernel_dmesg_restrict" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for kernel.dmesg_restrict
#
/sbin/sysctl -q -n -w kernel.dmesg_restrict=1
#
# If kernel.dmesg_restrict present in /etc/sysctl.conf, change value to "1"
# else, add "kernel.dmesg_restrict = 1" to /etc/sysctl.conf
#
if grep --silent ^kernel.dmesg_restrict /etc/sysctl.conf ; then
sed -i 's/^kernel.dmesg_restrict.*/kernel.dmesg_restrict = 1/g' /etc/sysctl.conf
else
echo -e "\n# Set kernel.dmesg_restrict to 1 per security requirements" >> /etc/sysctl.conf
echo "kernel.dmesg_restrict = 1" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_kernel_dmesg_restrict:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_kernel_dmesg_restrict_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="selinux">
<ns0:title xml:lang="en-US">SELinux</ns0:title>
<ns0:description xml:lang="en-US">SELinux is a feature of the Linux kernel which can be
used to guard against misconfigured or compromised programs.
SELinux enforces the idea that programs should be limited in what
files they can access and what actions they can take.
<html:br /><html:br />
The default SELinux policy, as configured on Red Hat Enterprise Linux 6, has been
sufficiently developed and debugged that it should be usable on
almost any Red Hat machine with minimal configuration and a small
amount of system administrator training. This policy prevents
system services - including most of the common network-visible
services such as mail servers, FTP servers, and DNS servers - from
accessing files which those services have no valid reason to
access. This action alone prevents a huge amount of possible damage
from network attacks against services, from trojaned software, and
so forth.
<html:br /><html:br />
This guide recommends that SELinux be enabled using the
default (targeted) policy on every Red Hat system, unless that
system has unusual requirements which make a stronger policy
appropriate.
</ns0:description>
<ns0:Value id="var_selinux_state" operator="equals" type="string">
<ns0:title xml:lang="en-US">SELinux state</ns0:title>
<ns0:description xml:lang="en-US">enforcing - SELinux security policy is enforced.
<html:br />permissive - SELinux prints warnings instead of enforcing.
<html:br />disabled - SELinux is fully disabled.</ns0:description>
<ns0:value>enforcing</ns0:value>
<ns0:value selector="enforcing">enforcing</ns0:value>
<ns0:value selector="permissive">permissive</ns0:value>
<ns0:value selector="disabled">disabled</ns0:value>
</ns0:Value>
<ns0:Value id="var_selinux_policy_name" operator="equals" type="string">
<ns0:title xml:lang="en-US">SELinux policy</ns0:title>
<ns0:description xml:lang="en-US">Type of policy in use. Possible values are:
<html:br />targeted - Only targeted network daemons are protected.
<html:br />strict - Full SELinux protection.
<html:br />mls - Multiple levels of security</ns0:description>
<ns0:value>targeted</ns0:value>
<ns0:value selector="targeted">targeted</ns0:value>
<ns0:value selector="mls">mls</ns0:value>
</ns0:Value>
<ns0:Rule id="enable_selinux_bootloader" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure SELinux Not Disabled in /etc/grub.conf</ns0:title>
<ns0:description xml:lang="en-US">SELinux can be disabled at boot time by an argument in
<html:code>/etc/grub.conf</html:code>.
Remove any instances of <html:code>selinux=0</html:code> from the kernel arguments in that
file to prevent SELinux from being disabled at boot.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">22</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling a major host protection feature, such as SELinux, at boot time prevents
it from confining system services at boot time. Further, it increases
the chances that it will remain off during system operation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="enable_selinux_bootloader" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i --follow-symlinks "s/selinux=0//gI" /etc/grub.conf
sed -i --follow-symlinks "s/enforcing=0//gI" /etc/grub.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-enable_selinux_bootloader:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-enable_selinux_bootloader_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="selinux_state" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure SELinux State is Enforcing</ns0:title>
<ns0:description xml:lang="en-US">The SELinux state should be set to <html:code><ns0:sub idref="var_selinux_state" /></html:code> at
system boot time. In the file <html:code>/etc/selinux/config</html:code>, add or correct the
following line to configure the system to boot into enforcing mode:
<html:pre>SELINUX=<ns0:sub idref="var_selinux_state" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">22</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">26</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the SELinux state to enforcing ensures SELinux is able to confine
potentially compromised processes to the security policy, which is designed to
prevent them from causing damage to the system or further elevating their
privileges.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="selinux_state" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_selinux_state="<ns0:sub idref="var_selinux_state" />"
<ns0:sub idref="function_replace_or_append" />
replace_or_append '/etc/sysconfig/selinux' '^SELINUX=' $var_selinux_state 'CCE-26969-6' '%s=%s'
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_selinux_state:var:1" value-id="var_selinux_state" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-selinux_state:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-selinux_state_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="selinux_policytype" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure SELinux Policy</ns0:title>
<ns0:description xml:lang="en-US">The SELinux <html:code>targeted</html:code> policy is appropriate for
general-purpose desktops and servers, as well as systems in many other roles.
To configure the system to use this policy, add or correct the following line
in <html:code>/etc/selinux/config</html:code>:
<html:pre>SELINUXTYPE=<ns0:sub idref="var_selinux_policy_name" /></html:pre>
Other policies, such as <html:code>mls</html:code>, provide additional security labeling
and greater confinement but are not compatible with many general-purpose
use cases.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">22</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the SELinux policy to <html:code>targeted</html:code> or a more specialized policy
ensures the system will confine processes that are likely to be
targeted for exploitation, such as network or system services.
Note: During the development or debugging of SELinux modules, it is common to
temporarily place non-production systems in <html:code>permissive</html:code> mode. In such
temporary cases, SELinux policies should be developed, and once work
is completed, the system should be reconfigured to
<html:code><ns0:sub idref="var_selinux_policy_name" /></html:code>.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="selinux_policytype" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_selinux_policy_name="<ns0:sub idref="var_selinux_policy_name" />"
<ns0:sub idref="function_replace_or_append" />
replace_or_append '/etc/sysconfig/selinux' '^SELINUXTYPE=' $var_selinux_policy_name 'CCE-26875-5' '%s=%s'
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_selinux_policy_name:var:1" value-id="var_selinux_policy_name" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-selinux_policytype:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-selinux_policytype_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_restorecond_enabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable the SELinux Context Restoration Service (restorecond)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>restorecond</html:code> service utilizes <html:code>inotify</html:code> to look
for the creation of new files listed in the
<html:code>/etc/selinux/restorecond.conf</html:code> configuration file. When a file is
created, <html:code>restorecond</html:code> ensures the file receives the proper SELinux
security context.
The <html:code>restorecond</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 restorecond on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>restorecond</html:code> service helps ensure that the default SELinux
file context is applied to files. This allows automatic correction
of file contexts created by some programs.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_restorecond_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable restorecond
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_restorecond_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service restorecond
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- restorecond
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_restorecond_enabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_setroubleshoot_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall setroubleshoot Package</ns0:title>
<ns0:description xml:lang="en-US">The SETroubleshoot service notifies desktop users of SELinux
denials. The service provides information around configuration errors,
unauthorized intrusions, and other potential errors.
The <html:code>setroubleshoot</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase setroubleshoot</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">The SETroubleshoot service is an unnecessary daemon to
have running on a server</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_setroubleshoot_removed:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_mcstrans_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall mcstrans Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>mcstransd</html:code> daemon provides category label information
to client processes requesting information. The label translations are defined
in <html:code>/etc/selinux/targeted/setrans.conf</html:code>.
The <html:code>mcstrans</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase mcstrans</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Since this service is not used very often, disable it to reduce the
amount of potentially vulnerable code running on the system.
NOTE: This rule was added in support of the CIS RHEL6 v1.2.0 benchmark. Please
note that Red Hat does not feel this rule is security relevant.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_mcstrans_removed:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="selinux_confinement_of_daemons" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure No Daemons are Unconfined by SELinux</ns0:title>
<ns0:description xml:lang="en-US">
Daemons for which the SELinux policy does not contain rules will inherit the
context of the parent process. Because daemons are launched during
startup and descend from the <html:code>init</html:code> process, they inherit the <html:code>initrc_t</html:code> context.
<html:br />
<html:br />
To check for unconfined daemons, run the following command:
<html:pre>$ sudo ps -eZ | egrep "initrc" | egrep -vw "tr|ps|egrep|bash|awk" | tr ':' ' ' | awk '{ print $NF }'</html:pre>
It should produce no output in a well-configured system.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Daemons which run with the <html:code>initrc_t</html:code> context may cause AVC denials,
or allow privileges that the daemon does not require.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-selinux_confinement_of_daemons:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="selinux_all_devicefiles_labeled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure No Device Files are Unknown to SELinux</ns0:title>
<ns0:description xml:lang="en-US">Device files, which are used for communication with important
system resources, should be labeled with proper SELinux types. If any device
files carry the SELinux type <html:code>device_t</html:code>, report the bug so that policy can be corrected. Supply information about what the device is and what programs use it.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">22</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:rationale xml:lang="en-US">
If a device file carries the SELinux type <html:code>device_t</html:code>, then SELinux
cannot properly restrict access to the device file.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-selinux_all_devicefiles_labeled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-selinux_all_devicefiles_labeled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="accounts">
<ns0:title xml:lang="en-US">Account and Access Control</ns0:title>
<ns0:description xml:lang="en-US">In traditional Unix security, if an attacker gains
shell access to a certain login account, they can perform any action
or access any file to which that account has access. Therefore,
making it more difficult for unauthorized people to gain shell
access to accounts, particularly to privileged accounts, is a
necessary part of securing a system. This section introduces
mechanisms for restricting access to accounts under
Red Hat Enterprise Linux 6.</ns0:description>
<ns0:Group id="accounts-restrictions">
<ns0:title xml:lang="en-US">Protect Accounts by Restricting Password-Based Login</ns0:title>
<ns0:description xml:lang="en-US">Conventionally, Unix shell accounts are accessed by
providing a username and password to a login program, which tests
these values for correctness using the <html:code>/etc/passwd</html:code> and
<html:code>/etc/shadow</html:code> files. Password-based login is vulnerable to
guessing of weak passwords, and to sniffing and man-in-the-middle
attacks against passwords entered over a network or at an insecure
console. Therefore, mechanisms for accessing accounts by entering
usernames and passwords should be restricted to those which are
operationally necessary.</ns0:description>
<ns0:Group id="root_logins">
<ns0:title xml:lang="en-US">Restrict Root Logins</ns0:title>
<ns0:description xml:lang="en-US">
Direct root logins should be allowed only for emergency use.
In normal situations, the administrator should access the system
via a unique unprivileged account, and then use <html:code>su</html:code> or <html:code>sudo</html:code> to execute
privileged commands. Discouraging administrators from accessing the
root account directly ensures an audit trail in organizations with
multiple administrators. Locking down the channels through which
root can connect directly also reduces opportunities for
password-guessing against the root account. The <html:code>login</html:code> program
uses the file <html:code>/etc/securetty</html:code> to determine which interfaces
should allow root logins.
The virtual devices <html:code>/dev/console</html:code>
and <html:code>/dev/tty*</html:code> represent the system consoles (accessible via
the Ctrl-Alt-F1 through Ctrl-Alt-F6 keyboard sequences on a default
installation). The default securetty file also contains <html:code>/dev/vc/*</html:code>.
These are likely to be deprecated in most environments, but may be retained
for compatibility. Root should also be prohibited from connecting
via network protocols. Other sections of this document
include guidance describing how to prevent root from logging in via SSH.
</ns0:description>
<ns0:Rule id="no_direct_root_logins" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Direct root Logins Not Allowed</ns0:title>
<ns0:description xml:lang="en-US">To further limit access to the <html:code>root</html:code> account, administrators
can disable root logins at the console by editing the <html:code>/etc/securetty</html:code> file.
This file lists all devices the root user is allowed to login to. If the file does
not exist at all, the root user can login through any communication device on the
system, whether via the console or via a raw network interface. This is dangerous
as user can login to his machine as root via Telnet, which sends the password in
plain text over the network. By default, Red Hat Enteprise Linux's
<html:code>/etc/securetty</html:code> file only allows the root user to login at the console
physically attached to the machine. To prevent root from logging in, remove the
contents of this file. To prevent direct root logins, remove the contents of this
file by typing the following command:
<html:pre>
$ sudo echo > /etc/securetty
</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-2(1)</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling direct root logins ensures proper accountability and multifactor
authentication to privileged accounts. Users will first login, then escalate
to privileged (root) access via su / sudo. This is required for FISMA Low
and FISMA Moderate systems.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="no_direct_root_logins" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">echo > /etc/securetty
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_direct_root_logins:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_direct_root_logins_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="securetty_root_login_console_only" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Restrict Virtual Console Root Logins</ns0:title>
<ns0:description xml:lang="en-US">
To restrict root logins through the (deprecated) virtual console devices,
ensure lines of this form do not appear in <html:code>/etc/securetty</html:code>:
<html:pre>vc/1
vc/2
vc/3
vc/4</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(2)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">770</ns0:reference>
<ns0:rationale xml:lang="en-US">
Preventing direct root login to virtual console devices
helps ensure accountability for actions taken on the system
using the root account.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="securetty_root_login_console_only" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i '/^vc\//d' /etc/securetty
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-securetty_root_login_console_only:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-securetty_root_login_console_only_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="restrict_serial_port_logins" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Serial Port Root Logins</ns0:title>
<ns0:description xml:lang="en-US">To restrict root logins on serial ports,
ensure lines of this form do not appear in <html:code>/etc/securetty</html:code>:
<html:pre>ttyS0
ttyS1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(2)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">770</ns0:reference>
<ns0:rationale xml:lang="en-US">
Preventing direct root login to serial port interfaces
helps ensure accountability for actions taken on the systems
using the root account.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="restrict_serial_port_logins" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i '/ttyS/d' /etc/securetty
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-restrict_serial_port_logins:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-restrict_serial_port_logins_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="no_root_webbrowsing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Web Browser Use for Administrative Accounts</ns0:title>
<ns0:description xml:lang="en-US">
Enforce policy requiring administrative accounts use web browsers only for
local service administration.
</ns0:description>
<ns0:rationale xml:lang="en-US">
If a browser vulnerability is exploited while running with administrative privileges,
the entire system could be compromised. Specific exceptions for local service
administration should be documented in site-defined policy.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_root_webbrowsing_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="no_shelllogin_for_systemaccounts" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure that System Accounts Do Not Run a Shell Upon Login</ns0:title>
<ns0:description xml:lang="en-US">
Some accounts are not associated with a human user of the system, and exist to
perform some administrative function. Should an attacker be able to log into
these accounts, they should not be granted access to a shell.
<html:br /><html:br />
The login shell for each local account is stored in the last field of each line
in <html:code>/etc/passwd</html:code>. System accounts are those user accounts with a user ID
less than UID_MIN, where value of the UID_MIN directive is set in
/etc/login.defs configuration file. In the default configuration UID_MIN is set
to 500, thus system accounts are those user accounts with a user ID less than
500. The user ID is stored in the third field. If any system account
<html:i>SYSACCT</html:i> (other than root) has a login shell, disable it with the
command: <html:pre>$ sudo usermod -s /sbin/nologin <html:i>SYSACCT</html:i></html:pre>
</ns0:description>
<ns0:warning category="functionality" xml:lang="en-US">
Do not perform the steps in this section on the root account. Doing so might
cause the system to become inaccessible.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">178</ns0:reference>
<ns0:rationale xml:lang="en-US">
Ensuring shells are not given to system accounts upon login makes it more
difficult for attackers to make use of system accounts.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_shelllogin_for_systemaccounts:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_shelllogin_for_systemaccounts_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_no_uid_except_zero" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify Only Root Has UID 0</ns0:title>
<ns0:description xml:lang="en-US">
If any account other than root has a UID of 0,
this misconfiguration should be investigated and the
accounts other than root should be removed or have their UID changed.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-2(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
An account has root authority if it has a UID of 0. Multiple accounts
with a UID of 0 afford more opportunity for potential intruders to
guess a password for a privileged account. Proper configuration of
sudo is recommended to afford multiple system administrators
access to root privileges in an accountable manner.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_no_uid_except_zero" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">awk -F: '$3 == 0 && $1 != "root" { print $1 }' /etc/passwd | xargs passwd -l
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_no_uid_except_zero:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_no_uid_except_zero_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="root_path_default" selected="false" severity="low">
<ns0:title xml:lang="en-US">Root Path Must Be Vendor Default</ns0:title>
<ns0:description xml:lang="en-US">
Assuming root shell is bash, edit the following files:
<html:pre>~/.profile</html:pre>
<html:pre>~/.bashrc</html:pre>
Change any <html:code>PATH</html:code> variables to the vendor default for root and remove any
empty <html:code>PATH</html:code> entries or references to relative paths.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:rationale xml:lang="en-US">
The root account's executable search path must be the vendor default, and must
contain only absolute paths.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-root_path_default_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="password_storage">
<ns0:title xml:lang="en-US">Verify Proper Storage and Existence of Password
Hashes</ns0:title>
<ns0:description xml:lang="en-US">
By default, password hashes for local accounts are stored
in the second field (colon-separated) in
<html:code>/etc/shadow</html:code>. This file should be readable only by
processes running with root credentials, preventing users from
casually accessing others' password hashes and attempting
to crack them.
However, it remains possible to misconfigure the system
and store password hashes
in world-readable files such as <html:code>/etc/passwd</html:code>, or
to even store passwords themselves in plaintext on the system.
Using system-provided tools for password change/creation
should allow administrators to avoid such misconfiguration.
</ns0:description>
<ns0:Rule id="no_empty_passwords" selected="false" severity="high">
<ns0:title xml:lang="en-US">Prevent Log In to Accounts With Empty Password</ns0:title>
<ns0:description xml:lang="en-US">If an account is configured for password authentication
but does not have an assigned password, it may be possible to log
onto the account without authentication. Remove any instances of the <html:code>nullok</html:code>
option in <html:code>/etc/pam.d/system-auth</html:code> to
prevent logins with empty passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:rationale xml:lang="en-US">
If an account has an empty password, anyone could log in and
run commands with the privileges of that account. Accounts with
empty passwords should never be used in operational
environments.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="no_empty_passwords" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed --follow-symlinks -i 's/\<nullok\>//g' /etc/pam.d/system-auth
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_empty_passwords:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_empty_passwords_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_all_shadowed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify All Account Password Hashes are Shadowed</ns0:title>
<ns0:description xml:lang="en-US">
If any password hashes are stored in <html:code>/etc/passwd</html:code> (in the second field,
instead of an <html:code>x</html:code>), the cause of this misconfiguration should be
investigated. The account should have its password reset and the hash should be
properly stored, or the account should be deleted entirely.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(h)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">201</ns0:reference>
<ns0:rationale xml:lang="en-US">
The hashes for all user account passwords should be stored in
the file <html:code>/etc/shadow</html:code> and never in <html:code>/etc/passwd</html:code>,
which is readable by all users.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_all_shadowed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_all_shadowed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gid_passwd_group_same" selected="false" severity="low">
<ns0:title xml:lang="en-US">All GIDs referenced in /etc/passwd must be defined in /etc/group</ns0:title>
<ns0:description xml:lang="en-US">
Add a group to the system for each GID referenced without a corresponding group.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Inconsistency in GIDs between <html:code>/etc/passwd</html:code> and <html:code>/etc/group</html:code> could lead to a user having unintended rights.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gid_passwd_group_same:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gid_passwd_group_same_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="no_netrc_files" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify No netrc Files Exist</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>.netrc</html:code> files contain login information
used to auto-login into FTP servers and reside in the user's home
directory. These files may contain unencrypted passwords to
remote FTP servers making them susceptible to access by unauthorized
users and should not be used. Any <html:code>.netrc</html:code> files should be removed.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(h)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">196</ns0:reference>
<ns0:rationale xml:lang="en-US">
Unencrypted passwords for remote FTP servers may be stored in <html:code>.netrc</html:code>
files. DoD policy requires passwords be encrypted in storage and not used
in access scripts.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_netrc_files:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_netrc_files_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="password_expiration">
<ns0:title xml:lang="en-US">Set Password Expiration Parameters</ns0:title>
<ns0:description xml:lang="en-US">The file <html:code>/etc/login.defs</html:code> controls several
password-related settings. Programs such as <html:code>passwd</html:code>,
<html:code>su</html:code>, and
<html:code>login</html:code> consult <html:code>/etc/login.defs</html:code> to determine
behavior with regard to password aging, expiration warnings,
and length. See the man page <html:code>login.defs(5)</html:code> for more information.
<html:br /><html:br />
Users should be forced to change their passwords, in order to
decrease the utility of compromised passwords. However, the need to
change passwords often should be balanced against the risk that
users will reuse or write down passwords if forced to change them
too often. Forcing password changes every 90-360 days, depending on
the environment, is recommended. Set the appropriate value as
<html:code>PASS_MAX_DAYS</html:code> and apply it to existing accounts with the
<html:code>-M</html:code> flag.
<html:br /><html:br />
The <html:code>PASS_MIN_DAYS</html:code> (<html:code>-m</html:code>) setting prevents password
changes for 7 days after the first change, to discourage password
cycling. If you use this setting, train users to contact an administrator
for an emergency password change in case a new password becomes
compromised. The <html:code>PASS_WARN_AGE</html:code> (<html:code>-W</html:code>) setting gives
users 7 days of warnings at login time that their passwords are about to expire.
<html:br /><html:br />
For example, for each existing human user <html:i>USER</html:i>, expiration parameters
could be adjusted to a 180 day maximum password age, 7 day minimum password
age, and 7 day warning period with the following command:
<html:pre>$ sudo chage -M 180 -m 7 -W 7 USER</html:pre>
</ns0:description>
<ns0:Value id="var_accounts_password_minlen_login_defs" type="number">
<ns0:title xml:lang="en-US">minimum password length</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of characters in password</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This will only check new passwords</ns0:warning>
<ns0:value>14</ns0:value>
<ns0:value selector="6">6</ns0:value>
<ns0:value selector="8">8</ns0:value>
<ns0:value selector="10">10</ns0:value>
<ns0:value selector="12">12</ns0:value>
<ns0:value selector="14">14</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_maximum_age_login_defs" type="number">
<ns0:title xml:lang="en-US">maximum password age</ns0:title>
<ns0:description xml:lang="en-US">Maximum age of password in days</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This will only apply to newly created accounts</ns0:warning>
<ns0:value>60</ns0:value>
<ns0:value selector="60">60</ns0:value>
<ns0:value selector="90">90</ns0:value>
<ns0:value selector="120">120</ns0:value>
<ns0:value selector="180">180</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_minimum_age_login_defs" type="number">
<ns0:title xml:lang="en-US">minimum password age</ns0:title>
<ns0:description xml:lang="en-US">Minimum age of password in days</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This will only apply to newly created accounts</ns0:warning>
<ns0:value>7</ns0:value>
<ns0:value selector="7">7</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_password_warn_age_login_defs" type="number">
<ns0:title xml:lang="en-US">warning days before password expires</ns0:title>
<ns0:description xml:lang="en-US">The number of days' warning given before a password expires.</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This will only apply to newly created accounts</ns0:warning>
<ns0:value>7</ns0:value>
<ns0:value selector="0">0</ns0:value>
<ns0:value selector="7">7</ns0:value>
<ns0:value selector="14">14</ns0:value>
</ns0:Value>
<ns0:Rule id="accounts_password_minlen_login_defs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Minimum Length in login.defs</ns0:title>
<ns0:description xml:lang="en-US">To specify password length requirements for new accounts,
edit the file <html:code>/etc/login.defs</html:code> and add or correct the following
lines:
<html:pre>PASS_MIN_LEN <ns0:sub idref="var_accounts_password_minlen_login_defs" /></html:pre>
<html:br /><html:br />
As of the DISA Red Hat 6 STIG - Ver 1, Rel 13 (28-OCT-2016), the DoD requirement is now <html:code>15</html:code>.
The FISMA requirement is <html:code>12</html:code>.
If a program consults <html:code>/etc/login.defs</html:code> and also another PAM module
(such as <html:code>pam_cracklib</html:code>) during a password change operation,
then the most restrictive must be satisfied. See PAM section
for more information about enforcing password quality requirements.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(f)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">205</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring a minimum password length makes password
cracking attacks more difficult by ensuring a larger
search space. However, any security benefit from an onerous requirement
must be carefully weighed against usability problems, support costs, or counterproductive
behavior that may result.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_minlen_login_defs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_password_minlen_login_defs="<ns0:sub idref="var_accounts_password_minlen_login_defs" />"
grep -q ^PASS_MIN_LEN /etc/login.defs && \
sed -i "s/PASS_MIN_LEN.*/PASS_MIN_LEN $var_accounts_password_minlen_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_MIN_LEN $var_accounts_password_minlen_login_defs" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_password_minlen_login_defs:var:1" value-id="var_accounts_password_minlen_login_defs" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_minlen_login_defs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_minlen_login_defs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_minimum_age_login_defs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Minimum Age</ns0:title>
<ns0:description xml:lang="en-US">To specify password minimum age for new accounts,
edit the file <html:code>/etc/login.defs</html:code>
and add or correct the following line:
<html:pre>PASS_MIN_DAYS <html:i><ns0:sub idref="var_accounts_minimum_age_login_defs" /></html:i></html:pre>
A value of 1 day is considered for sufficient for many
environments.
The DoD requirement is 1.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(f)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(d)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">198</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the minimum password age protects against
users cycling back to a favorite password
after satisfying the password reuse requirement.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_minimum_age_login_defs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_minimum_age_login_defs="<ns0:sub idref="var_accounts_minimum_age_login_defs" />"
grep -q ^PASS_MIN_DAYS /etc/login.defs && \
sed -i "s/PASS_MIN_DAYS.*/PASS_MIN_DAYS $var_accounts_minimum_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_MIN_DAYS $var_accounts_minimum_age_login_defs" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_minimum_age_login_defs:var:1" value-id="var_accounts_minimum_age_login_defs" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_minimum_age_login_defs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_minimum_age_login_defs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_maximum_age_login_defs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Maximum Age</ns0:title>
<ns0:description xml:lang="en-US">To specify password maximum age for new accounts,
edit the file <html:code>/etc/login.defs</html:code>
and add or correct the following line:
<html:pre>PASS_MAX_DAYS <html:i><ns0:sub idref="var_accounts_maximum_age_login_defs" /></html:i></html:pre>
A value of 180 days is sufficient for many environments.
The DoD requirement is 60.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(f)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(g)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(d)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">180</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">199</ns0:reference>
<ns0:reference href="">76</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the password maximum age ensures users are required to
periodically change their passwords. This could possibly decrease
the utility of a stolen password. Requiring shorter password lifetimes
increases the risk of users writing down the password in a convenient
location subject to physical compromise.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_maximum_age_login_defs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_maximum_age_login_defs="<ns0:sub idref="var_accounts_maximum_age_login_defs" />"
grep -q ^PASS_MAX_DAYS /etc/login.defs && \
sed -i "s/PASS_MAX_DAYS.*/PASS_MAX_DAYS $var_accounts_maximum_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_MAX_DAYS $var_accounts_maximum_age_login_defs" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_maximum_age_login_defs:var:1" value-id="var_accounts_maximum_age_login_defs" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_maximum_age_login_defs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_maximum_age_login_defs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_warn_age_login_defs" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Warning Age</ns0:title>
<ns0:description xml:lang="en-US">To specify how many days prior to password
expiration that a warning will be issued to users,
edit the file <html:code>/etc/login.defs</html:code> and add or correct
the following line:
<html:pre>PASS_WARN_AGE <html:i><ns0:sub idref="var_accounts_password_warn_age_login_defs" /></html:i></html:pre>
The DoD requirement is 7.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(f)</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the password warning age enables users to
make the change at a practical time.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_warn_age_login_defs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_password_warn_age_login_defs="<ns0:sub idref="var_accounts_password_warn_age_login_defs" />"
grep -q ^PASS_WARN_AGE /etc/login.defs && \
sed -i "s/PASS_WARN_AGE.*/PASS_WARN_AGE $var_accounts_password_warn_age_login_defs/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "PASS_WARN_AGE $var_accounts_password_warn_age_login_defs" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_password_warn_age_login_defs:var:1" value-id="var_accounts_password_warn_age_login_defs" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_warn_age_login_defs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_warn_age_login_defs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="account_expiration">
<ns0:title xml:lang="en-US">Set Account Expiration Parameters</ns0:title>
<ns0:description xml:lang="en-US">Accounts can be configured to be automatically disabled
after a certain time period,
meaning that they will require administrator interaction to become usable again.
Expiration of accounts after inactivity can be set for all accounts by default
and also on a per-account basis, such as for accounts that are known to be temporary.
To configure automatic expiration of an account following
the expiration of its password (that is, after the password has expired and not been changed),
run the following command, substituting <html:code><html:i>NUM_DAYS</html:i></html:code> and <html:code><html:i>USER</html:i></html:code> appropriately:
<html:pre>$ sudo chage -I <html:i>NUM_DAYS USER</html:i></html:pre>
Accounts, such as temporary accounts, can also be configured to expire on an explicitly-set date with the
<html:code>-E</html:code> option.
The file <html:code>/etc/default/useradd</html:code> controls
default settings for all newly-created accounts created with the system's
normal command line utilities.
</ns0:description>
<ns0:Value id="var_account_disable_post_pw_expiration" type="number">
<ns0:title xml:lang="en-US">number of days after a password expires until the account is permanently disabled</ns0:title>
<ns0:description xml:lang="en-US">The number of days to wait after a password expires, until the account will be permanently disabled.</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This will only apply to newly created accounts</ns0:warning>
<ns0:value>35</ns0:value>
<ns0:value selector="30">30</ns0:value>
<ns0:value selector="35">35</ns0:value>
<ns0:value selector="40">40</ns0:value>
<ns0:value selector="60">60</ns0:value>
<ns0:value selector="90">90</ns0:value>
<ns0:value selector="180">180</ns0:value>
</ns0:Value>
<ns0:Rule id="account_disable_post_pw_expiration" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Account Expiration Following Inactivity</ns0:title>
<ns0:description xml:lang="en-US">To specify the number of days after a password expires (which
signifies inactivity) until an account is permanently disabled, add or correct
the following lines in <html:code>/etc/default/useradd</html:code>, substituting
<html:code><html:i>NUM_DAYS</html:i></html:code> appropriately:
<html:pre>INACTIVE=<html:i><ns0:sub idref="account_disable_post_pw_expiration" /></html:i></html:pre>
A value of 35 is recommended.
If a password is currently on the
verge of expiration, then 35 days remain until the account is automatically
disabled. However, if the password will not expire for another 60 days, then 95
days could elapse until the account would be automatically disabled. See the
<html:code>useradd</html:code> man page for more information. Determining the inactivity
timeout must be done with careful consideration of the length of a "normal"
period of inactivity for users in the particular environment. Setting
the timeout too low incurs support costs and also has the potential to impact
availability of the system to legitimate users.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(3)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">16</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">17</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">795</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling inactive accounts ensures that accounts which may not
have been responsibly removed are not available to attackers
who may have compromised their credentials.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="account_disable_post_pw_expiration" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_account_disable_post_pw_expiration="<ns0:sub idref="var_account_disable_post_pw_expiration" />"
grep -q ^INACTIVE /etc/default/useradd && \
sed -i "s/INACTIVE.*/INACTIVE=$var_account_disable_post_pw_expiration/g" /etc/default/useradd
if ! [ $? -eq 0 ]; then
echo "INACTIVE=$var_account_disable_post_pw_expiration" >> /etc/default/useradd
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_account_disable_post_pw_expiration:var:1" value-id="var_account_disable_post_pw_expiration" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-account_disable_post_pw_expiration:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-account_disable_post_pw_expiration_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="account_unique_name" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure All Accounts on the System Have Unique Names</ns0:title>
<ns0:description xml:lang="en-US">
Change usernames, or delete accounts, so each has a unique name.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">770</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">804</ns0:reference>
<ns0:rationale xml:lang="en-US">
Unique usernames allow for accountability on the system.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-account_unique_name:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-account_unique_name_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="account_temp_expire_date" selected="false" severity="low">
<ns0:title xml:lang="en-US">Assign Expiration Date to Temporary Accounts</ns0:title>
<ns0:description xml:lang="en-US">
In the event temporary or emergency accounts are required, configure the system
to terminate them after a documented time period. For every temporary and
emergency account, run the following command to set an expiration date on it,
substituting <html:code><html:i>USER</html:i></html:code> and <html:code><html:i>YYYY-MM-DD</html:i></html:code> appropriately:
<html:pre>$ sudo chage -E <html:i>YYYY-MM-DD USER</html:i></html:pre>
<html:code><html:i>YYYY-MM-DD</html:i></html:code> indicates the documented expiration date for the account.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(3)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">16</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1682</ns0:reference>
<ns0:rationale xml:lang="en-US">
When temporary and emergency accounts are created, there is a risk they may
remain in place and active after the need for them no longer exists. Account
expiration greatly reduces the risk of accounts being misused or hijacked.
<html:br />
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-account_temp_expire_date_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="accounts-pam">
<ns0:title xml:lang="en-US">Protect Accounts by Configuring PAM</ns0:title>
<ns0:description xml:lang="en-US">PAM, or Pluggable Authentication Modules, is a system
which implements modular authentication for Linux programs. PAM provides
a flexible and configurable architecture for authentication, and it should be configured
to minimize exposure to unnecessary risk. This section contains
guidance on how to accomplish that.
<html:br /><html:br />
PAM is implemented as a set of shared objects which are
loaded and invoked whenever an application wishes to authenticate a
user. Typically, the application must be running as root in order
to take advantage of PAM, because PAM's modules often need to be able
to access sensitive stores of account information, such as /etc/shadow.
Traditional privileged network listeners
(e.g. sshd) or SUID programs (e.g. sudo) already meet this
requirement. An SUID root application, userhelper, is provided so
that programs which are not SUID or privileged themselves can still
take advantage of PAM.
<html:br /><html:br />
PAM looks in the directory <html:code>/etc/pam.d</html:code> for
application-specific configuration information. For instance, if
the program login attempts to authenticate a user, then PAM's
libraries follow the instructions in the file <html:code>/etc/pam.d/login</html:code>
to determine what actions should be taken.
<html:br /><html:br />
One very important file in <html:code>/etc/pam.d</html:code> is
<html:code>/etc/pam.d/system-auth</html:code>. This file, which is included by
many other PAM configuration files, defines 'default' system authentication
measures. Modifying this file is a good way to make far-reaching
authentication changes, for instance when implementing a
centralized authentication service.</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Be careful when making changes to PAM's
configuration files. The syntax for these files is complex, and
modifications can have unexpected consequences. The default
configurations shipped with applications should be sufficient for
most users.</ns0:warning>
<ns0:warning category="general" xml:lang="en-US">Running <html:code>authconfig</html:code> or
<html:code>system-config-authentication</html:code> will re-write the PAM configuration
files, destroying any manually made changes and replacing them with
a series of system defaults. One reference to the configuration
file syntax can be found at
<html:a href="http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-configuration-file.html">http://www.kernel.org/pub/linux/libs/pam/Linux-PAM-html/sag-configuration-file.html</html:a>.</ns0:warning>
<ns0:Value id="var_password_pam_unix_remember" operator="equals" type="number">
<ns0:title xml:lang="en-US">remember</ns0:title>
<ns0:description xml:lang="en-US">The last n passwords for each user are saved in
<html:code>/etc/security/opasswd</html:code> in order to force password change history and
keep the user from alternating between the same password too
frequently.</ns0:description>
<ns0:value>5</ns0:value>
<ns0:value selector="0">0</ns0:value>
<ns0:value selector="4">4</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="10">10</ns0:value>
<ns0:value selector="24">24</ns0:value>
</ns0:Value>
<ns0:Rule id="display_login_attempts" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Last Login/Access Notification</ns0:title>
<ns0:description xml:lang="en-US">To configure the system to notify users of last login/access
using <html:code>pam_lastlog</html:code>, add the following line immediately after <html:code>session required pam_limits.so</html:code>:
<html:pre>session required pam_lastlog.so showfailed</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Users need to be aware of activity that occurs regarding
their account. Providing users with information regarding the number
of unsuccessful attempts that were made to login to their account
allows the user to determine if any unauthorized activity has occurred
and gives them an opportunity to notify administrators.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="display_login_attempts" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i --follow-symlinks '/pam_limits.so/a session\t required\t pam_lastlog.so showfailed' /etc/pam.d/system-auth
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-display_login_attempts:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-display_login_attempts_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="password_quality">
<ns0:title xml:lang="en-US">Set Password Quality Requirements</ns0:title>
<ns0:description xml:lang="en-US">The default <html:code>pam_cracklib</html:code> PAM module provides strength
checking for passwords. It performs a number of checks, such as
making sure passwords are not similar to dictionary words, are of
at least a certain length, are not the previous password reversed,
and are not simply a change of case from the previous password. It
can also require passwords to be in certain character classes.
<html:br /><html:br />
The man page <html:code>pam_cracklib(8)</html:code> provides information on the
capabilities and configuration of each.</ns0:description>
<ns0:Group id="password_quality_pamcracklib">
<ns0:title xml:lang="en-US">Set Password Quality Requirements, if using
pam_cracklib</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>pam_cracklib</html:code> PAM module can be configured to meet
requirements for a variety of policies.
<html:br /><html:br />
For example, to configure <html:code>pam_cracklib</html:code> to require at least one uppercase
character, lowercase character, digit, and other (special)
character, locate the following line in <html:code>/etc/pam.d/system-auth</html:code>:
<html:pre>password requisite pam_cracklib.so try_first_pass retry=3</html:pre>
and then alter it to read:
<html:pre>password required pam_cracklib.so try_first_pass retry=3 maxrepeat=3 minlen=14 dcredit=-1 ucredit=-1 ocredit=-1 lcredit=-1 difok=4</html:pre>
If no such line exists, add one as the first line of the password section in <html:code>/etc/pam.d/system-auth</html:code>.
The arguments can be modified to ensure compliance with
your organization's security policy. Discussion of each parameter follows.
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that the password quality
requirements are not enforced for the root account for some
reason.</ns0:warning>
<ns0:Value id="var_password_pam_retry" operator="equals" type="number">
<ns0:title xml:lang="en-US">retry</ns0:title>
<ns0:description xml:lang="en-US">Number of retry attempts before erroring out</ns0:description>
<ns0:value>3</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="3">3</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_maxrepeat" operator="equals" type="number">
<ns0:title xml:lang="en-US">maxrepeat</ns0:title>
<ns0:description xml:lang="en-US">Maximum Number of Consecutive Repeating Characters in a Password</ns0:description>
<ns0:value>3</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="3">3</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_minlen" operator="equals" type="number">
<ns0:title xml:lang="en-US">minlen</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of characters in password</ns0:description>
<ns0:value>14</ns0:value>
<ns0:value selector="6">6</ns0:value>
<ns0:value selector="7">7</ns0:value>
<ns0:value selector="8">8</ns0:value>
<ns0:value selector="10">10</ns0:value>
<ns0:value selector="12">12</ns0:value>
<ns0:value selector="14">14</ns0:value>
<ns0:value selector="15">15</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_dcredit" operator="equals" type="number">
<ns0:title xml:lang="en-US">dcredit</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of digits in password</ns0:description>
<ns0:value>-1</ns0:value>
<ns0:value selector="2">-2</ns0:value>
<ns0:value selector="1">-1</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_ocredit" operator="equals" type="number">
<ns0:title xml:lang="en-US">ocredit</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of other (special characters) in
password</ns0:description>
<ns0:value>-1</ns0:value>
<ns0:value selector="2">-2</ns0:value>
<ns0:value selector="1">-1</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_lcredit" operator="equals" type="number">
<ns0:title xml:lang="en-US">lcredit</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of lower case in password</ns0:description>
<ns0:value>-1</ns0:value>
<ns0:value selector="2">-2</ns0:value>
<ns0:value selector="1">-1</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_ucredit" operator="equals" type="number">
<ns0:title xml:lang="en-US">ucredit</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of upper case in password</ns0:description>
<ns0:value>-1</ns0:value>
<ns0:value selector="2">-2</ns0:value>
<ns0:value selector="1">-1</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_difok" operator="equals" type="number">
<ns0:title xml:lang="en-US">difok</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of characters not present in old
password</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Keep this high for short
passwords</ns0:warning>
<ns0:value>4</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="3">3</ns0:value>
<ns0:value selector="4">4</ns0:value>
<ns0:value selector="5">5</ns0:value>
</ns0:Value>
<ns0:Value id="var_password_pam_minclass" operator="equals" type="number">
<ns0:title xml:lang="en-US">minclass</ns0:title>
<ns0:description xml:lang="en-US">Minimum number of categories of characters that must exist in a password</ns0:description>
<ns0:value>3</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="3">3</ns0:value>
<ns0:value selector="4">4</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_passwords_pam_faillock_deny" operator="equals" type="number">
<ns0:title xml:lang="en-US">fail_deny</ns0:title>
<ns0:description xml:lang="en-US">Number of failed login attempts before account lockout</ns0:description>
<ns0:value>3</ns0:value>
<ns0:value selector="3">3</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="6">6</ns0:value>
<ns0:value selector="10">10</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_passwords_pam_faillock_unlock_time" operator="equals" type="number">
<ns0:title xml:lang="en-US">fail_unlock_time</ns0:title>
<ns0:description xml:lang="en-US">Seconds before automatic unlocking after excessive failed logins</ns0:description>
<ns0:value>604800</ns0:value>
<ns0:value selector="900">900</ns0:value>
<ns0:value selector="1800">1800</ns0:value>
<ns0:value selector="3600">3600</ns0:value>
<ns0:value selector="86400">86400</ns0:value>
<ns0:value selector="604800">604800</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_passwords_pam_faillock_fail_interval" operator="equals" type="number">
<ns0:title xml:lang="en-US">fail_interval</ns0:title>
<ns0:description xml:lang="en-US">Interval for counting failed login attempts before account lockout</ns0:description>
<ns0:value>900</ns0:value>
<ns0:value selector="900">900</ns0:value>
<ns0:value selector="1800">1800</ns0:value>
<ns0:value selector="3600">3600</ns0:value>
<ns0:value selector="86400">86400</ns0:value>
<ns0:value selector="100000000">100000000</ns0:value>
</ns0:Value>
<ns0:Rule id="accounts_password_pam_retry" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Retry Prompts Permitted Per-Session</ns0:title>
<ns0:description xml:lang="en-US">To configure the number of retry prompts that are permitted per-session:
<html:br /><html:br />
Edit the <html:code>pam_cracklib.so</html:code> statement in <html:code>/etc/pam.d/system-auth</html:code> to
show <html:code>retry=<ns0:sub idref="var_password_pam_retry" /></html:code>, or a lower value if site policy is more restrictive.
<html:br /><html:br />
The DoD requirement is a maximum of 3 prompts per session.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1092</ns0:reference>
<ns0:rationale xml:lang="en-US">
Setting the password retry prompts that are permitted on a per-session basis to a low value
requires some software, such as SSH, to re-connect. This can slow down and
draw additional attention to some types of password-guessing attacks. Note that this
is different from account lockout, which is provided by the pam_faillock module.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_retry:var:1" value-id="var_password_pam_retry" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_retry:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_retry_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_maxrepeat" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password to Maximum of Three Consecutive Repeating Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>maxrepeat</html:code> parameter controls requirements for
consecutive repeating characters. When set to a positive number, it will reject passwords
which contain more than that number of consecutive characters. Add <html:code>maxrepeat=<ns0:sub idref="var_password_pam_maxrepeat" /></html:code>
after pam_cracklib.so to prevent a run of (<ns0:sub idref="var_password_pam_maxrepeat" /> + 1) or more identical characters:<html:br />
<html:pre>password required pam_cracklib.so maxrepeat=<ns0:sub idref="var_password_pam_maxrepeat" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Passwords with excessive repeating characters may be more vulnerable to password-guessing attacks.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_maxrepeat" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_maxrepeat="<ns0:sub idref="var_password_pam_maxrepeat" />"
if grep -q "maxrepeat=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(maxrepeat *= *\).*/\1$var_password_pam_maxrepeat/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ maxrepeat=$var_password_pam_maxrepeat/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_maxrepeat:var:1" value-id="var_password_pam_maxrepeat" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_maxrepeat:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_maxrepeat_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_dcredit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Digit Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>dcredit</html:code> parameter controls requirements for
usage of digits in a password. When set to a negative number, any password will be required to
contain that many digits. When set to a positive number, pam_cracklib will grant +1 additional
length credit for each digit.
Add <html:code>dcredit=-1</html:code> after pam_cracklib.so to require use of a digit in passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">194</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring digits makes password guessing attacks more difficult by ensuring a larger
search space.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_dcredit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_dcredit="<ns0:sub idref="var_password_pam_dcredit" />"
if grep -q "dcredit=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(dcredit *= *\).*/\1$var_password_pam_dcredit/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ dcredit=$var_password_pam_dcredit/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_dcredit:var:1" value-id="var_password_pam_dcredit" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_dcredit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_dcredit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_minlen" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Minimum Length</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>minlen</html:code> parameter controls requirements for
minimum characters required in a password. Add <html:code>minlen=<ns0:sub idref="var_password_pam_minlen" /></html:code>
after pam_pwquality to set minimum password length requirements.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">205</ns0:reference>
<ns0:rationale xml:lang="en-US">
Password length is one factor of several that helps to determine
strength and how long it takes to crack a password. Use of more characters in
a password helps to exponentially increase the time and/or resources
required to compromise the password.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_minlen" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_minlen="<ns0:sub idref="var_password_pam_minlen" />"
if grep -q "minlen=" /etc/pam.d/system-auth
then
sed -i --follow-symlinks "s/\(minlen *= *\).*/\1$var_password_pam_minlen/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ minlen=$var_password_pam_minlen/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_minlen:var:1" value-id="var_password_pam_minlen" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_minlen:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_minlen_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_ucredit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Uppercase Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>ucredit=</html:code> parameter controls requirements for
usage of uppercase letters in a password. When set to a negative number, any password will be required to
contain that many uppercase characters. When set to a positive number, pam_cracklib will grant +1 additional
length credit for each uppercase character.
Add <html:code>ucredit=-1</html:code> after pam_cracklib.so to require use of an upper case character in passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">192</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring a minimum number of uppercase characters makes password guessing attacks
more difficult by ensuring a larger search space.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_ucredit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_ucredit="<ns0:sub idref="var_password_pam_ucredit" />"
if grep -q "ucredit=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(ucredit *= *\).*/\1$var_password_pam_ucredit/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ ucredit=$var_password_pam_ucredit/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_ucredit:var:1" value-id="var_password_pam_ucredit" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_ucredit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_ucredit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_ocredit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Special Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>ocredit=</html:code> parameter controls requirements for
usage of special (or ``other'') characters in a password. When set to a negative number, any password will be required to
contain that many special characters. When set to a positive number, pam_cracklib will grant +1 additional
length credit for each special character.
Add <html:code>ocredit=<ns0:sub idref="var_password_pam_ocredit" /></html:code> after pam_cracklib.so to require use of a special character in passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1619</ns0:reference>
<ns0:reference href="">266</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring a minimum number of special characters makes password guessing attacks
more difficult by ensuring a larger search space.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_ocredit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_ocredit="<ns0:sub idref="var_password_pam_ocredit" />"
if grep -q "ocredit=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(ocredit *= *\).*/\1$var_password_pam_ocredit/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ ocredit=$var_password_pam_ocredit/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_ocredit:var:1" value-id="var_password_pam_ocredit" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_ocredit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_ocredit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_lcredit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Lowercase Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>lcredit=</html:code> parameter controls requirements for
usage of lowercase letters in a password. When set to a negative number, any password will be required to
contain that many lowercase characters. When set to a positive number, pam_cracklib will grant +1 additional
length credit for each lowercase character.
Add <html:code>lcredit=-1</html:code> after pam_cracklib.so to require use of a lowercase character in passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">193</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring a minimum number of lowercase characters makes password guessing attacks
more difficult by ensuring a larger search space.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_lcredit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_lcredit="<ns0:sub idref="var_password_pam_lcredit" />"
if grep -q "lcredit=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(lcredit *= *\).*/\1$var_password_pam_lcredit/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ lcredit=$var_password_pam_lcredit/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_lcredit:var:1" value-id="var_password_pam_lcredit" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_lcredit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_lcredit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_difok" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Different Characters</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>difok</html:code> parameter controls requirements for
usage of different characters during a password change.
Add <html:code>difok=<html:i><ns0:sub idref="var_password_pam_difok" /></html:i></html:code> after pam_cracklib.so to require differing
characters when changing passwords. The DoD requirement is <html:code>4</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">195</ns0:reference>
<ns0:rationale xml:lang="en-US">
Requiring a minimum number of different characters during password changes ensures that
newly changed passwords should not resemble previously compromised ones.
Note that passwords which are changed on compromised systems will still be compromised, however.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_difok" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_difok="<ns0:sub idref="var_password_pam_difok" />"
if grep -q "difok=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(difok *= *\).*/\1$var_password_pam_difok/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/pam_cracklib.so/ s/$/ difok=$var_password_pam_difok/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_difok:var:1" value-id="var_password_pam_difok" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_difok:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_difok_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_minclass" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Password Strength Minimum Different Categories</ns0:title>
<ns0:description xml:lang="en-US">The pam_cracklib module's <html:code>minclass</html:code> parameter controls requirements for
usage of different character classes, or types, of character that must exist in a password
before it is considered valid. For example, setting this value to three (3) requires that
any password must have characters from at least three different categories in order to be
approved. The default value is zero (0), meaning there are no required classes. There are
four categories available:
<html:pre>
* Upper-case characters
* Lower-case characters
* Digits
* Special characters (for example, punctuation)
</html:pre>
Add <html:code>minclass=<html:i><ns0:sub idref="var_password_pam_minclass" /></html:i></html:code> after pam_cracklib.so entry into the
<html:code>/etc/pam.d/system-auth</html:code> file in order to require <ns0:sub idref="var_password_pam_minclass" /> differing categories of
characters when changing passwords.
For example to require at least three character classes to be used in password, use <html:code>minclass=3</html:code>.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Requiring a minimum number of character categories makes password guessing attacks
more difficult by ensuring a larger search space.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_minclass" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_minclass="<ns0:sub idref="var_password_pam_minclass" />"
grep -q minclass /etc/pam.d/system-auth
if [ $? = "0" ]; then
sed --follow-symlinks -i "/pam_cracklib.so/s/minclass=[0-$var_password_pam_minclass]/minclass=$var_password_pam_minclass/" /etc/pam.d/system-auth
else
sed --follow-symlinks -i "/pam_cracklib.so/s/pam_cracklib.so /pam_cracklib.so minclass=$var_password_pam_minclass /" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_minclass:var:1" value-id="var_password_pam_minclass" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_minclass:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_minclass_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="locking_out_password_attempts">
<ns0:title xml:lang="en-US">Set Lockouts for Failed Password Attempts</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>pam_faillock</html:code> PAM module provides the capability to
lock out user accounts after a number of failed login attempts. Its
documentation is available in
<html:code>/usr/share/doc/pam-VERSION/txts/README.pam_faillock</html:code>.
<html:br /><html:br />
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Locking out user accounts presents the
risk of a denial-of-service attack. The lockout policy
must weigh whether the risk of such a
denial-of-service attack outweighs the benefits of thwarting
password guessing attacks.</ns0:warning>
<ns0:Rule id="accounts_passwords_pam_faillock_deny" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Deny For Failed Password Attempts</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to lock out accounts after a number of incorrect login
attempts using <html:code>pam_faillock.so</html:code>, modify the content of both
<html:code>/etc/pam.d/system-auth</html:code> and <html:code>/etc/pam.d/password-auth</html:code> as follows:
<html:br /><html:br />
<html:ul><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth required pam_faillock.so preauth silent deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>after</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth [default=die] pam_faillock.so authfail deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>ACCOUNT</html:code> section:
<html:pre>account required pam_faillock.so</html:pre></html:li></html:ul>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-7(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">44</ns0:reference>
<ns0:rationale xml:lang="en-US">
Locking out user accounts after a number of incorrect attempts
prevents direct password guessing attacks.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_passwords_pam_faillock_deny" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_passwords_pam_faillock_deny="<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" />"
AUTH_FILES[0]="/etc/pam.d/system-auth"
AUTH_FILES[1]="/etc/pam.d/password-auth"
for pamFile in "${AUTH_FILES[@]}"
do
# pam_faillock.so already present?
if grep -q "^auth.*pam_faillock.so.*" $pamFile; then
# pam_faillock.so present, deny directive present?
if grep -q "^auth.*[default=die].*pam_faillock.so.*authfail.*deny=" $pamFile; then
# both pam_faillock.so & deny present, just correct deny directive value
sed -i --follow-symlinks "s/\(^auth.*required.*pam_faillock.so.*preauth.*silent.*\)\(deny *= *\).*/\1\2$var_accounts_passwords_pam_faillock_deny/" $pamFile
sed -i --follow-symlinks "s/\(^auth.*[default=die].*pam_faillock.so.*authfail.*\)\(deny *= *\).*/\1\2$var_accounts_passwords_pam_faillock_deny/" $pamFile
# pam_faillock.so present, but deny directive not yet
else
# append correct deny value to appropriate places
sed -i --follow-symlinks "/^auth.*required.*pam_faillock.so.*preauth.*silent.*/ s/$/ deny=$var_accounts_passwords_pam_faillock_deny/" $pamFile
sed -i --follow-symlinks "/^auth.*[default=die].*pam_faillock.so.*authfail.*/ s/$/ deny=$var_accounts_passwords_pam_faillock_deny/" $pamFile
fi
# pam_faillock.so not present yet
else
# insert pam_faillock.so preauth & authfail rows with proper value of the 'deny' option
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/i auth required pam_faillock.so preauth silent deny=$var_accounts_passwords_pam_faillock_deny" $pamFile
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/a auth [default=die] pam_faillock.so authfail deny=$var_accounts_passwords_pam_faillock_deny" $pamFile
sed -i --follow-symlinks "/^account.*required.*pam_unix.so/i account required pam_faillock.so" $pamFile
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_passwords_pam_faillock_deny:var:1" value-id="var_accounts_passwords_pam_faillock_deny" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_passwords_pam_faillock_deny:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_passwords_pam_faillock_deny_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_passwords_pam_faillock_unlock_time" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Lockout Time For Failed Password Attempts</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system to lock out accounts after a number of incorrect login
attempts and require an administrator to unlock the account using <html:code>pam_faillock.so</html:code>,
modify the content of both <html:code>/etc/pam.d/system-auth</html:code> and <html:code>/etc/pam.d/password-auth</html:code> as follows:
<html:br /><html:br />
<html:ul><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth required pam_faillock.so preauth silent deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>after</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth [default=die] pam_faillock.so authfail deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>ACCOUNT</html:code> section:
<html:pre>account required pam_faillock.so</html:pre></html:li></html:ul>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-7(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">47</ns0:reference>
<ns0:rationale xml:lang="en-US">
Locking out user accounts after a number of incorrect attempts
prevents direct password guessing attacks. Ensuring that an administrator is
involved in unlocking locked accounts draws appropriate attention to such
situations.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_passwords_pam_faillock_unlock_time" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_passwords_pam_faillock_unlock_time="<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" />"
AUTH_FILES[0]="/etc/pam.d/system-auth"
AUTH_FILES[1]="/etc/pam.d/password-auth"
for pamFile in "${AUTH_FILES[@]}"
do
# pam_faillock.so already present?
if grep -q "^auth.*pam_faillock.so.*" $pamFile; then
# pam_faillock.so present, unlock_time directive present?
if grep -q "^auth.*[default=die].*pam_faillock.so.*authfail.*unlock_time=" $pamFile; then
# both pam_faillock.so & unlock_time present, just correct unlock_time directive value
sed -i --follow-symlinks "s/\(^auth.*required.*pam_faillock.so.*preauth.*silent.*\)\(unlock_time *= *\).*/\1\2$var_accounts_passwords_pam_faillock_unlock_time/" $pamFile
sed -i --follow-symlinks "s/\(^auth.*[default=die].*pam_faillock.so.*authfail.*\)\(unlock_time *= *\).*/\1\2$var_accounts_passwords_pam_faillock_unlock_time/" $pamFile
# pam_faillock.so present, but unlock_time directive not yet
else
# append correct unlock_time value to appropriate places
sed -i --follow-symlinks "/^auth.*required.*pam_faillock.so.*preauth.*silent.*/ s/$/ unlock_time=$var_accounts_passwords_pam_faillock_unlock_time/" $pamFile
sed -i --follow-symlinks "/^auth.*[default=die].*pam_faillock.so.*authfail.*/ s/$/ unlock_time=$var_accounts_passwords_pam_faillock_unlock_time/" $pamFile
fi
# pam_faillock.so not present yet
else
# insert pam_faillock.so preauth & authfail rows with proper value of the 'unlock_time' option
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/i auth required pam_faillock.so preauth silent unlock_time=$var_accounts_passwords_pam_faillock_unlock_time" $pamFile
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/a auth [default=die] pam_faillock.so authfail unlock_time=$var_accounts_passwords_pam_faillock_unlock_time" $pamFile
sed -i --follow-symlinks "/^account.*required.*pam_unix.so/i account required pam_faillock.so" $pamFile
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_passwords_pam_faillock_unlock_time:var:1" value-id="var_accounts_passwords_pam_faillock_unlock_time" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_passwords_pam_faillock_unlock_time:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_passwords_pam_faillock_unlock_time_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_passwords_pam_faillock_interval" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Interval For Counting Failed Password Attempts</ns0:title>
<ns0:description xml:lang="en-US">
Utilizing <html:code>pam_faillock.so</html:code>, the <html:code>fail_interval</html:code> directive configures the system to lock out accounts after a number of incorrect login
attempts. Modify the content of both <html:code>/etc/pam.d/system-auth</html:code> and <html:code>/etc/pam.d/password-auth</html:code> as follows:
<html:br /><html:br />
<html:ul><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth required pam_faillock.so preauth silent deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>after</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>AUTH</html:code> section:
<html:pre>auth [default=die] pam_faillock.so authfail deny=<ns0:sub idref="var_accounts_passwords_pam_faillock_deny" /> unlock_time=<ns0:sub idref="var_accounts_passwords_pam_faillock_unlock_time" /> fail_interval=<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" /></html:pre></html:li><html:li> Add the following line immediately <html:code>before</html:code> the <html:code>pam_unix.so</html:code> statement in the <html:code>ACCOUNT</html:code> section:
<html:pre>account required pam_faillock.so</html:pre></html:li></html:ul>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-7(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1452</ns0:reference>
<ns0:rationale xml:lang="en-US">
Locking out user accounts after a number of incorrect attempts within a
specific period of time prevents direct password guessing attacks.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_passwords_pam_faillock_interval" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_passwords_pam_faillock_fail_interval="<ns0:sub idref="var_accounts_passwords_pam_faillock_fail_interval" />"
AUTH_FILES[0]="/etc/pam.d/system-auth"
AUTH_FILES[1]="/etc/pam.d/password-auth"
for pamFile in "${AUTH_FILES[@]}"
do
# pam_faillock.so already present?
if grep -q "^auth.*pam_faillock.so.*" $pamFile; then
# pam_faillock.so present, 'fail_interval' directive present?
if grep -q "^auth.*[default=die].*pam_faillock.so.*authfail.*fail_interval=" $pamFile; then
# both pam_faillock.so & 'fail_interval' present, just correct 'fail_interval' directive value
sed -i --follow-symlinks "s/\(^auth.*required.*pam_faillock.so.*preauth.*silent.*\)\(fail_interval *= *\).*/\1\2$var_accounts_passwords_pam_faillock_fail_interval/" $pamFile
sed -i --follow-symlinks "s/\(^auth.*[default=die].*pam_faillock.so.*authfail.*\)\(fail_interval *= *\).*/\1\2$var_accounts_passwords_pam_faillock_fail_interval/" $pamFile
# pam_faillock.so present, but 'fail_interval' directive not yet
else
# append correct 'fail_interval' value to appropriate places
sed -i --follow-symlinks "/^auth.*required.*pam_faillock.so.*preauth.*silent.*/ s/$/ fail_interval=$var_accounts_passwords_pam_faillock_fail_interval/" $pamFile
sed -i --follow-symlinks "/^auth.*[default=die].*pam_faillock.so.*authfail.*/ s/$/ fail_interval=$var_accounts_passwords_pam_faillock_fail_interval/" $pamFile
fi
# pam_faillock.so not present yet
else
# insert pam_faillock.so preauth & authfail rows with proper value of the 'fail_interval' option
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/i auth required pam_faillock.so preauth silent fail_interval=$var_accounts_passwords_pam_faillock_fail_interval" $pamFile
sed -i --follow-symlinks "/^auth.*sufficient.*pam_unix.so.*/a auth [default=die] pam_faillock.so authfail fail_interval=$var_accounts_passwords_pam_faillock_fail_interval" $pamFile
sed -i --follow-symlinks "/^account.*required.*pam_unix.so/i account required pam_faillock.so" $pamFile
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_passwords_pam_faillock_fail_interval:var:1" value-id="var_accounts_passwords_pam_faillock_fail_interval" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_passwords_pam_faillock_interval:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_passwords_pam_faillock_interval_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_password_pam_unix_remember" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Limit Password Reuse</ns0:title>
<ns0:description xml:lang="en-US">Do not allow users to reuse recent passwords. This can be
accomplished by using the <html:code>remember</html:code> option for the <html:code>pam_unix</html:code>
or <html:code>pam_pwhistory</html:code> PAM modules. In the file
<html:code>/etc/pam.d/system-auth</html:code>, append <html:code>remember=<ns0:sub idref="var_password_pam_unix_remember" /></html:code>
to the line which refers to the <html:code>pam_unix.so</html:code> or
<html:code>pam_pwhistory.so</html:code>module, as shown below:
<html:ul><html:li>for the <html:code>pam_unix.so</html:code> case:
<html:pre>password sufficient pam_unix.so <html:i>existing_options</html:i> remember=<ns0:sub idref="var_password_pam_unix_remember" /></html:pre>
</html:li><html:li>for the <html:code>pam_pwhistory.so</html:code> case:
<html:pre>password requisite pam_pwhistory.so <html:i>existing_options</html:i> remember=<ns0:sub idref="var_password_pam_unix_remember" /></html:pre>
</html:li></html:ul>
The DoD STIG requirement is 5 passwords.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(f)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(e)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">200</ns0:reference>
<ns0:rationale xml:lang="en-US">
Preventing re-use of previous passwords helps ensure that a compromised password is not re-used by a user.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_password_pam_unix_remember" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_password_pam_unix_remember="<ns0:sub idref="var_password_pam_unix_remember" />"
if grep -q "remember=" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "s/\(^password.*sufficient.*pam_unix.so.*\)\(\(remember *= *\)[^ $]*\)/\1remember=$var_password_pam_unix_remember/" /etc/pam.d/system-auth
else
sed -i --follow-symlinks "/^password[[:space:]]\+sufficient[[:space:]]\+pam_unix.so/ s/$/ remember=$var_password_pam_unix_remember/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_password_pam_unix_remember:var:1" value-id="var_password_pam_unix_remember" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_password_pam_unix_remember:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_password_pam_unix_remember_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="set_password_hashing_algorithm">
<ns0:title xml:lang="en-US">Set Password Hashing Algorithm</ns0:title>
<ns0:description xml:lang="en-US">The system's default algorithm for storing password hashes in
<html:code>/etc/shadow</html:code> is SHA-512. This can be configured in several
locations.</ns0:description>
<ns0:Rule id="set_password_hashing_algorithm_systemauth" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Hashing Algorithm in /etc/pam.d/system-auth</ns0:title>
<ns0:description xml:lang="en-US">
In <html:code>/etc/pam.d/system-auth</html:code>, the <html:code>password</html:code> section of
the file controls which PAM modules execute during a password change.
Set the <html:code>pam_unix.so</html:code> module in the
<html:code>password</html:code> section to include the argument <html:code>sha512</html:code>, as shown below:
<html:pre>password sufficient pam_unix.so sha512 <html:i>other arguments...</html:i></html:pre>
This will help ensure when local users change their passwords, hashes for the new
passwords will be generated using the SHA-512 algorithm.
This is the default.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">803</ns0:reference>
<ns0:rationale xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="set_password_hashing_algorithm_systemauth" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">if ! grep -q "^password.*sufficient.*pam_unix.so.*sha512" /etc/pam.d/system-auth; then
sed -i --follow-symlinks "/^password.*sufficient.*pam_unix.so/ s/$/ sha512/" /etc/pam.d/system-auth
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_password_hashing_algorithm_systemauth:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_password_hashing_algorithm_systemauth_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="set_password_hashing_algorithm_logindefs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Hashing Algorithm in /etc/login.defs</ns0:title>
<ns0:description xml:lang="en-US">
In <html:code>/etc/login.defs</html:code>, add or correct the following line to ensure
the system will use SHA-512 as the hashing algorithm:
<html:pre>ENCRYPT_METHOD SHA512</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">803</ns0:reference>
<ns0:rationale xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="set_password_hashing_algorithm_logindefs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">if grep --silent ^ENCRYPT_METHOD /etc/login.defs ; then
sed -i 's/^ENCRYPT_METHOD.*/ENCRYPT_METHOD SHA512/g' /etc/login.defs
else
echo "" >> /etc/login.defs
echo "ENCRYPT_METHOD SHA512" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_password_hashing_algorithm_logindefs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_password_hashing_algorithm_logindefs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="set_password_hashing_algorithm_libuserconf" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Password Hashing Algorithm in /etc/libuser.conf</ns0:title>
<ns0:description xml:lang="en-US">
In <html:code>/etc/libuser.conf</html:code>, add or correct the following line in its
<html:code>[defaults]</html:code> section to ensure the system will use the SHA-512
algorithm for password hashing:
<html:pre>crypt_style = sha512</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">803</ns0:reference>
<ns0:rationale xml:lang="en-US">
Using a stronger hashing algorithm makes password cracking attacks more difficult.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_password_hashing_algorithm_libuserconf:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_password_hashing_algorithm_libuserconf_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="accounts-session">
<ns0:title xml:lang="en-US">Secure Session Configuration Files for Login Accounts</ns0:title>
<ns0:description xml:lang="en-US">When a user logs into a Unix account, the system
configures the user's session by reading a number of files. Many of
these files are located in the user's home directory, and may have
weak permissions as a result of user error or misconfiguration. If
an attacker can modify or even read certain types of account
configuration information, they can often gain full access to the
affected user's account. Therefore, it is important to test and
correct configuration file permissions for interactive accounts,
particularly those of privileged users such as root or system
administrators.</ns0:description>
<ns0:Value id="var_accounts_max_concurrent_login_sessions" operator="equals" type="number">
<ns0:title xml:lang="en-US">Maximum concurrent login sessions</ns0:title>
<ns0:description xml:lang="en-US">Maximum number of concurrent sessions by a user</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="3">3</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="10">10</ns0:value>
<ns0:value selector="15">15</ns0:value>
<ns0:value selector="20">20</ns0:value>
</ns0:Value>
<ns0:Value id="var_accounts_tmout" operator="equals" type="number">
<ns0:title xml:lang="en-US">Account Inactivity Timeout (minutes)</ns0:title>
<ns0:description xml:lang="en-US">In an interactive shell, the value is interpreted as the
number of seconds to wait for input after issueing the primary prompt.
Bash terminates after waiting for that number of seconds if input does
not arrive.</ns0:description>
<ns0:value>600</ns0:value>
<ns0:value selector="5_min">300</ns0:value>
<ns0:value selector="10_min">600</ns0:value>
<ns0:value selector="15_min">900</ns0:value>
</ns0:Value>
<ns0:Rule id="accounts_tmout" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Interactive Session Timeout</ns0:title>
<ns0:description xml:lang="en-US">
Terminating an idle session within a short time period reduces
the window of opportunity for unauthorized personnel to take control of a
management session enabled on the console or console port that has been
left unattended.
</ns0:description>
<ns0:rationale xml:lang="en-US">
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_tmout:var:1" value-id="var_accounts_tmout" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_tmout:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_tmout_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_max_concurrent_login_sessions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Limit the Number of Concurrent Login Sessions Allowed Per User</ns0:title>
<ns0:description xml:lang="en-US">
Limiting the number of allowed users and sessions per user can limit risks related to Denial of
Service attacks. This addresses concurrent sessions for a single account and does not address
concurrent sessions by a single user via multiple accounts. The DoD requirement is 10. To set the number of concurrent
sessions per user add the following line in <html:code>/etc/security/limits.conf</html:code>:
<html:pre>* hard maxlogins <ns0:sub idref="var_accounts_max_concurrent_login_sessions" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-10</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">54</ns0:reference>
<ns0:rationale xml:lang="en-US">Limiting simultaneous user logins can insulate the system from denial of service
problems caused by excessive logins. Automated login processes operating improperly or
maliciously may result in an exceptional number of simultaneous login sessions.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_max_concurrent_login_sessions" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_max_concurrent_login_sessions="<ns0:sub idref="var_accounts_max_concurrent_login_sessions" />"
if grep -q '^[^#]*\<maxlogins\>' /etc/security/limits.d/*.conf; then
sed -i "/^[^#]*\<maxlogins\>/ s/maxlogins.*/maxlogins $var_accounts_max_concurrent_login_sessions/" /etc/security/limits.d/*.conf
elif grep -q '^[^#]*\<maxlogins\>' /etc/security/limits.conf; then
sed -i "/^[^#]*\<maxlogins\>/ s/maxlogins.*/maxlogins $var_accounts_max_concurrent_login_sessions/" /etc/security/limits.conf
else
echo "* hard maxlogins $var_accounts_max_concurrent_login_sessions" >> /etc/security/limits.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_max_concurrent_login_sessions:var:1" value-id="var_accounts_max_concurrent_login_sessions" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_max_concurrent_login_sessions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_max_concurrent_login_sessions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="root_paths">
<ns0:title xml:lang="en-US">Ensure that No Dangerous Directories Exist in Root's Path</ns0:title>
<ns0:description xml:lang="en-US">The active path of the root account can be obtained by
starting a new root shell and running:
<html:pre>$ sudo echo $PATH</html:pre>
This will produce a colon-separated list of
directories in the path.
<html:br /><html:br />
Certain path elements could be considered dangerous, as they could lead
to root executing unknown or
untrusted programs, which could contain malicious
code.
Since root may sometimes work inside
untrusted directories, the <html:code>.</html:code> character, which represents the
current directory, should never be in the root path, nor should any
directory which can be written to by an unprivileged or
semi-privileged (system) user.
<html:br /><html:br />
It is a good practice for administrators to always execute
privileged commands by typing the full path to the
command.</ns0:description>
<ns0:Rule id="root_path_no_dot" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure that Root's Path Does Not Include Relative Paths or Null Directories</ns0:title>
<ns0:description xml:lang="en-US">
Ensure that none of the directories in root's path is equal to a single
<html:code>.</html:code> character, or
that it contains any instances that lead to relative path traversal, such as
<html:code>..</html:code> or beginning a path without the slash (<html:code>/</html:code>) character.
Also ensure that there are no "empty" elements in the path, such as in these examples:
<html:pre>PATH=:/bin
PATH=/bin:
PATH=/bin::/sbin</html:pre>
These empty elements have the same effect as a single <html:code>.</html:code> character.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Including these entries increases the risk that root could
execute code from an untrusted location.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-root_path_no_dot:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_root_path_dirs_no_write" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure that Root's Path Does Not Include World or Group-Writable Directories</ns0:title>
<ns0:description xml:lang="en-US">
For each element in root's path, run:
<html:pre>$ sudo ls -ld <html:i>DIR</html:i></html:pre>
and ensure that write permissions are disabled for group and
other.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Such entries increase the risk that root could
execute code provided by unprivileged users,
and potentially malicious code.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_root_path_dirs_no_write:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_root_path_dirs_no_write_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="file_permissions_home_dirs" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure that User Home Directories are not Group-Writable or World-Readable</ns0:title>
<ns0:description xml:lang="en-US">For each human user of the system, view the
permissions of the user's home directory:
<html:pre>$ sudo ls -ld /home/<html:i>USER</html:i></html:pre>
Ensure that the directory is not group-writable and that it
is not world-readable. If necessary, repair the permissions:
<html:pre>$ sudo chmod g-w /home/<html:i>USER</html:i>
$ sudo chmod o-rwx /home/<html:i>USER</html:i></html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">This action may involve
modifying user home directories. Notify your user community, and
solicit input if appropriate, before making this type of
change.</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(7)</ns0:reference>
<ns0:rationale xml:lang="en-US">
User home directories contain many configuration files which
affect the behavior of a user's account. No user should ever have
write permission to another user's home directory. Group shared
directories can be configured in sub-directories or elsewhere in the
filesystem if they are needed. Typically, user home directories
should not be world-readable, as it would disclose file names
to other users. If a subset of users need read access
to one another's home directories, this can be provided using
groups or ACLs.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_home_dirs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_home_dirs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="user_umask">
<ns0:title xml:lang="en-US">Ensure that Users Have Sensible Umask Values</ns0:title>
<ns0:description xml:lang="en-US">
The umask setting controls the default permissions
for the creation of new files.
With a default <html:code>umask</html:code> setting of 077, files and directories
created by users will not be readable by any other user on the
system. Users who wish to make specific files group- or
world-readable can accomplish this by using the chmod command.
Additionally, users can make all their files readable to their
group by default by setting a <html:code>umask</html:code> of 027 in their shell
configuration files. If default per-user groups exist (that is, if
every user has a default group whose name is the same as that
user's username and whose only member is the user), then it may
even be safe for users to select a <html:code>umask</html:code> of 007, making it very
easy to intentionally share files with groups of which the user is
a member.
<html:br /><html:br />
</ns0:description>
<ns0:Value id="var_accounts_user_umask" operator="equals" type="string">
<ns0:title xml:lang="en-US">Sensible umask</ns0:title>
<ns0:description xml:lang="en-US">Enter default user umask</ns0:description>
<ns0:value>027</ns0:value>
<ns0:value selector="007">007</ns0:value>
<ns0:value selector="022">022</ns0:value>
<ns0:value selector="027">027</ns0:value>
<ns0:value selector="077">077</ns0:value>
</ns0:Value>
<ns0:Rule id="accounts_umask_etc_bashrc" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure the Default Bash Umask is Set Correctly</ns0:title>
<ns0:description xml:lang="en-US">
To ensure the default umask for users of the Bash shell is set properly,
add or correct the <html:code>umask</html:code> setting in <html:code>/etc/bashrc</html:code> to read
as follows:
<html:pre>umask <ns0:sub idref="var_accounts_user_umask" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The umask value influences the permissions assigned to files when they are created.
A misconfigured umask value could result in files with excessive permissions that can be read or
written to by unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_umask_etc_bashrc" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_user_umask="<ns0:sub idref="var_accounts_user_umask" />"
grep -q umask /etc/bashrc && \
sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/bashrc
if ! [ $? -eq 0 ]; then
echo "umask $var_accounts_user_umask" >> /etc/bashrc
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_user_umask:var:1" value-id="var_accounts_user_umask" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_umask_etc_bashrc:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_umask_etc_bashrc_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_umask_etc_csh_cshrc" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure the Default C Shell Umask is Set Correctly</ns0:title>
<ns0:description xml:lang="en-US">
To ensure the default umask for users of the C shell is set properly,
add or correct the <html:code>umask</html:code> setting in <html:code>/etc/csh.cshrc</html:code> to read as follows:
<html:pre>umask <ns0:sub idref="var_accounts_user_umask" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The umask value influences the permissions assigned to files when they are created.
A misconfigured umask value could result in files with excessive permissions that can be read or
written to by unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_umask_etc_csh_cshrc" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_user_umask="<ns0:sub idref="var_accounts_user_umask" />"
grep -q umask /etc/csh.cshrc && \
sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/csh.cshrc
if ! [ $? -eq 0 ]; then
echo "umask $var_accounts_user_umask" >> /etc/csh.cshrc
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_user_umask:var:1" value-id="var_accounts_user_umask" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_umask_etc_csh_cshrc:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_umask_etc_csh_cshrc_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_umask_etc_profile" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure the Default Umask is Set Correctly in /etc/profile</ns0:title>
<ns0:description xml:lang="en-US">
To ensure the default umask controlled by <html:code>/etc/profile</html:code> is set properly,
add or correct the <html:code>umask</html:code> setting in <html:code>/etc/profile</html:code> to read as follows:
<html:pre>umask <ns0:sub idref="var_accounts_user_umask" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The umask value influences the permissions assigned to files when they are created.
A misconfigured umask value could result in files with excessive permissions that can be read or
written to by unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_umask_etc_profile" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_user_umask="<ns0:sub idref="var_accounts_user_umask" />"
grep -q umask /etc/profile && \
sed -i "s/umask.*/umask $var_accounts_user_umask/g" /etc/profile
if ! [ $? -eq 0 ]; then
echo "umask $var_accounts_user_umask" >> /etc/profile
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_user_umask:var:1" value-id="var_accounts_user_umask" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_umask_etc_profile:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_umask_etc_profile_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="accounts_umask_etc_login_defs" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure the Default Umask is Set Correctly in login.defs</ns0:title>
<ns0:description xml:lang="en-US">
To ensure the default umask controlled by <html:code>/etc/login.defs</html:code> is set properly,
add or correct the <html:code>UMASK</html:code> setting in <html:code>/etc/login.defs</html:code> to read as follows:
<html:pre>UMASK <ns0:sub idref="var_accounts_user_umask" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The umask value influences the permissions assigned to files when they are created.
A misconfigured umask value could result in files with excessive permissions that can be read and
written to by unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="accounts_umask_etc_login_defs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_accounts_user_umask="<ns0:sub idref="var_accounts_user_umask" />"
grep -q UMASK /etc/login.defs && \
sed -i "s/UMASK.*/UMASK $var_accounts_user_umask/g" /etc/login.defs
if ! [ $? -eq 0 ]; then
echo "UMASK $var_accounts_user_umask" >> /etc/login.defs
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_accounts_user_umask:var:1" value-id="var_accounts_user_umask" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-accounts_umask_etc_login_defs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-accounts_umask_etc_login_defs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="accounts-physical">
<ns0:title xml:lang="en-US">Protect Physical Console Access</ns0:title>
<ns0:description xml:lang="en-US">It is impossible to fully protect a system from an
attacker with physical access, so securing the space in which the
system is located should be considered a necessary step. However,
there are some steps which, if taken, make it more difficult for an
attacker to quickly or undetectably modify a system from its
console.</ns0:description>
<ns0:Group id="bootloader">
<ns0:title xml:lang="en-US">Set Boot Loader Password</ns0:title>
<ns0:description xml:lang="en-US">During the boot process, the boot loader is
responsible for starting the execution of the kernel and passing
options to it. The boot loader allows for the selection of
different kernels - possibly on different partitions or media.
The default Red Hat Enterprise Linux boot loader for x86 systems is called GRUB.
Options it can pass to the kernel include <html:i>single-user mode</html:i>, which
provides root access without any authentication, and the ability to
disable SELinux. To prevent local users from modifying the boot
parameters and endangering security, protect the boot loader configuration
with a password and ensure its configuration file's permissions
are set properly.
</ns0:description>
<ns0:Rule id="file_user_owner_grub_conf" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify /etc/grub.conf User Ownership</ns0:title>
<ns0:description xml:lang="en-US">The file <html:code>/etc/grub.conf</html:code> should
be owned by the <html:code>root</html:code> user to prevent destruction
or modification of the file.
To properly set the owner of <html:code>/etc/grub.conf</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /etc/grub.conf </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(7)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">
Only root should be able to modify important boot parameters.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_user_owner_grub_conf" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chown root /etc/grub.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_user_owner_grub_conf:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_user_owner_grub_conf_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_group_owner_grub_conf" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify /etc/grub.conf Group Ownership</ns0:title>
<ns0:description xml:lang="en-US">The file <html:code>/etc/grub.conf</html:code> should
be group-owned by the <html:code>root</html:code> group to prevent
destruction or modification of the file.
To properly set the group owner of <html:code>/etc/grub.conf</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chgrp root /etc/grub.conf </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(7)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">
The <html:code>root</html:code> group is a highly-privileged group. Furthermore, the group-owner of this
file should not have any access privileges anyway.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_group_owner_grub_conf" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chgrp root /etc/grub.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_group_owner_grub_conf:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_group_owner_grub_conf_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_grub_conf" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify /boot/grub/grub.conf Permissions</ns0:title>
<ns0:description xml:lang="en-US">File permissions for <html:code>/boot/grub/grub.conf</html:code> should be set to 600, which
is the default.
To properly set the permissions of <html:code>/boot/grub/grub.conf</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chmod 600 /boot/grub/grub.conf</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(7)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">225</ns0:reference>
<ns0:rationale xml:lang="en-US">
Proper permissions ensure that only the root user can modify important boot
parameters.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_grub_conf" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">chmod 600 /boot/grub/grub.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_grub_conf:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_grub_conf_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="bootloader_password" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Boot Loader Password</ns0:title>
<ns0:description xml:lang="en-US">The grub boot loader should have password protection
enabled to protect boot-time settings.
To do so, select a password and then generate a hash from it by running the following command:
<html:pre>$ grub-crypt --sha-512</html:pre>
When prompted to enter a password, insert the following line into <html:code>/etc/grub.conf</html:code>
immediately after the header comments. (Use the output from <html:code>grub-crypt</html:code> as the
value of <html:b>password-hash</html:b>):
<html:pre>password --encrypted <html:b>password-hash</html:b></html:pre>
NOTE: To meet FISMA Moderate, the bootloader password MUST differ from the root password.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-2(1)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(e) AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">213</ns0:reference>
<ns0:rationale xml:lang="en-US">
Password protection on the boot loader configuration ensures
users with physical access cannot trivially alter
important bootloader settings. These include which kernel to use,
and whether to enter single-user mode.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-bootloader_password:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-bootloader_password_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="require_singleuser_auth" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Require Authentication for Single User Mode</ns0:title>
<ns0:description xml:lang="en-US">Single-user mode is intended as a system recovery
method, providing a single user root access to the system by
providing a boot option at startup. By default, no authentication
is performed if single-user mode is selected.
<html:br /><html:br />
To require entry of the root password even if the system is
started in single-user mode, add or correct the following line in the
file <html:code>/etc/sysconfig/init</html:code>:
<html:pre>SINGLE=/sbin/sulogin</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-2(1)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">213</ns0:reference>
<ns0:rationale xml:lang="en-US">
This prevents attackers with physical access from trivially bypassing security
on the machine and gaining root access. Such accesses are further prevented
by configuring the bootloader password.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="require_singleuser_auth" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^SINGLE /etc/sysconfig/init && \
sed -i "s/SINGLE.*/SINGLE=\/sbin\/sulogin/g" /etc/sysconfig/init
if ! [ $? -eq 0 ]; then
echo "SINGLE=/sbin/sulogin" >> /etc/sysconfig/init
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-require_singleuser_auth:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-require_singleuser_auth_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="disable_ctrlaltdel_reboot" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable Ctrl-Alt-Del Reboot Activation</ns0:title>
<ns0:description xml:lang="en-US">
By default, the system includes the following line in
<html:code>/etc/init/control-alt-delete.conf</html:code>
to reboot the system when the Ctrl-Alt-Del key sequence is pressed:
<html:pre>exec /sbin/shutdown -r now "Control-Alt-Delete pressed"</html:pre>
<html:br />
To configure the system to log a message instead of
rebooting the system, alter that line to read as follows:
<html:pre>exec /usr/bin/logger -p security.info "Control-Alt-Delete pressed"</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Disabling the <html:code>Ctrl-Alt-Del</html:code> key sequence
in <html:code>/etc/init/control-alt-delete.conf</html:code> DOES NOT disable the <html:code>Ctrl-Alt-Del</html:code>
key sequence if running in <html:code>runlevel 6</html:code> (e.g. in GNOME, KDE, etc.)! The
<html:code>Ctrl-Alt-Del</html:code> key sequence will only be disabled if running in
the non-graphical <html:code>runlevel 3</html:code>.
</ns0:warning>
<ns0:rationale xml:lang="en-US">
A locally logged-in user who presses Ctrl-Alt-Del, when at the console,
can reboot the system. If accidentally pressed, as could happen in
the case of mixed OS environment, this can create the risk of short-term
loss of availability of systems due to unintentional reboot.
In the GNOME graphical environment, risk of unintentional reboot from the
Ctrl-Alt-Del sequence is reduced because the user will be
prompted before any action is taken.
NOTE: When updating the <html:code>initscripts</html:code> package on a Red Hat Enterprise
Linux 6 system, custom changes to <html:code>/etc/init/control-alt-delete.conf</html:code>
may be overwritten. Refer to <html:b><html:a href="https://access.redhat.com/site/solutions/70464">https://access.redhat.com/site/solutions/70464</html:a></html:b>
for additional information.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="disable_ctrlaltdel_reboot" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># If system does not contain control-alt-delete.override,
if [ ! -f /etc/init/control-alt-delete.override ]; then
# but does have control-alt-delete.conf file,
if [ -f /etc/init/control-alt-delete.conf ]; then
# then copy .conf to .override to maintain persistency
cp /etc/init/control-alt-delete.conf /etc/init/control-alt-delete.override
fi
fi
sed -i 's,^exec.*$,exec /usr/bin/logger -p authpriv.notice -t init "Ctrl-Alt-Del was pressed and ignored",' /etc/init/control-alt-delete.override
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-disable_ctrlaltdel_reboot:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-disable_ctrlaltdel_reboot_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="disable_interactive_boot" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Interactive Boot</ns0:title>
<ns0:description xml:lang="en-US">
To disable the ability for users to perform interactive startups, perform both
of the following:
<html:ol><html:li>Edit the file <html:code>/etc/sysconfig/init</html:code>. Add or correct the line:
<html:pre>PROMPT=no</html:pre></html:li><html:li>Inspect the kernel boot arguments (which follow the word <html:code>kernel</html:code>)
in <html:code>/etc/grub.conf</html:code> and ensure the <html:code>confirm</html:code> argument is <html:b>not</html:b>
present.</html:li></html:ol>
Both the <html:code>PROMPT</html:code> option of the <html:code>/etc/sysconfig/init</html:code> file and
the <html:code>confirm</html:code> kernel boot argument of the <html:code>/etc/grub.conf</html:code> file
allow the console user to perform an interactive system startup, in which it is
possible to select the set of services which are started on boot.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-2</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">213</ns0:reference>
<ns0:rationale xml:lang="en-US">
Using interactive boot, the console user could disable auditing, firewalls, or
other services, weakening system security.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="disable_interactive_boot" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Ensure value of PROMPT key in /etc/sysconfig/init is set to 'no'
grep -q ^PROMPT /etc/sysconfig/init && \
sed -i "s/PROMPT.*/PROMPT=no/g" /etc/sysconfig/init
if ! [ $? -eq 0 ]; then
echo "PROMPT=no" >> /etc/sysconfig/init
fi
# Ensure 'confirm' kernel boot argument is not present in some of
# kernel lines in /etc/grub.conf
sed -i --follow-symlinks "s/confirm//gI" /etc/grub.conf
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-disable_interactive_boot:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-disable_interactive_boot_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="screen_locking">
<ns0:title xml:lang="en-US">Configure Screen Locking</ns0:title>
<ns0:description xml:lang="en-US">When a user must temporarily leave an account
logged-in, screen locking should be employed to prevent passersby
from abusing the account. User education and training is
particularly important for screen locking to be effective, and policies
can be implemented to reinforce this.
<html:br /><html:br />
Automatic screen locking is only meant as a safeguard for
those cases where a user forgot to lock the screen.</ns0:description>
<ns0:Group id="console_screen_locking">
<ns0:title xml:lang="en-US">Configure Console Screen Locking</ns0:title>
<ns0:description xml:lang="en-US">
A console screen locking mechanism is provided in the
<html:code>screen</html:code> package, which is not installed by default.
</ns0:description>
<ns0:Rule id="package_screen_installed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install the screen Package</ns0:title>
<ns0:description xml:lang="en-US">
To enable console screen locking, install the <html:code>screen</html:code> package:
<html:pre>$ sudo yum install screen</html:pre>
Instruct users to begin new terminal sessions with the following command:
<html:pre>$ screen</html:pre>
The console can now be locked with the following key combination:
<html:pre>ctrl+a x</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">58</ns0:reference>
<ns0:rationale xml:lang="en-US">
Installing <html:code>screen</html:code> ensures a console locking capability is available
for users who may need to suspend console logins.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_screen_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install screen
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_screen_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure screen is installed
package:
name="{{item}}"
state=present
with_items:
- screen
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_screen_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_screen
class install_screen {
package { 'screen':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_screen_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=screen
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_screen_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_screen_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="smart_card_login">
<ns0:title xml:lang="en-US">Hardware Tokens for Authentication</ns0:title>
<ns0:description xml:lang="en-US">
The use of hardware tokens such as smart cards for system login
provides stronger, two-factor authentication than using a username and password.
In Red Hat Enterprise Linux servers and workstations, hardware token login
is not enabled by default and must be enabled in the system settings.
</ns0:description>
<ns0:Rule id="smartcard_auth" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable Smart Card Login</ns0:title>
<ns0:description xml:lang="en-US">
To enable smart card authentication, consult the documentation at:
<html:ul><html:li><html:b><html:a href="https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html">https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Smart_Cards/enabling-smart-card-login.html</html:a></html:b></html:li></html:ul>
For guidance on enabling SSH to authenticate against a Common Access Card (CAC), consult documentation at:
<html:ul><html:li><html:b><html:a href="https://access.redhat.com/solutions/82273">https://access.redhat.com/solutions/82273</html:a></html:b></html:li></html:ul>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">765</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">766</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">767</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">768</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">771</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">772</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">884</ns0:reference>
<ns0:rationale xml:lang="en-US">Smart card login provides two-factor authentication stronger than
that provided by a username and password combination. Smart cards leverage PKI
(public key infrastructure) in order to provide and verify credentials.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="smartcard_auth" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Install required packages
yum -y install esc
yum -y install pam_pkcs11
# Enable pcscd service
<ns0:sub idref="function_service_command" />
service_command enable pcscd
# Configure the expected /etc/pam.d/system-auth{,-ac} settings directly
#
# The code below will configure system authentication in the way smart card
# logins will be enabled, but also user login(s) via other method to be allowed
#
# NOTE: In contrast to Red Hat Enterprise Linux 7 version of this remediation
# script (based on the testing) it does NOT seem to be possible to use
# the 'authconfig' command to perform the remediation for us. Because:
#
# * calling '/usr/sbin/authconfig --enablesmartcard --update'
# does not update all the necessary files, while
#
# * calling '/usr/sbin/authconfig --enablesmartcard --updateall'
# discards the necessary changes on /etc/pam_pkcs11/pam_pkcs11.conf
# performed subsequently below
#
# Therefore we configure /etc/pam.d/system-auth{,-ac} settings directly.
#
# Define system-auth config location
SYSTEM_AUTH_CONF="/etc/pam.d/system-auth"
# Define expected 'pam_env.so' row in $SYSTEM_AUTH_CONF
PAM_ENV_SO="auth.*required.*pam_env.so"
# Define 'pam_succeed_if.so' row to be appended past $PAM_ENV_SO row into $SYSTEM_AUTH_CONF
SYSTEM_AUTH_PAM_SUCCEED="\
auth \[success=1 default=ignore\] pam_succeed_if.so service notin \
login:gdm:xdm:kdm:xscreensaver:gnome-screensaver:kscreensaver quiet use_uid"
# Define 'pam_pkcs11.so' row to be appended past $SYSTEM_AUTH_PAM_SUCCEED
# row into SYSTEM_AUTH_CONF file
SYSTEM_AUTH_PAM_PKCS11="\
auth \[success=done authinfo_unavail=ignore ignore=ignore default=die\] \
pam_pkcs11.so card_only"
# Define smartcard-auth config location
SMARTCARD_AUTH_CONF="/etc/pam.d/smartcard-auth"
# Define 'pam_pkcs11.so' auth section to be appended past $PAM_ENV_SO into $SMARTCARD_AUTH_CONF
SMARTCARD_AUTH_SECTION="\
auth [success=done ignore=ignore default=die] pam_pkcs11.so wait_for_card card_only"
# Define expected 'pam_permit.so' row in $SMARTCARD_AUTH_CONF
PAM_PERMIT_SO="account.*required.*pam_permit.so"
# Define 'pam_pkcs11.so' password section
SMARTCARD_PASSWORD_SECTION="\
password required pam_pkcs11.so"
# First Correct the SYSTEM_AUTH_CONF configuration
if ! grep -q 'pam_pkcs11.so' "$SYSTEM_AUTH_CONF"
then
# Append (expected) pam_succeed_if.so row past the pam_env.so into SYSTEM_AUTH_CONF file
sed -i --follow-symlinks -e '/^'"$PAM_ENV_SO"'/a '"$SYSTEM_AUTH_PAM_SUCCEED" "$SYSTEM_AUTH_CONF"
# Append (expected) pam_pkcs11.so row past the pam_succeed_if.so into SYSTEM_AUTH_CONF file
sed -i --follow-symlinks -e '/^'"$SYSTEM_AUTH_PAM_SUCCEED"'/a '"$SYSTEM_AUTH_PAM_PKCS11" "$SYSTEM_AUTH_CONF"
fi
# Then also correct the SMARTCARD_AUTH_CONF
if ! grep -q 'pam_pkcs11.so' "$SMARTCARD_AUTH_CONF"
then
# Append (expected) SMARTCARD_AUTH_SECTION row past the pam_env.so into SMARTCARD_AUTH_CONF file
sed -i --follow-symlinks -e '/^'"$PAM_ENV_SO"'/a '"$SMARTCARD_AUTH_SECTION" "$SMARTCARD_AUTH_CONF"
# Append (expected) SMARTCARD_PASSWORD_SECTION row past the pam_permit.so into SMARTCARD_AUTH_CONF file
sed -i --follow-symlinks -e '/^'"$PAM_PERMIT_SO"'/a '"$SMARTCARD_PASSWORD_SECTION" "$SMARTCARD_AUTH_CONF"
fi
# Perform /etc/pam_pkcs11/pam_pkcs11.conf settings below
# Define selected constants for later reuse
SP="[:space:]"
PAM_PKCS11_CONF="/etc/pam_pkcs11/pam_pkcs11.conf"
# Ensure OCSP is turned on in $PAM_PKCS11_CONF
# 1) First replace any occurrence of 'none' value of 'cert_policy' key setting with the correct configuration
# On Red Hat Enterprise Linux 6 a space isn't required between 'cert_policy' key and value assignment !!!
sed -i "s/^[$SP]*cert_policy=none;/ cert_policy=ca, ocsp_on, signature;/g" "$PAM_PKCS11_CONF"
# 2) Then append 'ocsp_on' value setting to each 'cert_policy' key in $PAM_PKCS11_CONF configuration line,
# which does not contain it yet
# On Red Hat Enterprise Linux 6 a space isn't required between 'cert_policy' key and value assignment !!!
sed -i "/ocsp_on/! s/^[$SP]*cert_policy=\(.*\);/ cert_policy=\1, ocsp_on;/" "$PAM_PKCS11_CONF"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-smartcard_auth:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-smartcard_auth_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="accounts-banners">
<ns0:title xml:lang="en-US">Warning Banners for System Accesses</ns0:title>
<ns0:description xml:lang="en-US">Each system should expose as little information about
itself as possible.
<html:br /><html:br />
System banners, which are typically displayed just before a
login prompt, give out information about the service or the host's
operating system. This might include the distribution name and the
system kernel version, and the particular version of a network
service. This information can assist intruders in gaining access to
the system as it can reveal whether the system is running
vulnerable software. Most network services can be configured to
limit what information is displayed.
<html:br /><html:br />
Many organizations implement security policies that require a
system banner provide notice of the system's ownership, provide
warning to unauthorized users, and remind authorized users of their
consent to monitoring.</ns0:description>
<ns0:Value id="login_banner_text" operator="equals" type="string">
<ns0:title xml:lang="en-US">Login Banner Verbiage</ns0:title>
<ns0:description xml:lang="en-US">Enter an appropriate login banner for your organization. Please note that new lines must
be expressed by the '\n' character and special characters like parentheses and quotation marks must be escaped with '\'.</ns0:description>
<ns0:value selector="usgcb_default">--[\s\n]+WARNING[\s\n]+--[\s\n]*This[\s\n]+system[\s\n]+is[\s\n]+for[\s\n]+the[\s\n]+use[\s\n]+of[\s\n]+authorized[\s\n]+users[\s\n]+only.[\s\n]+Individuals[\s\n]*using[\s\n]+this[\s\n]+computer[\s\n]+system[\s\n]+without[\s\n]+authority[\s\n]+or[\s\n]+in[\s\n]+excess[\s\n]+of[\s\n]+their[\s\n]*authority[\s\n]+are[\s\n]+subject[\s\n]+to[\s\n]+having[\s\n]+all[\s\n]+their[\s\n]+activities[\s\n]+on[\s\n]+this[\s\n]+system[\s\n]*monitored[\s\n]+and[\s\n]+recorded[\s\n]+by[\s\n]+system[\s\n]+personnel.[\s\n]+Anyone[\s\n]+using[\s\n]+this[\s\n]*system[\s\n]+expressly[\s\n]+consents[\s\n]+to[\s\n]+such[\s\n]+monitoring[\s\n]+and[\s\n]+is[\s\n]+advised[\s\n]+that[\s\n]*if[\s\n]+such[\s\n]+monitoring[\s\n]+reveals[\s\n]+possible[\s\n]+evidence[\s\n]+of[\s\n]+criminal[\s\n]+activity[\s\n]*system[\s\n]+personal[\s\n]+may[\s\n]+provide[\s\n]+the[\s\n]+evidence[\s\n]+of[\s\n]+such[\s\n]+monitoring[\s\n]+to[\s\n]+law[\s\n]*enforcement[\s\n]+officials.</ns0:value>
<ns0:value selector="dod_default">You[\s\n]+are[\s\n]+accessing[\s\n]+a[\s\n]+U.S.[\s\n]+Government[\s\n]+\(USG\)[\s\n]+Information[\s\n]+System[\s\n]+\(IS\)[\s\n]+that[\s\n]+is[\s\n]+provided[\s\n]+for[\s\n]+USG-authorized[\s\n]+use[\s\n]+only.[\s\n]*By[\s\n]+using[\s\n]+this[\s\n]+IS[\s\n]+\(which[\s\n]+includes[\s\n]+any[\s\n]+device[\s\n]+attached[\s\n]+to[\s\n]+this[\s\n]+IS\),[\s\n]+you[\s\n]+consent[\s\n]+to[\s\n]+the[\s\n]+following[\s\n]+conditions\:[\s\n]*-[\s\n]*The[\s\n]+USG[\s\n]+routinely[\s\n]+intercepts[\s\n]+and[\s\n]+monitors[\s\n]+communications[\s\n]+on[\s\n]+this[\s\n]+IS[\s\n]+for[\s\n]+purposes[\s\n]+including,[\s\n]+but[\s\n]+not[\s\n]+limited[\s\n]+to,[\s\n]+penetration[\s\n]+testing,[\s\n]+COMSEC[\s\n]+monitoring,[\s\n]+network[\s\n]+operations[\s\n]+and[\s\n]+defense,[\s\n]+personnel[\s\n]+misconduct[\s\n]+\(PM\),[\s\n]+law[\s\n]+enforcement[\s\n]+\(LE\),[\s\n]+and[\s\n]+counterintelligence[\s\n]+\(CI\)[\s\n]+investigations.[\s\n]*-[\s\n]*At[\s\n]+any[\s\n]+time,[\s\n]+the[\s\n]+USG[\s\n]+may[\s\n]+inspect[\s\n]+and[\s\n]+seize[\s\n]+data[\s\n]+stored[\s\n]+on[\s\n]+this[\s\n]+IS.[\s\n]*-[\s\n]*Communications[\s\n]+using,[\s\n]+or[\s\n]+data[\s\n]+stored[\s\n]+on,[\s\n]+this[\s\n]+IS[\s\n]+are[\s\n]+not[\s\n]+private,[\s\n]+are[\s\n]+subject[\s\n]+to[\s\n]+routine[\s\n]+monitoring,[\s\n]+interception,[\s\n]+and[\s\n]+search,[\s\n]+and[\s\n]+may[\s\n]+be[\s\n]+disclosed[\s\n]+or[\s\n]+used[\s\n]+for[\s\n]+any[\s\n]+USG-authorized[\s\n]+purpose.[\s\n]*-[\s\n]*This[\s\n]+IS[\s\n]+includes[\s\n]+security[\s\n]+measures[\s\n]+\(e.g.,[\s\n]+authentication[\s\n]+and[\s\n]+access[\s\n]+controls\)[\s\n]+to[\s\n]+protect[\s\n]+USG[\s\n]+interests[\s\n]+--[\s\n]+not[\s\n]+for[\s\n]+your[\s\n]+personal[\s\n]+benefit[\s\n]+or[\s\n]+privacy.[\s\n]*-[\s\n]*Notwithstanding[\s\n]+the[\s\n]+above,[\s\n]+using[\s\n]+this[\s\n]+IS[\s\n]+does[\s\n]+not[\s\n]+constitute[\s\n]+consent[\s\n]+to[\s\n]+PM,[\s\n]+LE[\s\n]+or[\s\n]+CI[\s\n]+investigative[\s\n]+searching[\s\n]+or[\s\n]+monitoring[\s\n]+of[\s\n]+the[\s\n]+content[\s\n]+of[\s\n]+privileged[\s\n]+communications,[\s\n]+or[\s\n]+work[\s\n]+product,[\s\n]+related[\s\n]+to[\s\n]+personal[\s\n]+representation[\s\n]+or[\s\n]+services[\s\n]+by[\s\n]+attorneys,[\s\n]+psychotherapists,[\s\n]+or[\s\n]+clergy,[\s\n]+and[\s\n]+their[\s\n]+assistants.[\s\n]+Such[\s\n]+communications[\s\n]+and[\s\n]+work[\s\n]+product[\s\n]+are[\s\n]+private[\s\n]+and[\s\n]+confidential.[\s\n]+See[\s\n]+User[\s\n]+Agreement[\s\n]+for[\s\n]+details.</ns0:value>
<ns0:value selector="dss_odaa_default">[\s\n]+Use[\s\n]+of[\s\n]+this[\s\n]+or[\s\n]+any[\s\n]+other[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+system[\s\n]+constitutes[\s\n]+consent[\s\n]+to[\s\n]+monitoring[\s\n]+at[\s\n]+all[\s\n]+times.[\s\n]+This[\s\n]+is[\s\n]+a[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+system.[\s\n]+All[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+systems[\s\n]+and[\s\n]+related[\s\n]+equipment[\s\n]+are[\s\n]+intended[\s\n]+for[\s\n]+the[\s\n]+communication,[\s\n]+transmission,[\s\n]+processing,[\s\n]+and[\s\n]+storage[\s\n]+of[\s\n]+official[\s\n]+U.S.[\s\n]+Government[\s\n]+or[\s\n]+other[\s\n]+authorized[\s\n]+information[\s\n]+only.[\s\n]+All[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+systems[\s\n]+are[\s\n]+subject[\s\n]+to[\s\n]+monitoring[\s\n]+at[\s\n]+all[\s\n]+times[\s\n]+to[\s\n]+ensure[\s\n]+proper[\s\n]+functioning[\s\n]+of[\s\n]+equipment[\s\n]+and[\s\n]+systems[\s\n]+including[\s\n]+security[\s\n]+devices[\s\n]+and[\s\n]+systems,[\s\n]+to[\s\n]+prevent[\s\n]+unauthorized[\s\n]+use[\s\n]+and[\s\n]+violations[\s\n]+of[\s\n]+statutes[\s\n]+and[\s\n]+security[\s\n]+regulations,[\s\n]+to[\s\n]+deter[\s\n]+criminal[\s\n]+activity,[\s\n]+and[\s\n]+for[\s\n]+other[\s\n]+similar[\s\n]+purposes.[\s\n]+Any[\s\n]+user[\s\n]+of[\s\n]+a[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+system[\s\n]+should[\s\n]+be[\s\n]+aware[\s\n]+that[\s\n]+any[\s\n]+information[\s\n]+placed[\s\n]+in[\s\n]+the[\s\n]+system[\s\n]+is[\s\n]+subject[\s\n]+to[\s\n]+monitoring[\s\n]+and[\s\n]+is[\s\n]+not[\s\n]+subject[\s\n]+to[\s\n]+any[\s\n]+expectation[\s\n]+of[\s\n]+privacy.[\s\n]+If[\s\n]+monitoring[\s\n]+of[\s\n]+this[\s\n]+or[\s\n]+any[\s\n]+other[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+system[\s\n]+reveals[\s\n]+possible[\s\n]+evidence[\s\n]+of[\s\n]+violation[\s\n]+of[\s\n]+criminal[\s\n]+statutes,[\s\n]+this[\s\n]+evidence[\s\n]+and[\s\n]+any[\s\n]+other[\s\n]+related[\s\n]+information,[\s\n]+including[\s\n]+identification[\s\n]+information[\s\n]+about[\s\n]+the[\s\n]+user,[\s\n]+may[\s\n]+be[\s\n]+provided[\s\n]+to[\s\n]+law[\s\n]+enforcement[\s\n]+officials.[\s\n]+If[\s\n]+monitoring[\s\n]+of[\s\n]+this[\s\n]+or[\s\n]+any[\s\n]+other[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+systems[\s\n]+reveals[\s\n]+violations[\s\n]+of[\s\n]+security[\s\n]+regulations[\s\n]+or[\s\n]+unauthorized[\s\n]+use,[\s\n]+employees[\s\n]+who[\s\n]+violate[\s\n]+security[\s\n]+regulations[\s\n]+or[\s\n]+make[\s\n]+unauthorized[\s\n]+use[\s\n]+of[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+systems[\s\n]+are[\s\n]+subject[\s\n]+to[\s\n]+appropriate[\s\n]+disciplinary[\s\n]+action.[\s\n]+Use[\s\n]+of[\s\n]+this[\s\n]+or[\s\n]+any[\s\n]+other[\s\n]+DoD[\s\n]+interest[\s\n]+computer[\s\n]+system[\s\n]+constitutes[\s\n]+consent[\s\n]+to[\s\n]+monitoring[\s\n]+at[\s\n]+all[\s\n]+times.</ns0:value>
<ns0:value selector="dod_short">I\'ve[\s\n]+read[\s\n]+\&[\s\n]+consent[\s\n]+to[\s\n]+terms[\s\n]+in[\s\n]+IS[\s\n]+user[\s\n]+agreem\'t.</ns0:value>
</ns0:Value>
<ns0:Rule id="banner_etc_issue" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Modify the System Login Banner</ns0:title>
<ns0:description xml:lang="en-US">
To configure the system login banner:
<html:br /><html:br />
Edit <html:code>/etc/issue</html:code>. Replace the default text with a message
compliant with the local site policy or a legal disclaimer.
The DoD required text is either:
<html:br /><html:br />
<html:code>You are accessing a U.S. Government (USG) Information System (IS) that is
provided for USG-authorized use only. By using this IS (which includes any
device attached to this IS), you consent to the following conditions:
<html:br />-The USG routinely intercepts and monitors communications on this IS for purposes
including, but not limited to, penetration testing, COMSEC monitoring, network
operations and defense, personnel misconduct (PM), law enforcement (LE), and
counterintelligence (CI) investigations.
<html:br />-At any time, the USG may inspect and seize data stored on this IS.
<html:br />-Communications using, or data stored on, this IS are not private, are subject
to routine monitoring, interception, and search, and may be disclosed or used
for any USG-authorized purpose.
<html:br />-This IS includes security measures (e.g., authentication and access controls)
to protect USG interests -- not for your personal benefit or privacy.
<html:br />-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative
searching or monitoring of the content of privileged communications, or work
product, related to personal representation or services by attorneys,
psychotherapists, or clergy, and their assistants. Such communications and work
product are private and confidential. See User Agreement for details.</html:code>
<html:br /><html:br />
OR:
<html:br /><html:br />
<html:code>Use of this or any other DoD interest computer system constitutes consent to monitoring at all times.
<html:br />This is a DoD interest computer system. All DoD interest computer systems and related equipment are intended
for the communication, transmission, processing, and storage of official U.S. Government or other authorized
information only. All DoD interest computer systems are subject to monitoring at all times to ensure proper
functioning of equipment and systems including security devices and systems, to prevent unauthorized use and
violations of statutes and security regulations, to deter criminal activity, and for other similar purposes. Any user of
a DoD interest computer system should be aware that any information placed in the system is subject to
monitoring and is not subject to any expectation of privacy.
<html:br />If monitoring of this or any other DoD interest computer system reveals possible evidence of violation of criminal
statutes, this evidence and any other related information, including identification information about the user, may
be provided to law enforcement officials. If monitoring of this or any other DoD interest computer systems reveals
violations of security regulations or unauthorized use, employees who violate security regulations or make
unauthorized use of DoD interest computer systems are subject to appropriate disciplinary action.
<html:br />Use of this or any other DoD interest computer system constitutes consent to monitoring at all times.</html:code>
<html:br /><html:br />
OR:
<html:br /><html:br />
<html:code>I've read & consent to terms in IS user agreem't.</html:code>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">48</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1384</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1385</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1386</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1387</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1388</ns0:reference>
<ns0:rationale xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the login
process and facilitates possible legal action against attackers.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="banner_etc_issue" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
login_banner_text="<ns0:sub idref="login_banner_text" />"
# There was a regular-expression matching various banners, needs to be expanded
expanded=$(echo "$login_banner_text" | sed 's/\[\\s\\n\][+*]/ /g;s/\\//g;s/[^-]- /\n\n-/g')
formatted=$(echo "$expanded" | fold -sw 80)
cat <<EOF >/etc/issue
$formatted
EOF
printf "\n" >> /etc/issue
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-login_banner_text:var:1" value-id="login_banner_text" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-banner_etc_issue:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-banner_etc_issue_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="gui_login_banner">
<ns0:title xml:lang="en-US">Implement a GUI Warning Banner</ns0:title>
<ns0:description xml:lang="en-US">In the default graphical environment, users logging
directly into the system are greeted with a login screen provided
by the GNOME Display Manager (GDM). The warning banner should be
displayed in this graphical environment for these users.
The following sections describe how to configure the GDM login
banner.
</ns0:description>
<ns0:Rule id="gconf_gdm_enable_warning_gui_banner" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable GUI Warning Banner</ns0:title>
<ns0:description xml:lang="en-US">
To enable displaying a login warning banner in the GNOME
Display Manager's login screen, run the following command:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type bool \
--set /apps/gdm/simple-greeter/banner_message_enable true</html:pre>
To display a banner, this setting must be enabled and then
banner text must also be set.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">48</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">50</ns0:reference>
<ns0:rationale xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the login
process and facilitates possible legal action against attackers.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gdm_enable_warning_gui_banner" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"># Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Enable displaying of a login warning banner in the GNOME Display Manager's
# login screen
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type bool \
--set /apps/gdm/simple-greeter/banner_message_enable true
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gdm_enable_warning_gui_banner:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gdm_enable_warning_gui_banner_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="gconf_gdm_set_login_banner_text" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set GUI Warning Banner Text</ns0:title>
<ns0:description xml:lang="en-US">
To set the text shown by the GNOME Display Manager
in the login screen, run the following command:
<html:pre>$ sudo gconftool-2 --direct \
--config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory \
--type string \
--set /apps/gdm/simple-greeter/banner_message_text \
"Text of the warning banner here"</html:pre>
When entering a warning banner that spans several lines, remember
to begin and end the string with <html:code>"</html:code>. This command writes
directly either to the <html:code>/etc/gconf/gconf.xml.mandatory/%gconf-tree.xml</html:code>
if it exists or to the file <html:code>/etc/gconf/gconf.xml.mandatory/apps/gdm/simple-greeter/%gconf.xml</html:code>.
Either of these files can later be edited directly if necessary.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">48</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1384</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1385</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1386</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1387</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1388</ns0:reference>
<ns0:rationale xml:lang="en-US">
An appropriate warning message reinforces policy awareness during the login
process and facilitates possible legal action against attackers.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="gconf_gdm_set_login_banner_text" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
login_banner_text="<ns0:sub idref="login_banner_text" />"
# Install GConf2 package if not installed
if ! rpm -q GConf2; then
yum -y install GConf2
fi
# Expand the login_banner_text value - there was a regular-expression
# matching various banners, needs to be expanded
banner_expanded=$(echo "$login_banner_text" | sed 's/\[\\s\\n\][*+]/ /g;s/\\//g;')
# Set the text shown by the GNOME Display Manager in the login screen
gconftool-2 --direct \
--config-source "xml:readwrite:/etc/gconf/gconf.xml.mandatory" \
--type string \
--set /apps/gdm/simple-greeter/banner_message_text "${banner_expanded}"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-login_banner_text:var:1" value-id="login_banner_text" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-gconf_gdm_set_login_banner_text:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-gconf_gdm_set_login_banner_text_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="network">
<ns0:title xml:lang="en-US">Network Configuration and Firewalls</ns0:title>
<ns0:description xml:lang="en-US">Most machines must be connected to a network of some
sort, and this brings with it the substantial risk of network
attack. This section discusses the security impact of decisions
about networking which must be made when configuring a system.
<html:br /><html:br />
This section also discusses firewalls, network access
controls, and other network security frameworks, which allow
system-level rules to be written that can limit an attackers' ability
to connect to your system. These rules can specify that network
traffic should be allowed or denied from certain IP addresses,
hosts, and networks. The rules can also specify which of the
system's network services are available to particular hosts or
networks.</ns0:description>
<ns0:Group id="network_disable_unused_interfaces">
<ns0:title xml:lang="en-US">Disable Unused Interfaces</ns0:title>
<ns0:description xml:lang="en-US">Network interfaces expand the attack surface of the
system. Unused interfaces are not monitored or controlled, and
should be disabled.
<html:br /><html:br />
If the system does not require network communications but still
needs to use the loopback interface, remove all files of the form
<html:code>ifcfg-<html:i>interface</html:i></html:code> except for <html:code>ifcfg-lo</html:code> from
<html:code>/etc/sysconfig/network-scripts</html:code>:
<html:pre>$ sudo rm /etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:pre>
If the system is a standalone machine with no need for network access or even
communication over the loopback device, then disable this service.
The <html:code>network</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig network off</html:pre>
</ns0:description>
</ns0:Group>
<ns0:Rule id="network_disable_zeroconf" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Zeroconf Networking</ns0:title>
<ns0:description xml:lang="en-US">Zeroconf networking allows the system to assign itself an IP
address and engage in IP communication without a statically-assigned address or
even a DHCP server. Automatic address assignment via Zeroconf (or DHCP) is not
recommended. To disable Zeroconf automatic route assignment in the 169.254.0.0
subnet, add or correct the following line in <html:code>/etc/sysconfig/network</html:code>:
<html:pre>NOZEROCONF=yes</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Zeroconf addresses are in the network 169.254.0.0. The networking
scripts add entries to the system's routing table for these addresses. Zeroconf
address assignment commonly occurs when the system is configured to use DHCP
but fails to receive an address assignment from the DHCP server.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="network_disable_zeroconf" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">echo "NOZEROCONF=yes" >> /etc/sysconfig/network
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_disable_zeroconf:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="network_sniffer_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure System is Not Acting as a Network Sniffer</ns0:title>
<ns0:description xml:lang="en-US">The system should not be acting as a network sniffer, which can
capture all traffic on the network to which it is connected. Run the following
to determine if any interface is running in promiscuous mode:
<html:pre>$ ip link | grep PROMISC</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-3</ns0:reference>
<ns0:rationale xml:lang="en-US">If any results are returned, then a sniffing process (such as tcpdump
or Wireshark) is likely to be using the interface and this should be
investigated.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_sniffer_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="network-kernel">
<ns0:title xml:lang="en-US">Kernel Parameters Which Affect Networking</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>sysctl</html:code> utility is used to set
parameters which affect the operation of the Linux kernel. Kernel parameters
which affect networking and have security implications are described here.
</ns0:description>
<ns0:Group id="network_host_parameters">
<ns0:title xml:lang="en-US">Network Parameters for Hosts Only</ns0:title>
<ns0:description xml:lang="en-US">If the system is not going to be used as a router, then setting certain
kernel parameters ensure that the host will not perform routing
of network traffic.</ns0:description>
<ns0:Rule id="sysctl_net_ipv4_conf_default_send_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Kernel Parameter for Sending ICMP Redirects by Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.default.send_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.default.send_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.default.send_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Sending ICMP redirects permits the system to instruct other systems
to update their routing information. The ability to send ICMP redirects is
only appropriate for systems acting as routers.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_default_send_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.conf.default.send_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.default.send_redirects=0
#
# If net.ipv4.conf.default.send_redirects present in /etc/sysctl.conf, change value to "0"
# else, add "net.ipv4.conf.default.send_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.send_redirects /etc/sysctl.conf ; then
sed -i 's/^net.ipv4.conf.default.send_redirects.*/net.ipv4.conf.default.send_redirects = 0/g' /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.default.send_redirects to 0 per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.send_redirects = 0" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_default_send_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_default_send_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_all_send_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Kernel Parameter for Sending ICMP Redirects for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.send_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.send_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.send_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Sending ICMP redirects permits the system to instruct other systems
to update their routing information. The ability to send ICMP redirects is
only appropriate for systems acting as routers.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_send_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.conf.all.send_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.send_redirects=0
#
# If net.ipv4.conf.all.send_redirects present in /etc/sysctl.conf, change value to "0"
# else, add "net.ipv4.conf.all.send_redirects = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.send_redirects /etc/sysctl.conf ; then
sed -i 's/^net.ipv4.conf.all.send_redirects.*/net.ipv4.conf.all.send_redirects = 0/g' /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.send_redirects to 0 per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.send_redirects = 0" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_send_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_send_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_ip_forward" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Kernel Parameter for IP Forwarding</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.ip_forward</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.ip_forward=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.ip_forward = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">IP forwarding permits the kernel to forward packets from one network
interface to another. The ability to forward packets between two networks is
only appropriate for systems acting as routers.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_ip_forward" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">#
# Set runtime for net.ipv4.ip_forward
#
/sbin/sysctl -q -n -w net.ipv4.ip_forward=0
#
# If net.ipv4.ip_forward present in /etc/sysctl.conf, change value to "0"
# else, add "net.ipv4.ip_forward = 0" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.ip_forward /etc/sysctl.conf ; then
sed -i 's/^net.ipv4.ip_forward.*/net.ipv4.ip_forward = 0/g' /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.ip_forward to 0 per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.ip_forward = 0" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_ip_forward:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_ip_forward_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="network_host_and_router_parameters">
<ns0:title xml:lang="en-US">Network Related Kernel Runtime Parameters for Hosts and Routers</ns0:title>
<ns0:description xml:lang="en-US">Certain kernel parameters should be set for systems which are
acting as either hosts or routers to improve the system's ability defend
against certain types of IPv4 protocol attacks.</ns0:description>
<ns0:Value id="sysctl_net_ipv4_conf_all_accept_source_route_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.all.accept_source_route</ns0:title>
<ns0:description xml:lang="en-US">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.</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_all_accept_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.all.accept_redirects</ns0:title>
<ns0:description xml:lang="en-US">Disable ICMP Redirect Acceptance</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_all_secure_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.all.secure_redirects</ns0:title>
<ns0:description xml:lang="en-US">Enable to prevent hijacking of routing path by only
allowing redirects from gateways known in routing
table.</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_all_log_martians_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.all.log_martians</ns0:title>
<ns0:description xml:lang="en-US">Disable so you don't Log Spoofed Packets, Source
Routed Packets, Redirect Packets</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_default_accept_source_route_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.default.accept_source_route</ns0:title>
<ns0:description xml:lang="en-US">Disable IP source routing?</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_default_accept_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.default.accept_redirects</ns0:title>
<ns0:description xml:lang="en-US">Disable ICMP Redirect Acceptance?</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_default_secure_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.default.secure_redirects</ns0:title>
<ns0:description xml:lang="en-US">Log packets with impossible addresses to kernel
log?</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.icmp_echo_ignore_broadcasts</ns0:title>
<ns0:description xml:lang="en-US">Ignore all ICMP ECHO and TIMESTAMP requests sent to it
via broadcast/multicast</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.icmp_ignore_bogus_error_responses</ns0:title>
<ns0:description xml:lang="en-US">Enable to prevent unnecessary logging</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_tcp_syncookies_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.tcp_syncookies</ns0:title>
<ns0:description xml:lang="en-US">Enable to turn on TCP SYN Cookie
Protection</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_all_rp_filter_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.all.rp_filter</ns0:title>
<ns0:description xml:lang="en-US">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.</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv4_conf_default_rp_filter_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv4.conf.default.rp_filter</ns0:title>
<ns0:description xml:lang="en-US">Enables source route verification</ns0:description>
<ns0:value>1</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Rule id="sysctl_net_ipv4_conf_all_accept_source_route" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Source-Routed Packets for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.accept_source_route</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.accept_source_route=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.accept_source_route = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Accepting source-routed packets in the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_accept_source_route" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_all_accept_source_route_value="<ns0:sub idref="sysctl_net_ipv4_conf_all_accept_source_route_value" />"
#
# Set runtime for net.ipv4.conf.all.accept_source_route
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.accept_source_route=$sysctl_net_ipv4_conf_all_accept_source_route_value
#
# If net.ipv4.conf.all.accept_source_route present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.all.accept_source_route = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.accept_source_route /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.all.accept_source_route.*/net.ipv4.conf.all.accept_source_route = $sysctl_net_ipv4_conf_all_accept_source_route_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.accept_source_route to $sysctl_net_ipv4_conf_all_accept_source_route_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_source_route = $sysctl_net_ipv4_conf_all_accept_source_route_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_all_accept_source_route_value:var:1" value-id="sysctl_net_ipv4_conf_all_accept_source_route_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_accept_source_route:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_accept_source_route_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_all_accept_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting ICMP Redirects for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.accept_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.accept_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.accept_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1503</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Accepting ICMP redirects has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_accept_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_all_accept_redirects_value="<ns0:sub idref="sysctl_net_ipv4_conf_all_accept_redirects_value" />"
#
# Set runtime for net.ipv4.conf.all.accept_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.accept_redirects=$sysctl_net_ipv4_conf_all_accept_redirects_value
#
# If net.ipv4.conf.all.accept_redirects present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.all.accept_redirects = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.accept_redirects /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.all.accept_redirects.*/net.ipv4.conf.all.accept_redirects = $sysctl_net_ipv4_conf_all_accept_redirects_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.accept_redirects to $sysctl_net_ipv4_conf_all_accept_redirects_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.accept_redirects = $sysctl_net_ipv4_conf_all_accept_redirects_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_all_accept_redirects_value:var:1" value-id="sysctl_net_ipv4_conf_all_accept_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_accept_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_accept_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_all_secure_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Secure Redirects for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.secure_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.secure_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.secure_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1503</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Accepting "secure" ICMP redirects (from those gateways listed as
default gateways) has few legitimate uses. It should be disabled unless it is
absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_secure_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_all_secure_redirects_value="<ns0:sub idref="sysctl_net_ipv4_conf_all_secure_redirects_value" />"
#
# Set runtime for net.ipv4.conf.all.secure_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.secure_redirects=$sysctl_net_ipv4_conf_all_secure_redirects_value
#
# If net.ipv4.conf.all.secure_redirects present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.all.secure_redirects = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.secure_redirects /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.all.secure_redirects.*/net.ipv4.conf.all.secure_redirects = $sysctl_net_ipv4_conf_all_secure_redirects_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.secure_redirects to $sysctl_net_ipv4_conf_all_secure_redirects_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.secure_redirects = $sysctl_net_ipv4_conf_all_secure_redirects_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_all_secure_redirects_value:var:1" value-id="sysctl_net_ipv4_conf_all_secure_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_secure_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_secure_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_all_log_martians" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Log Martian Packets</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.log_martians</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.log_martians=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.log_martians = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5(3)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The presence of "martian" packets (which have impossible addresses)
as well as spoofed packets, source-routed packets, and redirects could be a
sign of nefarious network activity. Logging these packets enables this activity
to be detected.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_log_martians" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_all_log_martians_value="<ns0:sub idref="sysctl_net_ipv4_conf_all_log_martians_value" />"
#
# Set runtime for net.ipv4.conf.all.log_martians
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.log_martians=$sysctl_net_ipv4_conf_all_log_martians_value
#
# If net.ipv4.conf.all.log_martians present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.all.log_martians = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.log_martians /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.all.log_martians.*/net.ipv4.conf.all.log_martians = $sysctl_net_ipv4_conf_all_log_martians_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.log_martians to $sysctl_net_ipv4_conf_all_log_martians_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.log_martians = $sysctl_net_ipv4_conf_all_log_martians_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_all_log_martians_value:var:1" value-id="sysctl_net_ipv4_conf_all_log_martians_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_log_martians:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_log_martians_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_default_accept_source_route" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Source-Routed Packets By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.default.accept_source_route</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.default.accept_source_route=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.default.accept_source_route = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Accepting source-routed packets in the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_default_accept_source_route" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_default_accept_source_route_value="<ns0:sub idref="sysctl_net_ipv4_conf_default_accept_source_route_value" />"
#
# Set runtime for net.ipv4.conf.default.accept_source_route
#
/sbin/sysctl -q -n -w net.ipv4.conf.default.accept_source_route=$sysctl_net_ipv4_conf_default_accept_source_route_value
#
# If net.ipv4.conf.default.accept_source_route present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.default.accept_source_route = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.accept_source_route /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.default.accept_source_route.*/net.ipv4.conf.default.accept_source_route = $sysctl_net_ipv4_conf_default_accept_source_route_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.default.accept_source_route to $sysctl_net_ipv4_conf_default_accept_source_route_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_source_route = $sysctl_net_ipv4_conf_default_accept_source_route_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_default_accept_source_route_value:var:1" value-id="sysctl_net_ipv4_conf_default_accept_source_route_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_default_accept_source_route:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_default_accept_source_route_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_default_accept_redirects" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting ICMP Redirects By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.default.accept_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.default.accept_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.default.accept_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">This feature of the IPv4 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_default_accept_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_default_accept_redirects_value="<ns0:sub idref="sysctl_net_ipv4_conf_default_accept_redirects_value" />"
#
# Set runtime for net.ipv4.conf.default.accept_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.default.accept_redirects=$sysctl_net_ipv4_conf_default_accept_redirects_value
#
# If net.ipv4.conf.default.accept_redirects present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.default.accept_redirects = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.accept_redirects /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.default.accept_redirects.*/net.ipv4.conf.default.accept_redirects = $sysctl_net_ipv4_conf_default_accept_redirects_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.default.accept_redirects to $sysctl_net_ipv4_conf_default_accept_redirects_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.accept_redirects = $sysctl_net_ipv4_conf_default_accept_redirects_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_default_accept_redirects_value:var:1" value-id="sysctl_net_ipv4_conf_default_accept_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_default_accept_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_default_accept_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_default_secure_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Secure Redirects By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.default.secure_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.default.secure_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.default.secure_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Accepting "secure" ICMP redirects (from those gateways listed as
default gateways) has few legitimate uses. It should be disabled unless it is
absolutely required.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_default_secure_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_default_secure_redirects_value="<ns0:sub idref="sysctl_net_ipv4_conf_default_secure_redirects_value" />"
#
# Set runtime for net.ipv4.conf.default.secure_redirects
#
/sbin/sysctl -q -n -w net.ipv4.conf.default.secure_redirects=$sysctl_net_ipv4_conf_default_secure_redirects_value
#
# If net.ipv4.conf.default.secure_redirects present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.default.secure_redirects = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.secure_redirects /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.default.secure_redirects.*/net.ipv4.conf.default.secure_redirects = $sysctl_net_ipv4_conf_default_secure_redirects_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.default.secure_redirects to $sysctl_net_ipv4_conf_default_secure_redirects_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.secure_redirects = $sysctl_net_ipv4_conf_default_secure_redirects_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_default_secure_redirects_value:var:1" value-id="sysctl_net_ipv4_conf_default_secure_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_default_secure_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_default_secure_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Ignore ICMP Broadcast Echo Requests</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.icmp_echo_ignore_broadcasts</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.icmp_echo_ignore_broadcasts=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.icmp_echo_ignore_broadcasts = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Ignoring ICMP echo requests (pings) sent to broadcast or multicast
addresses makes the system slightly more difficult to enumerate on the network.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value="<ns0:sub idref="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" />"
#
# Set runtime for net.ipv4.icmp_echo_ignore_broadcasts
#
/sbin/sysctl -q -n -w net.ipv4.icmp_echo_ignore_broadcasts=$sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value
#
# If net.ipv4.icmp_echo_ignore_broadcasts present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.icmp_echo_ignore_broadcasts = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.icmp_echo_ignore_broadcasts /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.icmp_echo_ignore_broadcasts.*/net.ipv4.icmp_echo_ignore_broadcasts = $sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.icmp_echo_ignore_broadcasts to $sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.icmp_echo_ignore_broadcasts = $sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value:var:1" value-id="sysctl_net_ipv4_icmp_echo_ignore_broadcasts_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_icmp_echo_ignore_broadcasts:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_icmp_echo_ignore_broadcasts_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Ignore Bogus ICMP Error Responses</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.icmp_ignore_bogus_error_responses</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.icmp_ignore_bogus_error_responses=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.icmp_ignore_bogus_error_responses = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:rationale xml:lang="en-US">Ignoring bogus ICMP error responses reduces
log size, although some activity would not be logged.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value="<ns0:sub idref="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" />"
#
# Set runtime for net.ipv4.icmp_ignore_bogus_error_responses
#
/sbin/sysctl -q -n -w net.ipv4.icmp_ignore_bogus_error_responses=$sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value
#
# If net.ipv4.icmp_ignore_bogus_error_responses present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.icmp_ignore_bogus_error_responses = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.icmp_ignore_bogus_error_responses /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.icmp_ignore_bogus_error_responses.*/net.ipv4.icmp_ignore_bogus_error_responses = $sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.icmp_ignore_bogus_error_responses to $sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.icmp_ignore_bogus_error_responses = $sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value:var:1" value-id="sysctl_net_ipv4_icmp_ignore_bogus_error_responses_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_icmp_ignore_bogus_error_responses:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_icmp_ignore_bogus_error_responses_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_tcp_syncookies" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Use TCP Syncookies</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.tcp_syncookies</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.tcp_syncookies=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.tcp_syncookies = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5(3)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1092</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1095</ns0:reference>
<ns0:rationale xml:lang="en-US"> A TCP SYN flood attack can cause a denial of service by filling a
system's TCP connection table with connections in the SYN_RCVD state.
Syncookies can be used to track a connection when a subsequent ACK is received,
verifying the initiator is attempting a valid connection and is not a flood
source. This feature is activated when a flood condition is detected, and
enables the system to continue servicing valid connection requests.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_tcp_syncookies" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_tcp_syncookies_value="<ns0:sub idref="sysctl_net_ipv4_tcp_syncookies_value" />"
#
# Set runtime for net.ipv4.tcp_syncookies
#
/sbin/sysctl -q -n -w net.ipv4.tcp_syncookies=$sysctl_net_ipv4_tcp_syncookies_value
#
# If net.ipv4.tcp_syncookies present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.tcp_syncookies = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.tcp_syncookies /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.tcp_syncookies.*/net.ipv4.tcp_syncookies = $sysctl_net_ipv4_tcp_syncookies_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.tcp_syncookies to $sysctl_net_ipv4_tcp_syncookies_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.tcp_syncookies = $sysctl_net_ipv4_tcp_syncookies_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_tcp_syncookies_value:var:1" value-id="sysctl_net_ipv4_tcp_syncookies_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_tcp_syncookies:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_tcp_syncookies_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_all_rp_filter" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Use Reverse Path Filtering for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.all.rp_filter</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.all.rp_filter=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.all.rp_filter = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Enabling reverse path filtering drops packets with source addresses
that should not have been able to be received on the interface they were
received on. It should not be used on systems which are routers for
complicated networks, but is helpful for end hosts and routers serving small
networks.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_all_rp_filter" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_all_rp_filter_value="<ns0:sub idref="sysctl_net_ipv4_conf_all_rp_filter_value" />"
#
# Set runtime for net.ipv4.conf.all.rp_filter
#
/sbin/sysctl -q -n -w net.ipv4.conf.all.rp_filter=$sysctl_net_ipv4_conf_all_rp_filter_value
#
# If net.ipv4.conf.all.rp_filter present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.all.rp_filter = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.all.rp_filter /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.all.rp_filter.*/net.ipv4.conf.all.rp_filter = $sysctl_net_ipv4_conf_all_rp_filter_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.all.rp_filter to $sysctl_net_ipv4_conf_all_rp_filter_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.all.rp_filter = $sysctl_net_ipv4_conf_all_rp_filter_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_all_rp_filter_value:var:1" value-id="sysctl_net_ipv4_conf_all_rp_filter_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_all_rp_filter:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_all_rp_filter_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv4_conf_default_rp_filter" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter to Use Reverse Path Filtering by Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv4.conf.default.rp_filter</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv4.conf.default.rp_filter=1</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv4.conf.default.rp_filter = 1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Enabling reverse path filtering drops packets with source addresses
that should not have been able to be received on the interface they were
received on. It should not be used on systems which are routers for
complicated networks, but is helpful for end hosts and routers serving small
networks.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv4_conf_default_rp_filter" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv4_conf_default_rp_filter_value="<ns0:sub idref="sysctl_net_ipv4_conf_default_rp_filter_value" />"
#
# Set runtime for net.ipv4.conf.default.rp_filter
#
/sbin/sysctl -q -n -w net.ipv4.conf.default.rp_filter=$sysctl_net_ipv4_conf_default_rp_filter_value
#
# If net.ipv4.conf.default.rp_filter present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv4.conf.default.rp_filter = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv4.conf.default.rp_filter /etc/sysctl.conf ; then
sed -i "s/^net.ipv4.conf.default.rp_filter.*/net.ipv4.conf.default.rp_filter = $sysctl_net_ipv4_conf_default_rp_filter_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv4.conf.default.rp_filter to $sysctl_net_ipv4_conf_default_rp_filter_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv4.conf.default.rp_filter = $sysctl_net_ipv4_conf_default_rp_filter_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv4_conf_default_rp_filter_value:var:1" value-id="sysctl_net_ipv4_conf_default_rp_filter_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv4_conf_default_rp_filter:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv4_conf_default_rp_filter_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="network-wireless">
<ns0:title xml:lang="en-US">Wireless Networking</ns0:title>
<ns0:description xml:lang="en-US">Wireless networking, such as 802.11
(WiFi) and Bluetooth, can present a security risk to sensitive or
classified systems and networks. Wireless networking hardware is
much more likely to be included in laptop or portable systems than
in desktops or servers.
<html:br /><html:br />
Removal of hardware provides the greatest assurance that the wireless
capability remains disabled. Acquisition policies often include provisions to
prevent the purchase of equipment that will be used in sensitive spaces and
includes wireless capabilities. If it is impractical to remove the wireless
hardware, and policy permits the device to enter sensitive spaces as long
as wireless is disabled, efforts should instead focus on disabling wireless capability
via software.</ns0:description>
<ns0:Group id="wireless_software">
<ns0:title xml:lang="en-US">Disable Wireless Through Software Configuration</ns0:title>
<ns0:description xml:lang="en-US">If it is impossible to remove the wireless hardware
from the device in question, disable as much of it as possible
through software. The following methods can disable software
support for wireless networking, but note that these methods do not
prevent malicious software or careless users from re-activating the
devices.</ns0:description>
<ns0:Rule id="wireless_disable_in_bios" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable WiFi or Bluetooth in BIOS</ns0:title>
<ns0:description xml:lang="en-US">Some systems that include built-in wireless support offer the
ability to disable the device through the BIOS. This is system-specific;
consult your hardware manual or explore the BIOS setup during
boot.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:rationale xml:lang="en-US">Disabling wireless support in the BIOS prevents easy
activation of the wireless interface, generally requiring administrators
to reboot the system first.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="wireless_disable_interfaces" selected="false" severity="low">
<ns0:title xml:lang="en-US">Deactivate Wireless Network Interfaces</ns0:title>
<ns0:description xml:lang="en-US">Deactivating wireless network interfaces should prevent
normal usage of the wireless capability.
<html:br /><html:br />
First, identify the interfaces available with the command:
<html:pre>$ ifconfig -a</html:pre>
Additionally, the following command may be used to
determine whether wireless support is included for a
particular interface, though this may not always be a clear
indicator:
<html:pre>$ iwconfig</html:pre>
After identifying any wireless interfaces (which may have
names like <html:code>wlan0</html:code>, <html:code>ath0</html:code>, <html:code>wifi0</html:code>, <html:code>em1</html:code> or
<html:code>eth0</html:code>), deactivate the interface with the command:
<html:pre>$ sudo ifdown <html:i>interface</html:i></html:pre>
These changes will only last until the next reboot. To
disable the interface for future boots, remove the appropriate
interface file from <html:code>/etc/sysconfig/network-scripts</html:code>:
<html:pre>$ sudo rm /etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:rationale xml:lang="en-US">Wireless networking allows attackers within physical proximity to
launch network-based attacks against systems, including those against local LAN
protocols which were not designed with security in mind.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-wireless_disable_interfaces:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_bluetooth_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Bluetooth Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>bluetooth</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig bluetooth off</html:pre>
<html:pre>$ sudo service bluetooth stop</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">Disabling the <html:code>bluetooth</html:code> service prevents the system from attempting
connections to Bluetooth devices, which entails some security risk.
Nevertheless, variation in this risk decision may be expected due to the
utility of Bluetooth connectivity and its limited range.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_bluetooth_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable bluetooth
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_bluetooth_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service bluetooth
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- bluetooth
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_bluetooth_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_bluetooth_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_bluetooth_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Bluetooth Kernel Modules</ns0:title>
<ns0:description xml:lang="en-US">The kernel's module loading system can be configured to prevent
loading of the Bluetooth module. Add the following to
the appropriate <html:code>/etc/modprobe.d</html:code> configuration file
to prevent the loading of the Bluetooth module:
<html:pre>install bluetooth /bin/true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-18(3)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">If Bluetooth functionality must be disabled, preventing the kernel
from loading the kernel module provides an additional safeguard against its
activation.</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_bluetooth_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">if grep --silent "^install bluetooth" /etc/modprobe.d/bluetooth.conf ; then
sed -i 's/^install bluetooth.*/install bluetooth /bin/true/g' /etc/modprobe.d/bluetooth.conf
else
echo -e "\n# Disable per security requirements" >> /etc/modprobe.d/bluetooth.conf
echo "install bluetooth /bin/true" >> /etc/modprobe.d/bluetooth.conf
fi
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_bluetooth_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'bluetooth' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- bluetooth
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_bluetooth_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_bluetooth_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="network-ipv6">
<ns0:title xml:lang="en-US">IPv6</ns0:title>
<ns0:description xml:lang="en-US">The system includes support for Internet Protocol
version 6. A major and often-mentioned improvement over IPv4 is its
enormous increase in the number of available addresses. Another
important feature is its support for automatic configuration of
many network settings.</ns0:description>
<ns0:Group id="disabling_ipv6">
<ns0:title xml:lang="en-US">Disable Support for IPv6 Unless Needed</ns0:title>
<ns0:description xml:lang="en-US">
Despite configuration that suggests support for IPv6 has
been disabled, link-local IPv6 address auto-configuration occurs
even when only an IPv4 address is assigned. The only way to
effectively prevent execution of the IPv6 networking stack is to
instruct the system not to activate the IPv6 kernel module.
</ns0:description>
<ns0:Rule id="kernel_module_ipv6_option_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable IPv6 Networking Support Automatic Loading</ns0:title>
<ns0:description xml:lang="en-US">To prevent the IPv6 kernel module (<html:code>ipv6</html:code>) from binding to the
IPv6 networking stack, add the following line to
<html:code>/etc/modprobe.d/disabled.conf</html:code> (or another file in
<html:code>/etc/modprobe.d</html:code>):
<html:pre>options ipv6 disable=1</html:pre>
This permits the IPv6 module to be loaded (and thus satisfy other modules that
depend on it), while disabling support for the IPv6 protocol.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:rationale xml:lang="en-US">
Any unnecessary network stacks - including IPv6 - should be disabled, to reduce
the vulnerability to exploitation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="kernel_module_ipv6_option_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Prevent the IPv6 kernel module (ipv6) from loading the IPv6 networking stack
echo "options ipv6 disable=1" > /etc/modprobe.d/ipv6.conf
# Since according to: https://access.redhat.com/solutions/72733
# "ipv6 disable=1" options doesn't always disable the IPv6 networking stack from
# loading, instruct also sysctl configuration to disable IPv6 according to:
# https://access.redhat.com/solutions/8709#rhel6disable
declare -a IPV6_SETTINGS=("net.ipv6.conf.all.disable_ipv6" "net.ipv6.conf.default.disable_ipv6")
for setting in ${IPV6_SETTINGS[@]}
do
# Set runtime =1 for setting
/sbin/sysctl -q -n -w "$setting=1"
# If setting is present in /etc/sysctl.conf, change value to "1"
# else, add "$setting = 1" to /etc/sysctl.conf
if grep -q ^"$setting" /etc/sysctl.conf ; then
sed -i "s/^$setting.*/$setting = 1/g" /etc/sysctl.conf
else
echo "" >> /etc/sysctl.conf
echo "# Set $setting = 1 per security requirements" >> /etc/sysctl.conf
echo "$setting = 1" >> /etc/sysctl.conf
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_ipv6_option_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_ipv6_option_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="network_ipv6_disable_interfaces" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Interface Usage of IPv6</ns0:title>
<ns0:description xml:lang="en-US">To disable interface usage of IPv6, add or correct the following lines in <html:code>/etc/sysconfig/network</html:code>:
<html:pre>NETWORKING_IPV6=no
IPV6INIT=no</html:pre>
</ns0:description>
</ns0:Rule>
<ns0:Rule id="network_ipv6_disable_rpc" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Support for RPC IPv6</ns0:title>
<ns0:description xml:lang="en-US">RPC services for NFSv4 try to load transport modules for
<html:code>udp6</html:code> and <html:code>tcp6</html:code> by default, even if IPv6 has been disabled in
<html:code>/etc/modprobe.d</html:code>. To prevent RPC services such as <html:code>rpc.mountd</html:code>
from attempting to start IPv6 network listeners, remove or comment out the
following two lines in <html:code>/etc/netconfig</html:code>:
<html:pre>udp6 tpi_clts v inet6 udp - -
tcp6 tpi_cots_ord v inet6 tcp - -</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:fix complexity="low" disruption="low" id="network_ipv6_disable_rpc" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Drop 'tcp6' and 'udp6' entries from /etc/netconfig to prevent RPC
# services for NFSv4 from attempting to start IPv6 network listeners
declare -a IPV6_RPC_ENTRIES=("tcp6" "udp6")
for rpc_entry in ${IPV6_RPC_ENTRIES[@]}
do
sed -i "/^$rpc_entry[[:space:]]\+tpi\_.*inet6.*/d" /etc/netconfig
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_ipv6_disable_rpc:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="configuring_ipv6">
<ns0:title xml:lang="en-US">Configure IPv6 Settings if Necessary</ns0:title>
<ns0:description xml:lang="en-US">A major feature of IPv6 is the extent to which systems
implementing it can automatically configure their networking
devices using information from the network. From a security
perspective, manually configuring important configuration
information is preferable to accepting it from the network
in an unauthenticated fashion.</ns0:description>
<ns0:Group id="disabling_ipv6_autoconfig">
<ns0:title xml:lang="en-US">Disable Automatic Configuration</ns0:title>
<ns0:description xml:lang="en-US">Disable the system's acceptance of router
advertisements and redirects by adding or correcting the following
line in <html:code>/etc/sysconfig/network</html:code> (note that this does not disable
sending router solicitations):
<html:pre>IPV6_AUTOCONF=no</html:pre>
</ns0:description>
<ns0:Value id="sysconfig_network_IPV6_AUTOCONF_value" operator="equals" type="string">
<ns0:title xml:lang="en-US">IPV6_AUTOCONF</ns0:title>
<ns0:description xml:lang="en-US">Toggle global IPv6 auto-configuration (only, if global
forwarding is disabled)</ns0:description>
<ns0:value>no</ns0:value>
<ns0:value selector="enabled">yes</ns0:value>
<ns0:value selector="disabled">no</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_all_accept_source_route_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.all.accept_source_route</ns0:title>
<ns0:description xml:lang="en-US">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.</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_default_accept_ra_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.default.accept_ra</ns0:title>
<ns0:description xml:lang="en-US">Accept default router advertisements by default?</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_all_accept_ra_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.all.accept_ra</ns0:title>
<ns0:description xml:lang="en-US">Accept all router advertisements?</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_default_accept_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.default.accept_redirects</ns0:title>
<ns0:description xml:lang="en-US">Toggle ICMP Redirect Acceptance By Default</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_all_accept_redirects_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.all.accept_redirects</ns0:title>
<ns0:description xml:lang="en-US">Toggle ICMP Redirect Acceptance</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_default_accept_source_route_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.default.accept_source_route</ns0:title>
<ns0:description xml:lang="en-US">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.</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Value id="sysctl_net_ipv6_conf_all_forwarding_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">net.ipv6.conf.all.forwarding</ns0:title>
<ns0:description xml:lang="en-US">Toggle IPv6 Forwarding</ns0:description>
<ns0:value>0</ns0:value>
<ns0:value selector="enabled">1</ns0:value>
<ns0:value selector="disabled">0</ns0:value>
</ns0:Value>
<ns0:Rule id="sysctl_net_ipv6_conf_all_accept_source_route" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Source-Routed Packets for All Interfaces</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.all.accept_source_route</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.all.accept_source_route=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.all.accept_source_route = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Source-routed packets allow the source of the packet to suggest routers
forward the packet along a different path than configured on the router, which can
be used to bypass network security measures. This requirement applies only to the
forwarding of source-routerd traffic, such as when IPv6 forwarding is enabled and
the system is functioning as a router.
Accepting source-routed packets in the IPv6 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_all_accept_source_route_value:var:1" value-id="sysctl_net_ipv6_conf_all_accept_source_route_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_all_accept_source_route:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_all_accept_source_route_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_all_accept_ra" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Accepting IPv6 Router Advertisements</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.all.accept_ra</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.all.accept_ra=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.all.accept_ra = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="https://benchmarks.cisecurity.org/tools2/linux/CIS_Red_Hat_Enterprise_Linux_6_Benchmark_v1.1.0.pdf">4.4.1.1</ns0:reference>
<ns0:rationale xml:lang="en-US">
An illicit router advertisement message could result in a man-in-the-middle attack.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_all_accept_ra_value:var:1" value-id="sysctl_net_ipv6_conf_all_accept_ra_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_all_accept_ra:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_all_accept_ra_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_default_accept_ra" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Accepting IPv6 Router Advertisements</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.default.accept_ra</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.default.accept_ra=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.default.accept_ra = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="https://benchmarks.cisecurity.org/tools2/linux/CIS_Red_Hat_Enterprise_Linux_6_Benchmark_v1.1.0.pdf">4.4.1.1</ns0:reference>
<ns0:rationale xml:lang="en-US">
An illicit router advertisement message could result in a man-in-the-middle attack.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv6_conf_default_accept_ra" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv6_conf_default_accept_ra_value="<ns0:sub idref="sysctl_net_ipv6_conf_default_accept_ra_value" />"
#
# Set runtime for net.ipv6.conf.default.accept_ra
#
/sbin/sysctl -q -n -w net.ipv6.conf.default.accept_ra=$sysctl_net_ipv6_conf_default_accept_ra_value
#
# If net.ipv6.conf.default.accept_ra present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv6.conf.default.accept_ra = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv6.conf.default.accept_ra /etc/sysctl.conf ; then
sed -i "s/^net.ipv6.conf.default.accept_ra.*/net.ipv6.conf.default.accept_ra = $sysctl_net_ipv6_conf_default_accept_ra_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv6.conf.default.accept_ra to $sysctl_net_ipv6_conf_default_accept_ra_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.accept_ra = $sysctl_net_ipv6_conf_default_accept_ra_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_default_accept_ra_value:var:1" value-id="sysctl_net_ipv6_conf_default_accept_ra_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_default_accept_ra:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_default_accept_ra_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_all_accept_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Accepting IPv6 Redirects By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.all.accept_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.all.accept_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.all.accept_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:reference href="https://benchmarks.cisecurity.org/tools2/linux/CIS_Red_Hat_Enterprise_Linux_6_Benchmark_v1.1.0.pdf">4.4.1.2</ns0:reference>
<ns0:rationale xml:lang="en-US">
An illicit ICMP redirect message could result in a man-in-the-middle attack.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_all_accept_redirects_value:var:1" value-id="sysctl_net_ipv6_conf_all_accept_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_all_accept_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_all_accept_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_default_accept_redirects" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Accepting IPv6 Redirects By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.default.accept_redirects</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.default.accept_redirects=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.default.accept_redirects = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1551</ns0:reference>
<ns0:reference href="https://benchmarks.cisecurity.org/tools2/linux/CIS_Red_Hat_Enterprise_Linux_6_Benchmark_v1.1.0.pdf">4.4.1.2</ns0:reference>
<ns0:rationale xml:lang="en-US">
An illicit ICMP redirect message could result in a man-in-the-middle attack.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="sysctl_net_ipv6_conf_default_accept_redirects" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">
sysctl_net_ipv6_conf_default_accept_redirects_value="<ns0:sub idref="sysctl_net_ipv6_conf_default_accept_redirects_value" />"
#
# Set runtime for net.ipv6.conf.default.accept_redirects
#
/sbin/sysctl -q -n -w net.ipv6.conf.default.accept_redirects=$sysctl_net_ipv6_conf_default_accept_redirects_value
#
# If net.ipv6.conf.default.accept_redirects present in /etc/sysctl.conf, change value to appropriate value
# else, add "net.ipv6.conf.default.accept_redirects = value" to /etc/sysctl.conf
#
if grep --silent ^net.ipv6.conf.default.accept_redirects /etc/sysctl.conf ; then
sed -i "s/^net.ipv6.conf.default.accept_redirects.*/net.ipv6.conf.default.accept_redirects = $sysctl_net_ipv6_conf_default_accept_redirects_value/g" /etc/sysctl.conf
else
echo -e "\n# Set net.ipv6.conf.default.accept_redirects to $sysctl_net_ipv6_conf_default_accept_redirects_value per security requirements" >> /etc/sysctl.conf
echo "net.ipv6.conf.default.accept_redirects = $sysctl_net_ipv6_conf_default_accept_redirects_value" >> /etc/sysctl.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_default_accept_redirects_value:var:1" value-id="sysctl_net_ipv6_conf_default_accept_redirects_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_default_accept_redirects:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_default_accept_redirects_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_default_accept_source_route" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Kernel Parameter for Accepting Source-Routed Packets for Interfaces By Default</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.default.accept_source_route</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.default.accept_source_route=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.default.accept_source_route = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Source-routed packets allow the source of the packet to suggest routers
forward the packet along a different path than configured on the router, which can
be used to bypass network security measures. This requirement applies only to the
forwarding of source-routerd traffic, such as when IPv6 forwarding is enabled and
the system is functioning as a router.
Accepting source-routed packets in the IPv6 protocol has few legitimate
uses. It should be disabled unless it is absolutely required.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_default_accept_source_route_value:var:1" value-id="sysctl_net_ipv6_conf_default_accept_source_route_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_default_accept_source_route:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_default_accept_source_route_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sysctl_net_ipv6_conf_all_forwarding" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Kernel Parameter for IPv6 Forwarding</ns0:title>
<ns0:description xml:lang="en-US">
To set the runtime status of the <html:code>net.ipv6.conf.all.forwarding</html:code> kernel parameter,
run the following command:
<html:pre xml:space="preserve">$ sudo sysctl -w net.ipv6.conf.all.forwarding=0</html:pre>
If this is not the system's default value, add the following line to <html:code>/etc/sysctl.conf</html:code>:
<html:pre xml:space="preserve">net.ipv6.conf.all.forwarding = 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:reference href="https://benchmarks.cisecurity.org/tools2/linux/CIS_Red_Hat_Enterprise_Linux_6_Benchmark_v1.1.0.pdf">4.1.1</ns0:reference>
<ns0:rationale xml:lang="en-US">IP forwarding permits the kernel to forward packets from one network
interface to another. The ability to forward packets between two networks is
only appropriate for systems acting as routers.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sysctl_net_ipv6_conf_all_forwarding_value:var:1" value-id="sysctl_net_ipv6_conf_all_forwarding_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysctl_net_ipv6_conf_all_forwarding:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysctl_net_ipv6_conf_all_forwarding_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="network_ipv6_static_address" selected="false" severity="low">
<ns0:title xml:lang="en-US">Manually Assign Global IPv6 Address</ns0:title>
<ns0:description xml:lang="en-US">To manually assign an IP address for an interface, edit the
file <html:code>/etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:code>. Add or correct the
following line (substituting the correct IPv6 address):
<html:pre>IPV6ADDR=2001:0DB8::ABCD/64</html:pre>
Manually assigning an IP address is preferable to accepting one from routers or
from the network otherwise. The example address here is an IPv6 address
reserved for documentation purposes, as defined by RFC3849.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_ipv6_static_address:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="network_ipv6_privacy_extensions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Use Privacy Extensions for Address</ns0:title>
<ns0:description xml:lang="en-US">To introduce randomness into the automatic generation of IPv6
addresses, add or correct the following line in
<html:code>/etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:code>:
<html:pre>IPV6_PRIVACY=rfc3041</html:pre>
Automatically-generated IPv6 addresses are based on the underlying hardware
(e.g. Ethernet) address, and so it becomes possible to track a piece of
hardware over its lifetime using its traffic. If it is important for a system's
IP address to not trivially reveal its hardware address, this setting should be
applied.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_ipv6_privacy_extensions:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="network_ipv6_default_gateway" selected="false" severity="low">
<ns0:title xml:lang="en-US">Manually Assign IPv6 Router Address</ns0:title>
<ns0:description xml:lang="en-US">Edit the file
<html:code>/etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:code>, and add or correct
the following line (substituting your gateway IP as appropriate):
<html:pre>IPV6_DEFAULTGW=2001:0DB8::0001</html:pre>
Router addresses should be manually set and not accepted via any
auto-configuration or router advertisement.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-6(b)</ns0:reference>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-network_ipv6_default_gateway:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="network_ipv6_limit_requests">
<ns0:title xml:lang="en-US">Limit Network-Transmitted Configuration if Using Static IPv6 Addresses</ns0:title>
<ns0:description xml:lang="en-US">To limit the configuration information requested from other
systems and accepted from the network on a system that uses
statically-configured IPv6 addresses, add the following lines to
<html:code>/etc/sysctl.conf</html:code>:
<html:pre>net.ipv6.conf.default.router_solicitations = 0
net.ipv6.conf.default.accept_ra_rtr_pref = 0
net.ipv6.conf.default.accept_ra_pinfo = 0
net.ipv6.conf.default.accept_ra_defrtr = 0
net.ipv6.conf.default.autoconf = 0
net.ipv6.conf.default.dad_transmits = 0
net.ipv6.conf.default.max_addresses = 1</html:pre>
The <html:code>router_solicitations</html:code> setting determines how many router
solicitations are sent when bringing up the interface. If addresses are
statically assigned, there is no need to send any solicitations.
<html:br /><html:br />
The <html:code>accept_ra_pinfo</html:code> setting controls whether the system will accept
prefix info from the router.
<html:br /><html:br />
The <html:code>accept_ra_defrtr</html:code> setting controls whether the system will accept
Hop Limit settings from a router advertisement. Setting it to 0 prevents a
router from changing your default IPv6 Hop Limit for outgoing packets.
<html:br /><html:br />
The <html:code>autoconf</html:code> setting controls whether router advertisements can cause
the system to assign a global unicast address to an interface.
<html:br /><html:br />
The <html:code>dad_transmits</html:code> setting determines how many neighbor solicitations
to send out per address (global and link-local) when bringing up an interface
to ensure the desired address is unique on the network.
<html:br /><html:br />
The <html:code>max_addresses</html:code> setting determines how many global unicast IPv6
addresses can be assigned to each interface. The default is 16, but it should
be set to exactly the number of statically configured global addresses
required.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="network-iptables">
<ns0:title xml:lang="en-US">iptables and ip6tables</ns0:title>
<ns0:description xml:lang="en-US">A host-based firewall called <html:code>netfilter</html:code> is included as
part of the Linux kernel distributed with the system. It is
activated by default. This firewall is controlled by the program
<html:code>iptables</html:code>, and the entire capability is frequently referred to by
this name. An analogous program called <html:code>ip6tables</html:code> handles filtering
for IPv6.
<html:br /><html:br />
Unlike TCP Wrappers, which depends on the network server
program to support and respect the rules written, <html:code>netfilter</html:code>
filtering occurs at the kernel level, before a program can even
process the data from the network packet. As such, any program on
the system is affected by the rules written.
<html:br /><html:br />
This section provides basic information about strengthening
the <html:code>iptables</html:code> and <html:code>ip6tables</html:code> configurations included with the system.
For more complete information that may allow the construction of a
sophisticated ruleset tailored to your environment, please consult
the references at the end of this section.</ns0:description>
<ns0:Group id="iptables_activation">
<ns0:title xml:lang="en-US">Inspect and Activate Default Rules</ns0:title>
<ns0:description xml:lang="en-US">View the currently-enforced <html:code>iptables</html:code> rules by running
the command:
<html:pre>$ sudo iptables -nL --line-numbers</html:pre>
The command is analogous for <html:code>ip6tables</html:code>.
<html:br /><html:br />
If the firewall does not appear to be active (i.e., no rules
appear), activate it and ensure that it starts at boot by issuing
the following commands (and analogously for <html:code>ip6tables</html:code>):
<html:pre>$ sudo service iptables restart</html:pre>
The default iptables rules are:
<html:pre>Chain INPUT (policy ACCEPT)
num target prot opt source destination
1 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
2 ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
3 ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
5 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
num target prot opt source destination
1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
num target prot opt source destination</html:pre>
The <html:code>ip6tables</html:code> default rules are essentially the same.</ns0:description>
<ns0:Rule id="service_ip6tables_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify ip6tables Enabled if Using IPv6</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>ip6tables</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 ip6tables on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CA-3(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">66</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1115</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1118</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1092</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1117</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1098</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1100</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1097</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1414</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>ip6tables</html:code> service provides the system's host-based firewalling
capability for IPv6 and ICMPv6.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_ip6tables_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable ip6tables
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_ip6tables_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service ip6tables
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- ip6tables
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_ip6tables_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_ip6tables_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="set_ip6tables_default_rule" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Default ip6tables Policy for Incoming Packets</ns0:title>
<ns0:description xml:lang="en-US">To set the default policy to DROP (instead of ACCEPT) for
the built-in INPUT chain which processes incoming packets,
add or correct the following line in
<html:code>/etc/sysconfig/ip6tables</html:code>:
<html:pre>:INPUT DROP [0:0]</html:pre>
If changes were required, reload the ip6tables rules:
<html:pre>$ sudo service ip6tables reload</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">66</ns0:reference>
<ns0:rationale xml:lang="en-US">In <html:code>ip6tables</html:code>, the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <html:code>DROP</html:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="set_ip6tables_default_rule" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i 's/^:INPUT ACCEPT.*/:INPUT DROP [0:0]/g' /etc/sysconfig/ip6tables
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_ip6tables_default_rule:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_ip6tables_default_rule_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_iptables_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Verify iptables Enabled</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>iptables</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 iptables on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CA-3(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">32</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">66</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1115</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1118</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1092</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1117</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1098</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1100</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1097</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1414</ns0:reference>
<ns0:rationale xml:lang="en-US">
The <html:code>iptables</html:code> service provides the system's host-based firewalling
capability for IPv4 and ICMP.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_iptables_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable iptables
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_iptables_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service iptables
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- iptables
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_iptables_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_iptables_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="ruleset_modifications">
<ns0:title xml:lang="en-US">Strengthen the Default Ruleset</ns0:title>
<ns0:description xml:lang="en-US">The default rules can be strengthened. The system
scripts that activate the firewall rules expect them to be defined
in the configuration files <html:code>iptables</html:code> and <html:code>ip6tables</html:code> in the directory
<html:code>/etc/sysconfig</html:code>. Many of the lines in these files are similar
to the command line arguments that would be provided to the programs
<html:code>/sbin/iptables</html:code> or <html:code>/sbin/ip6tables</html:code> - but some are quite
different.
<html:br /><html:br />
The following recommendations describe how to strengthen the
default ruleset configuration file. An alternative to editing this
configuration file is to create a shell script that makes calls to
the iptables program to load in rules, and then invokes service
iptables save to write those loaded rules to
<html:code>/etc/sysconfig/iptables.</html:code>
<html:br /><html:br />
The following alterations can be made directly to
<html:code>/etc/sysconfig/iptables</html:code> and <html:code>/etc/sysconfig/ip6tables</html:code>.
Instructions apply to both unless otherwise noted. Language and address
conventions for regular iptables are used throughout this section;
configuration for ip6tables will be either analogous or explicitly
covered.</ns0:description>
<ns0:warning category="general" xml:lang="en-US">The program <html:code>system-config-securitylevel</html:code>
allows additional services to penetrate the default firewall rules
and automatically adjusts <html:code>/etc/sysconfig/iptables</html:code>. This program
is only useful if the default ruleset meets your security
requirements. Otherwise, this program should not be used to make
changes to the firewall configuration because it re-writes the
saved configuration file.</ns0:warning>
<ns0:Rule id="set_iptables_default_rule" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Default iptables Policy for Incoming Packets</ns0:title>
<ns0:description xml:lang="en-US">To set the default policy to DROP (instead of ACCEPT) for
the built-in INPUT chain which processes incoming packets,
add or correct the following line in
<html:code>/etc/sysconfig/iptables</html:code>:
<html:pre>:INPUT DROP [0:0]</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">66</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1109</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1154</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1414</ns0:reference>
<ns0:rationale xml:lang="en-US">In <html:code>iptables</html:code> the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <html:code>DROP</html:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="set_iptables_default_rule" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i 's/^:INPUT ACCEPT.*/:INPUT DROP [0:0]/g' /etc/sysconfig/iptables
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_iptables_default_rule:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_iptables_default_rule_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="set_iptables_default_rule_forward" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Set Default iptables Policy for Forwarded Packets</ns0:title>
<ns0:description xml:lang="en-US">To set the default policy to DROP (instead of ACCEPT) for
the built-in FORWARD chain which processes packets that will be forwarded from
one interface to another,
add or correct the following line in
<html:code>/etc/sysconfig/iptables</html:code>:
<html:pre>:FORWARD DROP [0:0]</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1109</ns0:reference>
<ns0:rationale xml:lang="en-US">In <html:code>iptables</html:code>, the default policy is applied only after all
the applicable rules in the table are examined for a match. Setting the
default policy to <html:code>DROP</html:code> implements proper design for a firewall, i.e.
any packets which are not explicitly permitted should not be
accepted.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="set_iptables_default_rule_forward" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">sed -i 's/^:FORWARD ACCEPT.*/:FORWARD DROP [0:0]/g' /etc/sysconfig/iptables
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-set_iptables_default_rule_forward:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-set_iptables_default_rule_forward_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="iptables_icmp_disabled">
<ns0:title xml:lang="en-US">Restrict ICMP Message Types</ns0:title>
<ns0:description xml:lang="en-US">In <html:code>/etc/sysconfig/iptables</html:code>, the accepted ICMP messages
types can be restricted. To accept only ICMP echo reply, destination
unreachable, and time exceeded messages, remove the line:<html:br />
<html:pre>-A INPUT -p icmp --icmp-type any -j ACCEPT</html:pre>
and insert the lines:
<html:pre>-A INPUT -p icmp --icmp-type echo-reply -j ACCEPT
-A INPUT -p icmp --icmp-type destination-unreachable -j ACCEPT
-A INPUT -p icmp --icmp-type time-exceeded -j ACCEPT</html:pre>
To allow the system to respond to pings, also insert the following line:
<html:pre>-A INPUT -p icmp --icmp-type echo-request -j ACCEPT</html:pre>
Ping responses can also be limited to certain networks or hosts by using the -s
option in the previous rule. Because IPv6 depends so heavily on ICMPv6, it is
preferable to deny the ICMPv6 packets you know you don't need (e.g. ping
requests) in <html:code>/etc/sysconfig/ip6tables</html:code>, while letting everything else
through:
<html:pre>-A INPUT -p icmpv6 --icmpv6-type echo-request -j DROP</html:pre>
If you are going to statically configure the machine's address, it should
ignore Router Advertisements which could add another IPv6 address to the
interface or alter important network settings:
<html:pre>-A INPUT -p icmpv6 --icmpv6-type router-advertisement -j DROP</html:pre>
Restricting ICMPv6 message types in <html:code>/etc/sysconfig/ip6tables</html:code> is not
recommended because the operation of IPv6 depends heavily on ICMPv6. Thus, great
care must be taken if any other ICMPv6 types are blocked.
</ns0:description>
<ns0:rationale xml:lang="en-US">Restricting ICMP messages may make a system slightly less
discoverable to an unsophisticated attacker but is not appropriate for many
general-purpose use cases and can also make troubleshooting more difficult.
</ns0:rationale>
</ns0:Group>
<ns0:Group id="iptables_log_and_drop_suspicious">
<ns0:title xml:lang="en-US">Log and Drop Packets with Suspicious Source Addresses</ns0:title>
<ns0:description xml:lang="en-US">Packets with non-routable source addresses should be rejected, as they may indicate spoofing. Because the
modified policy will reject non-matching packets, you only need to add these rules if you are interested in also
logging these spoofing or suspicious attempts before they are dropped. If you do choose to log various suspicious
traffic, add identical rules with a target of <html:code>DROP</html:code> after each <html:i>LOG</html:i>.
To log and then drop these IPv4 packets, insert the following rules in <html:code>/etc/sysconfig/iptables</html:code> (excepting
any that are intentionally used):
<html:pre>-A INPUT -s 10.0.0.0/8 -j LOG --log-prefix "IP DROP SPOOF A: "
-A INPUT -s 172.16.0.0/12 -j LOG --log-prefix "IP DROP SPOOF B: "
-A INPUT -s 192.168.0.0/16 -j LOG --log-prefix "IP DROP SPOOF C: "
-A INPUT -s 224.0.0.0/4 -j LOG --log-prefix "IP DROP MULTICAST D: "
-A INPUT -s 240.0.0.0/5 -j LOG --log-prefix "IP DROP SPOOF E: "
-A INPUT -d 127.0.0.0/8 -j LOG --log-prefix "IP DROP LOOPBACK: "</html:pre>
Similarly, you might wish to log packets containing some IPv6 reserved addresses if they are not expected
on your network:
<html:pre>-A INPUT -i eth0 -s ::1 -j LOG --log-prefix "IPv6 DROP LOOPBACK: "
-A INPUT -s 2002:E000::/20 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:7F00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:0000::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:FF00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:0A00::/24 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:AC10::/28 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "
-A INPUT -s 2002:C0A8::/32 -j LOG --log-prefix "IPv6 6to4 TRAFFIC: "</html:pre>
If you are not expecting to see site-local multicast or auto-tunneled traffic, you can log those:
<html:pre>-A INPUT -s FF05::/16 -j LOG --log-prefix "IPv6 SITE-LOCAL MULTICAST: "
-A INPUT -s ::0.0.0.0/96 -j LOG --log-prefix "IPv4 COMPATIBLE IPv6 ADDR: "</html:pre>
If you wish to block multicasts to all link-local nodes (e.g. if you are not using router auto-configuration and
do not plan to have any services that multicast to the entire local network), you can block the link-local
all-nodes multicast address (before accepting incoming ICMPv6):
<html:pre>-A INPUT -d FF02::1 -j LOG --log-prefix "Link-local All-Nodes Multicast: "</html:pre>
However, if you're going to allow IPv4 compatible IPv6 addresses (of the form ::0.0.0.0/96), you should
then consider logging the non-routable IPv4-compatible addresses:
<html:pre>-A INPUT -s ::0.0.0.0/104 -j LOG --log-prefix "IP NON-ROUTABLE ADDR: "
-A INPUT -s ::127.0.0.0/104 -j LOG --log-prefix "IP DROP LOOPBACK: "
-A INPUT -s ::224.0.0.0.0/100 -j LOG --log-prefix "IP DROP MULTICAST D: "
-A INPUT -s ::255.0.0.0/104 -j LOG --log-prefix "IP BROADCAST: "</html:pre>
If you are not expecting to see any IPv4 (or IPv4-compatible) traffic on your network, consider logging it before it gets dropped:
<html:pre>-A INPUT -s ::FFFF:0.0.0.0/96 -j LOG --log-prefix "IPv4 MAPPED IPv6 ADDR: "
-A INPUT -s 2002::/16 -j LOG --log-prefix "IPv6 6to4 ADDR: "</html:pre>
The following rule will log all traffic originating from a site-local address, which is deprecated address space:
<html:pre>-A INPUT -s FEC0::/10 -j LOG --log-prefix "SITE-LOCAL ADDRESS TRAFFIC: "</html:pre>
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="network_ssl">
<ns0:title xml:lang="en-US">Transport Layer Security Support</ns0:title>
<ns0:description xml:lang="en-US">
Support for Transport Layer Security (TLS), and its predecessor, the Secure
Sockets Layer (SSL), is included in Red Hat Enterprise Linux in the OpenSSL software (RPM package
<html:code>openssl</html:code>). TLS provides encrypted and authenticated network
communications, and many network services include support for it. TLS or SSL
can be leveraged to avoid any plaintext transmission of sensitive data.
<html:br />
For information on how to use OpenSSL, see
<html:b><html:a href="http://www.openssl.org/docs/HOWTO/">http://www.openssl.org/docs/HOWTO/</html:a></html:b>. Information on FIPS validation
of OpenSSL is available at <html:b><html:a href="http://www.openssl.org/docs/fips/fipsvalidation.html">http://www.openssl.org/docs/fips/fipsvalidation.html</html:a></html:b>
and <html:b><html:a href="http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140val-all.htm">http://csrc.nist.gov/groups/STM/cmvp/documents/140-1/140val-all.htm</html:a></html:b>.
</ns0:description>
</ns0:Group>
<ns0:Group id="network-uncommon">
<ns0:title xml:lang="en-US">Uncommon Network Protocols</ns0:title>
<ns0:description xml:lang="en-US">The system includes support for several network
protocols which are not commonly used. Although security vulnerabilities
in kernel networking code are not frequently
discovered, the consequences can be dramatic. Ensuring uncommon
network protocols are disabled reduces the system's risk to attacks
targeted at its implementation of those protocols.</ns0:description>
<ns0:warning xml:lang="en-US">
Although these protocols are not commonly used, avoid disruption
in your network environment by ensuring they are not needed
prior to disabling them.
</ns0:warning>
<ns0:Rule id="kernel_module_dccp_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable DCCP Support</ns0:title>
<ns0:description xml:lang="en-US">
The Datagram Congestion Control Protocol (DCCP) is a
relatively new transport layer protocol, designed to support
streaming media and telephony.
To configure the system to prevent the <html:code>dccp</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install dccp /bin/true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling DCCP protects
the system against exploitation of any flaws in its implementation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_dccp_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install dccp /bin/true" > /etc/modprobe.d/dccp.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_dccp_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'dccp' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- dccp
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_dccp_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_dccp_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_sctp_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable SCTP Support</ns0:title>
<ns0:description xml:lang="en-US">
The Stream Control Transmission Protocol (SCTP) is a
transport layer protocol, designed to support the idea of
message-oriented communication, with several streams of messages
within one connection.
To configure the system to prevent the <html:code>sctp</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install sctp /bin/true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling SCTP protects
the system against exploitation of any flaws in its implementation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_sctp_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install sctp /bin/true" > /etc/modprobe.d/sctp.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_sctp_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'sctp' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- sctp
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_sctp_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_sctp_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_rds_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable RDS Support</ns0:title>
<ns0:description xml:lang="en-US">
The Reliable Datagram Sockets (RDS) protocol is a transport
layer protocol designed to provide reliable high- bandwidth,
low-latency communications between nodes in a cluster.
To configure the system to prevent the <html:code>rds</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install rds /bin/true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling RDS protects
the system against exploitation of any flaws in its implementation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_rds_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install rds /bin/true" > /etc/modprobe.d/rds.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_rds_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'rds' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- rds
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_rds_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_rds_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="kernel_module_tipc_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable TIPC Support</ns0:title>
<ns0:description xml:lang="en-US">
The Transparent Inter-Process Communication (TIPC) protocol
is designed to provide communications between nodes in a
cluster.
To configure the system to prevent the <html:code>tipc</html:code>
kernel module from being loaded, add the following line to a file in the directory <html:code>/etc/modprobe.d</html:code>:
<html:pre xml:space="preserve">install tipc /bin/true</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling TIPC protects
the system against exploitation of any flaws in its implementation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_tipc_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:sh">echo "install tipc /bin/true" > /etc/modprobe.d/tipc.conf
</ns0:fix>
<ns0:fix complexity="low" disruption="medium" id="kernel_module_tipc_disabled" reboot="true" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure kernel module 'tipc' is disabled
lineinfile:
create=yes
dest="/etc/modprobe.d/{{item}}.conf"
regexp="{{item}}"
line="install {{item}} /bin/true"
with_items:
- tipc
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-kernel_module_tipc_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-kernel_module_tipc_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="network-ipsec">
<ns0:title xml:lang="en-US">IPSec Support</ns0:title>
<ns0:description xml:lang="en-US">Support for Internet Protocol Security (IPsec)
is provided in Red Hat Enterprise Linux 6 with openswan
and libreswan packages respectively.
</ns0:description>
<ns0:Rule id="package_openswan_installed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install openswan or libreswan Package</ns0:title>
<ns0:description xml:lang="en-US">The openswan and libreswan packages provide an implementation of
IPsec and IKE, which permits the creation of secure tunnels over untrusted
networks.
The <html:code>openswan</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install openswan</html:pre>
The <html:code>libreswan</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install libreswan</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MA-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1130</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1131</ns0:reference>
<ns0:rationale xml:lang="en-US">Providing the ability for remote users or systems
to initiate a secure VPN connection protects information when it is
transmitted over a wide area network.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_openswan_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install openswan
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_openswan_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure openswan is installed
package:
name="{{item}}"
state=present
with_items:
- openswan
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_openswan_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_openswan
class install_openswan {
package { 'openswan':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_openswan_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=openswan
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_openswan_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_openswan_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="logging">
<ns0:title xml:lang="en-US">Configure Syslog</ns0:title>
<ns0:description xml:lang="en-US">The syslog service has been the default Unix logging mechanism for
many years. It has a number of downsides, including inconsistent log format,
lack of authentication for received messages, and lack of authentication,
encryption, or reliable transport for messages sent over a network. However,
due to its long history, syslog is a de facto standard which is supported by
almost all Unix applications.
<html:br />
<html:br />
In Red Hat Enterprise Linux 6, rsyslog has replaced ksyslogd as the
syslog daemon of choice, and it includes some additional security features
such as reliable, connection-oriented (i.e. TCP) transmission of logs, the
option to log to database formats, and the encryption of log data en route to
a central logging server.
This section discusses how to configure rsyslog for
best effect, and how to use tools provided with the system to maintain and
monitor logs.</ns0:description>
<ns0:Rule id="package_rsyslog_installed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure rsyslog is Installed</ns0:title>
<ns0:description xml:lang="en-US">
Rsyslog is installed by default.
The <html:code>rsyslog</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install rsyslog</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9(2)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1311</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1312</ns0:reference>
<ns0:rationale xml:lang="en-US">
The rsyslog package provides the rsyslog daemon, which provides
system logging services.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_rsyslog_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install rsyslog
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsyslog_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure rsyslog is installed
package:
name="{{item}}"
state=present
with_items:
- rsyslog
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsyslog_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_rsyslog
class install_rsyslog {
package { 'rsyslog':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsyslog_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=rsyslog
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_rsyslog_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_rsyslog_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rsyslog_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable rsyslog Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsyslog</html:code> service provides syslog-style logging by default on Red Hat Enterprise Linux 6.
The <html:code>rsyslog</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 rsyslog on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1557</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1312</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1311</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>rsyslog</html:code> service must be running in order to provide
logging services, which are essential to system administration.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_rsyslog_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable rsyslog
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rsyslog_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service rsyslog
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- rsyslog
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rsyslog_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rsyslog_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="ensure_rsyslog_log_file_configuration">
<ns0:title xml:lang="en-US">Ensure Proper Configuration of Log Files</ns0:title>
<ns0:description xml:lang="en-US">
The file <html:code>/etc/rsyslog.conf</html:code> controls where log message are written.
These are controlled by lines called <html:i>rules</html:i>, which consist of a
<html:i>selector</html:i> and an <html:i>action</html:i>.
These rules are often customized depending on the role of the system, the
requirements of the environment, and whatever may enable
the administrator to most effectively make use of log data.
The default rules in Red Hat Enterprise Linux 6 are:
<html:pre>*.info;mail.none;authpriv.none;cron.none /var/log/messages
authpriv.* /var/log/secure
mail.* -/var/log/maillog
cron.* /var/log/cron
*.emerg *
uucp,news.crit /var/log/spooler
local7.* /var/log/boot.log</html:pre>
See the man page <html:code>rsyslog.conf(5)</html:code> for more information.
<html:i>Note that the <html:code>rsyslog</html:code> daemon can be configured to use a timestamp format that
some log processing programs may not understand. If this occurs,
edit the file <html:code>/etc/rsyslog.conf</html:code> and add or edit the following line:</html:i>
<html:pre>$ ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat</html:pre>
</ns0:description>
<ns0:Value id="file_owner_logfiles_value" operator="equals" type="string">
<ns0:title xml:lang="en-US">User who owns log files</ns0:title>
<ns0:description xml:lang="en-US">Specify user owner of all logfiles specified in
<html:code>/etc/rsyslog.conf</html:code>.</ns0:description>
<ns0:value selector="root">root</ns0:value>
</ns0:Value>
<ns0:Value id="file_groupowner_logfiles_value" operator="equals" type="string">
<ns0:title xml:lang="en-US">group who owns log files</ns0:title>
<ns0:description xml:lang="en-US">Specify group owner of all logfiles specified in
<html:code>/etc/rsyslog.conf.</html:code></ns0:description>
<ns0:value selector="root">root</ns0:value>
</ns0:Value>
<ns0:Rule id="rsyslog_files_ownership" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure Log Files Are Owned By Appropriate User</ns0:title>
<ns0:description xml:lang="en-US">The owner of all log files written by
<html:code>rsyslog</html:code> should be root.
These log files are determined by the second part of each Rule line in
<html:code>/etc/rsyslog.conf</html:code> and typically all appear in <html:code>/var/log</html:code>.
For each log file <html:i>LOGFILE</html:i> referenced in <html:code>/etc/rsyslog.conf</html:code>,
run the following command to inspect the file's owner:
<html:pre>$ ls -l <html:i>LOGFILE</html:i></html:pre>
If the owner is not <html:code>root</html:code>, run the following command to
correct this:
<html:pre>$ sudo chown root <html:i>LOGFILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-11</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1314</ns0:reference>
<ns0:rationale xml:lang="en-US">The log files generated by rsyslog contain valuable information regarding system
configuration, user authentication, and other such information. Log files should be
protected from unauthorized access.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rsyslog_files_ownership:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rsyslog_files_ownership_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="rsyslog_files_groupownership" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure Log Files Are Owned By Appropriate Group</ns0:title>
<ns0:description xml:lang="en-US">The group-owner of all log files written by
<html:code>rsyslog</html:code> should be root.
These log files are determined by the second part of each Rule line in
<html:code>/etc/rsyslog.conf</html:code> and typically all appear in <html:code>/var/log</html:code>.
For each log file <html:i>LOGFILE</html:i> referenced in <html:code>/etc/rsyslog.conf</html:code>,
run the following command to inspect the file's group owner:
<html:pre>$ ls -l <html:i>LOGFILE</html:i></html:pre>
If the owner is not <html:code>root</html:code>, run the following command to
correct this:
<html:pre>$ sudo chgrp root <html:i>LOGFILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-11</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1314</ns0:reference>
<ns0:rationale xml:lang="en-US">The log files generated by rsyslog contain valuable information regarding system
configuration, user authentication, and other such information. Log files should be
protected from unauthorized access.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rsyslog_files_groupownership:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rsyslog_files_groupownership_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="rsyslog_files_permissions" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Ensure System Log Files Have Correct Permissions</ns0:title>
<ns0:description xml:lang="en-US">The file permissions for all log files written by
<html:code>rsyslog</html:code> should be set to 600, or more restrictive.
These log files are determined by the second part of each Rule line in
<html:code>/etc/rsyslog.conf</html:code> and typically all appear in <html:code>/var/log</html:code>.
For each log file <html:i>LOGFILE</html:i> referenced in <html:code>/etc/rsyslog.conf</html:code>,
run the following command to inspect the file's permissions:
<html:pre>$ ls -l <html:i>LOGFILE</html:i></html:pre>
If the permissions are not 600 or more restrictive,
run the following command to correct this:
<html:pre>$ sudo chmod 0600 <html:i>LOGFILE</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-11</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1314</ns0:reference>
<ns0:rationale xml:lang="en-US">Log files can contain valuable information regarding system
configuration. If the system log files are not protected unauthorized
users could change the logged data, eliminating their forensic value.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="rsyslog_files_permissions" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# List of log file paths to be inspected for correct permissions
# * Primarily inspect log file paths listed in /etc/rsyslog.conf
RSYSLOG_ETC_CONFIG="/etc/rsyslog.conf"
# * And also the log file paths listed after rsyslog's $IncludeConfig directive
# (store the result into array for the case there's shell glob used as value of IncludeConfig)
RSYSLOG_INCLUDE_CONFIG=($(grep -e "\$IncludeConfig[[:space:]]\+[^[:space:];]\+" /etc/rsyslog.conf | cut -d ' ' -f 2))
# Declare an array to hold the final list of different log file paths
declare -a LOG_FILE_PATHS
# Browse each file selected above as containing paths of log files
# ('/etc/rsyslog.conf' and '/etc/rsyslog.d/*.conf' in the default configuration)
for LOG_FILE in "${RSYSLOG_ETC_CONFIG}" "${RSYSLOG_INCLUDE_CONFIG[@]}"
do
# From each of these files extract just particular log file path(s), thus:
# * Ignore lines starting with space (' '), comment ('#"), or variable syntax ('$') characters,
# * Ignore empty lines,
# * From the remaining valid rows select only fields constituting a log file path
# Text file column is understood to represent a log file path if and only if all of the following are met:
# * it contains at least one slash '/' character,
# * it doesn't contain space (' '), colon (':'), and semicolon (';') characters
# Search log file for path(s) only in case it exists!
if [[ -f "${LOG_FILE}" ]]
then
MATCHED_ITEMS=$(sed -e "/^[[:space:]|#|$]/d ; s/[^\/]*[[:space:]]*\([^:;[:space:]]*\)/\1/g ; /^$/d" "${LOG_FILE}")
# Since above sed command might return more than one item (delimited by newline), split the particular
# matches entries into new array specific for this log file
readarray -t ARRAY_FOR_LOG_FILE <<< "$MATCHED_ITEMS"
# Concatenate the two arrays - previous content of $LOG_FILE_PATHS array with
# items from newly created array for this log file
LOG_FILE_PATHS=("${LOG_FILE_PATHS[@]}" "${ARRAY_FOR_LOG_FILE[@]}")
# Delete the temporary array
unset ARRAY_FOR_LOG_FILE
fi
done
for PATH in "${LOG_FILE_PATHS[@]}"
do
# Sanity check - if particular $PATH is empty string, skip it from further processing
if [ -z "$PATH" ]
then
continue
fi
# Per https://access.redhat.com/solutions/66805 '/var/log/boot.log' log file needs special care => perform it
if [ "$PATH" == "/var/log/boot.log" ]
then
# Ensure permissions of /var/log/boot.log are configured to be updated in /etc/rc.local
if ! /bin/grep -q "boot.log" "/etc/rc.local"
then
echo "/bin/chmod 600 /var/log/boot.log" >> /etc/rc.local
fi
# Ensure /etc/rc.d/rc.local has user-executable permission
# (in order to be actually executed during boot)
if [ "$(/usr/bin/stat -c %a /etc/rc.d/rc.local)" -ne 744 ]
then
/bin/chmod u+x /etc/rc.d/rc.local
fi
fi
# Also for each log file check if its permissions differ from 600. If so, correct them
if [ "$(/usr/bin/stat -c %a "$PATH")" -ne 600 ]
then
/bin/chmod 600 "$PATH"
fi
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rsyslog_files_permissions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rsyslog_files_permissions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="rsyslog_sending_messages">
<ns0:title xml:lang="en-US">Rsyslog Logs Sent To Remote Host</ns0:title>
<ns0:description xml:lang="en-US">
If system logs are to be useful in detecting malicious
activities, it is necessary to send logs to a remote server. An
intruder who has compromised the root account on a machine may
delete the log entries which indicate that the system was attacked
before they are seen by an administrator.
<html:br /><html:br />
However, it is recommended that logs be stored on the local
host in addition to being sent to the loghost, especially if
<html:code>rsyslog</html:code> has been configured to use the UDP protocol to send
messages over a network. UDP does not guarantee reliable delivery,
and moderately busy sites will lose log messages occasionally,
especially in periods of high traffic which may be the result of an
attack. In addition, remote <html:code>rsyslog</html:code> messages are not
authenticated in any way by default, so it is easy for an attacker to
introduce spurious messages to the central log server. Also, some
problems cause loss of network connectivity, which will prevent the
sending of messages to the central server. For all of these reasons, it is
better to store log messages both centrally and on each host, so
that they can be correlated if necessary.</ns0:description>
<ns0:Rule id="rsyslog_remote_loghost" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure Logs Sent To Remote Host</ns0:title>
<ns0:description xml:lang="en-US">
To configure rsyslog to send logs to a remote log server,
open <html:code>/etc/rsyslog.conf</html:code> and read and understand the last section of the file,
which describes the multiple directives necessary to activate remote
logging.
Along with these other directives, the system can be configured
to forward its logs to a particular log server by
adding or correcting one of the following lines,
substituting <html:code><html:i>loghost.example.com</html:i></html:code> appropriately.
The choice of protocol depends on the environment of the system;
although TCP and RELP provide more reliable message delivery,
they may not be supported in all environments.
<html:br />
To use UDP for log message delivery:
<html:pre>*.* @<html:i>loghost.example.com</html:i></html:pre>
<html:br />
To use TCP for log message delivery:
<html:pre>*.* @@<html:i>loghost.example.com</html:i></html:pre>
<html:br />
To use RELP for log message delivery:
<html:pre>*.* :omrelp:<html:i>loghost.example.com</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-3(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1348</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">136</ns0:reference>
<ns0:rationale xml:lang="en-US">A log server (loghost) receives syslog messages from one or more
systems. This data can be used as an additional log source in the event a
system is compromised and its local logs are suspect. Forwarding log messages
to a remote loghost also provides system administrators with a centralized
place to view the status of multiple hosts within the enterprise.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rsyslog_remote_loghost:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-rsyslog_remote_loghost_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="rsyslog_accepting_remote_messages">
<ns0:title xml:lang="en-US">Configure rsyslogd to Accept Remote Messages If Acting as a Log Server</ns0:title>
<ns0:description xml:lang="en-US">
By default, <html:code>rsyslog</html:code> does not listen over the network
for log messages. If needed, modules can be enabled to allow
the rsyslog daemon to receive messages from other systems and for the system
thus to act as a log server.
If the machine is not a log server, then lines concerning these modules
should remain commented out.
<html:br /><html:br />
</ns0:description>
<ns0:Rule id="rsyslog_nolisten" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure rsyslog Does Not Accept Remote Messages Unless Acting As Log Server</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsyslog</html:code> daemon should not accept remote messages
unless the system acts as a log server.
To ensure that it is not listening on the network, ensure the following lines are
<html:i>not</html:i> found in <html:code>/etc/rsyslog.conf</html:code>:
<html:pre>$ModLoad imtcp
$InputTCPServerRun <html:i>port</html:i>
$ModLoad imudp
$UDPServerRun <html:i>port</html:i>
$ModLoad imrelp
$InputRELPServerRun <html:i>port</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:rationale xml:lang="en-US">
Any process which receives messages from the network incurs some risk
of receiving malicious messages. This risk can be eliminated for
rsyslog by configuring it not to listen on the network.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-rsyslog_nolisten:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="rsyslog_listen_tcp" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable rsyslog to Accept Messages via TCP, if Acting As Log Server</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsyslog</html:code> daemon should not accept remote messages
unless the system acts as a log server.
If the system needs to act as a central log server, add the following lines to
<html:code>/etc/rsyslog.conf</html:code> to enable reception of messages over TCP:
<html:pre>$ModLoad imtcp
$InputTCPServerRun 514</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:rationale xml:lang="en-US">
If the system needs to act as a log server, this ensures that it can receive
messages over a reliable TCP connection.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="rsyslog_accept_remote_messages_udp" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable rsyslog to Accept Messages via UDP, if Acting As Log Server</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsyslog</html:code> daemon should not accept remote messages
unless the system acts as a log server.
If the system needs to act as a central log server, add the following lines to
<html:code>/etc/rsyslog.conf</html:code> to enable reception of messages over UDP:
<html:pre>$ModLoad imudp
$UDPServerRun 514</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:rationale xml:lang="en-US">
Many devices, such as switches, routers, and other Unix-like systems, may only support
the traditional syslog transmission over UDP. If the system must act as a log server,
this enables it to receive their messages as well.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="log_rotation">
<ns0:title xml:lang="en-US">Ensure All Logs are Rotated by logrotate</ns0:title>
<ns0:description xml:lang="en-US">Edit the file <html:code>/etc/logrotate.d/syslog</html:code>. Find the first
line, which should look like this (wrapped for clarity):
<html:pre>/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler \
/var/log/boot.log /var/log/cron {</html:pre>
Edit this line so that it contains a one-space-separated
listing of each log file referenced in <html:code>/etc/rsyslog.conf</html:code>.
<html:br /><html:br />
All logs in use on a system must be rotated regularly, or the
log files will consume disk space over time, eventually interfering
with system operation. The file <html:code>/etc/logrotate.d/syslog</html:code> is the
configuration file used by the <html:code>logrotate</html:code> program to maintain all
log files written by <html:code>syslog</html:code>. By default, it rotates logs weekly and
stores four archival copies of each log. These settings can be
modified by editing <html:code>/etc/logrotate.conf</html:code>, but the defaults are
sufficient for purposes of this guide.
<html:br /><html:br />
Note that <html:code>logrotate</html:code> is run nightly by the cron job
<html:code>/etc/cron.daily/logrotate</html:code>. If particularly active logs need to be
rotated more often than once a day, some other mechanism must be
used.</ns0:description>
<ns0:Rule id="ensure_logrotate_activated" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure Logrotate Runs Periodically</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>logrotate</html:code> utility allows for the automatic rotation of
log files. The frequency of rotation is specified in <html:code>/etc/logrotate.conf</html:code>,
which triggers a cron task. To configure logrotate to run daily, add or correct
the following line in <html:code>/etc/logrotate.conf</html:code>:
<html:pre># rotate log files <html:i>frequency</html:i>
daily</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Log files that are not properly rotated run the risk of growing so large
that they fill up the /var/log partition. Valuable logging information could be lost
if the /var/log partition becomes full.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ensure_logrotate_activated:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ensure_logrotate_activated_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="configure_logwatch_on_logserver">
<ns0:title xml:lang="en-US"> Configure Logwatch on the Central Log Server</ns0:title>
<ns0:description xml:lang="en-US">
Is this machine the central log server? If so, edit the file <html:code>/etc/logwatch/conf/logwatch.conf</html:code> as shown below.
</ns0:description>
<ns0:Rule id="logwatch_configured_hostlimit" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Logwatch HostLimit Line</ns0:title>
<ns0:description xml:lang="en-US"> On a central logserver, you want Logwatch to summarize all syslog entries, including those which did not originate
on the logserver itself. The <html:code>HostLimit</html:code> setting tells Logwatch to report on all hosts, not just the one on which it
is running.
<html:pre> HostLimit = no </html:pre> </ns0:description>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-logwatch_configured_hostlimit:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="logwatch_configured_splithosts" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Logwatch SplitHosts Line</ns0:title>
<ns0:description xml:lang="en-US">
If <html:code>SplitHosts</html:code> is set, Logwatch will separate entries by hostname. This makes the report longer but significantly
more usable. If it is not set, then Logwatch will not report which host generated a given log entry, and that
information is almost always necessary
<html:pre> SplitHosts = yes </html:pre> </ns0:description>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-logwatch_configured_splithosts:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="disable_logwatch_for_logserver" selected="false" severity="low">
<ns0:title xml:lang="en-US"> Disable Logwatch on Clients if a Logserver Exists</ns0:title>
<ns0:description xml:lang="en-US">
Does your site have a central logserver which has been configured to report on logs received from all systems?
If so:
<html:pre>
$ sudo rm /etc/cron.daily/0logwatch
</html:pre>
If no logserver exists, it will be necessary for each machine to run Logwatch individually. Using a central
logserver provides the security and reliability benefits discussed earlier, and also makes monitoring logs easier
and less time-intensive for administrators.</ns0:description>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="auditing">
<ns0:title xml:lang="en-US">System Accounting with auditd</ns0:title>
<ns0:description xml:lang="en-US">The audit service provides substantial capabilities
for recording system activities. By default, the service audits about
SELinux AVC denials and certain types of security-relevant events
such as system logins, account modifications, and authentication
events performed by programs such as sudo.
Under its default configuration, <html:code>auditd</html:code> has modest disk space
requirements, and should not noticeably impact system performance.
<html:br /><html:br />
Government networks often have substantial auditing
requirements and <html:code>auditd</html:code> can be configured to meet these
requirements.
Examining some example audit records demonstrates how the Linux audit system
satisfies common requirements.
The following example from Fedora Documentation available at
<html:code><html:a href="http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Fixing_Problems-Raw_Audit_Messages.html">http://docs.fedoraproject.org/en-US/Fedora/13/html/Security-Enhanced_Linux/sect-Security-Enhanced_Linux-Fixing_Problems-Raw_Audit_Messages.html</html:a></html:code>
shows the substantial amount of information captured in a
two typical "raw" audit messages, followed by a breakdown of the most important
fields. In this example the message is SELinux-related and reports an AVC
denial (and the associated system call) that occurred when the Apache HTTP
Server attempted to access the <html:code>/var/www/html/file1</html:code> file (labeled with
the <html:code>samba_share_t</html:code> type):
<html:pre>type=AVC msg=audit(1226874073.147:96): avc: denied { getattr } for pid=2465 comm="httpd"
path="/var/www/html/file1" dev=dm-0 ino=284133 scontext=unconfined_u:system_r:httpd_t:s0
tcontext=unconfined_u:object_r:samba_share_t:s0 tclass=file
type=SYSCALL msg=audit(1226874073.147:96): arch=40000003 syscall=196 success=no exit=-13
a0=b98df198 a1=bfec85dc a2=54dff4 a3=2008171 items=0 ppid=2463 pid=2465 auid=502 uid=48
gid=48 euid=48 suid=48 fsuid=48 egid=48 sgid=48 fsgid=48 tty=(none) ses=6 comm="httpd"
exe="/usr/sbin/httpd" subj=unconfined_u:system_r:httpd_t:s0 key=(null)
</html:pre>
<html:ul><html:li><html:code>msg=audit(1226874073.147:96)</html:code><html:ul><html:li>The number in parentheses is the unformatted time stamp (Epoch time)
for the event, which can be converted to standard time by using the
<html:code>date</html:code> command.
</html:li></html:ul></html:li><html:li><html:code>{ getattr }</html:code><html:ul><html:li>The item in braces indicates the permission that was denied. <html:code>getattr</html:code>
indicates the source process was trying to read the target file's status information.
This occurs before reading files. This action is denied due to the file being
accessed having the wrong label. Commonly seen permissions include <html:code>getattr</html:code>,
<html:code>read</html:code>, and <html:code>write</html:code>.</html:li></html:ul></html:li><html:li><html:code>comm="httpd"</html:code><html:ul><html:li>The executable that launched the process. The full path of the executable is
found in the <html:code>exe=</html:code> section of the system call (<html:code>SYSCALL</html:code>) message,
which in this case, is <html:code>exe="/usr/sbin/httpd"</html:code>.
</html:li></html:ul></html:li><html:li><html:code>path="/var/www/html/file1"</html:code><html:ul><html:li>The path to the object (target) the process attempted to access.
</html:li></html:ul></html:li><html:li><html:code>scontext="unconfined_u:system_r:httpd_t:s0"</html:code><html:ul><html:li>The SELinux context of the process that attempted the denied action. In
this case, it is the SELinux context of the Apache HTTP Server, which is running
in the <html:code>httpd_t</html:code> domain.
</html:li></html:ul></html:li><html:li><html:code>tcontext="unconfined_u:object_r:samba_share_t:s0"</html:code><html:ul><html:li>The SELinux context of the object (target) the process attempted to access.
In this case, it is the SELinux context of <html:code>file1</html:code>. Note: the <html:code>samba_share_t</html:code>
type is not accessible to processes running in the <html:code>httpd_t</html:code> domain.</html:li></html:ul></html:li><html:li> From the system call (<html:code>SYSCALL</html:code>) message, two items are of interest:
<html:ul><html:li><html:code>success=no</html:code>: indicates whether the denial (AVC) was enforced or not.
<html:code>success=no</html:code> indicates the system call was not successful (SELinux denied
access). <html:code>success=yes</html:code> indicates the system call was successful - this can
be seen for permissive domains or unconfined domains, such as <html:code>initrc_t</html:code>
and <html:code>kernel_t</html:code>.
</html:li><html:li><html:code>exe="/usr/sbin/httpd"</html:code>: the full path to the executable that launched
the process, which in this case, is <html:code>exe="/usr/sbin/httpd"</html:code>.
</html:li></html:ul>
</html:li></html:ul>
</ns0:description>
<ns0:Rule id="service_auditd_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable auditd Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> service is an essential userspace component of
the Linux Auditing System, as it is responsible for writing audit records to
disk.
The <html:code>auditd</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 auditd on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(1)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-10</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">347</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">157</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">172</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">880</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1353</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1462</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1115</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1454</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">067</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">158</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">831</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1190</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1312</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1263</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">130</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">120</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1589</ns0:reference>
<ns0:rationale xml:lang="en-US">Ensuring the <html:code>auditd</html:code> service is active ensures
audit records generated by the kernel can be written to disk, or that appropriate
actions will be taken if other obstacles exist.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_auditd_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable auditd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_auditd_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service auditd
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- auditd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_auditd_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_auditd_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="bootloader_audit_argument" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable Auditing for Processes Which Start Prior to the Audit Daemon</ns0:title>
<ns0:description xml:lang="en-US">To ensure all processes can be audited, even
those which start prior to the audit daemon, add the argument
<html:code>audit=1</html:code> to the kernel line in <html:code>/etc/grub.conf</html:code>, in the manner below:
<html:pre>kernel /vmlinuz-version ro vga=ext root=/dev/VolGroup00/LogVol00 rhgb quiet audit=1</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(1)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-14(1)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-10</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">
Each process on the system carries an "auditable" flag which
indicates whether its activities can be audited. Although <html:code>auditd</html:code>
takes care of enabling this for all processes which launch after it
does, adding the kernel argument ensures it is set for every
process during boot.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="bootloader_audit_argument" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">/sbin/grubby --update-kernel=ALL --args="audit=1"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-bootloader_audit_argument:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-bootloader_audit_argument_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="configure_auditd_data_retention">
<ns0:title xml:lang="en-US">Configure auditd Data Retention</ns0:title>
<ns0:description xml:lang="en-US">
The audit system writes data to <html:code>/var/log/audit/audit.log</html:code>. By default,
<html:code>auditd</html:code> rotates 5 logs by size (6MB), retaining a maximum of 30MB of
data in total, and refuses to write entries when the disk is too
full. This minimizes the risk of audit data filling its partition
and impacting other services. This also minimizes the risk of the audit
daemon temporarily disabling the system if it cannot write audit log (which
it can be configured to do).
For a busy
system or a system which is thoroughly auditing system activity, the default settings
for data retention may be
insufficient. The log file size needed will depend heavily on what types
of events are being audited. First configure auditing to log all the events of
interest. Then monitor the log size manually for awhile to determine what file
size will allow you to keep the required data for the correct time period.
<html:br /><html:br />
Using a dedicated partition for <html:code>/var/log/audit</html:code> prevents the
<html:code>auditd</html:code> logs from disrupting system functionality if they fill, and,
more importantly, prevents other activity in <html:code>/var</html:code> from filling the
partition and stopping the audit trail. (The audit logs are size-limited and
therefore unlikely to grow without bound unless configured to do so.) Some
machines may have requirements that no actions occur which cannot be audited.
If this is the case, then <html:code>auditd</html:code> can be configured to halt the machine
if it runs out of space. <html:b>Note:</html:b> Since older logs are rotated,
configuring <html:code>auditd</html:code> this way does not prevent older logs from being
rotated away before they can be viewed.
<html:i>If your system is configured to halt when logging cannot be performed, make
sure this can never happen under normal circumstances! Ensure that
<html:code>/var/log/audit</html:code> is on its own partition, and that this partition is
larger than the maximum amount of data <html:code>auditd</html:code> will retain
normally.</html:i>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-11</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">138</ns0:reference>
<ns0:Value id="var_auditd_num_logs" type="number">
<ns0:title xml:lang="en-US">Number of log files for auditd to retain</ns0:title>
<ns0:description xml:lang="en-US">The setting for num_logs in /etc/audit/auditd.conf</ns0:description>
<ns0:value>5</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="4">4</ns0:value>
<ns0:value selector="3">3</ns0:value>
<ns0:value selector="2">2</ns0:value>
<ns0:value selector="1">1</ns0:value>
<ns0:value selector="0">0</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_max_log_file" type="number">
<ns0:title xml:lang="en-US">Maximum audit log file size for auditd</ns0:title>
<ns0:description xml:lang="en-US">The setting for max_log_size in /etc/audit/auditd.conf</ns0:description>
<ns0:value>6</ns0:value>
<ns0:value selector="20">20</ns0:value>
<ns0:value selector="10">10</ns0:value>
<ns0:value selector="6">6</ns0:value>
<ns0:value selector="5">5</ns0:value>
<ns0:value selector="1">1</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_max_log_file_action" type="string">
<ns0:title xml:lang="en-US">Action for auditd to take when log files reach their maximum size</ns0:title>
<ns0:description xml:lang="en-US">The setting for max_log_file_action in /etc/audit/auditd.conf</ns0:description>
<ns0:value>rotate</ns0:value>
<ns0:value selector="ignore">ignore</ns0:value>
<ns0:value selector="syslog">syslog</ns0:value>
<ns0:value selector="suspend">suspend</ns0:value>
<ns0:value selector="rotate">rotate</ns0:value>
<ns0:value selector="keep_logs">keep_logs</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_space_left_action" type="string">
<ns0:title xml:lang="en-US">Action for auditd to take when disk space just starts to run low</ns0:title>
<ns0:description xml:lang="en-US">The setting for space_left_action in /etc/audit/auditd.conf</ns0:description>
<ns0:value>email</ns0:value>
<ns0:value selector="ignore">ignore</ns0:value>
<ns0:value selector="syslog">syslog</ns0:value>
<ns0:value selector="email">email</ns0:value>
<ns0:value selector="exec">exec</ns0:value>
<ns0:value selector="suspend">suspend</ns0:value>
<ns0:value selector="single">single</ns0:value>
<ns0:value selector="halt">halt</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_admin_space_left_action" type="string">
<ns0:title xml:lang="en-US">Action for auditd to take when disk space runs dangerously low</ns0:title>
<ns0:description xml:lang="en-US">The setting for space_left_action in /etc/audit/auditd.conf</ns0:description>
<ns0:value>single</ns0:value>
<ns0:value selector="ignore">ignore</ns0:value>
<ns0:value selector="syslog">syslog</ns0:value>
<ns0:value selector="email">email</ns0:value>
<ns0:value selector="exec">exec</ns0:value>
<ns0:value selector="suspend">suspend</ns0:value>
<ns0:value selector="single">single</ns0:value>
<ns0:value selector="halt">halt</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_action_mail_acct" type="string">
<ns0:title xml:lang="en-US">Account for auditd to send email when actions occurs</ns0:title>
<ns0:description xml:lang="en-US">The setting for action_mail_acct in /etc/audit/auditd.conf</ns0:description>
<ns0:value>root</ns0:value>
<ns0:value selector="root">root</ns0:value>
<ns0:value selector="admin">admin</ns0:value>
</ns0:Value>
<ns0:Value id="var_auditd_flush" type="string">
<ns0:title xml:lang="en-US">Auditd priority for flushing data to disk</ns0:title>
<ns0:description xml:lang="en-US">The setting for flush in /etc/audit/auditd.conf</ns0:description>
<ns0:value>data</ns0:value>
<ns0:value selector="none">none</ns0:value>
<ns0:value selector="incremental">incremental</ns0:value>
<ns0:value selector="data">data</ns0:value>
<ns0:value selector="sync">sync</ns0:value>
</ns0:Value>
<ns0:Rule id="auditd_data_retention_num_logs" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd Number of Logs Retained</ns0:title>
<ns0:description xml:lang="en-US">Determine how many log files
<html:code>auditd</html:code> should retain when it rotates logs.
Edit the file <html:code>/etc/audit/auditd.conf</html:code>. Add or modify the following
line, substituting <html:i>NUMLOGS</html:i> with the correct value of <ns0:sub idref="var_auditd_num_logs" />:
<html:pre>num_logs = <html:i>NUMLOGS</html:i></html:pre>
Set the value to 5 for general-purpose systems.
Note that values less than 2 result in no log rotation.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-11</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">The total storage for audit log files must be large enough to retain
log information over the period required. This is a function of the maximum log
file size and the number of logs retained.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_num_logs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_num_logs="<ns0:sub idref="var_auditd_num_logs" />"
AUDITCONFIG=/etc/audit/auditd.conf
grep -q ^num_logs $AUDITCONFIG && \
sed -i 's/^num_logs.*/num_logs = '"$var_auditd_num_logs"'/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "num_logs = $var_auditd_num_logs" >> $AUDITCONFIG
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_num_logs:var:1" value-id="var_auditd_num_logs" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_num_logs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_num_logs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_max_log_file" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd Max Log File Size</ns0:title>
<ns0:description xml:lang="en-US">Determine the amount of audit data (in megabytes)
which should be retained in each log file. Edit the file
<html:code>/etc/audit/auditd.conf</html:code>. Add or modify the following line, substituting
the correct value of <ns0:sub idref="var_auditd_max_log_file" /> for <html:i>STOREMB</html:i>:
<html:pre>max_log_file = <html:i>STOREMB</html:i></html:pre>
Set the value to <html:code>6</html:code> (MB) or higher for general-purpose systems.
Larger values, of course,
support retention of even more audit data.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-11</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">The total storage for audit log files must be large enough to retain
log information over the period required. This is a function of the maximum
log file size and the number of logs retained.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_max_log_file" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_max_log_file="<ns0:sub idref="var_auditd_max_log_file" />"
AUDITCONFIG=/etc/audit/auditd.conf
grep -q ^max_log_file $AUDITCONFIG && \
sed -i 's/^max_log_file.*/max_log_file = '"$var_auditd_max_log_file"'/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "max_log_file = $var_auditd_max_log_file" >> $AUDITCONFIG
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_max_log_file:var:1" value-id="var_auditd_max_log_file" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_max_log_file:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_max_log_file_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_max_log_file_action" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd max_log_file_action Upon Reaching Maximum Log Size</ns0:title>
<ns0:description xml:lang="en-US"> The default action to take when the logs reach their maximum size
is to rotate the log files, discarding the oldest one. To configure the action taken
by <html:code>auditd</html:code>, add or correct the line in <html:code>/etc/audit/auditd.conf</html:code>:
<html:pre>max_log_file_action = <html:i>ACTION</html:i></html:pre>
Possible values for <html:i>ACTION</html:i> are described in the <html:code>auditd.conf</html:code> man
page. These include:
<html:ul><html:li><html:code>ignore</html:code></html:li><html:li><html:code>syslog</html:code></html:li><html:li><html:code>suspend</html:code></html:li><html:li><html:code>rotate</html:code></html:li><html:li><html:code>keep_logs</html:code></html:li></html:ul>
Set the <html:code><html:i>ACTION</html:i></html:code> to <html:code>rotate</html:code> to ensure log rotation
occurs. This is the default. The setting is case-insensitive.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-11</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">Automatically rotating logs (by setting this to <html:code>rotate</html:code>)
minimizes the chances of the system unexpectedly running out of disk space by
being overwhelmed with log data. However, for systems that must never discard
log data, or which use external processes to transfer it and reclaim space,
<html:code>keep_logs</html:code> can be employed.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_max_log_file_action" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_max_log_file_action="<ns0:sub idref="var_auditd_max_log_file_action" />"
AUDITCONFIG=/etc/audit/auditd.conf
grep -q ^max_log_file_action $AUDITCONFIG && \
sed -i 's/^max_log_file_action.*/max_log_file_action = '"$var_auditd_max_log_file_action"'/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "max_log_file_action = $var_auditd_max_log_file_action" >> $AUDITCONFIG
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_max_log_file_action:var:1" value-id="var_auditd_max_log_file_action" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_max_log_file_action:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_max_log_file_action_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_space_left_action" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd space_left Action on Low Disk Space</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> service can be configured to take an action
when disk space <html:i>starts</html:i> to run low.
Edit the file <html:code>/etc/audit/auditd.conf</html:code>. Modify the following line,
substituting <html:i>ACTION</html:i> appropriately:
<html:pre>space_left_action = <html:i>ACTION</html:i></html:pre>
Possible values for <html:i>ACTION</html:i> are described in the <html:code>auditd.conf</html:code> man page.
These include:
<html:ul><html:li><html:code>ignore</html:code></html:li><html:li><html:code>syslog</html:code></html:li><html:li><html:code>email</html:code></html:li><html:li><html:code>exec</html:code></html:li><html:li><html:code>suspend</html:code></html:li><html:li><html:code>single</html:code></html:li><html:li><html:code>halt</html:code></html:li></html:ul>
Set this to <html:code>email</html:code> (instead of the default,
which is <html:code>suspend</html:code>) as it is more likely to get prompt attention. Acceptable values
also include <html:code>suspend</html:code>, <html:code>single</html:code>, and <html:code>halt</html:code>.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">140</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">143</ns0:reference>
<ns0:rationale xml:lang="en-US">Notifying administrators of an impending disk space problem may
allow them to take corrective action prior to any disruption.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_space_left_action" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_space_left_action="<ns0:sub idref="var_auditd_space_left_action" />"
#
# If space_left_action present in /etc/audit/auditd.conf, change value
# to var_auditd_space_left_action, else
# add "space_left_action = $var_auditd_space_left_action" to /etc/audit/auditd.conf
#
if grep --silent ^space_left_action /etc/audit/auditd.conf ; then
sed -i 's/^space_left_action.*/space_left_action = '"$var_auditd_space_left_action"'/g' /etc/audit/auditd.conf
else
echo -e "\n# Set space_left_action to $var_auditd_space_left_action per security requirements" >> /etc/audit/auditd.conf
echo "space_left_action = $var_auditd_space_left_action" >> /etc/audit/auditd.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_space_left_action:var:1" value-id="var_auditd_space_left_action" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_space_left_action:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_space_left_action_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_admin_space_left_action" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd admin_space_left Action on Low Disk Space</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> service can be configured to take an action
when disk space is running low but prior to running out of space completely.
Edit the file <html:code>/etc/audit/auditd.conf</html:code>. Add or modify the following line,
substituting <html:i>ACTION</html:i> appropriately:
<html:pre>admin_space_left_action = <html:i>ACTION</html:i></html:pre>
Set this value to <html:code>single</html:code> to cause the system to switch to single-user
mode for corrective action. Acceptable values also include <html:code>suspend</html:code> and
<html:code>halt</html:code>. For certain systems, the need for availability
outweighs the need to log all actions, and a different setting should be
determined. Details regarding all possible values for <html:i>ACTION</html:i> are described in the
<html:code>auditd.conf</html:code> man page.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-5(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">140</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1343</ns0:reference>
<ns0:rationale xml:lang="en-US">Administrators should be made aware of an inability to record
audit records. If a separate partition or logical volume of adequate size
is used, running low on space for audit records should never occur.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_admin_space_left_action" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_admin_space_left_action="<ns0:sub idref="var_auditd_admin_space_left_action" />"
grep -q ^admin_space_left_action /etc/audit/auditd.conf && \
sed -i "s/admin_space_left_action.*/admin_space_left_action = $var_auditd_admin_space_left_action/g" /etc/audit/auditd.conf
if ! [ $? -eq 0 ]; then
echo "admin_space_left_action = $var_auditd_admin_space_left_action" >> /etc/audit/auditd.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_admin_space_left_action:var:1" value-id="var_auditd_admin_space_left_action" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_admin_space_left_action:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_admin_space_left_action_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_action_mail_acct" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure auditd mail_acct Action on Low Disk Space</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> service can be configured to send email to
a designated account in certain situations. Add or correct the following line
in <html:code>/etc/audit/auditd.conf</html:code> to ensure that administrators are notified
via email for those situations:
<html:pre>action_mail_acct = <ns0:sub idref="var_auditd_action_mail_acct" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-5(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">139</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">144</ns0:reference>
<ns0:rationale xml:lang="en-US">Email sent to the root account is typically aliased to the
administrators of the system, who can take appropriate action.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_action_mail_acct" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_action_mail_acct="<ns0:sub idref="var_auditd_action_mail_acct" />"
AUDITCONFIG=/etc/audit/auditd.conf
grep -q ^action_mail_acct $AUDITCONFIG && \
sed -i 's/^action_mail_acct.*/action_mail_acct = '"$var_auditd_action_mail_acct"'/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "action_mail_acct = $var_auditd_action_mail_acct" >> $AUDITCONFIG
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_action_mail_acct:var:1" value-id="var_auditd_action_mail_acct" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_action_mail_acct:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_action_mail_acct_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_data_retention_flush" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure auditd flush priority</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> service can be configured to
synchronously write audit event data to disk. Add or correct the following
line in <html:code>/etc/audit/auditd.conf</html:code> to ensure that audit event data is
fully synchronized with the log files on the disk:
<html:pre>flush = <ns0:sub idref="var_auditd_flush" /></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1576</ns0:reference>
<ns0:rationale xml:lang="en-US">Audit data should be synchronously written to disk to ensure
log integrity. These parameters assure that all audit event data is fully
synchronized with the log files on the disk.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_data_retention_flush" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
var_auditd_flush="<ns0:sub idref="var_auditd_flush" />"
AUDITCONFIG=/etc/audit/auditd.conf
# if flush is present, flush param edited to var_auditd_flush
# else flush param is defined by var_auditd_flush
#
# the freq param is only used value 'incremental' and will be
# commented out if flush != incremental
#
# if flush == incremental && freq param is not defined, it
# will be defined as the package-default value of 20
grep -q ^flush $AUDITCONFIG && \
sed -i 's/^flush.*/flush = '"$var_auditd_flush"'/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "flush = $var_auditd_flush" >> $AUDITCONFIG
fi
if ! [ "$var_auditd_flush" == "incremental" ]; then
sed -i 's/^freq/##freq/g' $AUDITCONFIG
elif [ "$var_auditd_flush" == "incremental" ]; then
grep -q freq $AUDITCONFIG && \
sed -i 's/^#\+freq/freq/g' $AUDITCONFIG
if ! [ $? -eq 0 ]; then
echo "freq = 20" >> $AUDITCONFIG
fi
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-var_auditd_flush:var:1" value-id="var_auditd_flush" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_data_retention_flush:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_data_retention_flush_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="auditd_audispd_syslog_plugin_activated" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure auditd to use audispd's syslog plugin</ns0:title>
<ns0:description xml:lang="en-US">To configure the <html:code>auditd</html:code> service to use the
<html:code>syslog</html:code> plug-in of the <html:code>audispd</html:code> audit event multiplexor, set
the <html:code>active</html:code> line in <html:code>/etc/audisp/plugins.d/syslog.conf</html:code> to
<html:code>yes</html:code>. Restart the <html:code>auditd</html:code> service:
<html:pre>$ sudo service auditd restart</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-3(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">136</ns0:reference>
<ns0:rationale xml:lang="en-US">The auditd service does not include the ability to send audit
records to a centralized server for management directly. It does, however,
include a plug-in for audit event multiplexor (audispd) to pass audit records
to the local syslog server</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="auditd_audispd_syslog_plugin_activated" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
grep -q ^active /etc/audisp/plugins.d/syslog.conf && \
sed -i "s/active.*/active = yes/g" /etc/audisp/plugins.d/syslog.conf
if ! [ $? -eq 0 ]; then
echo "active = yes" >> /etc/audisp/plugins.d/syslog.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-auditd_audispd_syslog_plugin_activated:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-auditd_audispd_syslog_plugin_activated_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="auditd_configure_rules">
<ns0:title xml:lang="en-US">Configure auditd Rules for Comprehensive Auditing</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>auditd</html:code> program can perform comprehensive
monitoring of system activity. This section describes recommended
configuration settings for comprehensive auditing, but a full
description of the auditing system's capabilities is beyond the
scope of this guide. The mailing list <html:i>linux-audit@redhat.com</html:i> exists
to facilitate community discussion of the auditing system.
<html:br /><html:br />
The audit subsystem supports extensive collection of events, including:
<html:br />
<html:ul><html:li>Tracing of arbitrary system calls (identified by name or number)
on entry or exit.</html:li><html:li>Filtering by PID, UID, call success, system call argument (with
some limitations), etc.</html:li><html:li>Monitoring of specific files for modifications to the file's
contents or metadata.</html:li></html:ul>
<html:br />
Auditing rules at startup are controlled by the file <html:code>/etc/audit/audit.rules</html:code>.
Add rules to it to meet the auditing requirements for your organization.
Each line in <html:code>/etc/audit/audit.rules</html:code> represents a series of arguments
that can be passed to <html:code>auditctl</html:code> and can be individually tested
during runtime. See documentation in <html:code>/usr/share/doc/audit-<html:i>VERSION</html:i></html:code> and
in the related man pages for more details.
<html:br /><html:br />
If copying any example audit rulesets from <html:code>/usr/share/doc/audit-VERSION</html:code>,
be sure to comment out the
lines containing <html:code>arch=</html:code> which are not appropriate for your system's
architecture. Then review and understand the following rules,
ensuring rules are activated as needed for the appropriate
architecture.
<html:br /><html:br />
After reviewing all the rules, reading the following sections, and
editing as needed, the new rules can be activated as follows:
<html:pre>$ sudo service auditd restart</html:pre>
</ns0:description>
<ns0:Group id="audit_time_rules">
<ns0:title xml:lang="en-US">Records Events that Modify Date and Time Information</ns0:title>
<ns0:description xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time. All changes to the system
time should be audited.</ns0:description>
<ns0:Rule id="audit_rules_time_adjtimex" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record attempts to alter time through adjtimex</ns0:title>
<ns0:description xml:lang="en-US">On a 32-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># audit_time_rules
-a always,exit -F arch=b32 -S adjtimex -k audit_time_rules</html:pre>
On a 64-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># audit_time_rules
-a always,exit -F arch=b64 -S adjtimex -k audit_time_rules</html:pre>
The -k option allows for the specification of a key in string form that can
be used for better reporting capability through ausearch and aureport.
Multiple system calls can be defined on the same line to save space if
desired, but is not required. See an example of multiple combined syscalls:
<html:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k audit_time_rules</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time (such as sshd). All changes
to the system time should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_time_adjtimex" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_rhel6_perform_audit_adjtimex_settimeofday_stime_remediation" />
rhel6_perform_audit_adjtimex_settimeofday_stime_remediation
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_time_adjtimex:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_time_adjtimex_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_time_settimeofday" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record attempts to alter time through settimeofday</ns0:title>
<ns0:description xml:lang="en-US">On a 32-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># audit_time_rules
-a always,exit -F arch=b32 -S settimeofday -k audit_time_rules</html:pre>
On a 64-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># audit_time_rules
-a always,exit -F arch=b64 -S settimeofday -k audit_time_rules</html:pre>
The -k option allows for the specification of a key in string form that can
be used for better reporting capability through ausearch and aureport.
Multiple system calls can be defined on the same line to save space if
desired, but is not required. See an example of multiple combined syscalls:
<html:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k audit_time_rules</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time (such as sshd). All changes
to the system time should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_time_settimeofday" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_rhel6_perform_audit_adjtimex_settimeofday_stime_remediation" />
rhel6_perform_audit_adjtimex_settimeofday_stime_remediation
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_time_settimeofday:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_time_settimeofday_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_time_stime" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Attempts to Alter Time Through stime</ns0:title>
<ns0:description xml:lang="en-US">Add the following line to <html:code>/etc/audit/audit.rules</html:code> for both
32-bit and 64-bit systems:
<html:pre># audit_time_rules
-a always,exit -F arch=b32 -S stime -k audit_time_rules</html:pre>
Since the 64-bit version of the "stime" system call is not defined in the audit
lookup table, the corresponding "-F arch=b64" form of this rule is not expected
to be defined on 64-bit systems (the aforementioned "-F arch=b32" stime rule
form itself is sufficient for both 32-bit and 64-bit systems). The -k option
allows for the specification of a key in string form that can be used for
better reporting capability through ausearch and aureport. Multiple system
calls can be defined on the same line to save space if desired, but is not
required. See an example of multiple combined syscalls:
<html:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k audit_time_rules</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time (such as sshd). All changes
to the system time should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_time_stime" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_rhel6_perform_audit_adjtimex_settimeofday_stime_remediation" />
rhel6_perform_audit_adjtimex_settimeofday_stime_remediation
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_time_stime:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_time_stime_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_time_clock_settime" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Attempts to Alter Time Through clock_settime</ns0:title>
<ns0:description xml:lang="en-US">On a 32-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># time-change
-a always,exit -F arch=b32 -S clock_settime -F a0=0x0 -F key=time-change</html:pre>
On a 64-bit system, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre># time-change
-a always,exit -F arch=b64 -S clock_settime -F a0=0x0 -F key=time-change</html:pre>
The -k option allows for the specification of a key in string form that can
be used for better reporting capability through ausearch and aureport.
Multiple system calls can be defined on the same line to save space if
desired, but is not required. See an example of multiple combined syscalls:
<html:pre>-a always,exit -F arch=b64 -S adjtimex -S settimeofday -k audit_time_rules</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time (such as sshd). All changes
to the system time should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_time_clock_settime" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# First perform the remediation of the syscall rule
# Retrieve hardware architecture of the underlying system
[ "$(getconf LONG_BIT)" = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S clock_settime -F a0=.* \(-F key=\|-k \).*"
GROUP="clock_settime"
FULL_RULE="-a always,exit -F arch=$ARCH -S clock_settime -F a0=0x0 -k time-change"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_time_clock_settime:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_time_clock_settime_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_time_watch_localtime" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Attempts to Alter the localtime File</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-w /etc/localtime -p wa -k audit_time_rules</html:pre>
The -k option allows for the specification of a key in string form that can
be used for better reporting capability through ausearch and aureport and
should always be used.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1487</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">169</ns0:reference>
<ns0:rationale xml:lang="en-US">Arbitrary changes to the system time can be used to obfuscate
nefarious activities in log files, as well as to confuse network services that
are highly dependent upon an accurate system time (such as sshd). All changes
to the system time should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_time_watch_localtime" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/localtime" "wa" "audit_time_rules"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_time_watch_localtime:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_time_watch_localtime_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="audit_rules_usergroup_modification" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify User/Group Information</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code>, in order
to capture events that modify account changes:
<html:pre># audit_rules_usergroup_modification
-w /etc/group -p wa -k audit_rules_usergroup_modification
-w /etc/passwd -p wa -k audit_rules_usergroup_modification
-w /etc/gshadow -p wa -k audit_rules_usergroup_modification
-w /etc/shadow -p wa -k audit_rules_usergroup_modification
-w /etc/security/opasswd -p wa -k audit_rules_usergroup_modification</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(4)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">18</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1403</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1404</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1405</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1684</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1683</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1685</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1686</ns0:reference>
<ns0:rationale xml:lang="en-US">In addition to auditing new user and group accounts, these watches
will alert the system administrator(s) to any modifications. Any
unexpected users, groups, or modifications should be investigated for
legitimacy.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_usergroup_modification" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/group" "wa" "audit_rules_usergroup_modification"
fix_audit_watch_rule "auditctl" "/etc/passwd" "wa" "audit_rules_usergroup_modification"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/gshadow" "wa" "audit_rules_usergroup_modification"
fix_audit_watch_rule "auditctl" "/etc/shadow" "wa" "audit_rules_usergroup_modification"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/security/opasswd" "wa" "audit_rules_usergroup_modification"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_usergroup_modification:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_usergroup_modification_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_networkconfig_modification" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Network Environment</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code>, setting
ARCH to either b32 or b64 as appropriate for your system:
<html:pre># audit_rules_networkconfig_modification
-a always,exit -F arch=ARCH -S sethostname -S setdomainname -k audit_rules_networkconfig_modification
-w /etc/issue -p wa -k audit_rules_networkconfig_modification
-w /etc/issue.net -p wa -k audit_rules_networkconfig_modification
-w /etc/hosts -p wa -k audit_rules_networkconfig_modification
-w /etc/sysconfig/network -p wa -k audit_rules_networkconfig_modification</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">The network environment should not be modified by anything other
than administrator action. Any change to network parameters should be
audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_networkconfig_modification" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# First perform the remediation of the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -k *"
# Use escaped BRE regex to specify rule group
GROUP="set\(host\|domain\)name"
FULL_RULE="-a always,exit -F arch=$ARCH -S sethostname -S setdomainname -k audit_rules_networkconfig_modification"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
# Then perform the remediations for the watch rules
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/issue" "wa" "audit_rules_networkconfig_modification"
fix_audit_watch_rule "auditctl" "/etc/issue.net" "wa" "audit_rules_networkconfig_modification"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/hosts" "wa" "audit_rules_networkconfig_modification"
fix_audit_watch_rule "auditctl" "/etc/sysconfig/network" "wa" "audit_rules_networkconfig_modification"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_networkconfig_modification:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_networkconfig_modification_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_var_log_audit" selected="false" severity="low">
<ns0:title xml:lang="en-US">System Audit Logs Must Have Mode 0640 or Less Permissive</ns0:title>
<ns0:description xml:lang="en-US">
If <html:code>log_group</html:code> in <html:code>/etc/audit/auditd.conf</html:code> is set to a group other than the <html:code>root</html:code>
group account, change the mode of the audit log files with the following command:
<html:pre>$ sudo chmod 0640 <html:i>audit_file</html:i></html:pre>
<html:br />
Otherwise, change the mode of the audit log files with the following command:
<html:pre>$ sudo chmod 0600 <html:i>audit_file</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">166</ns0:reference>
<ns0:rationale xml:lang="en-US">
If users can write to audit logs, audit trails can be modified or destroyed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_permissions_var_log_audit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
if `grep -q ^log_group /etc/audit/auditd.conf` ; then
GROUP=$(awk -F "=" '/log_group/ {print $2}' /etc/audit/auditd.conf | tr -d ' ')
if ! [ "${GROUP}" == 'root' ] ; then
chmod 0640 /var/log/audit/audit.log
chmod 0440 /var/log/audit/audit.log.*
else
chmod 0600 /var/log/audit/audit.log
chmod 0400 /var/log/audit/audit.log.*
fi
chmod 0640 /etc/audit/audit*
chmod 0640 /etc/audit/rules.d/*
else
chmod 0600 /var/log/audit/audit.log
chmod 0400 /var/log/audit/audit.log.*
chmod 0640 /etc/audit/audit*
chmod 0640 /etc/audit/rules.d/*
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_var_log_audit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_permissions_var_log_audit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_ownership_var_log_audit" selected="false" severity="low">
<ns0:title xml:lang="en-US">System Audit Logs Must Be Owned By Root</ns0:title>
<ns0:description xml:lang="en-US">
To properly set the owner of <html:code>/var/log</html:code>, run the command:
<html:pre xml:space="preserve">$ sudo chown root /var/log </html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-9</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">166</ns0:reference>
<ns0:rationale xml:lang="en-US">Failure to give ownership of the audit log files to root allows the designated
owner, and unauthorized users, potential access to sensitive information.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="file_ownership_var_log_audit" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
if `grep -q ^log_group /etc/audit/auditd.conf` ; then
GROUP=$(awk -F "=" '/log_group/ {print $2}' /etc/audit/auditd.conf | tr -d ' ')
if ! [ "${GROUP}" == 'root' ] ; then
chown root.${GROUP} /var/log/audit
chown root.${GROUP} /var/log/audit/audit.log*
else
chown root.root /var/log/audit
chown root.root /var/log/audit/audit.log*
fi
else
chown root.root /var/log/audit
chown root.root /var/log/audit/audit.log*
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_ownership_var_log_audit:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-file_ownership_var_log_audit_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_mac_modification" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Mandatory Access Controls</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-w /etc/selinux/ -p wa -k MAC-policy</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">The system's mandatory access policy (SELinux) should not be
arbitrarily changed by anything other than administrator action. All changes to
MAC policy should be audited.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_mac_modification" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/selinux/" "wa" "MAC-policy"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_mac_modification:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_mac_modification_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="audit_dac_actions">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls</ns0:title>
<ns0:description xml:lang="en-US">At a minimum, the audit system should collect file permission
changes for all users and root. Note that the "-F arch=b32" lines should be
present even on a 64 bit system. These commands identify system calls for
auditing. Even if the system is 64 bit it can still execute 32 bit system
calls. Additionally, these rules can be configured in a number of ways while
still achieving the desired effect. An example of this is that the "-S" calls
could be split up and placed on separate lines, however, this is less efficient.
Add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S chmod -S fchmod -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod
-a always,exit -F arch=b32 -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod
-a always,exit -F arch=b32 -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If your system is 64 bit then these lines should be duplicated and the
arch=b32 replaced with arch=b64 as follows:
<html:pre>-a always,exit -F arch=b64 -S chmod -S fchmod -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod
-a always,exit -F arch=b64 -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod
-a always,exit -F arch=b64 -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is
attempting to gain access to information that would otherwise be disallowed.
Auditing DAC modifications can facilitate the identification of patterns of
abuse among both authorized and unauthorized users.</ns0:rationale>
<ns0:Rule id="audit_rules_dac_modification_chmod" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - chmod</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S chmod -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S chmod -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_chmod" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chmod"
FULL_RULE="-a always,exit -F arch=$ARCH -S chmod -S fchmod -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_chmod:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_chmod_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_chown" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - chown</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S chown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S chown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_chown" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in ${RULE_ARCHS[@]}
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chown"
FULL_RULE="-a always,exit -F arch=$ARCH -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_chown:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_chown_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fchmod" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchmod</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fchmod -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fchmod -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fchmod" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chmod"
FULL_RULE="-a always,exit -F arch=$ARCH -S chmod -S fchmod -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fchmod:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fchmod_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fchmodat" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchmodat</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fchmodat" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chmod"
FULL_RULE="-a always,exit -F arch=$ARCH -S chmod -S fchmod -S fchmodat -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fchmodat:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fchmodat_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fchown" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchown</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fchown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fchown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fchown" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in ${RULE_ARCHS[@]}
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chown"
FULL_RULE="-a always,exit -F arch=$ARCH -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fchown:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fchown_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fchownat" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fchownat</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fchownat -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fchownat -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fchownat" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in ${RULE_ARCHS[@]}
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chown"
FULL_RULE="-a always,exit -F arch=$ARCH -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fchownat:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fchownat_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fremovexattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fremovexattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fremovexattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fremovexattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fremovexattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_fsetxattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - fsetxattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S fsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S fsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_fsetxattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_fsetxattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_fsetxattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_lchown" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lchown</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_lchown" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in ${RULE_ARCHS[@]}
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="chown"
FULL_RULE="-a always,exit -F arch=$ARCH -S chown -S fchown -S fchownat -S lchown -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_lchown:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_lchown_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_lremovexattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lremovexattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S lremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S lremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_lremovexattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_lremovexattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_lremovexattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_lsetxattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - lsetxattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S lsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S lsetxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_lsetxattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_lsetxattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_lsetxattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_removexattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - removexattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S removexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S removexattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_removexattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_removexattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_removexattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_dac_modification_setxattr" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Events that Modify the System's Discretionary Access Controls - setxattr</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
permission changes for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S setxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
If the system is 64 bit then also add the following:
<html:pre>-a always,exit -F arch=b64 -S setxattr -F auid>=500 -F auid!=4294967295 -k perm_mod</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note that these rules can be configured in a
number of ways while still achieving the desired effect. Here the system calls
have been placed independent of other system calls. Grouping these system
calls with others as identifying earlier in this guide is more efficient.
</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The changing of file permissions could indicate that a user is attempting to
gain access to information that would otherwise be disallowed. Auditing DAC modifications
can facilitate the identification of patterns of abuse among both authorized and
unauthorized users.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_dac_modification_setxattr" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="xattr"
FULL_RULE="-a always,exit -F arch=${ARCH} -S setxattr -S lsetxattr -S fsetxattr -S removexattr -S lremovexattr -S fremovexattr -F auid>=500 -F auid!=4294967295 -k perm_mod"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_dac_modification_setxattr:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_dac_modification_setxattr_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="audit_rules_login_events" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Attempts to Alter Login and Logout Events</ns0:title>
<ns0:description xml:lang="en-US">
The audit system already collects login info for all users and root. To watch for attempted manual edits of
files involved in storing login events, add the following to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-w /var/log/tallylog -p wa -k logins
-w /var/run/faillock/ -p wa -k logins
-w /var/log/lastlog -p wa -k logins</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">Manual editing of these files may indicate nefarious activity, such
as an attacker attempting to remove evidence of an intrusion.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_login_events" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/var/log/tallylog" "wa" "logins"
fix_audit_watch_rule "auditctl" "/var/run/faillock/" "wa" "logins"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/var/log/lastlog" "wa" "logins"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_login_events:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_session_events" selected="false" severity="low">
<ns0:title xml:lang="en-US">Record Attempts to Alter Process and Session Initiation Information</ns0:title>
<ns0:description xml:lang="en-US"> The audit system already collects process information for all
users and root. To watch for attempted manual edits of files involved in
storing such process information, add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-w /var/run/utmp -p wa -k session
-w /var/log/btmp -p wa -k session
-w /var/log/wtmp -p wa -k session</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">Manual editing of these files may indicate nefarious activity, such
as an attacker attempting to remove evidence of an intrusion.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_session_events" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/var/run/utmp" "wa" "session"
fix_audit_watch_rule "auditctl" "/var/log/btmp" "wa" "session"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/var/log/wtmp" "wa" "session"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_session_events:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_unsuccessful_file_modification" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects Unauthorized Access Attempts to Files (unsuccessful)</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect
unauthorized file accesses for all users and root. Add the following
to <html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-a always,exit -F arch=b32 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=b32 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access</html:pre>
If the system is 64 bit then also add the following:
<html:pre>
-a always,exit -F arch=b64 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access
-a always,exit -F arch=b64 -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">Unsuccessful attempts to access files could be an indicator of malicious activity on a system. Auditing
these events could serve as evidence of potential system compromise.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_unsuccessful_file_modification" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation of the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
# First fix the -EACCES requirement
PATTERN="-a always,exit -F arch=$ARCH -S .* -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k *"
# Use escaped BRE regex to specify rule group
GROUP="\(creat\|open\|truncate\)"
FULL_RULE="-a always,exit -F arch=$ARCH -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EACCES -F auid>=500 -F auid!=4294967295 -k access"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
# Then fix the -EPERM requirement
PATTERN="-a always,exit -F arch=$ARCH -S .* -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k *"
# No need to change content of $GROUP variable - it's the same as for -EACCES case above
FULL_RULE="-a always,exit -F arch=$ARCH -S creat -S open -S openat -S open_by_handle_at -S truncate -S ftruncate -F exit=-EPERM -F auid>=500 -F auid!=4294967295 -k access"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_unsuccessful_file_modification:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_unsuccessful_file_modification_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_privileged_commands" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects Information on the Use of Privileged Commands</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect the
execution of privileged commands for all users and root.
To find the relevant setuid / setgid programs, run the following command
for each local partition <html:i>PART</html:i>:
<html:pre>$ sudo find <html:i>PART</html:i> -xdev -type f -perm -4000 -o -type f -perm -2000 2>/dev/null</html:pre>
Then, for each setuid / setgid program on the system, add a line of the
following form to <html:code>/etc/audit/audit.rules</html:code>, where
<html:i>SETUID_PROG_PATH</html:i> is the full path to each setuid / setgid program
in the list:
<html:pre>-a always,exit -F path=<html:i>SETUID_PROG_PATH</html:i> -F perm=x -F auid>=500 -F auid!=4294967295 -k privileged</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10))</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(9)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">40</ns0:reference>
<ns0:rationale xml:lang="en-US">Privileged programs are subject to escalation-of-privilege attacks,
which attempt to subvert their normal role of providing some necessary but
limited capability. As such, motivation exists to monitor these programs for
unusual activity.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_privileged_commands" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_perform_audit_rules_privileged_commands_remediation" />
perform_audit_rules_privileged_commands_remediation "auditctl" "500"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_privileged_commands:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_privileged_commands_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_media_export" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects Information on Exporting to Media (successful)</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect media
exportation events for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>, setting ARCH to either b32 or b64 as
appropriate for your system:
<html:pre>-a always,exit -F arch=ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The unauthorized exportation of data to external media could result in an information leak
where classified information, Privacy Act information, and intellectual property could be lost. An audit
trail should be created each time a filesystem is mounted to help identify and guard against information
loss.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_media_export" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation of the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k *"
GROUP="mount"
FULL_RULE="-a always,exit -F arch=$ARCH -S mount -F auid>=500 -F auid!=4294967295 -k export"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_media_export:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_media_export_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_file_deletion_events" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects File Deletion Events by User</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect file
deletion events for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>, setting ARCH to either b32 or b64 as
appropriate for your system:
<html:pre>-a always,exit -F arch=ARCH -S rmdir -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295 -k delete</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">Auditing file deletions will create an audit trail for files that are removed
from the system. The audit trail could aid in system troubleshooting, as well as, detecting
malicious processes that attempt to delete log files to conceal their presence.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_file_deletion_events" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation for the syscall rule
# Retrieve hardware architecture of the underlying system
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b32" "b64")
for ARCH in ${RULE_ARCHS[@]}
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -F auid>=500 -F auid!=4294967295 -k delete"
# Use escaped BRE regex to specify rule group
GROUP="\(rmdir\|unlink\|rename\)"
FULL_RULE="-a always,exit -F arch=$ARCH -S rmdir -S unlink -S unlinkat -S rename -S renameat -F auid>=500 -F auid!=4294967295 -k delete"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_file_deletion_events:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_file_deletion_events_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_sysadmin_actions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects System Administrator Actions</ns0:title>
<ns0:description xml:lang="en-US">At a minimum the audit system should collect
administrator actions for all users and root. Add the following to
<html:code>/etc/audit/audit.rules</html:code>:
<html:pre>-w /etc/sudoers -p wa -k actions</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(7)(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The actions taken by system administrators should be audited to keep a record
of what was executed on the system, as well as, for accountability purposes.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_sysadmin_actions" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# Perform the remediation
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/etc/sudoers" "wa" "actions"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_sysadmin_actions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_sysadmin_actions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_kernel_module_loading" selected="false" severity="low">
<ns0:title xml:lang="en-US">Ensure auditd Collects Information on Kernel Module Loading and Unloading</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code> in order
to capture kernel module loading and unloading events, setting ARCH to either b32 or b64 as appropriate for your system:
<html:pre>-w /sbin/insmod -p x -k modules
-w /sbin/rmmod -p x -k modules
-w /sbin/modprobe -p x -k modules
-a always,exit -F arch=<html:i>ARCH</html:i> -S init_module -S delete_module -k modules</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">126</ns0:reference>
<ns0:rationale xml:lang="en-US">The addition/removal of kernel modules can be used to alter the behavior of
the kernel and potentially introduce malicious code into kernel space. It is important
to have an audit trail of modules that have been introduced into the kernel.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_kernel_module_loading" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
# First perform the remediation of the syscall rule
# Retrieve hardware architecture of the underlying system
# Note: 32-bit kernel modules can't be loaded / unloaded on 64-bit kernel =>
# it's not required on a 64-bit system to check also for the presence
# of 32-bit's equivalent of the corresponding rule. Therefore for
# each system it's enought to check presence of system's native rule form.
[ $(getconf LONG_BIT) = "32" ] && RULE_ARCHS=("b32") || RULE_ARCHS=("b64")
for ARCH in "${RULE_ARCHS[@]}"
do
PATTERN="-a always,exit -F arch=$ARCH -S .* -k *"
# Use escaped BRE regex to specify rule group
GROUP="\(init\|delete\)_module"
FULL_RULE="-a always,exit -F arch=$ARCH -S init_module -S delete_module -k modules"
<ns0:sub idref="function_fix_audit_syscall_rule" />
fix_audit_syscall_rule "auditctl" "$PATTERN" "$GROUP" "$ARCH" "$FULL_RULE"
done
# Then perform the remediations for the watch rules
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/sbin/insmod" "x" "modules"
fix_audit_watch_rule "auditctl" "/sbin/rmmod" "x" "modules"
<ns0:sub idref="function_fix_audit_watch_rule" />
fix_audit_watch_rule "auditctl" "/sbin/modprobe" "x" "modules"
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_kernel_module_loading:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-audit_rules_kernel_module_loading_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="audit_rules_immutable" selected="false" severity="low">
<ns0:title xml:lang="en-US">Make the auditd Configuration Immutable</ns0:title>
<ns0:description xml:lang="en-US">Add the following to <html:code>/etc/audit/audit.rules</html:code> in order
to make the configuration immutable:
<html:pre>-e 2</html:pre>
With this setting, a reboot will be required to change any
audit rules.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-1(b)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(a)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-2(d)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IR-5</ns0:reference>
<ns0:rationale xml:lang="en-US">Making the audit configuration immutable prevents accidental as
well as malicious modification of the audit rules, although it may be
problematic if legitimate changes are needed during system
operation</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="audit_rules_immutable" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
readonly AUDIT_RULES='/etc/audit/audit.rules'
# If '-e .*' setting present in audit.rules already, delete it since the
# auditctl(8) manual page instructs it should be the last rule in configuration
sed -i '/-e[[:space:]]\+.*/d' $AUDIT_RULES
# Append '-e 2' requirement at the end of audit.rules
echo '' >> $AUDIT_RULES
echo '# Set the audit.rules configuration immutable per security requirements' >> $AUDIT_RULES
echo '# Reboot is required to change audit rules once this setting is applied' >> $AUDIT_RULES
echo '-e 2' >> $AUDIT_RULES
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-audit_rules_immutable:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="services">
<ns0:title xml:lang="en-US">Services</ns0:title>
<ns0:description xml:lang="en-US">
The best protection against vulnerable software is running less software. This section describes how to review
the software which Red Hat Enterprise Linux 6 installs on a system and disable software which is not needed. It
then enumerates the software packages installed on a default Red Hat Enterprise Linux 6 system and provides guidance about which
ones can be safely disabled.
<html:br /><html:br />
Red Hat Enterprise Linux 6 provides a convenient minimal install option that essentially installs the bare necessities for a functional
system. When building Red Hat Enterprise Linux 6 systems, it is highly recommended to select the minimal packages and then build up
the system from there.
</ns0:description>
<ns0:Group id="obsolete">
<ns0:title xml:lang="en-US">Obsolete Services</ns0:title>
<ns0:description xml:lang="en-US">This section discusses a number of network-visible
services which have historically caused problems for system
security, and for which disabling or severely limiting the service
has been the best available guidance for some time. As a result of
this, many of these services are not installed as part of Red Hat Enterprise Linux 6
by default.
<html:br /><html:br />
Organizations which are running these services should
switch to more secure equivalents as soon as possible.
If it remains absolutely necessary to run one of
these services for legacy reasons, care should be taken to restrict
the service as much as possible, for instance by configuring host
firewall software such as <html:code>iptables</html:code> to restrict access to the
vulnerable service to only those remote hosts which have a known
need to use it.</ns0:description>
<ns0:Group id="inetd_and_xinetd">
<ns0:title xml:lang="en-US">Xinetd</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>xinetd</html:code> service acts as a dedicated listener for some
network services (mostly, obsolete ones) and can be used to provide access
controls and perform some logging. It has been largely obsoleted by other
features, and it is not installed by default. The older Inetd service
is not even available as part of Red Hat Enterprise Linux 6.</ns0:description>
<ns0:Rule id="service_xinetd_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable xinetd Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>xinetd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig xinetd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:rationale xml:lang="en-US">
The xinetd service provides a dedicated listener service for some programs,
which is no longer necessary for commonly-used network services. Disabling
it ensures that these uncommon services are not running, and also prevents
attacks against xinetd itself.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_xinetd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable xinetd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_xinetd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service xinetd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- xinetd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_xinetd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_xinetd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_xinetd_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall xinetd Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>xinetd</html:code> package can be uninstalled with the following command:
<html:pre>$ sudo yum erase xinetd</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:rationale xml:lang="en-US">
Removing the <html:code>xinetd</html:code> package decreases the risk of the
xinetd service's accidental (or intentional) activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_xinetd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove xinetd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_xinetd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure xinetd is removed
package:
name="{{item}}"
state=absent
with_items:
- xinetd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_xinetd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_xinetd
class remove_xinetd {
package { 'xinetd':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_xinetd_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=xinetd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_xinetd_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_xinetd_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="telnet">
<ns0:title xml:lang="en-US">Telnet</ns0:title>
<ns0:description xml:lang="en-US">The telnet protocol does not provide confidentiality or integrity
for information transmitted on the network. This includes authentication
information such as passwords. Organizations which use telnet should be
actively working to migrate to a more secure protocol.</ns0:description>
<ns0:Rule id="service_telnetd_disabled" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable telnet Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>telnet</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig telnet off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">197</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">877</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">888</ns0:reference>
<ns0:rationale xml:lang="en-US">
The telnet protocol uses unencrypted network communication, which
means that data from the login session, including passwords and
all other information transmitted during the session, can be
stolen by eavesdroppers on the network. The telnet protocol is also
subject to man-in-the-middle attacks.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_telnetd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_telnetd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_telnet-server_removed" selected="false" severity="high">
<ns0:title xml:lang="en-US">Uninstall telnet-server Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>telnet-server</html:code> package can be uninstalled with
the following command:
<html:pre>$ sudo yum erase telnet-server</html:pre></ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">
Removing the <html:code>telnet-server</html:code> package decreases the risk of the
telnet service's accidental (or intentional) activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_telnet-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove telnet-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure telnet-server is removed
package:
name="{{item}}"
state=absent
with_items:
- telnet-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_telnet-server
class remove_telnet-server {
package { 'telnet-server':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet-server_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=telnet-server
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_telnet-server_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_telnet-server_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_telnet_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Remove telnet Clients</ns0:title>
<ns0:description xml:lang="en-US">The telnet client allows users to start connections to other
systems via the telnet protocol.</ns0:description>
<ns0:rationale xml:lang="en-US">The <html:code>telnet</html:code> protocol is insecure and unencrypted. The use
of an unencrypted transmission medium could allow an unauthorized user
to steal credentials. The <html:code>ssh</html:code> package provides an
encrypted session and stronger security and is included in Red Hat
Enterprise Linux.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_telnet_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove telnet
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure telnet is removed
package:
name="{{item}}"
state=absent
with_items:
- telnet
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_telnet
class remove_telnet {
package { 'telnet':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_telnet_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=telnet
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_telnet_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_telnet_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="r_services">
<ns0:title xml:lang="en-US">Rlogin, Rsh, and Rexec</ns0:title>
<ns0:description xml:lang="en-US">The Berkeley r-commands are legacy services which
allow cleartext remote access and have an insecure trust
model.</ns0:description>
<ns0:Rule id="package_rsh-server_removed" selected="false" severity="high">
<ns0:title xml:lang="en-US">Uninstall rsh-server Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsh-server</html:code> package can be uninstalled with
the following command:
<html:pre>$ sudo yum erase rsh-server</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>rsh-server</html:code> package provides several obsolete and insecure
network services. Removing it
decreases the risk of those services' accidental (or intentional)
activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_rsh-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove rsh-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure rsh-server is removed
package:
name="{{item}}"
state=absent
with_items:
- rsh-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_rsh-server
class remove_rsh-server {
package { 'rsh-server':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh-server_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=rsh-server
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_rsh-server_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_rsh-server_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rexec_disabled" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable rexec Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rexec</html:code> service, which is available with
the <html:code>rsh-server</html:code> package and runs as a service through xinetd,
should be disabled.
The <html:code>rexec</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rexec off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">The rexec service uses unencrypted network communications, which
means that data from the login session, including passwords and
all other information transmitted during the session, can be
stolen by eavesdroppers on the network.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rexec_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rexec_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rsh_disabled" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable rsh Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsh</html:code> service, which is available with
the <html:code>rsh-server</html:code> package and runs as a service through xinetd,
should be disabled.
The <html:code>rsh</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rsh off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">The rsh service uses unencrypted network communications, which
means that data from the login session, including passwords and
all other information transmitted during the session, can be
stolen by eavesdroppers on the network.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rsh_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rsh_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_rsh_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstal rsh Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rsh</html:code> package contains the client commands
for the rsh services</ns0:description>
<ns0:rationale xml:lang="en-US">These legacy clients contain numerous security exposures and have
been replaced with the more secure SSH package. Even if the server is removed,
it is best to ensure the clients are also removed to prevent users from
inadvertently attempting to use these commands and therefore exposing
their credentials. Note that removing the <html:code>rsh</html:code> package removes
the clients for <html:code>rsh</html:code>,<html:code>rcp</html:code>, and <html:code>rlogin</html:code>.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_rsh_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove rsh
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure rsh is removed
package:
name="{{item}}"
state=absent
with_items:
- rsh
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_rsh
class remove_rsh {
package { 'rsh':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_rsh_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=rsh
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_rsh_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_rsh_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rlogin_disabled" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable rlogin Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rlogin</html:code> service, which is available with
the <html:code>rsh-server</html:code> package and runs as a service through xinetd,
should be disabled.
The <html:code>rlogin</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rlogin off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">The rlogin service uses unencrypted network communications, which
means that data from the login session, including passwords and
all other information transmitted during the session, can be
stolen by eavesdroppers on the network.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rlogin_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rlogin_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="no_rsh_trust_files" selected="false" severity="high">
<ns0:title xml:lang="en-US">Remove Rsh Trust Files</ns0:title>
<ns0:description xml:lang="en-US">The files <html:code>/etc/hosts.equiv</html:code> and <html:code>~/.rhosts</html:code> (in
each user's home directory) list remote hosts and users that are trusted by the
local system when using the rshd daemon.
To remove these files, run the following command to delete them from any
location:
<html:pre>$ sudo rm /etc/hosts.equiv</html:pre>
<html:pre>$ rm ~/.rhosts</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">Trust files are convenient, but when
used in conjunction with the R-services, they can allow
unauthenticated access to a system.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="no_rsh_trust_files" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">find -type f -name .rhosts -exec rm -f '{}' \;
rm /etc/hosts.equiv
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_rsh_trust_files:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_rsh_trust_files_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="nis">
<ns0:title xml:lang="en-US">NIS</ns0:title>
<ns0:description xml:lang="en-US">The Network Information Service (NIS), also known as 'Yellow
Pages' (YP), and its successor NIS+ have been made obsolete by
Kerberos, LDAP, and other modern centralized authentication
services. NIS should not be used because it suffers from security
problems inherent in its design, such as inadequate protection of
important authentication information.</ns0:description>
<ns0:Rule id="package_ypserv_removed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Uninstall ypserv Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>ypserv</html:code> package can be uninstalled with
the following command:
<html:pre>$ sudo yum erase ypserv</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">Removing the <html:code>ypserv</html:code> package decreases the risk of the
accidental (or intentional) activation of NIS or NIS+ services.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_ypserv_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove ypserv
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypserv_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure ypserv is removed
package:
name="{{item}}"
state=absent
with_items:
- ypserv
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypserv_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_ypserv
class remove_ypserv {
package { 'ypserv':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypserv_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=ypserv
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_ypserv_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_ypserv_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_ypbind_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable ypbind Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>ypbind</html:code> service, which allows the system to act as a client in
a NIS or NIS+ domain, should be disabled.
The <html:code>ypbind</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig ypbind off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling the <html:code>ypbind</html:code> service ensures the system is not acting
as a client in a NIS or NIS+ domain.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_ypbind_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable ypbind
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_ypbind_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service ypbind
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- ypbind
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_ypbind_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_ypbind_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_ypbind_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Remove NIS Client</ns0:title>
<ns0:description xml:lang="en-US">The Network Information Service (NIS), formerly known as Yellow Pages,
is a client-server directory service protocol used to distribute system configuration
files. The NIS client (<html:code>ypbind</html:code>) was used to bind a machine to an NIS server
and receive the distributed configuration files.</ns0:description>
<ns0:rationale xml:lang="en-US">The NIS service is inherently an insecure system that has been vulnerable
to DOS attacks, buffer overflows and has poor authentication for querying NIS maps.
NIS generally has been replaced by such protocols as Lightweight Directory Access
Protocol (LDAP). It is recommended that the service be removed.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_ypbind_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove ypbind
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypbind_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure ypbind is removed
package:
name="{{item}}"
state=absent
with_items:
- ypbind
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypbind_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_ypbind
class remove_ypbind {
package { 'ypbind':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_ypbind_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=ypbind
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_ypbind_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_ypbind_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="tftp">
<ns0:title xml:lang="en-US">TFTP Server</ns0:title>
<ns0:description xml:lang="en-US">
TFTP is a lightweight version of the FTP protocol which has
traditionally been used to configure networking equipment. However,
TFTP provides little security, and modern versions of networking
operating systems frequently support configuration via SSH or other
more secure protocols. A TFTP server should be run only if no more
secure method of supporting existing equipment can be
found.</ns0:description>
<ns0:Rule id="service_tftp_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable tftp Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>tftp</html:code> service should be disabled.
The <html:code>tftp</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig tftp off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">
Disabling the <html:code>tftp</html:code> service ensures the system is not acting
as a TFTP server, which does not provide encryption or authentication.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_tftp_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable tftp
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_tftp_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service tftp
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- tftp
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_tftp_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_tftp_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_tftp-server_removed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Uninstall tftp-server Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>tftp-server</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase tftp-server</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">305</ns0:reference>
<ns0:rationale xml:lang="en-US">
Removing the <html:code>tftp-server</html:code> package decreases the risk of the
accidental (or intentional) activation of tftp services.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_tftp-server_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_tftp-server_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_tftp_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Remove tftp</ns0:title>
<ns0:description xml:lang="en-US">Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol,
typically used to automatically transfer configuration or boot files between machines.
TFTP does not support authentication and can be easily hacked. The package
<html:code>tftp</html:code> is a client program that allows for connections to a <html:code>tftp</html:code> server.
</ns0:description>
<ns0:rationale xml:lang="en-US">It is recommended that TFTP be remvoed, unless there is a specific need
for TFTP (such as a boot server). In that case, use extreme caution when configuring
the services.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_tftp_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_tftp_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="tftpd_uses_secure_mode" selected="false" severity="high">
<ns0:title xml:lang="en-US">Ensure tftp Daemon Uses Secure Mode</ns0:title>
<ns0:description xml:lang="en-US">If running the <html:code>tftp</html:code> service is necessary, it should be configured
to change its root directory at startup. To do so, ensure
<html:code>/etc/xinetd.d/tftp</html:code> includes <html:code>-s</html:code> as a command line argument, as shown in
the following example (which is also the default):
<html:pre>server_args = -s /var/lib/tftpboot</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Using the <html:code>-s</html:code> option causes the TFTP service to only serve files from the
given directory. Serving files from an intentionally-specified directory
reduces the risk of sharing files which should remain private.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-tftpd_uses_secure_mode:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-tftpd_uses_secure_mode_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="talk">
<ns0:title xml:lang="en-US">Chat/Messaging Services</ns0:title>
<ns0:description xml:lang="en-US">
The talk software makes it possible for users to send and receive messages
across systems through a terminal session.
</ns0:description>
<ns0:Rule id="package_talk-server_removed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Uninstall talk-server Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>talk-server</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase talk-server</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
The talk software presents a security risk as it uses unencrypted protocols
for communications. Removing the <html:code>talk-server</html:code> package decreases the
risk of the accidental (or intentional) activation of talk services.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_talk-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove talk-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure talk-server is removed
package:
name="{{item}}"
state=absent
with_items:
- talk-server
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk-server_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_talk-server
class remove_talk-server {
package { 'talk-server':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk-server_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=talk-server
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_talk-server_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_talk-server_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_talk_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall talk Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>talk</html:code> package contains the client program for the
Internet talk protocol, which allows the user to chat with other users on
different systems. Talk is a communication program which copies lines from one
terminal to the terminal of another user.
</ns0:description>
<ns0:rationale xml:lang="en-US">
The talk software presents a security risk as it uses unencrypted protocols
for communications. Removing the <html:code>talk</html:code> package decreases the
risk of the accidental (or intentional) activation of talk client program.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_talk_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove talk
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure talk is removed
package:
name="{{item}}"
state=absent
with_items:
- talk
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_talk
class remove_talk {
package { 'talk':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_talk_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=talk
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_talk_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_talk_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="base">
<ns0:title xml:lang="en-US">Base Services</ns0:title>
<ns0:description xml:lang="en-US">This section addresses the base services that are installed on a
Red Hat Enterprise Linux 6 default installation which are not covered in other
sections. Some of these services listen on the network and
should be treated with particular discretion. Other services are local
system utilities that may or may not be extraneous. In general, system services
should be disabled if not required.</ns0:description>
<ns0:Rule id="service_abrtd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Automatic Bug Reporting Tool (abrtd)</ns0:title>
<ns0:description xml:lang="en-US">The Automatic Bug Reporting Tool (<html:code>abrtd</html:code>) daemon collects
and reports crash data when an application crash is detected. Using a variety
of plugins, abrtd can email crash reports to system administrators, log crash
reports to files, or forward crash reports to a centralized issue tracking
system such as RHTSupport.
The <html:code>abrtd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig abrtd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US"> Mishandling crash data could expose sensitive information about
vulnerabilities in software executing on the local machine, as well as sensitive
information from within a process's address space or registers.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_abrtd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable abrtd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_abrtd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service abrtd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- abrtd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_abrtd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_abrtd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_acpid_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Advanced Configuration and Power Interface (acpid)</ns0:title>
<ns0:description xml:lang="en-US">The Advanced Configuration and Power Interface Daemon (<html:code>acpid</html:code>)
dispatches ACPI events (such as power/reset button depressed) to userspace
programs.
The <html:code>acpid</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig acpid off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">ACPI support is highly desirable for systems in some network roles,
such as laptops or desktops. For other systems, such as servers, it may permit
accidental or trivially achievable denial of service situations and disabling
it is appropriate.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_acpid_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable acpid
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_acpid_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service acpid
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- acpid
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_acpid_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_acpid_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_certmonger_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Certmonger Service (certmonger)</ns0:title>
<ns0:description xml:lang="en-US">Certmonger is a D-Bus based service that attempts to simplify interaction
with certifying authorities on networks which use public-key infrastructure. It is often
combined with Red Hat's IPA (Identity Policy Audit) security information management
solution to aid in the management of certificates.
The <html:code>certmonger</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig certmonger off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The services provided by certmonger may be essential for systems
fulfilling some roles a PKI infrastructure, but its functionality is not necessary
for many other use cases.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_certmonger_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable certmonger
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_certmonger_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service certmonger
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- certmonger
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_certmonger_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_certmonger_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_cgconfig_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Control Group Config (cgconfig)</ns0:title>
<ns0:description xml:lang="en-US">Control groups allow an administrator to allocate system resources (such as CPU,
memory, network bandwidth, etc) among a defined group (or groups) of processes executing on
a system. The <html:code>cgconfig</html:code> daemon starts at boot and establishes the predefined control groups.
The <html:code>cgconfig</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig cgconfig off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Unless control groups are used to manage system resources, running the cgconfig
service is not necessary.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_cgconfig_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable cgconfig
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_cgconfig_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service cgconfig
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- cgconfig
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_cgconfig_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_cgconfig_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_cgred_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Control Group Rules Engine (cgred)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>cgred</html:code> service moves tasks into control groups according to
parameters set in the <html:code>/etc/cgrules.conf</html:code> configuration file.
The <html:code>cgred</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig cgred off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Unless control groups are used to manage system resources, running the cgred service
service is not necessary.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_cgred_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable cgred
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_cgred_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service cgred
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- cgred
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_cgred_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_cgred_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_cpuspeed_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable CPU Speed (cpuspeed)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>cpuspeed</html:code> service can adjust the clock speed of supported CPUs based upon
the current processing load thereby conserving power and reducing heat.
The <html:code>cpuspeed</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig cpuspeed off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>cpuspeed</html:code> service is only necessary if adjusting the CPU clock speed
provides benefit. Traditionally this has included laptops (to enhance battery life),
but may also apply to server or desktop environments where conserving power is
highly desirable or necessary.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_cpuspeed_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable cpuspeed
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_cpuspeed_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service cpuspeed
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- cpuspeed
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_cpuspeed_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_cpuspeed_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_haldaemon_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Hardware Abstraction Layer Service (haldaemon)</ns0:title>
<ns0:description xml:lang="en-US">The Hardware Abstraction Layer Daemon (<html:code>haldaemon</html:code>) collects
and maintains information about the system's hardware configuration.
This service is required on a workstation
running a desktop environment, and may be necessary on any system which
deals with removable media or devices.
The <html:code>haldaemon</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig haldaemon off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The haldaemon provides essential functionality on systems
that use removable media or devices, but can be disabled for systems
that do not require these.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_haldaemon_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable haldaemon
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_haldaemon_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service haldaemon
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- haldaemon
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_haldaemon_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_haldaemon_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_irqbalance_enabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable IRQ Balance (irqbalance)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>irqbalance</html:code> service optimizes the balance between
power savings and performance through distribution of hardware interrupts across
multiple processors.
The <html:code>irqbalance</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 irqbalance on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">In an environment with multiple processors (now common), the irqbalance service
provides potential speedups for handling interrupt requests.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_irqbalance_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable irqbalance
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_irqbalance_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service irqbalance
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- irqbalance
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_irqbalance_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_irqbalance_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_kdump_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable KDump Kernel Crash Analyzer (kdump)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>kdump</html:code> service provides a kernel crash dump analyzer. It uses the <html:code>kexec</html:code>
system call to boot a secondary kernel ("capture" kernel) following a system
crash, which can load information from the crashed kernel for analysis.
The <html:code>kdump</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig kdump off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Unless the system is used for kernel development or testing, there
is little need to run the kdump service.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_kdump_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable kdump
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_kdump_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service kdump
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- kdump
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_kdump_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_kdump_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_mdmonitor_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Software RAID Monitor (mdmonitor)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>mdmonitor</html:code> service is used for monitoring a software RAID array; hardware
RAID setups do not use this service.
The <html:code>mdmonitor</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig mdmonitor off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">If software RAID monitoring is not required,
there is no need to run this service.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_mdmonitor_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable mdmonitor
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_mdmonitor_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service mdmonitor
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- mdmonitor
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_mdmonitor_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_mdmonitor_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_messagebus_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable D-Bus IPC Service (messagebus)</ns0:title>
<ns0:description xml:lang="en-US">D-Bus provides an IPC mechanism used by
a growing list of programs, such as those used for Gnome, Bluetooth, and Avahi.
Due to these dependencies, disabling D-Bus may not be practical for
many systems.
The <html:code>messagebus</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig messagebus off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">If no services which require D-Bus are needed, then it
can be disabled. As a broker for IPC between processes of different privilege levels,
it could be a target for attack. However, disabling D-Bus is likely to be
impractical for any system which needs to provide
a graphical login session.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_messagebus_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable messagebus
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_messagebus_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service messagebus
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- messagebus
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_messagebus_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_messagebus_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_netconsole_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Network Console (netconsole)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>netconsole</html:code> service is responsible for loading the
netconsole kernel module, which logs kernel printk messages over UDP to a
syslog server. This allows debugging of problems where disk logging fails and
serial consoles are impractical.
The <html:code>netconsole</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig netconsole off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>netconsole</html:code> service is not necessary unless there is a need to debug
kernel panics, which is not common.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_netconsole_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable netconsole
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_netconsole_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service netconsole
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- netconsole
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_netconsole_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_netconsole_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_ntpdate_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable ntpdate Service (ntpdate)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>ntpdate</html:code> service sets the local hardware clock by polling NTP servers
when the system boots. It synchronizes to the NTP servers listed in
<html:code>/etc/ntp/step-tickers</html:code> or <html:code>/etc/ntp.conf</html:code>
and then sets the local hardware clock to the newly synchronized
system time.
The <html:code>ntpdate</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig ntpdate off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>ntpdate</html:code> service may only be suitable for systems which
are rebooted frequently enough that clock drift does not cause problems between
reboots. In any event, the functionality of the ntpdate service is now
available in the ntpd program and should be considered deprecated.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_ntpdate_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_ntpdate_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_oddjobd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Odd Job Daemon (oddjobd)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>oddjobd</html:code> service exists to provide an interface and
access control mechanism through which
specified privileged tasks can run tasks for unprivileged client
applications. Communication with <html:code>oddjobd</html:code> through the system message bus.
The <html:code>oddjobd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig oddjobd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>oddjobd</html:code> service may provide necessary functionality in
some environments, and can be disabled if it is not needed. Execution of
tasks by privileged programs, on behalf of unprivileged ones, has traditionally
been a source of privilege escalation security issues.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_oddjobd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable oddjobd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_oddjobd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service oddjobd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- oddjobd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_oddjobd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_oddjobd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_portreserve_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Portreserve (portreserve)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>portreserve</html:code> service is a TCP port reservation utility that can
be used to prevent portmap from binding to well known TCP ports that are
required for other services.
The <html:code>portreserve</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig portreserve off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>portreserve</html:code> service provides helpful functionality by
preventing conflicting usage of ports in the reserved port range, but it can be
disabled if not needed.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_portreserve_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable portreserve
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_portreserve_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service portreserve
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- portreserve
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_portreserve_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_portreserve_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_psacct_enabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable Process Accounting (psacct)</ns0:title>
<ns0:description xml:lang="en-US">The process accounting service, <html:code>psacct</html:code>, works with programs
including <html:code>acct</html:code> and <html:code>ac</html:code> to allow system administrators to view
user activity, such as commands issued by users of the system.
The <html:code>psacct</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 psacct on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>psacct</html:code> service can provide administrators a convenient
view into some user activities. However, it should be noted that the auditing
system and its audit records provide more authoritative and comprehensive
records.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_psacct_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable psacct
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_psacct_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service psacct
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- psacct
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_psacct_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_psacct_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_qpidd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Apache Qpid (qpidd)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>qpidd</html:code> service provides high speed, secure,
guaranteed delivery services. It is an implementation of the Advanced Message
Queuing Protocol. By default the qpidd service will bind to port 5672 and
listen for connection attempts.
The <html:code>qpidd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig qpidd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">The qpidd service is automatically installed when the "base"
package selection is selected during installation. The qpidd service listens
for network connections, which increases the attack surface of the system. If
the system is not intended to receive AMQP traffic, then the <html:code>qpidd</html:code>
service is not needed and should be disabled or removed.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_qpidd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable qpidd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_qpidd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service qpidd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- qpidd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_qpidd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_qpidd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_quota_nld_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Quota Netlink (quota_nld)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>quota_nld</html:code> service provides notifications to
users of disk space quota violations. It listens to the kernel via a netlink
socket for disk quota violations and notifies the appropriate user of the
violation using D-Bus or by sending a message to the terminal that the user has
last accessed.
The <html:code>quota_nld</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig quota_nld off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">If disk quotas are enforced on the local system, then the
<html:code>quota_nld</html:code> service likely provides useful functionality and should
remain enabled. However, if disk quotas are not used or user notification of
disk quota violation is not desired then there is no need to run this
service.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_quota_nld_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable quota_nld
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_quota_nld_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service quota_nld
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- quota_nld
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_quota_nld_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_quota_nld_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rdisc_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Network Router Discovery Daemon (rdisc)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>rdisc</html:code> service implements the client side of the ICMP
Internet Router Discovery Protocol (IRDP), which allows discovery of routers on
the local subnet. If a router is discovered then the local routing table is
updated with a corresponding default route. By default this daemon is disabled.
The <html:code>rdisc</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rdisc off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-4</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">General-purpose systems typically have their network and routing
information configured statically by a system administrator. Workstations or
some special-purpose systems often use DHCP (instead of IRDP) to retrieve
dynamic network configuration information.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_rdisc_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rdisc
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rdisc_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rdisc
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rdisc
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rdisc_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rdisc_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rhnsd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Red Hat Network Service (rhnsd)</ns0:title>
<ns0:description xml:lang="en-US">The Red Hat Network service automatically queries Red Hat Network
servers to determine whether there are any actions that should be executed,
such as package updates. This only occurs if the system was registered to an
RHN server or satellite and managed as such.
The <html:code>rhnsd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rhnsd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">Although systems management and patching is extremely important to
system security, management by a system outside the enterprise enclave is not
desirable for some environments. However, if the system is being managed by RHN or
RHN Satellite Server the <html:code>rhnsd</html:code> daemon can remain on. </ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_rhnsd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rhnsd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rhnsd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rhnsd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rhnsd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rhnsd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rhnsd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rhsmcertd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Red Hat Subscription Manager Daemon (rhsmcertd)</ns0:title>
<ns0:description xml:lang="en-US">The Red Hat Subscription Manager (rhsmcertd) periodically checks for
changes in the entitlement certificates for a registered system and updates it
accordingly.
The <html:code>rhsmcertd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rhsmcertd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>rhsmcertd</html:code> service can provide administrators with some
additional control over which of their systems are entitled to particular
subscriptions. However, for systems that are managed locally or which are not
expected to require remote changes to their subscription status, it is
unnecessary and can be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_rhsmcertd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rhsmcertd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rhsmcertd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rhsmcertd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rhsmcertd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rhsmcertd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rhsmcertd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_saslauthd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Cyrus SASL Authentication Daemon (saslauthd)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>saslauthd</html:code> service handles plaintext authentication requests on
behalf of the SASL library. The service isolates all code requiring superuser
privileges for SASL authentication into a single process, and can also be used
to provide proxy authentication services to clients that do not understand SASL
based authentication.
The <html:code>saslauthd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig saslauthd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>saslauthd</html:code> service provides essential functionality for
performing authentication in some directory environments, such as those which
use Kerberos and LDAP. For others, however, in which only local files may be
consulted, it is not necessary and should be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_saslauthd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable saslauthd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_saslauthd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service saslauthd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- saslauthd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_saslauthd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_saslauthd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_smartd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable SMART Disk Monitoring Service (smartd)</ns0:title>
<ns0:description xml:lang="en-US">SMART (Self-Monitoring, Analysis, and Reporting Technology) is a
feature of hard drives that allows them to detect symptoms of disk failure and
relay an appropriate warning.
The <html:code>smartd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig smartd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">SMART can help protect against denial of
service due to failing hardware. Nevertheless, if it is not needed or the
system's drives are not SMART-capable (such as solid state drives), it can be
disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_smartd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable smartd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_smartd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service smartd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- smartd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_smartd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_smartd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_sysstat_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable System Statistics Reset Service (sysstat)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>sysstat</html:code> service resets various I/O and CPU
performance statistics to zero in order to begin counting from a fresh state
at boot time.
The <html:code>sysstat</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig sysstat off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">By default the <html:code>sysstat</html:code> service merely runs a program at
boot to reset the statistics, which can be retrieved using programs such as
<html:code>sar</html:code> and <html:code>sadc</html:code>. These may provide useful insight into system
operation, but unless used this service can be disabled.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_sysstat_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable sysstat
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_sysstat_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service sysstat
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- sysstat
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_sysstat_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_sysstat_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="cron_and_at">
<ns0:title xml:lang="en-US">Cron and At Daemons</ns0:title>
<ns0:description xml:lang="en-US">The cron and at services are used to allow commands to
be executed at a later time. The cron service is required by almost
all systems to perform necessary maintenance tasks, while at may or
may not be required on a given system. Both daemons should be
configured defensively.</ns0:description>
<ns0:Rule id="service_crond_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable cron Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>crond</html:code> service is used to execute commands at
preconfigured times. It is required by almost all systems to perform necessary
maintenance tasks, such as notifying root of system activity.
The <html:code>crond</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 crond on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Due to its usage for maintenance and security-supporting tasks,
enabling the cron daemon is essential.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_crond_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable crond
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_crond_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service crond
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- crond
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_crond_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_crond_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="disable_anacron" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable anacron Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>cronie-anacron</html:code> package, which provides <html:code>anacron</html:code>
functionality, is installed by default.
The <html:code>cronie-anacron</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase cronie-anacron</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
The <html:code>anacron</html:code> service provides <html:code>cron</html:code> functionality for systems
such as laptops and workstations that may be shut down during the normal times
that <html:code>cron</html:code> jobs are scheduled to run. On systems which do not require this
additional functionality, <html:code>anacron</html:code> could needlessly increase the possible
attack surface for an intruder.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-disable_anacron_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_atd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable At Service (atd)</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>at</html:code> and <html:code>batch</html:code> commands can be used to
schedule tasks that are meant to be executed only once. This allows delayed
execution in a manner similar to cron, except that it is not
recurring. The daemon <html:code>atd</html:code> keeps track of tasks scheduled via
<html:code>at</html:code> and <html:code>batch</html:code>, and executes them at the specified time.
The <html:code>atd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig atd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">381</ns0:reference>
<ns0:rationale xml:lang="en-US">
The <html:code>atd</html:code> service could be used by an unsophisticated insider to carry
out activities outside of a normal login session, which could complicate
accountability. Furthermore, the need to schedule tasks with <html:code>at</html:code> or
<html:code>batch</html:code> is not common.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_atd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable atd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_atd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service atd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- atd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_atd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_atd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="restrict_at_cron_users">
<ns0:title xml:lang="en-US">Restrict at and cron to Authorized Users if Necessary</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>/etc/cron.allow</html:code> and <html:code>/etc/at.allow</html:code> files contain lists of users who are allowed
to use cron and at to delay execution of processes. If these files exist and
if the corresponding files <html:code>/etc/cron.deny</html:code> and <html:code>/etc/at.deny</html:code> do not exist,
then only users listed in the relevant allow files can run the crontab and at
commands to submit jobs to be run at scheduled intervals.
On many systems, only the system administrator needs the ability to schedule
jobs. Note that even if a given user is not listed in <html:code>cron.allow</html:code>, cron jobs can
still be run as that user. The <html:code>cron.allow</html:code> file controls only administrative access
to the crontab command for scheduling and modifying cron jobs.
<html:br />
<html:br />
To restrict at and cron to only authorized users:
<html:ul><html:li>Remove the cron.deny file:<html:pre>$ sudo rm /etc/cron.deny</html:pre></html:li><html:li>Edit <html:code>/etc/cron.allow</html:code>, adding one line for each user allowed to use the crontab command to create cron jobs.</html:li><html:li>Remove the <html:code>at.deny</html:code> file:<html:pre>$ sudo rm /etc/at.deny</html:pre></html:li><html:li>Edit <html:code>/etc/at.allow</html:code>, adding one line for each user allowed to use the at command to create at jobs.</html:li></html:ul>
</ns0:description>
</ns0:Group>
</ns0:Group>
<ns0:Group id="ssh">
<ns0:title xml:lang="en-US">SSH Server</ns0:title>
<ns0:description xml:lang="en-US">The SSH protocol is recommended for remote login and
remote file transfer. SSH provides confidentiality and integrity
for data exchanged between two systems, as well as server
authentication, through the use of public key cryptography. The
implementation included with the system is called OpenSSH, and more
detailed documentation is available from its website,
<html:a href="http://www.openssh.org">http://www.openssh.org</html:a>. Its server program is called <html:code>sshd</html:code> and
provided by the RPM package <html:code>openssh-server</html:code>.</ns0:description>
<ns0:Value id="sshd_idle_timeout_value" operator="equals" type="number">
<ns0:title xml:lang="en-US">SSH session Idle time</ns0:title>
<ns0:description xml:lang="en-US">Specify duration of allowed idle time.</ns0:description>
<ns0:value>300</ns0:value>
<ns0:value selector="5_minutes">300</ns0:value>
<ns0:value selector="10_minutes">600</ns0:value>
<ns0:value selector="15_minutes">900</ns0:value>
<ns0:value selector="60_minutes">3600</ns0:value>
<ns0:value selector="120_minutes">7200</ns0:value>
</ns0:Value>
<ns0:Rule id="service_sshd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable SSH Server If Possible (Unusual)</ns0:title>
<ns0:description xml:lang="en-US">The SSH server service, sshd, is commonly needed.
However, if it can be disabled, do so.
The <html:code>sshd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig sshd off</html:pre>
This is unusual, as SSH is a common method for encrypted and authenticated
remote access.
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_sshd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable sshd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_sshd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service sshd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- sshd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_sshd_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="iptables_sshd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Remove SSH Server iptables Firewall exception (Unusual)</ns0:title>
<ns0:description xml:lang="en-US">By default, inbound connections to SSH's port are allowed. If
the SSH server is not being used, this exception should be removed from the
firewall configuration.
<html:br /><html:br />
Edit the files <html:code>/etc/sysconfig/iptables</html:code> and <html:code>/etc/sysconfig/ip6tables</html:code>
(if IPv6 is in use). In each file, locate and delete the line:
<html:pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</html:pre>
This is unusual, as SSH is a common method for encrypted and authenticated
remote access.
</ns0:description>
<ns0:rationale xml:lang="en-US">
If inbound SSH connections are not expected, disallowing access to the SSH port will
avoid possible exploitation of the port by an attacker.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-iptables_sshd_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="ssh_server">
<ns0:title xml:lang="en-US">Configure OpenSSH Server if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If the system needs to act as an SSH server, then
certain changes should be made to the OpenSSH daemon configuration
file <html:code>/etc/ssh/sshd_config</html:code>. The following recommendations can be
applied to this file. See the <html:code>sshd_config(5)</html:code> man page for more
detailed information.</ns0:description>
<ns0:Rule id="sshd_allow_only_protocol2" selected="false" severity="high">
<ns0:title xml:lang="en-US">Allow Only SSH Protocol 2</ns0:title>
<ns0:description xml:lang="en-US">Only SSH protocol version 2 connections should be
permitted. The default setting in
<html:code>/etc/ssh/sshd_config</html:code> is correct, and can be
verified by ensuring that the following
line appears:
<html:pre>Protocol 2</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3(10)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">776</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">774</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">
SSH protocol version 1 suffers from design flaws that
result in security vulnerabilities and
should not be used.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_allow_only_protocol2" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_replace_or_append" />
replace_or_append '/etc/ssh/sshd_config' '^Protocol' '2' 'CCE-27072-8' '%s %s'
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_allow_only_protocol2:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_allow_only_protocol2_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_limit_user_access" selected="false" severity="low">
<ns0:title xml:lang="en-US">Limit Users' SSH Access</ns0:title>
<ns0:description xml:lang="en-US">By default, the SSH configuration allows any user with an account
to access the system. In order to specify the users that are allowed to login
via SSH and deny all other users, add or correct the following line in the
<html:code>/etc/ssh/sshd_config</html:code> file:
<html:pre>DenyUsers USER1 USER2</html:pre>
Where <html:code>USER1</html:code> and <html:code>USER2</html:code> are valid user names.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx" />
<ns0:rationale xml:lang="en-US">
Specifying which accounts are allowed SSH access into the system reduces the
possibility of unauthorized access to the system.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="sshd_set_idle_timeout" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set SSH Idle Timeout Interval</ns0:title>
<ns0:description xml:lang="en-US">SSH allows administrators to set an idle timeout
interval.
After this interval has passed, the idle user will be
automatically logged out.
<html:br /><html:br />
To set an idle timeout interval, edit the following line in <html:code>/etc/ssh/sshd_config</html:code> as
follows:
<html:pre>ClientAliveInterval <html:b><ns0:sub idref="sshd_idle_timeout_value" /></html:b></html:pre>
The timeout <html:b>interval</html:b> is given in seconds. To have a timeout
of 15 minutes, set <html:b>interval</html:b> to 900.
<html:br /><html:br />
If a shorter timeout has already been set for the login
shell, that value will preempt any SSH
setting made here. Keep in mind that some processes may stop SSH
from correctly detecting that the user is idle.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(5)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">879</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1133</ns0:reference>
<ns0:rationale xml:lang="en-US">
Causing idle users to be automatically logged out
guards against compromises one system leading trivially
to compromises on another.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_set_idle_timeout" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
sshd_idle_timeout_value="<ns0:sub idref="sshd_idle_timeout_value" />"
grep -q ^ClientAliveInterval /etc/ssh/sshd_config && \
sed -i "s/ClientAliveInterval.*/ClientAliveInterval $sshd_idle_timeout_value/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "ClientAliveInterval $sshd_idle_timeout_value" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-export export-name="oval:ssg-sshd_idle_timeout_value:var:1" value-id="sshd_idle_timeout_value" />
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_set_idle_timeout:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_set_idle_timeout_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_set_keepalive" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set SSH Client Alive Count</ns0:title>
<ns0:description xml:lang="en-US">To ensure the SSH idle timeout occurs precisely when the <html:code>ClientAliveCountMax</html:code> is set,
edit <html:code>/etc/ssh/sshd_config</html:code> as
follows:
<html:pre>ClientAliveCountMax 0</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-2(5)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SA-8</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">879</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1133</ns0:reference>
<ns0:rationale xml:lang="en-US">
This ensures a user login will be terminated as soon as the <html:code>ClientAliveCountMax</html:code>
is reached.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_set_keepalive" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^ClientAliveCountMax /etc/ssh/sshd_config && \
sed -i "s/ClientAliveCountMax.*/ClientAliveCountMax 0/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "ClientAliveCountMax 0" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_set_keepalive:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_set_keepalive_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_disable_rhosts" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable SSH Support for .rhosts Files</ns0:title>
<ns0:description xml:lang="en-US">SSH can emulate the behavior of the obsolete rsh
command in allowing users to enable insecure access to their
accounts via <html:code>.rhosts</html:code> files.
<html:br /><html:br />
To ensure this behavior is disabled, add or correct the
following line in <html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>IgnoreRhosts yes</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">765</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">766</ns0:reference>
<ns0:rationale xml:lang="en-US">
SSH trust relationships mean a compromise on one host
can allow an attacker to move trivially to other hosts.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_disable_rhosts" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_replace_or_append" />
replace_or_append '/etc/ssh/sshd_config' '^IgnoreRhosts' 'yes' 'CCE-27124-7' '%s %s'
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_disable_rhosts:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_disable_rhosts_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="disable_host_auth" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Host-Based Authentication</ns0:title>
<ns0:description xml:lang="en-US">SSH's cryptographic host-based authentication is
more secure than <html:code>.rhosts</html:code> authentication. However, it is
not recommended that hosts unilaterally trust one another, even
within an organization.
<html:br /><html:br />
To disable host-based authentication, add or correct the
following line in <html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>HostbasedAuthentication no</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">765</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">766</ns0:reference>
<ns0:rationale xml:lang="en-US">
SSH trust relationships mean a compromise on one host
can allow an attacker to move trivially to other hosts.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="disable_host_auth" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^HostbasedAuthentication /etc/ssh/sshd_config && \
sed -i "s/HostbasedAuthentication.*/HostbasedAuthentication no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "HostbasedAuthentication no" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-disable_host_auth:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-disable_host_auth_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_disable_root_login" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable SSH Root Login</ns0:title>
<ns0:description xml:lang="en-US">The root user should never be allowed to login to a
system directly over a network.
To disable root login via SSH, add or correct the following line
in <html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>PermitRootLogin no</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-6(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-2(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">770</ns0:reference>
<ns0:rationale xml:lang="en-US">
Permitting direct root login reduces auditable information about who ran
privileged commands on the system
and also allows direct attack attempts on root's password.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_disable_root_login" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">
SSHD_CONFIG='/etc/ssh/sshd_config'
# Obtain line number of first uncommented case-insensitive occurrence of Match
# block directive (possibly prefixed with whitespace) present in $SSHD_CONFIG
FIRST_MATCH_BLOCK=$(sed -n '/^[[:space:]]*Match[^\n]*/I{=;q}' $SSHD_CONFIG)
# Obtain line number of first uncommented case-insensitive occurence of
# PermitRootLogin directive (possibly prefixed with whitespace) present in
# $SSHD_CONFIG
FIRST_PERMIT_ROOT_LOGIN=$(sed -n '/^[[:space:]]*PermitRootLogin[^\n]*/I{=;q}' $SSHD_CONFIG)
# Case: Match block directive not present in $SSHD_CONFIG
if [ -z "$FIRST_MATCH_BLOCK" ]
then
# Case: PermitRootLogin directive not present in $SSHD_CONFIG yet
if [ -z "$FIRST_PERMIT_ROOT_LOGIN" ]
then
# Append 'PermitRootLogin no' at the end of $SSHD_CONFIG
echo -e "\nPermitRootLogin no" >> $SSHD_CONFIG
# Case: PermitRootLogin directive present in $SSHD_CONFIG already
else
# Replace first uncommented case-insensitive occurrence
# of PermitRootLogin directive
sed -i "$FIRST_PERMIT_ROOT_LOGIN s/^[[:space:]]*PermitRootLogin.*$/PermitRootLogin no/I" $SSHD_CONFIG
fi
# Case: Match block directive present in $SSHD_CONFIG
else
# Case: PermitRootLogin directive not present in $SSHD_CONFIG yet
if [ -z "$FIRST_PERMIT_ROOT_LOGIN" ]
then
# Prepend 'PermitRootLogin no' before first uncommented
# case-insensitive occurrence of Match block directive
sed -i "$FIRST_MATCH_BLOCK s/^\([[:space:]]*Match[^\n]*\)/PermitRootLogin no\n\1/I" $SSHD_CONFIG
# Case: PermitRootLogin directive present in $SSHD_CONFIG and placed
# before first Match block directive
elif [ "$FIRST_PERMIT_ROOT_LOGIN" -lt "$FIRST_MATCH_BLOCK" ]
then
# Replace first uncommented case-insensitive occurrence
# of PermitRootLogin directive
sed -i "$FIRST_PERMIT_ROOT_LOGIN s/^[[:space:]]*PermitRootLogin.*$/PermitRootLogin no/I" $SSHD_CONFIG
# Case: PermitRootLogin directive present in $SSHD_CONFIG and placed
# after first Match block directive
else
# Prepend 'PermitRootLogin no' before first uncommented
# case-insensitive occurrence of Match block directive
sed -i "$FIRST_MATCH_BLOCK s/^\([[:space:]]*Match[^\n]*\)/PermitRootLogin no\n\1/I" $SSHD_CONFIG
fi
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_disable_root_login:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_disable_root_login_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_disable_empty_passwords" selected="false" severity="high">
<ns0:title xml:lang="en-US">Disable SSH Access via Empty Passwords</ns0:title>
<ns0:description xml:lang="en-US">To explicitly disallow remote login from accounts with
empty passwords, add or correct the following line in
<html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>PermitEmptyPasswords no</html:pre>
Any accounts with empty passwords should be disabled immediately, and PAM configuration
should prevent users from being able to assign themselves empty passwords.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">765</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">766</ns0:reference>
<ns0:rationale xml:lang="en-US">
Configuring this setting for the SSH daemon provides additional assurance that
remote login via SSH will require a password,
even in the event of misconfiguration elsewhere.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_disable_empty_passwords" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^PermitEmptyPasswords /etc/ssh/sshd_config && \
sed -i "s/PermitEmptyPasswords.*/PermitEmptyPasswords no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "PermitEmptyPasswords no" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_disable_empty_passwords:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_disable_empty_passwords_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_enable_warning_banner" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable SSH Warning Banner</ns0:title>
<ns0:description xml:lang="en-US">
To enable the warning banner and ensure it is consistent
across the system, add or correct the following line in <html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>Banner /etc/issue</html:pre>
Another section contains information on how to create an
appropriate system-wide warning banner.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-8(a)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">48</ns0:reference>
<ns0:rationale xml:lang="en-US">
The warning message reinforces policy awareness during the login process and
facilitates possible legal action against attackers. Alternatively, systems
whose ownership should not be obvious should ensure usage of a banner that does
not provide easy attribution.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_enable_warning_banner" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^Banner /etc/ssh/sshd_config && \
sed -i "s/Banner.*/Banner \/etc\/issue/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "Banner /etc/issue" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_enable_warning_banner:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_enable_warning_banner_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_do_not_permit_user_env" selected="false" severity="low">
<ns0:title xml:lang="en-US">Do Not Allow SSH Environment Options</ns0:title>
<ns0:description xml:lang="en-US">To ensure users are not able to present
environment options to the SSH daemon, add or correct the following line
in <html:code>/etc/ssh/sshd_config</html:code>:
<html:pre>PermitUserEnvironment no</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1414</ns0:reference>
<ns0:rationale xml:lang="en-US">
SSH environment options potentially allow users to bypass
access restriction in some configurations.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_do_not_permit_user_env" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^PermitUserEnvironment /etc/ssh/sshd_config && \
sed -i "s/PermitUserEnvironment.*/PermitUserEnvironment no/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "PermitUserEnvironment no" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_do_not_permit_user_env:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_do_not_permit_user_env_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_use_approved_ciphers" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Use Only Approved Ciphers</ns0:title>
<ns0:description xml:lang="en-US">Limit the ciphers to those algorithms which are FIPS-approved.
Counter (CTR) mode is also preferred over cipher-block chaining (CBC) mode.
The following line in <html:code>/etc/ssh/sshd_config</html:code>
demonstrates use of FIPS-approved ciphers:
<html:pre>Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc</html:pre>
The man page <html:code>sshd_config(5)</html:code> contains a list of supported ciphers.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SI-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-5(1)(c)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">803</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1144</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1145</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1146</ns0:reference>
<ns0:rationale xml:lang="en-US">
Approved algorithms should impart some level of confidence in their
implementation. These are also required for compliance.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_use_approved_ciphers" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">grep -q ^Ciphers /etc/ssh/sshd_config && \
sed -i "s/Ciphers.*/Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc/g" /etc/ssh/sshd_config
if ! [ $? -eq 0 ]; then
echo "Ciphers aes128-ctr,aes192-ctr,aes256-ctr,aes128-cbc,3des-cbc,aes192-cbc,aes256-cbc" >> /etc/ssh/sshd_config
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_use_approved_ciphers:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_use_approved_ciphers_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sshd_use_approved_macs" selected="false" severity="low">
<ns0:title xml:lang="en-US">Use Only Approved MACs</ns0:title>
<ns0:description xml:lang="en-US">Limit the MACs to those hash algorithms which are FIPS-approved.
The following line in <html:code>/etc/ssh/sshd_config</html:code>
demonstrates use of FIPS-approved MACs:
<html:pre>MACs hmac-sha2-512,hmac-sha2-256,hmac-sha1</html:pre>
The man page <html:code>sshd_config(5)</html:code> contains a list of supported MACs.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-17(2)</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">IA-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">SC-13</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">68</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1453</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">803</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">2449</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">2450</ns0:reference>
<ns0:rationale xml:lang="en-US">
Approved algorithms should impart some level of confidence in their
implementation. These are also required for compliance.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="sshd_use_approved_macs" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_replace_or_append" />
replace_or_append '/etc/ssh/sshd_config' '^MACs' 'hmac-sha2-512,hmac-sha2-256,hmac-sha1' '' '%s %s'
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sshd_use_approved_macs:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sshd_use_approved_macs_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="sshd_strengthen_firewall">
<ns0:title xml:lang="en-US">Strengthen Firewall Configuration if Possible</ns0:title>
<ns0:description xml:lang="en-US">If the SSH server is expected to only receive connections from
the local network, then strengthen the default firewall rule for the SSH service
to only accept connections from the appropriate network segment(s).
<html:br /><html:br />
Determine an appropriate network block, <html:code>netwk</html:code>, and network mask, <html:code>mask</html:code>,
representing the machines on your network which will be allowed to access this SSH server.
<html:br /><html:br />
Edit the files <html:code>etc/sysconfig/iptables</html:code> and <html:code>/etc/sysconfig/ip6tables</html:code>
(if IPv6 is in use). In each file, locate the line:
<html:pre>-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT</html:pre>
and replace it with:
<html:pre>-A INPUT -s netwk/mask -m state --state NEW -p tcp --dport 22 -j ACCEPT</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Restricting SSH access to only trusted network segments reduces exposure of the SSH
server to attacks from unauthorized networks.</ns0:rationale>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="sssd">
<ns0:title xml:lang="en-US">System Security Services Daemon</ns0:title>
<ns0:description xml:lang="en-US">
The System Security Services Daemon (SSSD) is a system daemon that provides access
to different identity and authentication providers such as Red Hat's IdM, Microsoft's AD,
openLDAP, MIT Kerberos, etc. It uses a common framework that can provide caching and offline
support to systems utilizing SSSD. SSSD using caching to reduce load on authentication
servers permit offline authentication as well as store extended user user data.
<html:br /><html:br />
For more information, see
<html:b><html:a href="https://access.redhat.com/documentation/en_US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/SSSD-Introduction.html">https://access.redhat.com/documentation/en_US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/SSSD-Introduction.html</html:a></html:b>
</ns0:description>
<ns0:Rule id="package_sssd_installed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Install the SSSD Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>sssd</html:code> package should be installed.
The <html:code>sssd</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install sssd</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_sssd_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_sssd_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable the SSSD Service</ns0:title>
<ns0:description xml:lang="en-US">The SSSD service should be enabled.
The <html:code>sssd</html:code> service can be enabled with the following command:
<html:pre>$ sudo systemctl enable sssd.service</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_sssd_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sssd_memcache_timeout" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure SSSD's Memory Cache to Expire</ns0:title>
<ns0:description xml:lang="en-US">
SSSD's memory cache should be configured to set to expire records after 1 day.
To configure SSSD to expire memory cache, set <html:code>memcache_timeout</html:code> to
<html:code>86400</html:code> under the <html:code>[nss]</html:code> section in <html:code>/etc/sssd/sssd.conf</html:code>.
For example:
<html:pre>[nss]
memcache_timeout = 86400
</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If cached authentication information is out-of-date, the validity of the
authentication information may be questionable.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sssd_memcache_timeout_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sssd_offline_cred_expiration" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure SSSD to Expire Offline Credentials</ns0:title>
<ns0:description xml:lang="en-US">
SSSD should be configured to expire offline credentials after 1 day.
To configure SSSD to expire offline credentials, set
<html:code>offline_credentials_expiration</html:code> to <html:code>1</html:code> under the <html:code>[pam]</html:code>
section in <html:code>/etc/sssd/sssd.conf</html:code>. For example:
<html:pre>[pam]
offline_credentials_expiration = 1
</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If cached authentication information is out-of-date, the validity of the
authentication information may be questionable.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sssd_offline_cred_expiration_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="sssd_ssh_known_hosts_timeout" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure SSSD to Expire SSH Known Hosts</ns0:title>
<ns0:description xml:lang="en-US">
SSSD should be configured to expire keys from known SSH hosts after 1 day.
To configure SSSD to known SSH hosts, set <html:code>ssh_known_hosts_timeout</html:code>
to <html:code>86400</html:code> under the <html:code>[ssh]</html:code> section in
<html:code>/etc/sssd/sssd.conf</html:code>. For example:
<html:pre>[ssh]
ssh_known_hosts_timeout = 86400
</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If cached authentication information is out-of-date, the validity of the
authentication information may be questionable.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sssd_ssh_known_hosts_timeout_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="xwindows">
<ns0:title xml:lang="en-US">X Window System</ns0:title>
<ns0:description xml:lang="en-US">The X Window System implementation included with the
system is called X.org.</ns0:description>
<ns0:Group id="disabling_xwindows">
<ns0:title xml:lang="en-US">Disable X Windows</ns0:title>
<ns0:description xml:lang="en-US">Unless there is a mission-critical reason for the
system to run a graphical user interface, ensure X is not set to start
automatically at boot and remove the X Windows software packages.
There is usually no reason to run X Windows
on a dedicated server machine, as it increases the system's attack surface and consumes
system resources. Administrators of server systems should instead login via
SSH or on the text console.</ns0:description>
<ns0:Rule id="xwindows_runlevel_setting" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable X Windows Startup By Setting Runlevel</ns0:title>
<ns0:description xml:lang="en-US">Setting the system's runlevel to 3 will prevent automatic startup
of the X server. To do so, ensure the following line in <html:code>/etc/inittab</html:code>
features a <html:code>3</html:code> as shown:
<html:pre>id:3:initdefault:</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-xwindows_runlevel_setting:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-xwindows_runlevel_setting_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_xorg-x11-server-common_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Remove the X Windows Package Group</ns0:title>
<ns0:description xml:lang="en-US">Removing all packages which constitute the X Window System
ensures users or malicious software cannot start X.
To do so, run the following command:
<html:pre>$ sudo yum groupremove "X Window System"</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">Unnecessary packages should not be installed to decrease the attack surface of the system.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_xorg-x11-server-common_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_xorg-x11-server-common_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="avahi">
<ns0:title xml:lang="en-US">Avahi Server</ns0:title>
<ns0:description xml:lang="en-US">The Avahi daemon implements the DNS Service Discovery
and Multicast DNS protocols, which provide service and host
discovery on a network. It allows a system to automatically
identify resources on the network, such as printers or web servers.
This capability is also known as mDNSresponder and is a major part
of Zeroconf networking. </ns0:description>
<ns0:Group id="service_avahi-daemon_disabled_group">
<ns0:title xml:lang="en-US">Disable Avahi Server if Possible</ns0:title>
<ns0:description xml:lang="en-US">Because the Avahi daemon service keeps an open network
port, it is subject to network attacks.
Disabling it can reduce the system's vulnerability to such attacks.
</ns0:description>
<ns0:Rule id="service_avahi-daemon_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Avahi Server Software</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>avahi-daemon</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig avahi-daemon off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Because the Avahi daemon service keeps an open network
port, it is subject to network attacks. Its functionality
is convenient but is only appropriate if the local network
can be trusted.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_avahi-daemon_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable avahi-daemon
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_avahi-daemon_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service avahi-daemon
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- avahi-daemon
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_avahi-daemon_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_avahi-daemon_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="avahi_configuration">
<ns0:title xml:lang="en-US">Configure Avahi if Necessary</ns0:title>
<ns0:description xml:lang="en-US">
If your system requires the Avahi daemon, its configuration can be restricted
to improve security. The Avahi daemon configuration file is
<html:code>/etc/avahi/avahi-daemon.conf</html:code>. The following security recommendations
should be applied to this file:
See the <html:code>avahi-daemon.conf(5)</html:code> man page, or documentation at
<html:a href="http://www.avahi.org">http://www.avahi.org</html:a>, for more detailed information about the configuration options.
</ns0:description>
<ns0:Rule id="avahi_ip_only" selected="false" severity="low">
<ns0:title xml:lang="en-US">Serve Avahi Only via Required Protocol</ns0:title>
<ns0:description xml:lang="en-US">
If you are using only IPv4, edit <html:code>/etc/avahi/avahi-daemon.conf</html:code> and ensure
the following line exists in the <html:code>[server]</html:code> section:
<html:pre>use-ipv6=no</html:pre>
Similarly, if you are using only IPv6, disable IPv4 sockets with the line:
<html:pre>use-ipv4=no</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-avahi_ip_only:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="avahi_check_ttl" selected="false" severity="low">
<ns0:title xml:lang="en-US">Check Avahi Responses' TTL Field</ns0:title>
<ns0:description xml:lang="en-US">
To make Avahi ignore packets unless the TTL field is 255, edit
<html:code>/etc/avahi/avahi-daemon.conf</html:code> and ensure the following line
appears in the <html:code>[server]</html:code> section:
<html:pre>check-response-ttl=yes</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
This helps to ensure that only mDNS responses from the local network are
processed, because the TTL field in a packet is decremented from its initial
value of 255 whenever it is routed from one network to another. Although a
properly-configured router or firewall should not allow mDNS packets into
the local network at all, this option provides another check to ensure they
are not permitted.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-avahi_check_ttl:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="avahi_prevent_port_sharing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Prevent Other Programs from Using Avahi's Port</ns0:title>
<ns0:description xml:lang="en-US">
To prevent other mDNS stacks from running, edit <html:code>/etc/avahi/avahi-daemon.conf</html:code>
and ensure the following line appears in the <html:code>[server]</html:code> section:
<html:pre>disallow-other-stacks=yes</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
This helps ensure that only Avahi is responsible for mDNS traffic coming from
that port on the system.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-avahi_prevent_port_sharing:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="avahi_disable_publishing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Avahi Publishing</ns0:title>
<ns0:description xml:lang="en-US">
To prevent Avahi from publishing its records, edit <html:code>/etc/avahi/avahi-daemon.conf</html:code>
and ensure the following line appears in the <html:code>[publish]</html:code> section:
<html:pre>disable-publishing=yes</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
This helps ensure that no record will be published by Avahi.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-avahi_disable_publishing:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="avahi_restrict_published_information" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Information Published by Avahi</ns0:title>
<ns0:description xml:lang="en-US">
If it is necessary to publish some information to the network, it should not be joined
by any extraneous information, or by information supplied by a non-trusted source
on the system.
Prevent user applications from using Avahi to publish services by adding or
correcting the following line in the <html:code>[publish]</html:code> section:
<html:pre>disable-user-service-publishing=yes</html:pre>
Implement as many of the following lines as possible, to restrict the information
published by Avahi.
<html:pre>publish-addresses=no
publish-hinfo=no
publish-workstation=no
publish-domain=no</html:pre>
Inspect the files in the directory <html:code>/etc/avahi/services/</html:code>. Unless there
is an operational need to publish information about each of these services,
delete the corresponding file.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
These options prevent publishing attempts from succeeding,
and can be applied even if publishing is disabled entirely via
disable-publishing. Alternatively, these can be used to restrict
the types of published information in the event that some information
must be published.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-avahi_restrict_published_information:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="printing">
<ns0:title xml:lang="en-US">Print Support</ns0:title>
<ns0:description xml:lang="en-US">The Common Unix Printing System (CUPS) service provides both local
and network printing support. A system running the CUPS service can accept
print jobs from other systems, process them, and send them to the appropriate
printer. It also provides an interface for remote administration through a web
browser. The CUPS service is installed and activated by default. The project
homepage and more detailed documentation are available at <html:a href="http://www.cups.org">http://www.cups.org</html:a>.
<html:br /><html:br /> </ns0:description>
<ns0:Rule id="service_cups_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable the CUPS Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>cups</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig cups off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Turn off unneeded services to reduce attack surface.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_cups_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable cups
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_cups_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service cups
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- cups
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_cups_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_cups_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="configure_printing">
<ns0:title xml:lang="en-US">Configure the CUPS Service if Necessary</ns0:title>
<ns0:description xml:lang="en-US">CUPS provides the ability to easily share local printers with
other machines over the network. It does this by allowing machines to share
lists of available printers. Additionally, each machine that runs the CUPS
service can potentially act as a print server. Whenever possible, the printer
sharing and print server capabilities of CUPS should be limited or disabled.
The following recommendations should demonstrate how to do just that.
</ns0:description>
<ns0:Rule id="cups_disable_browsing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Printer Browsing Entirely if Possible</ns0:title>
<ns0:description xml:lang="en-US">By default, CUPS listens on the network for printer list
broadcasts on UDP port 631. This functionality is called printer browsing.
To disable printer browsing entirely, edit the CUPS configuration
file, located at <html:code>/etc/cups/cupsd.conf</html:code>, to include the following:
<html:pre>Browsing Off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The CUPS print service can be configured to broadcast a list of
available printers to the network. Other machines on the network, also running
the CUPS print service, can be configured to listen to these broadcasts and add
and configure these printers for immediate use. By disabling this browsing
capability, the machine will no longer generate or receive such broadcasts.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-cups_disable_browsing:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="cups_disable_printserver" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Print Server Capabilities</ns0:title>
<ns0:description xml:lang="en-US">To prevent remote users from potentially connecting to and using
locally configured printers, disable the CUPS print server sharing
capabilities. To do so, limit how the server will listen for print jobs by
removing the more generic port directive from /etc/cups/cupsd.conf:
<html:pre>Port 631</html:pre>
and replacing it with the <html:code>Listen</html:code> directive:
<html:pre>Listen localhost:631</html:pre>
This will prevent remote users from printing to locally configured printers
while still allowing local users on the machine to print normally.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">By default, locally configured printers will not be shared over the
network, but if this functionality has somehow been enabled, these
recommendations will disable it again. Be sure to disable outgoing printer list
broadcasts, or remote users will still be able to see the locally configured
printers, even if they cannot actually print to them. To limit print serving to
a particular set of users, use the Policy directive.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-cups_disable_printserver:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="dhcp">
<ns0:title xml:lang="en-US">DHCP</ns0:title>
<ns0:description xml:lang="en-US">The Dynamic Host Configuration Protocol (DHCP) allows
systems to request and obtain an IP address and other configuration
parameters from a server.
<html:br /><html:br />
This guide recommends configuring networking on clients by manually editing
the appropriate files under <html:code>/etc/sysconfig</html:code>. Use of DHCP can make client
systems vulnerable to compromise by rogue DHCP servers, and should be avoided
unless necessary. If using DHCP is necessary, however, there are best practices
that should be followed to minimize security risk.
</ns0:description>
<ns0:Group id="disabling_dhcp_server">
<ns0:title xml:lang="en-US">Disable DHCP Server</ns0:title>
<ns0:description xml:lang="en-US">
The DHCP server <html:code>dhcpd</html:code> is not installed or activated by
default. If the software was installed and activated, but the
system does not need to act as a DHCP server, it should be disabled
and removed.
</ns0:description>
<ns0:Rule id="service_dhcpd_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable DHCP Service</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>dhcpd</html:code> service should be disabled on
any system that does not need to act as a DHCP server.
The <html:code>dhcpd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig dhcpd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Unmanaged or unintentionally activated DHCP servers may provide faulty information
to clients, interfering with the operation of a legitimate site
DHCP server if there is one.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_dhcpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable dhcpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_dhcpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service dhcpd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- dhcpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_dhcpd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_dhcpd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_dhcp_removed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Uninstall DHCP Server Package</ns0:title>
<ns0:description xml:lang="en-US">If the system does not need to act as a DHCP server,
the dhcp package can be uninstalled.
The <html:code>dhcp</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase dhcp</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
Removing the DHCP server ensures that it cannot be easily or
accidentally reactivated and disrupt network operation.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_dhcp_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_dhcp_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="dhcp_server_configuration">
<ns0:title xml:lang="en-US">Disable DHCP Server</ns0:title>
<ns0:description xml:lang="en-US">If the system must act as a DHCP server, the configuration
information it serves should be minimized. Also, support for other protocols
and DNS-updating schemes should be explicitly disabled unless needed. The
configuration file for dhcpd is called <html:code>/etc/dhcp/dhcpd.conf</html:code>. The file
begins with a number of global configuration options. The remainder of the file
is divided into sections, one for each block of addresses offered by dhcpd,
each of which contains configuration options specific to that address
block.</ns0:description>
<ns0:Rule id="dhcp_server_disable_ddns" selected="false" severity="low">
<ns0:title xml:lang="en-US">Do Not Use Dynamic DNS</ns0:title>
<ns0:description xml:lang="en-US">To prevent the DHCP server from receiving DNS information from
clients, edit <html:code>/etc/dhcp/dhcpd.conf</html:code>, and add or correct the following global
option: <html:pre>ddns-update-style none;</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">The ddns-update-style option controls only whether
the DHCP server will attempt to act as a Dynamic DNS client. As long as the DNS
server itself is correctly configured to reject DDNS attempts, an incorrect
ddns-update-style setting on the client is harmless (but should be fixed as a
best practice).</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The Dynamic DNS protocol is used to remotely update the data served
by a DNS server. DHCP servers can use Dynamic DNS to publish information about
their clients. This setup carries security risks, and its use is not
recommended. If Dynamic DNS must be used despite the risks it poses, it is
critical that Dynamic DNS transactions be protected using TSIG or some other
cryptographic authentication mechanism. See dhcpd.conf(5) for more information
about protecting the DHCP server from passing along malicious DNS data from its
clients. </ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_server_disable_ddns:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dhcp_server_deny_decline" selected="false" severity="low">
<ns0:title xml:lang="en-US">Deny Decline Messages</ns0:title>
<ns0:description xml:lang="en-US">Edit <html:code>/etc/dhcp/dhcpd.conf</html:code> and add or correct the following
global option to prevent the DHCP server from responding the DHCPDECLINE
messages, if possible: <html:pre>deny declines;</html:pre> </ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The DHCPDECLINE message can be sent by a DHCP client to indicate
that it does not consider the lease offered by the server to be valid. By
issuing many DHCPDECLINE messages, a malicious client can exhaust the DHCP
server's pool of IP addresses, causing the DHCP server to forget old address
allocations.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_server_deny_decline:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dhcp_server_deny_bootp" selected="false" severity="low">
<ns0:title xml:lang="en-US">Deny BOOTP Queries</ns0:title>
<ns0:description xml:lang="en-US">Unless your network needs to support older BOOTP clients, disable
support for the bootp protocol by adding or correcting the global option:
<html:pre>deny bootp;</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The bootp option tells dhcpd to respond to BOOTP queries. If support
for this simpler protocol is not needed, it should be disabled to remove attack
vectors against the DHCP server.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_server_deny_bootp:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dhcp_server_minimize_served_info" selected="false" severity="low">
<ns0:title xml:lang="en-US">Minimize Served Information</ns0:title>
<ns0:description xml:lang="en-US">Edit /etc/dhcp/dhcpd.conf. Examine each address range section within
the file, and ensure that the following options are not defined unless there is
an operational need to provide this information via DHCP:
<html:pre>option domain-name
option domain-name-servers
option nis-domain
option nis-servers
option ntp-servers
option routers
option time-offset</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">By default, the Red Hat Enterprise Linux client installation uses DHCP
to request much of the above information from the DHCP server. In particular,
domain-name, domain-name-servers, and routers are configured via DHCP. These
settings are typically necessary for proper network functionality, but are also
usually static across machines at a given site.</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">Because the configuration information provided by the DHCP server
could be maliciously provided to clients by a rogue DHCP server, the amount of
information provided via DHCP should be minimized. Remove these definitions
from the DHCP server configuration to ensure that legitimate clients do not
unnecessarily rely on DHCP for this information.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_server_minimize_served_info:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dhcp_server_configure_logging" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Logging</ns0:title>
<ns0:description xml:lang="en-US">Ensure that the following line exists in
<html:code>/etc/rsyslog.conf</html:code>:
<html:pre>daemon.* /var/log/daemon.log</html:pre>
Configure logwatch or other log monitoring tools to summarize error conditions
reported by the dhcpd process.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-12</ns0:reference>
<ns0:rationale xml:lang="en-US">By default, dhcpd logs notices to the daemon facility. Sending all
daemon messages to a dedicated log file is part of the syslog configuration
outlined in the Logging and Auditing section</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_server_configure_logging:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="disabling_dhcp_client">
<ns0:title xml:lang="en-US">Disable DHCP Client</ns0:title>
<ns0:description xml:lang="en-US">
DHCP is the default network configuration method provided by the system
installer, and common on many networks. Nevertheless, manual management
of IP addresses for systems implies a greater degree of management and
accountability for network activity.
</ns0:description>
<ns0:Rule id="sysconfig_networking_bootproto_ifcfg" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable DHCP Client</ns0:title>
<ns0:description xml:lang="en-US">
For each interface on the system (e.g. eth0), edit
<html:code>/etc/sysconfig/network-scripts/ifcfg-<html:i>interface</html:i></html:code> and make the
following changes:
<html:ul><html:li> Correct the BOOTPROTO line to read:
<html:pre>BOOTPROTO=none</html:pre>
</html:li><html:li> Add or correct the following lines, substituting the appropriate
values based on your site's addressing scheme:
<html:pre>NETMASK=255.255.255.0
IPADDR=192.168.1.2
GATEWAY=192.168.1.1</html:pre>
</html:li></html:ul>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
DHCP relies on trusting the local network. If the local network is not trusted,
then it should not be used. However, the automatic configuration provided by
DHCP is commonly used and the alternative, manual configuration, presents an
unacceptable burden in many circumstances.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-sysconfig_networking_bootproto_ifcfg:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-sysconfig_networking_bootproto_ifcfg_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="dhcp_client_configuration">
<ns0:title xml:lang="en-US">Configure DHCP Client if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If DHCP must be used, then certain configuration changes can
minimize the amount of information it receives and applies from the network,
and thus the amount of incorrect information a rogue DHCP server could
successfully distribute. For more information on configuring dhclient, see the
<html:code>dhclient(8)</html:code> and <html:code>dhclient.conf(5)</html:code> man pages. </ns0:description>
<ns0:Rule id="dhcp_client_restrict_options" selected="false" severity="low">
<ns0:title xml:lang="en-US">Minimize the DHCP-Configured Options</ns0:title>
<ns0:description xml:lang="en-US">Create the file <html:code>/etc/dhcp/dhclient.conf</html:code>, and add an
appropriate setting for each of the ten configuration settings which can be
obtained via DHCP. For each setting, do one of the following:
<html:br />
If the setting should <html:i>not</html:i> be configured remotely by the DHCP server,
select an appropriate static value, and add the line:
<html:pre>supersede <html:code>setting value</html:code>;</html:pre>
If the setting should be configured remotely by the DHCP server, add the lines:
<html:pre>request <html:code>setting</html:code>;
require <html:code>setting</html:code>;</html:pre>
For example, suppose the DHCP server should provide only the IP address itself
and the subnet mask. Then the entire file should look like:
<html:pre>supersede domain-name "example.com";
supersede domain-name-servers 192.168.1.2;
supersede nis-domain "";
supersede nis-servers "";
supersede ntp-servers "ntp.example.com ";
supersede routers 192.168.1.1;
supersede time-offset -18000;
request subnet-mask;
require subnet-mask;</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">In this example, the options nis-servers and
nis-domain are set to empty strings, on the assumption that the deprecated NIS
protocol is not in use. It is necessary to supersede settings for unused
services so that they cannot be set by a hostile DHCP server. If an option is
set to an empty string, dhclient will typically not attempt to configure the
service.</ns0:warning>
<ns0:rationale xml:lang="en-US">By default, the DHCP client program, dhclient, requests and applies
ten configuration options (in addition to the IP address) from the DHCP server.
subnet-mask, broadcast-address, time-offset, routers, domain-name,
domain-name-servers, host-name, nis-domain, nis-servers, and ntp-servers. Many
of the options requested and applied by dhclient may be the same for every
system on a network. It is recommended that almost all configuration options be
assigned statically, and only options which must vary on a host-by-host basis
be assigned via DHCP. This limits the damage which can be done by a rogue DHCP
server. If appropriate for your site, it is also possible to supersede the
host-name directive in <html:code>/etc/dhcp/dhclient.conf</html:code>, establishing a static
hostname for the machine. However, dhclient does not use the host name option
provided by the DHCP server (instead using the value provided by a reverse DNS
lookup).</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dhcp_client_restrict_options:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="ntp">
<ns0:title xml:lang="en-US">Network Time Protocol</ns0:title>
<ns0:description xml:lang="en-US">The Network Time Protocol is used to manage the system
clock over a network. Computer clocks are not very accurate, so
time will drift unpredictably on unmanaged systems. Central time
protocols can be used both to ensure that time is consistent among
a network of machines, and that their time is consistent with the
outside world.
<html:br /><html:br />
If every system on a network reliably reports the same time, then it is much
easier to correlate log messages in case of an attack. In addition, a number of
cryptographic protocols (such as Kerberos) use timestamps to prevent certain
types of attacks. If your network does not have synchronized time, these
protocols may be unreliable or even unusable.
<html:br /><html:br />
Depending on the specifics of the network, global time accuracy may be just as
important as local synchronization, or not very important at all. If your
network is connected to the Internet, using a
public timeserver (or one provided by your enterprise) provides globally
accurate timestamps which may be essential in investigating or responding to
an attack which originated outside of your network.
<html:br /><html:br />
A typical network setup involves a small number of internal systems operating as NTP
servers, and the remainder obtaining time information from those
internal servers.
<html:br /><html:br />
More information on how to configure the NTP server software,
including configuration of cryptographic authentication for
time data, is available at <html:a href="http://www.ntp.org">http://www.ntp.org</html:a>.
</ns0:description>
<ns0:Rule id="service_ntpd_enabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Enable the NTP Daemon</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>ntpd</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 ntpd on</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-8(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">160</ns0:reference>
<ns0:rationale xml:lang="en-US">Enabling the <html:code>ntpd</html:code> service ensures that the <html:code>ntpd</html:code>
service will be running and that the system will synchronize its time to
any servers specified. This is important whether the system is configured to be
a client (and synchronize only its own clock) or it is also acting as an NTP
server to other systems. Synchronizing time is essential for authentication
services such as Kerberos, but it is also important for maintaining accurate
logs and auditing possible security breaches.
<html:br /><html:br />
The NTP daemon offers all of the functionality of <html:code>ntpdate</html:code>, which is now
deprecated. Additional information on this is available at
<html:a href="http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate">http://support.ntp.org/bin/view/Dev/DeprecatingNtpdate</html:a></ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_ntpd_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable ntpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_ntpd_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service ntpd
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- ntpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_ntpd_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_ntpd_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ntpd_specify_remote_server" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Specify a Remote NTP Server</ns0:title>
<ns0:description xml:lang="en-US">To specify a remote NTP server for time synchronization, edit
the file <html:code>/etc/ntp.conf</html:code>. Add or correct the following lines,
substituting the IP or hostname of a remote NTP server for <html:em>ntpserver</html:em>:
<html:pre>server <html:i>ntpserver</html:i></html:pre>
This instructs the NTP software to contact that remote server to obtain time
data.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-8(1)</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">160</ns0:reference>
<ns0:rationale xml:lang="en-US">Synchronizing with an NTP server makes it possible
to collate system logs from multiple sources or correlate computer events with
real time events.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ntpd_specify_remote_server:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ntpd_specify_remote_server_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ntpd_specify_multiple_servers" selected="false" severity="low">
<ns0:title xml:lang="en-US">Specify Additional Remote NTP Servers</ns0:title>
<ns0:description xml:lang="en-US">Additional NTP servers can be specified for time synchronization
in the file <html:code>/etc/ntp.conf</html:code>. To do so, add additional lines of the
following form, substituting the IP address or hostname of a remote NTP server for
<html:em>ntpserver</html:em>:
<html:pre>server <html:i>ntpserver</html:i></html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-8(1)</ns0:reference>
<ns0:rationale xml:lang="en-US">Specifying additional NTP servers increases the availability of
accurate time data, in the event that one of the specified servers becomes
unavailable. This is typical for a system acting as an NTP server for
other systems.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ntpd_specify_multiple_servers:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="mail">
<ns0:title xml:lang="en-US">Mail Server Software</ns0:title>
<ns0:description xml:lang="en-US">
Mail servers are used to send and receive email over the network.
Mail is a very common service, and Mail Transfer Agents (MTAs) are obvious
targets of network attack.
Ensure that machines are not running MTAs unnecessarily,
and configure needed MTAs as defensively as possible.
<html:br /><html:br />
Very few systems at any site should be configured to directly receive email over the
network. Users should instead use mail client programs to retrieve email
from a central server that supports protocols such as IMAP or POP3.
However, it is normal for most systems to be independently capable of sending email,
for instance so that cron jobs can report output to an administrator.
Most MTAs, including Postfix, support a submission-only mode in which mail can be sent from
the local system to a central site MTA (or directly delivered to a local account),
but the system still cannot receive mail directly over a network.
<html:br /><html:br />
The <html:code>alternatives</html:code> program in Red Hat Enterprise Linux permits selection of other mail server software
(such as Sendmail), but Postfix is the default and is preferred.
Postfix was coded with security in mind and can also be more effectively contained by
SELinux as its modular design has resulted in separate processes performing specific actions.
More information is available on its website, <html:a href="http://www.postfix.org">http://www.postfix.org</html:a>.
</ns0:description>
<ns0:Rule id="service_postfix_enabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable Postfix Service</ns0:title>
<ns0:description xml:lang="en-US">The Postfix mail transfer agent is used for local mail delivery
within the system. The default configuration only listens for connections to
the default SMTP port (port 25) on the loopback interface (127.0.0.1). It is
recommended to leave this service enabled for local mail delivery.
The <html:code>postfix</html:code> service can be enabled with the following command:
<html:pre>$ sudo chkconfig --level 2345 postfix on</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Local mail delivery is essential to some system maintenance and
notification tasks.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_postfix_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command enable postfix
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_postfix_enabled" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Enable service postfix
service:
name="{{item}}"
enabled="yes"
state="started"
with_items:
- postfix
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_postfix_enabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_postfix_enabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_sendmail_removed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Uninstall Sendmail Package</ns0:title>
<ns0:description xml:lang="en-US">Sendmail is not the default mail transfer agent and is
not installed by default.
The <html:code>sendmail</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase sendmail</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The sendmail software was not developed with security in mind and
its design prevents it from being effectively contained by SELinux. Postfix
should be used instead.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_sendmail_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_sendmail_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="postfix_client">
<ns0:title xml:lang="en-US">Configure SMTP For Mail Clients</ns0:title>
<ns0:description xml:lang="en-US">This section discusses settings for Postfix in a submission-only
e-mail configuration.</ns0:description>
<ns0:Rule id="postfix_network_listening_disabled" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Disable Postfix Network Listening</ns0:title>
<ns0:description xml:lang="en-US">
Edit the file <html:code>/etc/postfix/main.cf</html:code> to ensure that only the following
<html:code>inet_interfaces</html:code> line appears:
<html:pre>inet_interfaces = localhost</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">382</ns0:reference>
<ns0:rationale xml:lang="en-US">
This ensures <html:code>postfix</html:code> accepts mail messages
(such as cron job reports) from the local system only,
and not from the network, which protects it from network attack.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-postfix_network_listening_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-postfix_network_listening_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="postfix_harden_os">
<ns0:title xml:lang="en-US">Configure Operating System to Protect Mail Server
</ns0:title>
<ns0:description xml:lang="en-US">The guidance in this section is appropriate for any host which is
operating as a site MTA, whether the mail server runs using Sendmail, Postfix,
or some other software.
</ns0:description>
<ns0:Group id="postfix_configure_ssl_certs">
<ns0:title xml:lang="en-US">Configure SSL Certificates for Use with SMTP AUTH</ns0:title>
<ns0:description xml:lang="en-US">
If SMTP AUTH is to be used, the use of SSL to protect credentials in transit is strongly recommended.
There are also configurations for which it may be desirable to encrypt all mail in transit from one MTA to another,
though such configurations are beyond the scope of this guide. In either event, the steps for creating and installing
an SSL certificate are independent of the MTA in use, and are described here.
</ns0:description>
<ns0:Group id="postfix_install_ssl_cert">
<ns0:title xml:lang="en-US">Ensure Security of Postfix SSL Certificate</ns0:title>
<ns0:description xml:lang="en-US">Create the PKI directory for mail certificates, if it does not already exist:
<html:pre>$ sudo mkdir /etc/pki/tls/mail
$ sudo chown root:root /etc/pki/tls/mail
$ sudo chmod 755 /etc/pki/tls/mail</html:pre>
Using removable media or some other secure transmission format, install the files generated in the previous
step onto the mail server:
<html:pre>/etc/pki/tls/mail/serverkey.pem: the private key mailserverkey.pem
/etc/pki/tls/mail/servercert.pem: the certificate file mailservercert.pem</html:pre>
Verify the ownership and permissions of these files:
<html:pre>$ sudo chown root:root /etc/pki/tls/mail/serverkey.pem
$ sudo chown root:root /etc/pki/tls/mail/servercert.pem
$ sudo chmod 600 /etc/pki/tls/mail/serverkey.pem
$ sudo chmod 644 /etc/pki/tls/mail/servercert.pem</html:pre>
Verify that the CA's public certificate file has been installed as <html:code>/etc/pki/tls/CA/cacert.pem</html:code>, and has the
correct permissions:
<html:pre>$ sudo chown root:root /etc/pki/tls/CA/cacert.pem
$ sudo chmod 644 /etc/pki/tls/CA/cacert.pem</html:pre>
</ns0:description>
</ns0:Group>
</ns0:Group>
<ns0:Group id="postfix_server_configuration">
<ns0:title xml:lang="en-US">Configure Postfix if Necessary</ns0:title>
<ns0:description xml:lang="en-US">Postfix stores its configuration files in the directory
/etc/postfix by default. The primary configuration file is
<html:code>/etc/postfix/main.cf</html:code>.
</ns0:description>
<ns0:Rule id="postfix_server_banner" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure SMTP Greeting Banner</ns0:title>
<ns0:description xml:lang="en-US">Edit <html:code>/etc/postfix/main.cf</html:code>, and add or correct the
following line, substituting some other wording for the banner information if
you prefer:
<html:pre>smtpd_banner = $myhostname ESMTP</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-22</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AU-13</ns0:reference>
<ns0:rationale xml:lang="en-US">The default greeting banner discloses that the listening mail
process is Postfix. When remote mail senders connect to the MTA on port 25,
they are greeted by an initial banner as part of the SMTP dialogue. This banner
is necessary, but it frequently gives away too much information, including the
MTA software which is in use, and sometimes also its version number. Remote
mail senders do not need this information in order to send mail, so the banner
should be changed to reveal only the hostname (which is already known and may
be useful) and the word ESMTP, to indicate that the modern SMTP protocol
variant is supported.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-postfix_server_banner:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="postfix_server_denial_of_service">
<ns0:title xml:lang="en-US">Configure Postfix Resource Usage to Limit Denial of Service Attacks</ns0:title>
<ns0:description xml:lang="en-US">Edit <html:code>/etc/postfix/main.cf</html:code>. Edit the following lines to
configure the amount of system resources Postfix can consume:
<html:pre>default_process_limit = 100
smtpd_client_connection_count_limit = 10
smtpd_client_connection_rate_limit = 30
queue_minfree = 20971520
header_size_limit = 51200
message_size_limit = 10485760
smtpd_recipient_limit = 100</html:pre>
The values here are examples.
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Note: The values given here are examples, and may
need to be modified for any particular site. By default, the Postfix anvil
process gathers mail receipt statistics. To get information about about what
connection rates are typical at your site, look in <html:code>/var/log/maillog</html:code>
for lines with the daemon name postfix/anvil.
</ns0:warning>
<ns0:rationale xml:lang="en-US">These configuration options serve to make it more difficult for
attackers to consume resources on the MTA host. The
<html:code>default_process_limit</html:code> parameter controls how many <html:code>smtpd</html:code>
processes can exist at a time, while
<html:code>smtpd_client_connection_count_limit</html:code> controls the number of those which
can be occupied by any one remote sender, and
<html:code>smtpd_client_connection_rate_limit</html:code> controls the number of connections
any one client can make per minute. By default, local hosts (those in
<html:code>mynetworks</html:code>) are exempted from per-client rate limiting. The
<html:code>queue_minfree</html:code> parameter establishes a free space threshold, in order
to stop e-mail receipt before the queue filesystem is entirely full. The
<html:code>header_size_limit</html:code>, <html:code>message_size_limit</html:code>, and
<html:code>smtpd_recipient_limit</html:code> parameters place bounds on the legal sizes of
messages received via SMTP.
</ns0:rationale>
</ns0:Group>
<ns0:Group id="postfix_server_mail_relay">
<ns0:title xml:lang="en-US">Control Mail Relaying</ns0:title>
<ns0:description xml:lang="en-US">Postfix's mail relay controls are implemented with the help of the
smtpd recipient restrictions option, which controls the restrictions placed on
the SMTP dialogue once the sender and recipient envelope addresses are known.
The guidance in the following sections should be applied to all machines. If
there are machines which must be allowed to relay mail, but which cannot be
trusted to relay unconditionally, configure SMTP AUTH with SSL support.
</ns0:description>
<ns0:Group id="postfix_server_mail_relay_set_trusted_networks">
<ns0:title xml:lang="en-US">Configure Trusted Networks and Hosts</ns0:title>
<ns0:description xml:lang="en-US">Edit <html:code>/etc/postfix/main.cf</html:code>, and configure the contents of
the <html:code>mynetworks</html:code> variable in one of the following ways:
<html:ul><html:li>If any machine in the subnet containing the MTA may be trusted to relay
messages, add or correct the following line:
<html:pre>mynetworks_style = subnet</html:pre>
This is also the default setting, and is in effect if all
<html:code>my_networks_style</html:code> directives are commented.</html:li><html:li>If only the MTA host itself is trusted to relay messages, add or correct
the following line:
<html:pre>mynetworks_style = host</html:pre></html:li><html:li>If the set of machines which can relay is more complicated, manually
specify an entry for each netblock or IP address which is trusted to relay by
setting the <html:code>mynetworks</html:code> variable directly:
<html:pre>mynetworks = 10.0.0.0/16, 192.168.1.0/24, 127.0.0.1</html:pre></html:li></html:ul>
</ns0:description>
<ns0:rationale xml:lang="en-US">The <html:code>mynetworks</html:code> variable must contain only the set of
machines for which this MTA should unconditionally relay mail. This is a trust
relationship - if spammers gain access to these machines, your site will
effectively become an open relay. It is recommended that only machines which
are managed by you or by another trusted organization be placed in mynetworks,
and users of all other machines be required to use SMTP AUTH to send mail.
</ns0:rationale>
</ns0:Group>
<ns0:Group id="postfix_server_mail_smtpd_relay_restrictions">
<ns0:title xml:lang="en-US">Enact SMTP Relay Restrictions</ns0:title>
<ns0:description xml:lang="en-US">
To configure Postfix to restrict addresses to which it
will send mail, see:
<html:a href="http://www.postfix.org/SMTPD_ACCESS_README.html#danger">http://www.postfix.org/SMTPD_ACCESS_README.html#danger</html:a>
<html:br />
The full contents of <html:code>smtpd_recipient_restrictions</html:code> will
vary by site, since this is a common place to put spam restrictions and other
site-specific options. The <html:code>permit_mynetworks</html:code> option allows all mail to
be relayed from the machines in <html:code>mynetworks</html:code>. Then, the
<html:code>reject_unauth_destination</html:code> option denies all mail whose destination
address is not local, preventing any other machines from relaying. These two
options should always appear in this order, and should usually follow one
another immediately unless SMTP AUTH is used.
</ns0:description>
</ns0:Group>
<ns0:Group id="postfix_server_mail_smtpd_recipient_restrictions">
<ns0:title xml:lang="en-US">Enact SMTP Recipient Restrictions</ns0:title>
<ns0:description xml:lang="en-US">
To configure Postfix to restrict addresses to which it
will send mail, see:
<html:a href="http://www.postfix.org/SMTPD_ACCESS_README.html#danger">http://www.postfix.org/SMTPD_ACCESS_README.html#danger</html:a>
<html:br />
The full contents of <html:code>smtpd_recipient_restrictions</html:code> will
vary by site, since this is a common place to put spam restrictions and other
site-specific options. The <html:code>permit_mynetworks</html:code> option allows all mail to
be relayed from the machines in <html:code>mynetworks</html:code>. Then, the
<html:code>reject_unauth_destination</html:code> option denies all mail whose destination
address is not local, preventing any other machines from relaying. These two
options should always appear in this order, and should usually follow one
another immediately unless SMTP AUTH is used.
</ns0:description>
</ns0:Group>
<ns0:Group id="postfix_server_mail_relay_smtp_auth_for_untrusted_networks">
<ns0:title xml:lang="en-US">Require SMTP AUTH Before Relaying from Untrusted Clients</ns0:title>
<ns0:description xml:lang="en-US">SMTP authentication allows remote clients to relay mail safely by
requiring them to authenticate before submitting mail. Postfix's SMTP AUTH uses
an authentication library called SASL, which is not part of Postfix itself. To
enable the use of SASL authentication, see
<html:a href="http://www.postfix.org/SASL_README.html">http://www.postfix.org/SASL_README.html</html:a>
</ns0:description>
</ns0:Group>
<ns0:Group id="postfix_server_mail_relay_require_tls_for_smtp_auth">
<ns0:title xml:lang="en-US">Use TLS for SMTP AUTH</ns0:title>
<ns0:description xml:lang="en-US">
Postfix provides options to use TLS for certificate-based
authentication and encrypted sessions. An encrypted session protects the
information that is transmitted with SMTP mail or with SASL authentication.
To configure Postfix to protect all SMTP AUTH transactions
using TLS, see <html:a href="http://www.postfix.org/TLS_README.html">http://www.postfix.org/TLS_README.html</html:a>.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="ldap">
<ns0:title xml:lang="en-US">LDAP</ns0:title>
<ns0:description xml:lang="en-US">LDAP is a popular directory service, that is, a
standardized way of looking up information from a central database.
Red Hat Enterprise Linux 6 includes software that enables a system to act as both
an LDAP client and server.
</ns0:description>
<ns0:Group id="openldap_client">
<ns0:title xml:lang="en-US">Configure OpenLDAP Clients</ns0:title>
<ns0:description xml:lang="en-US">This section provides information on which security settings are
important to configure in OpenLDAP clients by manually editing the appropriate
configuration files. Red Hat Enterprise Linux 6 provides an automated configuration tool called
authconfig and a graphical wrapper for authconfig called
<html:code>system-config-authentication</html:code>. However, these tools do not provide as
much control over configuration as manual editing of configuration files. The
authconfig tools do not allow you to specify locations of SSL certificate
files, which is useful when trying to use SSL cleanly across several protocols.
Installation and configuration of OpenLDAP on Red Hat Enterprise Linux 6 is available at
<html:a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html</html:a>.
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">Before configuring any system to be an
LDAP client, ensure that a working LDAP server is present on the
network.</ns0:warning>
<ns0:Rule id="ldap_client_start_tls" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure LDAP Client to Use TLS For All Transactions</ns0:title>
<ns0:description xml:lang="en-US">Configure LDAP to enforce TLS use. First, edit the file
<html:code>/etc/pam_ldap.conf</html:code>, and add or correct the following lines:
<html:pre>ssl start_tls</html:pre>
Then review the LDAP server and ensure TLS has been configured.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">776</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">778</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1453</ns0:reference>
<ns0:rationale xml:lang="en-US">The ssl directive specifies whether to use ssl or not. If
not specified it will default to no. It should be set to start_tls rather
than doing LDAP over SSL.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ldap_client_start_tls:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ldap_client_start_tls_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ldap_client_tls_cacertpath" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure Certificate Directives for LDAP Use of TLS</ns0:title>
<ns0:description xml:lang="en-US">Ensure a copy of a trusted CA certificate has been placed in
the file <html:code>/etc/pki/tls/CA/cacert.pem</html:code>. Configure LDAP to enforce TLS
use and to trust certificates signed by that CA. First, edit the file
<html:code>/etc/pam_ldap.conf</html:code>, and add or correct either of the following lines:
<html:pre>tls_cacertdir /etc/pki/tls/CA</html:pre>
or
<html:pre>tls_cacertfile /etc/pki/tls/CA/cacert.pem</html:pre>
Then review the LDAP server and ensure TLS has been configured.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">776</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">778</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1453</ns0:reference>
<ns0:rationale xml:lang="en-US">The tls_cacertdir or tls_cacertfile directives are required when
tls_checkpeer is configured (which is the default for openldap versions 2.1 and
up). These directives define the path to the trust certificates signed by the
site CA.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ldap_client_tls_cacertpath:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ldap_client_tls_cacertpath_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="openldap_server">
<ns0:title xml:lang="en-US">Configure OpenLDAP Server</ns0:title>
<ns0:description xml:lang="en-US">This section details some security-relevant settings
for an OpenLDAP server. Installation and configuration of OpenLDAP on Red Hat Enterprise Linux 6 is available at:
<html:a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Directory_Servers.html</html:a>.
</ns0:description>
<ns0:Rule id="package_openldap-servers_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall openldap-servers Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>openldap-servers</html:code> package should be removed if not in use.
Is this machine the OpenLDAP server? If not, remove the package.
<html:pre>$ sudo yum erase openldap-servers</html:pre>
The openldap-servers RPM is not installed by default on Red Hat Enterprise Linux 6
machines. It is needed only by the OpenLDAP server, not by the
clients which use LDAP for authentication. If the system is not
intended for use as an LDAP Server it should be removed.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">The <html:code>openldap-servers</html:code> package is not installed by default on RHEL6 machines.
It is needed only by the OpenLDAP server system, not clients which use LDAP for authentication. If
the system is not intended for use as an LDAP server, <html:code>openldap-servers</html:code> should be removed.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_openldap-servers_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_openldap-servers_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="ldap_server_config_certificate_files">
<ns0:title xml:lang="en-US">Install and Protect LDAP Certificate Files</ns0:title>
<ns0:description xml:lang="en-US">Create the PKI directory for LDAP certificates if it does not already exist:
<html:pre>$ sudo mkdir /etc/pki/tls/ldap
$ sudo chown root:root /etc/pki/tls/ldap
$ sudo chmod 755 /etc/pki/tls/ldap</html:pre>
Using removable media or some other secure transmission format, install the certificate files
onto the LDAP server:
<html:ul><html:li><html:code>/etc/pki/tls/ldap/serverkey.pem</html:code>: the private key <html:code>ldapserverkey.pem</html:code></html:li><html:li><html:code>/etc/pki/tls/ldap/servercert.pem</html:code>: the certificate file <html:code>ldapservercert.pem</html:code></html:li></html:ul>
Verify the ownership and permissions of these files:
<html:pre>$ sudo chown root:ldap /etc/pki/tls/ldap/serverkey.pem
$ sudo chown root:ldap /etc/pki/tls/ldap/servercert.pem
$ sudo chmod 640 /etc/pki/tls/ldap/serverkey.pem
$ sudo chmod 640 /etc/pki/tls/ldap/servercert.pem</html:pre>
Verify that the CA's public certificate file has been installed as
<html:code>/etc/pki/tls/CA/cacert.pem</html:code>, and has the correct permissions:
<html:pre>$ sudo mkdir /etc/pki/tls/CA
$ sudo chown root:root /etc/pki/tls/CA/cacert.pem
$ sudo chmod 644 /etc/pki/tls/CA/cacert.pem</html:pre>
As a result of these steps, the LDAP server will have access to its own private
certificate and the key with which that certificate is encrypted, and to the
public certificate file belonging to the CA. Note that it would be possible for
the key to be protected further, so that processes running as ldap could not
read it. If this were done, the LDAP server process would need to be restarted
manually whenever the server rebooted.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="nfs_and_rpc">
<ns0:title xml:lang="en-US">NFS and RPC</ns0:title>
<ns0:description xml:lang="en-US">The Network File System is a popular distributed filesystem for
the Unix environment, and is very widely deployed. This section discusses the
circumstances under which it is possible to disable NFS and its dependencies,
and then details steps which should be taken to secure
NFS's configuration. This section is relevant to machines operating as NFS
clients, as well as to those operating as NFS servers.
</ns0:description>
<ns0:Group id="disabling_nfs">
<ns0:title xml:lang="en-US">Disable All NFS Services if Possible</ns0:title>
<ns0:description xml:lang="en-US">If there is not a reason for the system to operate as either an
NFS client or an NFS server, follow all instructions in this section to disable
subsystems required by NFS.
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">The steps in this section will prevent a machine
from operating as either an NFS client or an NFS server. Only perform these
steps on machines which do not need NFS at all.</ns0:warning>
<ns0:Group id="disabling_nfs_services">
<ns0:title xml:lang="en-US">Disable Services Used Only by NFS</ns0:title>
<ns0:description xml:lang="en-US">If NFS is not needed, disable the NFS client daemons nfslock, rpcgssd, and rpcidmapd.
<html:br /><html:br />
All of these daemons run with elevated privileges, and many listen for network
connections. If they are not needed, they should be disabled to improve system
security posture.</ns0:description>
<ns0:Rule id="service_nfslock_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Network File System Lock Service (nfslock)</ns0:title>
<ns0:description xml:lang="en-US">The Network File System Lock (nfslock) service starts the required
remote procedure call (RPC) processes which allow clients to lock files on the
server. If the local machine is not configured to mount NFS filesystems then
this service should be disabled.
The <html:code>nfslock</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig nfslock off</html:pre>
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_nfslock_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable nfslock
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_nfslock_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service nfslock
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- nfslock
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_nfslock_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rpcgssd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Secure RPC Client Service (rpcgssd)</ns0:title>
<ns0:description xml:lang="en-US">
The rpcgssd service manages RPCSEC GSS contexts required to secure protocols
that use RPC (most often Kerberos and NFS). The rpcgssd service is the
client-side of RPCSEC GSS. If the system does not require secure RPC then this
service should be disabled.
The <html:code>rpcgssd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rpcgssd off</html:pre>
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_rpcgssd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rpcgssd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rpcgssd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rpcgssd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rpcgssd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rpcgssd_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rpcidmapd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable RPC ID Mapping Service (rpcidmapd)</ns0:title>
<ns0:description xml:lang="en-US">The rpcidmapd service is used to map user names and groups to UID
and GID numbers on NFSv4 mounts. If NFS is not in use on the local system then
this service should be disabled.
The <html:code>rpcidmapd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rpcidmapd off</html:pre>
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_rpcidmapd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rpcidmapd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rpcidmapd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rpcidmapd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rpcidmapd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rpcidmapd_disabled:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rpcbind_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable RPC Bind service (rpcbind)</ns0:title>
<ns0:description xml:lang="en-US">The rpcbind utility is a server that converts RPC program numbers
into universal addresses. If RPC calls are not made to servers on the local
system then this service should be disabled.
The <html:code>rpcbind</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rpcbind off</html:pre>
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_rpcbind_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rpcbind
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rpcbind_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rpcbind
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rpcbind
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rpcbind_disabled:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="disabling_netfs">
<ns0:title xml:lang="en-US">Disable netfs if Possible</ns0:title>
<ns0:description xml:lang="en-US">To determine if any network filesystems handled by netfs are
currently mounted on the system execute the following command:
<html:pre>$ mount -t nfs,nfs4,smbfs,cifs,ncpfs</html:pre>
If the command did not return any output then disable netfs.
</ns0:description>
<ns0:Rule id="service_netfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Network File Systems (netfs)</ns0:title>
<ns0:description xml:lang="en-US">The netfs script manages the boot-time mounting of several types
of networked filesystems, of which NFS and Samba are the most common. If these
filesystem types are not in use, the script can be disabled, protecting the
system somewhat against accidental or malicious changes to <html:code>/etc/fstab</html:code>
and against flaws in the netfs script itself.
The <html:code>netfs</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig netfs off</html:pre>
</ns0:description>
<ns0:fix complexity="low" disruption="low" id="service_netfs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable netfs
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_netfs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service netfs
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- netfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_netfs_disabled:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="nfs_configuring_all_machines">
<ns0:title xml:lang="en-US">Configure All Machines which Use NFS</ns0:title>
<ns0:description xml:lang="en-US">The steps in this section are appropriate for all machines which
run NFS, whether they operate as clients or as servers.</ns0:description>
<ns0:Group id="nfs_client_or_server_not_both">
<ns0:title xml:lang="en-US">Make Each Machine a Client or a Server, not Both</ns0:title>
<ns0:description xml:lang="en-US">If NFS must be used, it should be deployed in the simplest
configuration possible to avoid maintainability problems which may lead to
unnecessary security exposure. Due to the reliability and security problems
caused by NFS (specially NFSv3 and NFSv2), it is not a good idea for machines
which act as NFS servers to also mount filesystems via NFS. At the least,
crossed mounts (the situation in which each of two servers mounts a filesystem
from the other) should never be used.
</ns0:description>
</ns0:Group>
<ns0:Group id="nfs_configure_fixed_ports">
<ns0:title xml:lang="en-US">Configure NFS Services to Use Fixed Ports (NFSv3 and NFSv2)</ns0:title>
<ns0:description xml:lang="en-US">Firewalling should be done at each host and at the border
firewalls to protect the NFS daemons from remote access, since NFS servers
should never be accessible from outside the organization. However, by default
for NFSv3 and NFSv2, the RPC Bind service assigns each NFS service to a port
dynamically at service startup time. Dynamic ports cannot be protected by port
filtering firewalls such as iptables.
<html:br /><html:br />
Therefore, restrict each service to always use a given port, so that
firewalling can be done effectively. Note that, because of the way RPC is
implemented, it is not possible to disable the RPC Bind service even if ports
are assigned statically to all RPC services.
<html:br /><html:br />
In NFSv4, the mounting and locking protocols have been incorporated into the
protocol, and the server listens on the the well-known TCP port 2049. As such,
NFSv4 does not need to interact with the <html:code>rpcbind, lockd, and rpc.statd</html:code>
daemons, which can and should be disabled in a pure NFSv4 environment. The
<html:code>rpc.mountd</html:code> daemon is still required on the NFS server to setup
exports, but is not involved in any over-the-wire operations.
</ns0:description>
<ns0:Rule id="nfs_fixed_lockd_tcp_port" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure lockd to use static TCP port</ns0:title>
<ns0:description xml:lang="en-US">Configure the <html:code>lockd</html:code> daemon to use a static TCP port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <html:code>/etc/sysconfig/nfs</html:code>. Add or correct the following line:
<html:pre>LOCKD_TCPPORT=lockd-port</html:pre>
Where <html:code>lockd-port</html:code> is a port which is not used by any other service on
your network.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Restrict service to always use a given port, so that firewalling can be done
effectively.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="nfs_fixed_lockd_udp_port" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure lockd to use static UDP port</ns0:title>
<ns0:description xml:lang="en-US">Configure the <html:code>lockd</html:code> daemon to use a static UDP port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <html:code>/etc/sysconfig/nfs</html:code>. Add or correct the following line:
<html:pre>LOCKD_UDPPORT=lockd-port</html:pre>
Where <html:code>lockd-port</html:code> is a port which is not used by any other service on
your network.
</ns0:description>
<ns0:rationale xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="nfs_fixed_statd_port" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure statd to use static port</ns0:title>
<ns0:description xml:lang="en-US">Configure the <html:code>statd</html:code> daemon to use a static port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <html:code>/etc/sysconfig/nfs</html:code>. Add or correct the following line:
<html:pre>STATD_PORT=statd-port</html:pre>
Where <html:code>statd-port</html:code> is a port which is not used by any other service on your network.
</ns0:description>
<ns0:rationale xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="nfs_fixed_mountd_port" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure mountd to use static port</ns0:title>
<ns0:description xml:lang="en-US">Configure the <html:code>mountd</html:code> daemon to use a static port as
opposed to letting the RPC Bind service dynamically assign a port. Edit the
file <html:code>/etc/sysconfig/nfs</html:code>. Add or correct the following line:
<html:pre>MOUNTD_PORT=statd-port</html:pre>
Where <html:code>mountd-port</html:code> is a port which is not used by any other service on your network.
</ns0:description>
<ns0:rationale xml:lang="en-US"> Restricting services to always use a given port enables firewalling
to be done more effectively.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="nfs_configuring_clients">
<ns0:title xml:lang="en-US">Configure NFS Clients</ns0:title>
<ns0:description xml:lang="en-US">The steps in this section are appropriate for machines which operate as NFS clients.</ns0:description>
<ns0:Group id="disabling_nfsd">
<ns0:title xml:lang="en-US">Disable NFS Server Daemons</ns0:title>
<ns0:description xml:lang="en-US">
There is no need to run the NFS server daemons <html:code>nfs</html:code> and
<html:code>rpcsvcgssd</html:code> except on a small number of properly secured machines
designated as NFS servers. Ensure that these daemons are turned off on
clients.</ns0:description>
<ns0:Rule id="nfs_no_anonymous" selected="false" severity="low">
<ns0:title xml:lang="en-US">Specify UID and GID for Anonymous NFS Connections</ns0:title>
<ns0:description xml:lang="en-US">To specify the UID and GID for remote root users, edit the <html:code>/etc/exports</html:code> file and add the following for each export:
<html:pre>
anonuid=<html:code>value greater than UID_MAX from /etc/login.defs</html:code>
anongid=<html:code>value greater than GID_MAX from /etc/login.defs</html:code>
</html:pre>
Note that a value of "-1" is technically acceptable as this will randomize the <html:code>anonuid</html:code> and
<html:code>anongid</html:code> values on a Red Hat Enterprise Linux 6 based NFS server. While acceptable from a security perspective,
a value of <html:code>-1</html:code> may cause interoperability issues, particularly with Red Hat Enterprise Linux 7 client systems.
</ns0:description>
<ns0:rationale xml:lang="en-US">Specifying the anonymous UID and GID ensures that the remote root user is mapped
to a local account which has no permissions on the system.</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-nfs_no_anonymous_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_nfs_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Network File System (nfs)</ns0:title>
<ns0:description xml:lang="en-US">The Network File System (NFS) service allows remote hosts to mount
and interact with shared filesystems on the local machine. If the local machine
is not designated as a NFS server then this service should be disabled.
The <html:code>nfs</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig nfs off</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_nfs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable nfs
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_nfs_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service nfs
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- nfs
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_nfs_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_nfs_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="service_rpcsvcgssd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Secure RPC Server Service (rpcsvcgssd)</ns0:title>
<ns0:description xml:lang="en-US">The rpcsvcgssd service manages RPCSEC GSS contexts required to
secure protocols that use RPC (most often Kerberos and NFS). The rpcsvcgssd
service is the server-side of RPCSEC GSS. If the system does not require secure
RPC then this service should be disabled.
The <html:code>rpcsvcgssd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig rpcsvcgssd off</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Unnecessary services should be disabled to decrease the attack surface of the system.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_rpcsvcgssd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable rpcsvcgssd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_rpcsvcgssd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service rpcsvcgssd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- rpcsvcgssd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_rpcsvcgssd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_rpcsvcgssd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="mounting_remote_filesystems">
<ns0:title xml:lang="en-US">Mount Remote Filesystems with Restrictive Options</ns0:title>
<ns0:description xml:lang="en-US">Edit the file <html:code>/etc/fstab</html:code>. For each filesystem whose type
(column 3) is <html:code>nfs</html:code> or <html:code>nfs4</html:code>, add the text
<html:code>,nodev,nosuid</html:code> to the list of mount options in column 4. If
appropriate, also add <html:code>,noexec</html:code>.
<html:br /><html:br />
See the section titled "Restrict Partition Mount Options" for a description of
the effects of these options. In general, execution of files mounted via NFS
should be considered risky because of the possibility that an adversary could
intercept the request and substitute a malicious file. Allowing setuid files to
be executed from remote servers is particularly risky, both for this reason and
because it requires the clients to extend root-level trust to the NFS
server.</ns0:description>
<ns0:Rule id="mount_option_nodev_remote_filesystems" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Mount Remote Filesystems with nodev</ns0:title>
<ns0:description xml:lang="en-US">
Add the <html:code>nodev</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any NFS mounts.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">MP-2</ns0:reference>
<ns0:rationale xml:lang="en-US">Legitimate device files should only exist in the /dev directory. NFS mounts
should not present device files to users.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_nodev_remote_filesystems:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-mount_option_nodev_remote_filesystems_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_nosuid_remote_filesystems" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Mount Remote Filesystems with nosuid</ns0:title>
<ns0:description xml:lang="en-US">
Add the <html:code>nosuid</html:code> option to the fourth column of
<html:code>/etc/fstab</html:code> for the line which controls mounting of
any NFS mounts.
</ns0:description>
<ns0:rationale xml:lang="en-US">NFS mounts should not present suid binaries to users. Only vendor-supplied suid executables
should be installed to their default location on the local filesystem.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_nosuid_remote_filesystems:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-mount_option_nosuid_remote_filesystems_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="nfs_configuring_servers">
<ns0:title xml:lang="en-US">Configure NFS Servers</ns0:title>
<ns0:description xml:lang="en-US">The steps in this section are appropriate for machines which operate as NFS servers.</ns0:description>
<ns0:Group id="configure_exports_restrictively">
<ns0:title xml:lang="en-US">Configure the Exports File Restrictively</ns0:title>
<ns0:description xml:lang="en-US">Linux's NFS implementation uses the file <html:code>/etc/exports</html:code> to control what filesystems
and directories may be accessed via NFS. (See the <html:code>exports(5)</html:code> manpage for more information about the
format of this file.)
<html:br /><html:br />
The syntax of the <html:code>exports</html:code> file is not necessarily checked fully on reload, and syntax errors
can leave your NFS configuration more open than intended. Therefore, exercise caution when modifying
the file.
<html:br /><html:br />
The syntax of each line in <html:code>/etc/exports</html:code> is:
<html:pre>/DIR host1(opt1,opt2) host2(opt3)</html:pre>
where <html:code>/DIR</html:code> is a directory or filesystem to export, <html:code>hostN</html:code> is an IP address, netblock,
hostname, domain, or netgroup to which to export, and <html:code>optN</html:code> is an option.
</ns0:description>
</ns0:Group>
<ns0:Group id="use_acl_enforce_auth_restrictions">
<ns0:title xml:lang="en-US">Use Access Lists to Enforce Authorization Restrictions</ns0:title>
<ns0:description xml:lang="en-US">When configuring NFS exports, ensure that each export line in <html:code>/etc/exports</html:code> contains
a list of hosts which are allowed to access that export. If no hosts are specified on an export line,
then that export is available to any remote host which requests it. All lines of the exports file should
specify the hosts (or subnets, if needed) which are allowed to access the exported directory, so that
unknown or remote hosts will be denied.
<html:br /><html:br />
Authorized hosts can be specified in several different formats:
<html:ul><html:li>Name or alias that is recognized by the resolver</html:li><html:li>Fully qualified domain name</html:li><html:li>IP address</html:li><html:li>IP subnets in the format <html:code>address/netmask</html:code> or <html:code>address/CIDR</html:code></html:li></html:ul>
</ns0:description>
</ns0:Group>
<ns0:Group id="export_filesystems_read_only">
<ns0:title xml:lang="en-US">Export Filesystems Read-Only if Possible</ns0:title>
<ns0:description xml:lang="en-US">If a filesystem is being exported so that users can view the files in a convenient
fashion, but there is no need for users to edit those files, exporting the filesystem read-only
removes an attack vector against the server. The default filesystem export mode is <html:code>ro</html:code>,
so do not specify <html:code>rw</html:code> without a good reason.
</ns0:description>
</ns0:Group>
<ns0:Rule id="use_root_squashing_all_exports" selected="false" severity="low">
<ns0:title xml:lang="en-US">Use Root-Squashing on All Exports</ns0:title>
<ns0:description xml:lang="en-US">If a filesystem is exported using root squashing, requests from root on the client
are considered to be unprivileged (mapped to a user such as nobody). This provides some mild
protection against remote abuse of an NFS server. Root squashing is enabled by default, and
should not be disabled.
<html:br /><html:br />
Ensure that no line in <html:code>/etc/exports</html:code> contains the option <html:code>no_root_squash</html:code>.
</ns0:description>
<ns0:rationale xml:lang="en-US">If the NFS server allows root access to local file systems from remote hosts, this
access could be used to compromise the system.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="restrict_nfs_clients_to_privileged_ports" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict NFS Clients to Privileged Ports</ns0:title>
<ns0:description xml:lang="en-US">By default, the server NFS implementation requires that all client requests be made
from ports less than 1024. If your organization has control over machines connected to its
network, and if NFS requests are prohibited at the border firewall, this offers some protection
against malicious requests from unprivileged users. Therefore, the default should not be changed.
<html:br /><html:br />
To ensure that the default has not been changed, ensure no line in
<html:code>/etc/exports</html:code> contains the option <html:code>insecure</html:code>.
</ns0:description>
<ns0:rationale xml:lang="en-US">Allowing client requests to be made from ports higher than 1024 could allow a unprivileged
user to initiate an NFS connection. If the unprivileged user account has been compromised, an
attacker could gain access to data on the NFS server.</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="no_insecure_locks_exports" selected="false" severity="high">
<ns0:title xml:lang="en-US">Ensure Insecure File Locking is Not Allowed</ns0:title>
<ns0:description xml:lang="en-US">By default the NFS server requires secure file-lock requests,
which require credentials from the client in order to lock a file. Most NFS
clients send credentials with file lock requests, however, there are a few
clients that do not send credentials when requesting a file-lock, allowing the
client to only be able to lock world-readable files. To get around this, the
<html:code>insecure_locks</html:code> option can be used so these clients can access the
desired export. This poses a security risk by potentially allowing the client
access to data for which it does not have authorization.
Remove any instances of the
<html:code>insecure_locks</html:code> option from the file <html:code>/etc/exports</html:code>.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">764</ns0:reference>
<ns0:rationale xml:lang="en-US">Allowing insecure file locking could allow for sensitive data to be
viewed or edited by an unauthorized user.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-no_insecure_locks_exports:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-no_insecure_locks_exports_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="dns">
<ns0:title xml:lang="en-US">DNS Server</ns0:title>
<ns0:description xml:lang="en-US">Most organizations have an operational need to run at
least one nameserver. However, there are many common attacks
involving DNS server software, and this server software should
be disabled on any system
on which it is not needed.</ns0:description>
<ns0:Group id="disabling_dns_server">
<ns0:title xml:lang="en-US">Disable DNS Server</ns0:title>
<ns0:description xml:lang="en-US">
DNS software should be disabled on any machine which does not
need to be a nameserver. Note that the BIND DNS server software is
not installed on Red Hat Enterprise Linux 6 by default. The remainder of this section
discusses secure configuration of machines which must be
nameservers.
</ns0:description>
<ns0:Rule id="service_named_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable DNS Server</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>named</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig named off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
All network services involve some risk of compromise due to
implementation flaws and should be disabled if possible.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_named_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable named
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_named_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service named
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- named
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_named_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_named_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_bind_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall bind Package</ns0:title>
<ns0:description xml:lang="en-US">To remove the <html:code>bind</html:code> package, which contains the
<html:code>named</html:code> service, run the following command:
<html:pre>$ sudo yum erase bind</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">366</ns0:reference>
<ns0:rationale xml:lang="en-US">
If there is no need to make DNS server software available,
removing it provides a safeguard against its activation.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_bind_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_bind_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="dns_server_isolation">
<ns0:title xml:lang="en-US">Isolate DNS from Other Services</ns0:title>
<ns0:description xml:lang="en-US">This section discusses mechanisms for preventing the DNS server
from interfering with other services. This is done both to protect the
remainder of the network should a nameserver be compromised, and to make direct
attacks on nameservers more difficult.</ns0:description>
<ns0:Group id="dns_server_dedicated">
<ns0:title xml:lang="en-US">Run DNS Software on Dedicated Servers</ns0:title>
<ns0:description xml:lang="en-US">Since DNS is
a high-risk service which must frequently be made available to the entire
Internet, it is strongly recommended that no other services be offered by
machines which act as organizational DNS servers.</ns0:description>
</ns0:Group>
<ns0:Group id="dns_server_chroot">
<ns0:title xml:lang="en-US">Run DNS Software in a chroot Jail</ns0:title>
<ns0:description xml:lang="en-US">Install the <html:code>bind-chroot</html:code> package:
<html:pre>$ sudo yum install bind-chroot</html:pre>
Place a valid named.conf file inside the chroot jail:
<html:pre>$ sudo cp /etc/named.conf /var/named/chroot/etc/named.conf
$ sudo chown root:root /var/named/chroot/etc/named.conf
$ sudo chmod 644 /var/named/chroot/etc/named.conf</html:pre>
Create and populate an appropriate zone directory within the jail, based on the
options directive. If your <html:code>named.conf</html:code> includes:
<html:pre>options {
directory "/path/to/DIRNAME ";
...
}</html:pre>
then copy that directory and its contents from the original zone directory:
<html:pre>$ sudo cp -r /path/to/DIRNAME /var/named/chroot/DIRNAME</html:pre>
Add or correct the following line within <html:code>/etc/sysconfig/named</html:code>:
<html:pre>ROOTDIR=/var/named/chroot</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">If you are running BIND in a chroot jail, then you
should use the jailed <html:code>named.conf</html:code> as the primary nameserver
configuration file. That is, when this guide recommends editing
<html:code>/etc/named.conf</html:code>, you should instead edit
<html:code>/var/named/chroot/etc/named.conf</html:code>.
</ns0:warning>
<ns0:rationale xml:lang="en-US">Chroot jails are not foolproof. However, they serve to make it more
difficult for a compromised program to be used to attack the entire host. They
do this by restricting a program's ability to traverse the directory upward, so
that files outside the jail are not visible to the chrooted process. Since RHEL
supports a standard mechanism for placing BIND in a chroot jail, you should
take advantage of this feature.</ns0:rationale>
</ns0:Group>
</ns0:Group>
<ns0:Group id="dns_server_protection">
<ns0:title xml:lang="en-US">Protect DNS Data from Tampering or Attack</ns0:title>
<ns0:description xml:lang="en-US">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.</ns0:description>
<ns0:Group id="dns_server_separate_internal_external">
<ns0:title xml:lang="en-US">Run Separate DNS Servers for External and Internal Queries</ns0:title>
<ns0:description xml:lang="en-US">Is it possible to run external and internal nameservers on
separate machines? If so, follow the configuration guidance in this section. On
the external nameserver, edit <html:code>/etc/named.conf</html:code> to add or correct the
following directives:
<html:pre>options {
allow-query { any; };
recursion no;
...
};
zone "example.com " IN {
...
};</html:pre>
On the internal nameserver, edit <html:code>/etc/named.conf</html:code>. Add or correct the
following directives, where SUBNET is the numerical IP representation of your
organization in the form xxx.xxx.xxx.xxx/xx:
<html:pre>acl internal {
SUBNET ;
localhost;
};
options {
allow-query { internal; };
...
};
zone "internal.example.com " IN {
...
};</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Enterprise nameservers generally serve two functions. One is to
provide public information about the machines in a domain for the benefit of
outside users who wish to contact those machines, for instance in order to send
mail to users in the enterprise, or to visit the enterprise's external web
page. The other is to provide nameservice to client machines within the
enterprise. Client machines require both private information about enterprise
machines (which may be different from the public information served to the rest
of the world) and public information about machines outside the enterprise,
which is used to send mail or visit websites outside of the organization.
<html:br />
In order to provide the public nameservice function, it is necessary to share
data with untrusted machines which request it - otherwise, the enterprise
cannot be conveniently contacted by outside users. However, internal data
should be protected from disclosure, and serving irrelevant public name queries
for outside domains leaves the DNS server open to cache poisoning and other
attacks. Therefore, local network nameservice functions should not be provided
to untrusted machines.
<html:br />
Separate machines should be used to fill these two functions whenever possible.
</ns0:rationale>
</ns0:Group>
<ns0:Group id="dns_server_partition_with_views">
<ns0:title xml:lang="en-US">Use Views to Partition External and Internal Information</ns0:title>
<ns0:description xml:lang="en-US">If it is not possible to run external and internal nameservers on
separate physical machines, run BIND9 and simulate this feature using views.
Edit <html:code>/etc/named.conf</html:code>. Add or correct the following directives (where
SUBNET is the numerical IP representation of your organization in the form
xxx.xxx.xxx.xxx/xx):
<html:pre>acl internal {
SUBNET ;
localhost;
};
view "internal-view" {
match-clients { internal; };
zone "." IN {
type hint;
file "db.cache";
};
zone "internal.example.com " IN {
...
};
};
view "external-view" {
match-clients { any; };
recursion no;
zone "example.com " IN {
...
};
};</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">As shown in the example, database files which are
required for recursion, such as the root hints file, must be available to any
clients which are allowed to make recursive queries. Under typical
circumstances, this includes only the internal clients which are allowed to use
this server as a general-purpose nameserver.</ns0:warning>
<ns0:rationale xml:lang="en-US">The view feature is provided by BIND9 as a way to allow a single
nameserver to make different sets of data available to different sets of
clients. If possible, it is always better to run external and internal
nameservers on separate machines, so that even complete compromise of the
external server cannot be used to obtain internal data or confuse internal DNS
clients. However, this is not always feasible, and use of a feature like views
is preferable to leaving internal DNS data entirely unprotected.</ns0:rationale>
</ns0:Group>
<ns0:Rule id="dns_server_disable_zone_transfers" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Zone Transfers from the Nameserver</ns0:title>
<ns0:description xml:lang="en-US">Is it necessary for a secondary nameserver to receive zone data
via zone transfer from the primary server? If not, follow the instructions in
this section. If so, see the next section for instructions on protecting zone
transfers.
Add or correct the following directive within <html:code>/etc/named.conf</html:code>:
<html:pre>options {
allow-transfer { none; };
...
}</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">If both the primary and secondary nameserver are under your control,
or if you have only one nameserver, it may be possible to use an external
configuration management mechanism to distribute zone updates. In that case, it
is not necessary to allow zone transfers within BIND itself, so they should be
disabled to avoid the potential for abuse.</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="dns_server_authenticate_zone_transfers" selected="false" severity="low">
<ns0:title xml:lang="en-US">Authenticate Zone Transfers</ns0:title>
<ns0:description xml:lang="en-US">If it is necessary for a secondary nameserver to receive zone data
via zone transfer from the primary server, follow the instructions here. Use
dnssec-keygen to create a symmetric key file in the current directory:
<html:pre>$ cd /tmp
$ sudo dnssec-keygen -a HMAC-MD5 -b 128 -n HOST dns.example.com
Kdns.example.com .+aaa +iiiii</html:pre>
This output is the name of a file containing the new key. Read the file to find
the base64-encoded key string:
<html:pre>$ sudo cat Kdns.example.com .+NNN +MMMMM .key
dns.example.com IN KEY 512 3 157 base64-key-string</html:pre>
Add the directives to <html:code>/etc/named.conf</html:code> on the primary server:
<html:pre>key zone-transfer-key {
algorithm hmac-md5;
secret "base64-key-string ";
};
zone "example.com " IN {
type master;
allow-transfer { key zone-transfer-key; };
...
};</html:pre>
Add the directives below to <html:code>/etc/named.conf</html:code> on the secondary nameserver:
<html:pre>key zone-transfer-key {
algorithm hmac-md5;
secret "base64-key-string ";
};
server IP-OF-MASTER {
keys { zone-transfer-key; };
};
zone "example.com " IN {
type slave;
masters { IP-OF-MASTER ; };
...
};</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">The purpose of the dnssec-keygen command is to
create the shared secret string base64-key-string. Once this secret has been
obtained and inserted into named.conf on the primary and secondary servers, the
key files Kdns.example.com .+NNN +MMMMM .key and Kdns.example.com .+NNN +MMMMM
.private are no longer needed, and may safely be deleted.</ns0:warning>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">The BIND transaction signature (TSIG) functionality allows primary
and secondary nameservers to use a shared secret to verify authorization to
perform zone transfers. This method is more secure than using IP-based limiting
to restrict nameserver access, since IP addresses can be easily spoofed.
However, if you cannot configure TSIG between your servers because, for
instance, the secondary nameserver is not under your control and its
administrators are unwilling to configure TSIG, you can configure an
allow-transfer directive with numerical IP addresses or ACLs as a last resort.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="dns_server_disable_dynamic_updates" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Dynamic Updates</ns0:title>
<ns0:description xml:lang="en-US">Is there a mission-critical reason to enable the risky dynamic
update functionality? If not, edit <html:code>/etc/named.conf</html:code>. For each zone
specification, correct the following directive if necessary:
<html:pre>zone "example.com " IN {
allow-update { none; };
...
};</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Dynamic updates allow remote servers to add, delete, or modify any
entries in your zone file. Therefore, they should be considered highly risky,
and disabled unless there is a very good reason for their use. If dynamic
updates must be allowed, IP-based ACLs are insufficient protection, since they
are easily spoofed. Instead, use TSIG keys (see the previous section for an
example), and consider using the update-policy directive to restrict changes to
only the precise type of change needed.</ns0:rationale>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="ftp">
<ns0:title xml:lang="en-US">FTP Server</ns0:title>
<ns0:description xml:lang="en-US">FTP is a common method for allowing remote access to
files. Like telnet, the FTP protocol is unencrypted, which means
that passwords and other data transmitted during the session can be
captured and that the session is vulnerable to hijacking.
Therefore, running the FTP server software is not recommended.
<html:br /><html:br />
However, there are some FTP server configurations which may
be appropriate for some environments, particularly those which
allow only read-only anonymous access as a means of downloading
data available to the public.</ns0:description>
<ns0:Group id="disabling_vsftpd">
<ns0:title xml:lang="en-US">Disable vsftpd if Possible</ns0:title>
<ns0:description xml:lang="en-US">To minimize attack surface, disable vsftpd if at all
possible.</ns0:description>
<ns0:Rule id="service_vsftpd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable vsftpd Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>vsftpd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig vsftpd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">
Running FTP server software provides a network-based avenue
of attack, and should be disabled if not needed.
Furthermore, the FTP protocol is unencrypted and creates
a risk of compromising sensitive information.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_vsftpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable vsftpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_vsftpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service vsftpd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- vsftpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_vsftpd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_vsftpd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_vsftpd_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall vsftpd Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>vsftpd</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase vsftpd</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">
Removing the vsftpd package decreases the risk of its
accidental activation.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_vsftpd_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_vsftpd_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="ftp_use_vsftpd">
<ns0:title xml:lang="en-US">Use vsftpd to Provide FTP Service if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If your use-case requires FTP service, install and
set-up vsftpd to provide it.</ns0:description>
<ns0:Rule id="package_vsftpd_installed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install vsftpd Package</ns0:title>
<ns0:description xml:lang="en-US">If this machine must operate as an FTP server, install the <html:code>vsftpd</html:code> package via the standard channels.
<html:pre>$ sudo yum install vsftpd</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">After Red Hat Enterprise Linux 2.1, Red Hat switched from distributing wu-ftpd with Red Hat Enterprise Linux to distributing vsftpd. For security
and for consistency with future Red Hat releases, the use of vsftpd is recommended.</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_vsftpd_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install vsftpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_vsftpd_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure vsftpd is installed
package:
name="{{item}}"
state=present
with_items:
- vsftpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_vsftpd_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_vsftpd
class install_vsftpd {
package { 'vsftpd':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_vsftpd_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=vsftpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_vsftpd_installed:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="ftp_configure_vsftpd">
<ns0:title xml:lang="en-US">Use vsftpd to Provide FTP Service if Necessary</ns0:title>
<ns0:description xml:lang="en-US">The primary vsftpd configuration file is
<html:code>/etc/vsftpd.conf</html:code>, if that file exists, or
<html:code>/etc/vsftpd/vsftpd.conf</html:code> if it does not.
</ns0:description>
<ns0:Rule id="ftp_log_transactions" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable Logging of All FTP Transactions</ns0:title>
<ns0:description xml:lang="en-US">Add or correct the following configuration options within the <html:code>vsftpd</html:code>
configuration file, located at <html:code>/etc/vsftpd/vsftpd.conf</html:code>:
<html:pre>xferlog_enable=YES
xferlog_std_format=NO
log_ftp_protocol=YES</html:pre>
</ns0:description>
<ns0:warning category="general" xml:lang="en-US">If verbose logging to <html:code>vsftpd.log</html:code> is done, sparse logging of downloads to <html:code>/var/log/xferlog</html:code> will not also occur. However, the information about what files were downloaded is included in the information logged to <html:code>vsftpd.log</html:code></ns0:warning>
<ns0:rationale xml:lang="en-US">To trace malicious activity facilitated by the FTP service, it must be configured to ensure that all commands sent to
the FTP server are logged using the verbose vsftpd log
format. The default vsftpd log file is <html:code>/var/log/vsftpd.log</html:code>.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_log_transactions:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ftp_log_transactions_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ftp_present_banner" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Create Warning Banners for All FTP Users</ns0:title>
<ns0:description xml:lang="en-US">Edit the vsftpd configuration file, which resides at <html:code>/etc/vsftpd/vsftpd.conf</html:code>
by default. Add or correct the following configuration options:
<html:pre>banner_file=/etc/issue</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">48</ns0:reference>
<ns0:rationale xml:lang="en-US">This setting will cause the system greeting banner to be used for FTP connections as well.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_present_banner:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-ftp_present_banner_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="ftp_restrict_users">
<ns0:title xml:lang="en-US">Restrict the Set of Users Allowed to Access FTP</ns0:title>
<ns0:description xml:lang="en-US">This section describes how to disable non-anonymous (password-based) FTP logins, or, if it is not possible to
do this entirely due to legacy applications, how to restrict insecure FTP login to only those users who have an
identified need for this access.</ns0:description>
<ns0:Rule id="ftp_restrict_to_anon" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Access to Anonymous Users if Possible</ns0:title>
<ns0:description xml:lang="en-US">Is there a mission-critical reason for users to transfer files to/from their own accounts using FTP, rather than
using a secure protocol like SCP/SFTP? If not, edit the vsftpd configuration file. Add or correct the following configuration option:
<html:pre>local_enable=NO</html:pre>
If non-anonymous FTP logins are necessary, follow the guidance in the remainder of this section to secure
these logins as much as possible.</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">AC-3</ns0:reference>
<ns0:rationale xml:lang="en-US">The use of non-anonymous FTP logins is strongly discouraged. Since SSH clients and servers are widely available, and since SSH provides support for a transfer mode which resembles FTP in user interface, there is no good reason to allow password-based FTP access. </ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_restrict_to_anon:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ftp_limit_users" selected="false" severity="low">
<ns0:title xml:lang="en-US">Limit Users Allowed FTP Access if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If there is a mission-critical reason for users to access their accounts via the insecure FTP protocol, limit the set of users who are allowed this access. Edit the vsftpd configuration file. Add or correct the following configuration options:
<html:pre>userlist_enable=YES
userlist_file=/etc/vsftp.ftpusers
userlist_deny=NO</html:pre>
Edit the file <html:code>/etc/vsftp.ftpusers</html:code>. For each user USERNAME who should be allowed to access the system via FTP, add a line containing that user's name:
<html:pre>USERNAME</html:pre>
If anonymous access is also required, add the anonymous usernames to <html:code>/etc/vsftp.ftpusers</html:code> as well.
<html:pre>anonymous
ftp</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">Historically, the file <html:code>/etc/ftpusers</html:code> contained a list of users who were not allowed to access the system via FTP. It was used to prevent system users such as the root user from logging in via the insecure FTP protocol. However, when the configuration option <html:code>userlist deny=NO</html:code> is set, vsftpd interprets ftpusers as the set of users who are allowed to login via FTP. Since it should be possible for most users to access their accounts via secure protocols, it is recommended that this setting be used, so that non-anonymous FTP access can be limited to legacy users who have been explicitly identified.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_limit_users:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Rule id="ftp_disable_uploads" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable FTP Uploads if Possible</ns0:title>
<ns0:description xml:lang="en-US">Is there a mission-critical reason for users to upload files via FTP? If not,
edit the vsftpd configuration file to add or correct the following configuration options:
<html:pre>write_enable=NO</html:pre>
If FTP uploads are necessary, follow the guidance in the remainder of this section to secure these transactions
as much as possible.</ns0:description>
<ns0:rationale xml:lang="en-US">Anonymous FTP can be a convenient way to make files available for universal download. However, it is less
common to have a need to allow unauthenticated users to place files on the FTP server. If this must be done, it
is necessary to ensure that files cannot be uploaded and downloaded from the same directory.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_disable_uploads:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="ftp_home_partition" selected="false" severity="low">
<ns0:title xml:lang="en-US">Place the FTP Home Directory on its Own Partition</ns0:title>
<ns0:description xml:lang="en-US">By default, the anonymous FTP root is the home directory of the FTP user account. The df command can
be used to verify that this directory is on its own partition.</ns0:description>
<ns0:rationale xml:lang="en-US">If there is a mission-critical reason for anonymous users to upload files, precautions must be taken to prevent
these users from filling a disk used by other services.</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="ftp_configure_firewall" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Firewalls to Protect the FTP Server</ns0:title>
<ns0:description xml:lang="en-US">By default, <html:code>iptables</html:code>
blocks access to the ports used by the web server.
To configure <html:code>iptables</html:code> to allow port
21 traffic one must edit
<html:code>/etc/sysconfig/iptables</html:code> and
<html:code>/etc/sysconfig/ip6tables</html:code> (if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG
and DROP lines for the INPUT chain:
<html:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 21 -j ACCEPT</html:pre>
Edit the file <html:code>/etc/sysconfig/iptables-config</html:code>. Ensure that the space-separated list of modules contains
the FTP connection tracking module:
<html:pre>IPTABLES_MODULES="ip_conntrack_ftp"</html:pre></ns0:description>
<ns0:rationale xml:lang="en-US">These settings configure iptables to allow connections to an FTP server. The first line allows initial connections
to the FTP server port.
FTP is an older protocol which is not very compatible with firewalls. During the initial FTP dialogue, the client
and server negotiate an arbitrary port to be used for data transfer. The <html:code>ip_conntrack_ftp</html:code> module is used by
iptables to listen to that dialogue and allow connections to the data ports which FTP negotiates. This allows an
FTP server to operate on a machine which is running a firewall.</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-ftp_configure_firewall:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="http">
<ns0:title xml:lang="en-US">Web Server</ns0:title>
<ns0:description xml:lang="en-US">The web server is responsible for providing access to
content via the HTTP protocol. Web servers represent a significant
security risk because:
<html:br /><html:br />
<html:ul><html:li>The HTTP port is commonly probed by malicious sources</html:li><html:li>Web server software is very complex, and includes a long
history of vulnerabilities</html:li><html:li>The HTTP protocol is unencrypted and vulnerable to passive
monitoring</html:li></html:ul>
<html:br /><html:br />
The system's default web server software is Apache 2 and is
provided in the RPM package <html:code>httpd</html:code>.</ns0:description>
<ns0:Group id="disabling_httpd">
<ns0:title xml:lang="en-US">Disable Apache if Possible</ns0:title>
<ns0:description xml:lang="en-US">If Apache was installed and activated, but the system
does not need to act as a web server, then it should be disabled
and removed from the system.
</ns0:description>
<ns0:Rule id="service_httpd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable httpd Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>httpd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig httpd off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Running web server software provides a network-based avenue
of attack, and should be disabled if not needed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_httpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable httpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_httpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service httpd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- httpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_httpd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_httpd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_httpd_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall httpd Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>httpd</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase httpd</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
If there is no need to make the web server software available,
removing it provides a safeguard against its activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_httpd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove httpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_httpd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure httpd is removed
package:
name="{{item}}"
state=absent
with_items:
- httpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_httpd_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_httpd
class remove_httpd {
package { 'httpd':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_httpd_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=httpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_httpd_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_httpd_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="installing_httpd">
<ns0:title xml:lang="en-US">Install Apache if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If <html:code>httpd</html:code> was not installed and activated, but the system
needs to act as a web server, then it should be installed on the system. Follow these
guidelines to install it defensively. The <html:code>httpd</html:code> package can be installed with
the following command:
<html:pre>$ sudo yum install httpd</html:pre>
This method of installation is recommended over installing the "Web Server"
package group during the system installation process. The Web Server package
group includes many packages which are likely extraneous, while the
command-line method installs only the required <html:code>httpd</html:code> package itself.
</ns0:description>
<ns0:Group id="httpd_minimal_modules_installed">
<ns0:title xml:lang="en-US">Confirm Minimal Built-in Modules Installed</ns0:title>
<ns0:description xml:lang="en-US">The default <html:code>httpd</html:code> installation minimizes the number of
modules that are compiled directly into the binary (<html:code>core prefork http_core
mod_so</html:code>). This minimizes risk by limiting the capabilities allowed by the
web server.
Query the set of compiled-in modules using the following command:
<html:pre>$ httpd -l</html:pre>
If the number of compiled-in modules is significantly larger than the
aforementioned set, this guide recommends re-installing <html:code>httpd</html:code> with a
reduced configuration. Minimizing the number of modules that are compiled into
the <html:code>httpd</html:code> binary, reduces risk by limiting the capabilities allowed by
the webserver.
</ns0:description>
</ns0:Group>
</ns0:Group>
<ns0:Group id="securing_httpd">
<ns0:title xml:lang="en-US">Secure Apache Configuration</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>httpd</html:code> configuration file is
<html:code>/etc/httpd/conf/httpd.conf</html:code>. Apply the recommendations in the remainder
of this section to this file.</ns0:description>
<ns0:Group id="httpd_restrict_info_leakage">
<ns0:title xml:lang="en-US">Restrict Web Server Information Leakage</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>ServerTokens</html:code> and <html:code>ServerSignature</html:code> directives determine how
much information the web server discloses about the configuration of the
system.</ns0:description>
<ns0:Rule id="httpd_servertokens_prod" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set httpd ServerTokens Directive to Prod</ns0:title>
<ns0:description xml:lang="en-US"><html:code>ServerTokens Prod</html:code> restricts information in page headers, returning only the word "Apache."
<html:br /><html:br />
Add or correct the following directive in <html:code>/etc/httpd/conf/httpd.conf</html:code>:
<html:pre>ServerTokens Prod</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Information disclosed to clients about the configuration of the web server and system could be used
to plan an attack on the given system. This information disclosure should be restricted to a minimum.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_serversignature_off" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set httpd ServerSignature Directive to Off</ns0:title>
<ns0:description xml:lang="en-US"><html:code>ServerSignature Off</html:code> restricts <html:code>httpd</html:code> from displaying server version number
on error pages.
<html:br /><html:br />
Add or correct the following directive in <html:code>/etc/httpd/conf/httpd.conf</html:code>:
<html:pre>ServerSignature Off</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Information disclosed to clients about the configuration of the web server and system could be used
to plan an attack on the given system. This information disclosure should be restricted to a minimum.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="httpd_minimize_loadable_modules">
<ns0:title xml:lang="en-US">Minimize Web Server Loadable Modules</ns0:title>
<ns0:description xml:lang="en-US">
A default installation of <html:code>httpd</html:code> includes a plethora of dynamically shared objects (DSO)
that are loaded at run-time. Unlike the aforementioned compiled-in modules, a DSO can be
disabled in the configuration file by removing the corresponding LoadModule directive.
<html:br /><html:br />
Note: A DSO only provides additional functionality if associated directives are included
in the <html:code>httpd</html:code> configuration file. It should also be noted that removing a DSO will produce
errors on <html:code>httpd</html:code> startup if the configuration file contains directives that apply to that
module. Refer to <html:code><html:a href="http://httpd.apache.org/docs/">http://httpd.apache.org/docs/</html:a></html:code> for details on which directives
are associated with each DSO.
<html:br /><html:br />
Following each DSO removal, the configuration can be tested with the following command
to check if everything still works:
<html:pre>$ sudo service httpd configtest</html:pre>
The purpose of each of the modules loaded by default will now be addressed one at a time.
If none of a module's directives are being used, remove it.
</ns0:description>
<ns0:Group id="httpd_core_modules">
<ns0:title xml:lang="en-US">httpd Core Modules</ns0:title>
<ns0:description xml:lang="en-US">
These modules comprise a basic subset of modules that are likely needed for base <html:code>httpd</html:code>
functionality; ensure they are not commented out in <html:code>/etc/httpd/conf/httpd.conf</html:code>:
<html:pre>LoadModule auth_basic_module modules/mod_auth_basic.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mome.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so</html:pre>
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:description>
<ns0:Group id="httpd_basic_authentication">
<ns0:title xml:lang="en-US">Minimize Modules for HTTP Basic Authentication</ns0:title>
<ns0:description xml:lang="en-US">
The following modules are necessary if this web server will provide content that will
be restricted by a password.
<html:br /><html:br />
Authentication can be performed using local plain text password files (<html:code>authn_file</html:code>),
local DBM password files (<html:code>authn_dbm</html:code>) or an LDAP directory. The only module required by
the web server depends on your choice of authentication. Comment out the modules you don't
need from the following:
<html:pre>LoadModule authn_file_module modules/mod_authn_file.so
LoadModule authn_dbm_module modules/mod_authn_dbm.so</html:pre>
<html:code>authn_alias</html:code> allows for authentication based on aliases. <html:code>authn_anon</html:code>
allows anonymous authentication similar to that of anonymous ftp sites. <html:code>authz_owner</html:code>
allows authorization based on file ownership. <html:code>authz_dbm</html:code> allows for authorization
based on group membership if the web server is using DBM authentication.
<html:br /><html:br />
If the above functionality is unnecessary, comment out the related module:
<html:pre>#LoadModule authn_alias_module modules/mod_authn_alias.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authz_owner_module modules/mod_authz_owner.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so</html:pre>
</ns0:description>
</ns0:Group>
<ns0:Rule id="httpd_digest_authentication" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable HTTP Digest Authentication</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>auth_digest</html:code> module provides encrypted authentication sessions.
If this functionality is unnecessary, comment out the related module:
<html:pre>#LoadModule auth_digest_module modules/mod_auth_digest.so</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_mod_rewrite" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable HTTP mod_rewrite</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>mod_rewrite</html:code> module is very powerful and can protect against
certain classes of web attacks. However, it is also very complex and has a
significant history of vulnerabilities itself. If its functionality is
unnecessary, comment out the related module:
<html:pre>#LoadModule rewrite_module modules/mod_rewrite.so</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_ldap_support" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable LDAP Support</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>ldap</html:code> module provides HTTP authentication via an LDAP directory.
If its functionality is unnecessary, comment out the related modules:
<html:pre>#LoadModule ldap_module modules/mod_ldap.so
#LoadModule authnz_ldap_module modules/mod_authnz_ldap.so</html:pre>
If LDAP is to be used, SSL encryption should be used as well.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_server_side_includes" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Server Side Includes</ns0:title>
<ns0:description xml:lang="en-US">
Server Side Includes provide a method of dynamically generating web pages through the
insertion of server-side code. However, the technology is also deprecated and
introduces significant security concerns.
If this functionality is unnecessary, comment out the related module:
<html:pre>#LoadModule include_module modules/mod_include.so</html:pre>
If there is a critical need for Server Side Includes, they should be enabled with the
option <html:code>IncludesNoExec</html:code> to prevent arbitrary code execution. Additionally, user
supplied data should be encoded to prevent cross-site scripting vulnerabilities.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_mime_magic" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable MIME Magic</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>mime_magic</html:code> module provides a second layer of MIME support that in most configurations
is likely extraneous. If its functionality is unnecessary, comment out the related module:
<html:pre>#LoadModule mime_magic_module modules/mod_mime_magic.so</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_webdav" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable WebDAV (Distributed Authoring and Versioning)</ns0:title>
<ns0:description xml:lang="en-US">
WebDAV is an extension of the HTTP protocol that provides distributed and
collaborative access to web content. If its functionality is unnecessary,
comment out the related modules:
<html:pre>#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so</html:pre>
If there is a critical need for WebDAV, extra care should be taken in its configuration.
Since DAV access allows remote clients to manipulate server files, any location on the
server that is DAV enabled should be protected by access controls.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server, reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_server_activity_status" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Server Activity Status</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>status</html:code> module provides real-time access to statistics on the internal operation of
the web server. This may constitute an unnecessary information leak and should be disabled
unless necessary. To do so, comment out the related module:
<html:pre>#LoadModule status_module modules/mod_status.so</html:pre>
If there is a critical need for this module, ensure that access to the status
page is properly restricted to a limited set of hosts in the status handler
configuration.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_server_configuration_display" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Web Server Configuration Display</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>info</html:code> module creates a web page illustrating the configuration of the web server. This
can create an unnecessary security leak and should be disabled.
If its functionality is unnecessary, comment out the module:
<html:pre>#LoadModule info_module modules/mod_info.so</html:pre>
If there is a critical need for this module, use the <html:code>Location</html:code> directive to provide
an access control list to restrict access to the information.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_url_correction" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable URL Correction on Misspelled Entries</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>speling</html:code> module attempts to find a document match by allowing one misspelling in an
otherwise failed request. If this functionality is unnecessary, comment out the module:
<html:pre>#LoadModule speling_module modules/mod_speling.so</html:pre>
This functionality weakens server security by making site enumeration easier.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_proxy_support" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Proxy Support</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>proxy</html:code> module provides proxying support, allowing <html:code>httpd</html:code> to forward requests and
serve as a gateway for other servers. If its functionality is unnecessary, comment out the module:
<html:pre>#LoadModule proxy_module modules/mod_proxy.so</html:pre>
If proxy support is needed, load <html:code>mod_proxy</html:code> and the appropriate proxy protocol handler
module (one of <html:code>mod_proxy_http</html:code>, <html:code>mod_proxy_ftp</html:code>, or <html:code>mod_proxy_connect</html:code>). Additionally,
make certain that a server is secure before enabling proxying, as open proxy servers
are a security risk. <html:code>mod_proxy_balancer</html:code> enables load balancing, but requires that
<html:code>mod status</html:code> be enabled.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_cache_support" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Cache Support</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>cache</html:code> module allows <html:code>httpd</html:code> to cache data, optimizing access to
frequently accessed content. However, it introduces potential security flaws
such as the possibility of circumventing <html:code>Allow</html:code> and
<html:code>Deny</html:code> directives.
<html:br /><html:br /> If this functionality is
unnecessary, comment out the module:
<html:pre>#LoadModule cache_module modules/mod_cache.so</html:pre>
If caching is required, it should not be enabled for any limited-access content.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_cgi_support" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable CGI Support</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>cgi</html:code> module allows HTML to interact with the CGI web programming language.
<html:br /><html:br />
If this functionality is unnecessary, comment out the module:
<html:pre>#LoadModule cgi_module modules/mod_cgi.so</html:pre>
If the web server requires the use of CGI, enable <html:code>mod_cgi</html:code>.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
<ns0:Group id="httpd_optional_components">
<ns0:title xml:lang="en-US">Minimize Various Optional Components</ns0:title>
<ns0:description xml:lang="en-US">
The following modules perform very specific tasks, sometimes providing access to
just a few additional directives. If such functionality is not required (or if you
are not using these directives), comment out the associated module:
<html:ul><html:li>External filtering (response passed through external program prior to client delivery)
<html:pre>#LoadModule ext_filter_module modules/mod_ext_filter.so</html:pre></html:li><html:li>User-specified Cache Control and Expiration
<html:pre>#LoadModule expires_module modules/mod_expires.so</html:pre></html:li><html:li>Compression Output Filter (provides content compression prior to client delivery)
<html:pre>#LoadModule deflate_module modules/mod_deflate.so</html:pre></html:li><html:li>HTTP Response/Request Header Customization
<html:pre>#LoadModule headers_module modules/mod_headers.so</html:pre></html:li><html:li>User activity monitoring via cookies
<html:pre>#LoadModule usertrack_module modules/mod_usertrack.so</html:pre></html:li><html:li>Dynamically configured mass virtual hosting
<html:pre>#LoadModule vhost_alias_module modules/mod_vhost_alias.so</html:pre></html:li></html:ul>
Minimizing the number of loadable modules available to the web server reduces risk
by limiting the capabilities allowed by the web server.
</ns0:description>
</ns0:Group>
<ns0:Group id="httpd_minimize_config_files_included">
<ns0:title xml:lang="en-US">Minimize Configuration Files Included</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>Include</html:code> directive directs <html:code>httpd</html:code> to load supplementary configuration files
from a provided path. The default configuration loads all files that end in <html:code>.conf</html:code>
from the <html:code>/etc/httpd/conf.d</html:code> directory.
<html:br /><html:br />
To restrict excess configuration, the following line should be commented out and
replaced with <html:code>Include</html:code> directives that only reference required configuration files:
<html:pre>#Include conf.d/*.conf</html:pre>
If the above change was made, ensure that the SSL encryption remains loaded by
explicitly including the corresponding configuration file:
<html:pre>Include conf.d/ssl.conf</html:pre>
If PHP is necessary, a similar alteration must be made:
<html:pre>Include conf.d/php.conf</html:pre>
Explicitly listing the configuration files to be loaded during web server start-up avoids
the possibility of unwanted or malicious configuration files to be automatically included as
part of the server's running configuration.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="httpd_directory_restrictions">
<ns0:title xml:lang="en-US">Directory Restrictions</ns0:title>
<ns0:description xml:lang="en-US">
The Directory tags in the web server configuration file allow finer grained access
control for a specified directory. All web directories should be configured on a
case-by-case basis, allowing access only where needed.
</ns0:description>
<ns0:Rule id="httpd_restrict_root_directory" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Root Directory</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>httpd</html:code> root directory should always have the most restrictive configuration enabled.
<html:pre><Directory / >
Options None
AllowOverride None
Order allow,deny
</Directory></html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
The Web Server's root directory content should be protected from unauthorized access
by web clients.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_restrict_web_directory" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Web Directory</ns0:title>
<ns0:description xml:lang="en-US">
The default configuration for the web (<html:code>/var/www/html</html:code>) Directory allows directory
indexing (<html:code>Indexes</html:code>) and the following of symbolic links (<html:code>FollowSymLinks</html:code>).
Neither of these is recommended.
<html:br /><html:br />
The <html:code>/var/www/html</html:code> directory hierarchy should not be viewable via the web, and
symlinks should only be followed if the owner of the symlink also owns the linked file.
<html:br /><html:br />
Ensure that this policy is adhered to by altering the related section of the configuration:
<html:pre><Directory "/var/www/html">
# ...
Options SymLinksIfOwnerMatch
# ...
</Directory></html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Access to the web server's directory hierarchy could allow access to unauthorized files
by web clients. Following symbolic links could also allow such access.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_restrict_critical_directories" selected="false" severity="low">
<ns0:title xml:lang="en-US">Restrict Other Critical Directories</ns0:title>
<ns0:description xml:lang="en-US">
All accessible web directories should be configured with similarly restrictive settings.
The <html:code>Options</html:code> directive should be limited to necessary functionality and the <html:code>AllowOverride</html:code>
directive should be used only if needed. The <html:code>Order</html:code> and <html:code>Deny</html:code> access control tags
should be used to deny access by default, allowing access only where necessary.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Directories accessible from a web client should be configured with the least amount of
access possible in order to avoid unauthorized access to restricted content or server information.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="httpd_limit_available_methods" selected="false" severity="low">
<ns0:title xml:lang="en-US">Limit Available Methods</ns0:title>
<ns0:description xml:lang="en-US">
Web server methods are defined in section 9 of RFC 2616 (<html:a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</html:a>).
If a web server does not require the implementation of all available methods,
they should be disabled.
<html:br /><html:br />
Note: <html:code>GET</html:code> and <html:code>POST</html:code> are the most common methods. A majority of the others
are limited to the WebDAV protocol.
<html:pre><Directory /var/www/html>
# ...
# Only allow specific methods (this command is case-sensitive!)
<LimitExcept GET POST>
Order allow,deny
</LimitExcept>
# ...
</Directory></html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Minimizing the number of available methods to the web client reduces risk
by limiting the capabilities allowed by the web server.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="httpd_modules_improve_security">
<ns0:title xml:lang="en-US">Use Appropriate Modules to Improve httpd's Security</ns0:title>
<ns0:description xml:lang="en-US">
Among the modules available for <html:code>httpd</html:code> are several whose use may improve the
security of the web server installation. This section recommends and discusses
the deployment of security-relevant modules.
</ns0:description>
<ns0:Group id="httpd_deploy_mod_ssl">
<ns0:title xml:lang="en-US">Deploy mod_ssl</ns0:title>
<ns0:description xml:lang="en-US">
Because HTTP is a plain text protocol, all traffic is susceptible to passive
monitoring. If there is a need for confidentiality, SSL should be configured
and enabled to encrypt content.
<html:br /><html:br />
Note: <html:code>mod_nss</html:code> is a FIPS 140-2 certified alternative to <html:code>mod_ssl</html:code>.
The modules share a considerable amount of code and should be nearly identical
in functionality. If FIPS 140-2 validation is required, then <html:code>mod_nss</html:code> should
be used. If it provides some feature or its greater compatibility is required,
then <html:code>mod_ssl</html:code> should be used.
</ns0:description>
<ns0:Rule id="httpd_install_mod_ssl" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install mod_ssl</ns0:title>
<ns0:description xml:lang="en-US">
Install the <html:code>mod_ssl</html:code> module:
<html:pre>$ sudo yum install mod_ssl</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US"><html:code>mod_ssl</html:code> provides encryption capabilities for the <html:code>httpd</html:code> Web server. Unencrypted
content is transmitted in plain text which could be passively monitored and accessed by
unauthorized parties.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="httpd_deploy_mod_security">
<ns0:title xml:lang="en-US">Deploy mod_security</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>security</html:code> module provides an application level firewall for <html:code>httpd</html:code>.
Following its installation with the base ruleset, specific configuration advice can be found at
<html:a href="http://www.modsecurity.org/">http://www.modsecurity.org/</html:a> to design a policy that best matches the security needs of
the web applications. Usage of <html:code>mod_security</html:code> is highly recommended for some environments,
but it should be noted this module does not ship with Red Hat Enterprise Linux itself,
and instead is provided via Extra Packages for Enterprise Linux (EPEL).
For more information on EPEL please refer to <html:a href="http://fedoraproject.org/wiki/EPEL">http://fedoraproject.org/wiki/EPEL</html:a>.
</ns0:description>
<ns0:Rule id="httpd_install_mod_security" selected="false" severity="low">
<ns0:title xml:lang="en-US">Install mod_security</ns0:title>
<ns0:description xml:lang="en-US">
Install the <html:code>security</html:code> module:
<html:pre>$ sudo yum install mod_security</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US"><html:code>mod_security</html:code> provides an additional level of protection for the web server by
enabling the administrator to implement content access policies and filters at the
application layer.
</ns0:rationale>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="httpd_use_dos_protection_modules">
<ns0:title xml:lang="en-US">Use Denial-of-Service Protection Modules</ns0:title>
<ns0:description xml:lang="en-US">
Denial-of-service attacks are difficult to detect and prevent while maintaining
acceptable access to authorized users. However, some traffic-shaping
modules can be used to address the problem. Well-known DoS protection modules include:
<html:pre>mod_cband mod_bwshare mod_limitipconn mod_evasive</html:pre>
Denial-of-service prevention should be implemented for a web server if such a threat exists.
However, specific configuration details are very dependent on the environment and often best left
at the discretion of the administrator.
</ns0:description>
</ns0:Group>
<ns0:Group id="httpd_configure_php_securely">
<ns0:title xml:lang="en-US">Configure PHP Securely</ns0:title>
<ns0:description xml:lang="en-US">
PHP is a widely-used and often misconfigured server-side scripting language. It should
be used with caution, but configured appropriately when needed.
<html:br /><html:br />
Review <html:code>/etc/php.ini</html:code> and make the following changes if possible:
<html:pre># Do not expose PHP error messages to external users
display_errors = Off
# Enable safe mode
safe_mode = On
# Only allow access to executables in isolated directory
safe_mode_exec_dir = php-required-executables-path
# Limit external access to PHP environment
safe_mode_allowed_env_vars = PHP_
# Restrict PHP information leakage
expose_php = Off
# Log all errors
log_errors = On
# Do not register globals for input data
register_globals = Off
# Minimize allowable PHP post size
post_max_size = 1K
# Ensure PHP redirects appropriately
cgi.force_redirect = 0
# Disallow uploading unless necessary
file_uploads = Off
# Disallow treatment of file requests as fopen calls
allow_url_fopen = Off
# Enable SQL safe mode
sql.safe_mode = On
</html:pre>
</ns0:description>
</ns0:Group>
<ns0:Group id="httpd_configure_os_protect_web_server">
<ns0:title xml:lang="en-US">Configure Operating System to Protect Web Server</ns0:title>
<ns0:description xml:lang="en-US">
The following configuration steps should be taken on the machine which hosts the
web server, in order to provide as safe an environment as possible for the web server.
</ns0:description>
<ns0:Group id="httpd_restrict_file_dir_access">
<ns0:title xml:lang="en-US">Restrict File and Directory Access</ns0:title>
<ns0:description xml:lang="en-US">
Minimize access to critical <html:code>httpd</html:code> files and directories.
</ns0:description>
<ns0:Rule id="dir_perms_var_log_httpd" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Permissions on the /var/log/httpd/ Directory</ns0:title>
<ns0:description xml:lang="en-US">
Ensure that the permissions on the web server log directory is set to 700:
<html:pre>$ sudo chmod 700 /var/log/httpd/</html:pre>
This is its default setting.
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Access to the web server's log files may allow an unauthorized user or attacker
to access information about the web server or alter the server's log files.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dir_perms_var_log_httpd:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dir_perms_etc_httpd_conf" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Permissions on the /etc/httpd/conf/ Directory</ns0:title>
<ns0:description xml:lang="en-US">
Set permissions on the web server configuration directory to 750:
<html:pre>$ sudo chmod 750 /etc/httpd/conf/</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Access to the web server's configuration files may allow an unauthorized user or attacker
to access information about the web server or alter the server's configuration files.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dir_perms_etc_httpd_conf:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="file_permissions_httpd_server_conf_files" selected="false" severity="low">
<ns0:title xml:lang="en-US">Set Permissions on All Configuration Files Inside /etc/httpd/conf/</ns0:title>
<ns0:description xml:lang="en-US">
Set permissions on the web server configuration files to 640:
<html:pre>$ sudo chmod 640 /etc/httpd/conf/*</html:pre>
</ns0:description>
<ns0:reference href="http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r4.pdf">CM-7</ns0:reference>
<ns0:rationale xml:lang="en-US">
Access to the web server's configuration files may allow an unauthorized user or attacker
to access information about the web server or to alter the server's configuration files.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-file_permissions_httpd_server_conf_files:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="httpd_configure_iptables">
<ns0:title xml:lang="en-US">Configure iptables to Allow Access to the Web Server</ns0:title>
<ns0:description xml:lang="en-US">
By default, <html:code>iptables</html:code>
blocks access to the ports used by the web server.
To configure <html:code>iptables</html:code> to allow port
80 traffic one must edit
<html:code>/etc/sysconfig/iptables</html:code> and
<html:code>/etc/sysconfig/ip6tables</html:code> (if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG
and DROP lines for the INPUT chain:
<html:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT</html:pre>
To configure <html:code>iptables</html:code> to allow port
443 traffic one must edit
<html:code>/etc/sysconfig/iptables</html:code> and
<html:code>/etc/sysconfig/ip6tables</html:code> (if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG
and DROP lines for the INPUT chain:
<html:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 443 -j ACCEPT</html:pre>
</ns0:description>
</ns0:Group>
<ns0:Group id="httpd_chroot">
<ns0:title xml:lang="en-US">Run httpd in a chroot Jail if Practical</ns0:title>
<ns0:description xml:lang="en-US">
Running <html:code>httpd</html:code> inside a <html:code>chroot</html:code> jail is designed to isolate the
web server process to a small section of the filesystem, limiting the damage if
it is compromised. Versions of Apache greater than 2.2.10 (such as the one
included with Red Hat Enterprise Linux 6) provide the <html:code>ChrootDir</html:code> directive. To run Apache
inside a chroot jail in <html:code>/chroot/apache</html:code>, add the following line to
<html:code>/etc/httpd/conf/httpd.conf</html:code>: <html:pre>ChrootDir /chroot/apache</html:pre> This
necessitates placing all files required by <html:code>httpd</html:code> inside
<html:code>/chroot/apache</html:code> , including <html:code>httpd</html:code>'s binaries, modules,
configuration files, and served web pages. The details of this configuration
are beyond the scope of this guide. This may also require additional SELinux
configuration.
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="imap">
<ns0:title xml:lang="en-US">IMAP and POP3 Server</ns0:title>
<ns0:description xml:lang="en-US">Dovecot provides IMAP and POP3 services. It is not
installed by default. The project page at <html:a href="http://www.dovecot.org">http://www.dovecot.org</html:a>
contains more detailed information about Dovecot
configuration.</ns0:description>
<ns0:Group id="disabling_dovecot">
<ns0:title xml:lang="en-US">Disable Dovecot</ns0:title>
<ns0:description xml:lang="en-US">If the system does not need to operate as an IMAP or
POP3 server, the dovecot software should be disabled and removed.
</ns0:description>
<ns0:Rule id="service_dovecot_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Dovecot Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>dovecot</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig dovecot off</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Running an IMAP or POP3 server provides a network-based
avenue of attack, and should be disabled if not needed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_dovecot_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable dovecot
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_dovecot_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service dovecot
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- dovecot
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_dovecot_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_dovecot_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_dovecot_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall dovecot Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>dovecot</html:code> package can be uninstalled
with the following command:
<html:pre>$ sudo yum erase dovecot</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If there is no need to make the Dovecot software available,
removing it provides a safeguard against its activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_dovecot_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove dovecot
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_dovecot_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure dovecot is removed
package:
name="{{item}}"
state=absent
with_items:
- dovecot
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_dovecot_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_dovecot
class remove_dovecot {
package { 'dovecot':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_dovecot_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=dovecot
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_dovecot_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_dovecot_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="configure_dovecot">
<ns0:title xml:lang="en-US">Configure Dovecot if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If the system will operate as an IMAP or
POP3 server, the dovecot software should be configured securely by following
the recommendations below.
</ns0:description>
<ns0:Group id="dovecot_support_necessary_protocols">
<ns0:title xml:lang="en-US">Support Only the Necessary Protocols</ns0:title>
<ns0:description xml:lang="en-US">Dovecot supports the IMAP and POP3 protocols, as well as
SSL-protected versions of those protocols. Configure the Dovecot server
to support only the protocols needed by your site. Edit <html:code>/etc/dovecot/dovecot.conf</html:code>.
Add or correct the following lines, replacing <html:code>PROTOCOL</html:code> with
only the subset of protocols (<html:code>imap</html:code>, <html:code>imaps</html:code>,
<html:code>pop3</html:code>, <html:code>pop3s</html:code>) required:
<html:pre>protocols = PROTOCOL</html:pre>
If possible, require SSL protection for all transactions. The SSL
protocol variants listen on alternate ports (995 instead of 110 for
pop3s, and 993 instead of 143 for imaps), and require SSL-aware clients.
An alternate approach is to listen on the standard port and require the
client to use the STARTTLS command before authenticating.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Configuring Dovecot to only support the protocols the protocols needed by
your site reduces the risk of an attacker using one of the unused protocols
to base an attack.</ns0:rationale>
</ns0:Group>
<ns0:Group id="dovecot_enabling_ssl">
<ns0:title xml:lang="en-US">Enable SSL Support</ns0:title>
<ns0:description xml:lang="en-US">SSL should be used to encrypt network traffic between the
Dovecot server and its clients. Users must authenticate to the Dovecot
server in order to read their mail, and passwords should never be
transmitted in clear text. In addition, protecting mail as it is
downloaded is a privacy measure, and clients may use SSL certificates
to authenticate the server, preventing another system from impersonating
the server.
</ns0:description>
<ns0:Rule id="dovecot_enable_ssl" selected="false" severity="low">
<ns0:title xml:lang="en-US">Enable the SSL flag in /etc/dovecot.conf</ns0:title>
<ns0:description xml:lang="en-US">To allow clients to make encrypted connections the <html:code>ssl</html:code>
flag in Dovecot's configuration file needs to be set to <html:code>yes</html:code>.
<html:br /><html:br />
Edit <html:code>/etc/dovecot/conf.d/10-ssl.conf</html:code> and add or correct the following line:
<html:pre>ssl = yes</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
SSL encrypt network traffic between the Dovecot server and its clients
protecting user credentials, mail as it is downloaded, and clients may use
SSL certificates to authenticate the server, preventing another system from
impersonating the server.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dovecot_enable_ssl:def:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="dovecot_configure_ssl_cert" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Dovecot to Use the SSL Certificate file</ns0:title>
<ns0:description xml:lang="en-US">This option tells Dovecot where to find the the mail
server's SSL Certificate.
<html:br /><html:br />
Edit <html:code>/etc/dovecot/conf.d/10-ssl.conf</html:code> and add or correct the following
line (<html:i>note: the path below is the default path set by the Dovecot installation. If
you are using a different path, ensure you reference the appropriate file</html:i>):
<html:pre>ssl_cert = </etc/pki/dovecot/certs/dovecot.pem</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
SSL certificates are used by the client to authenticate the identity
of the server, as well as to encrypt credentials and message traffic.
Not using SSL to encrypt mail server traffic could allow unauthorized
access to credentials and mail messages since they are sent in plain
text over the network.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="dovecot_configure_ssl_key" selected="false" severity="low">
<ns0:title xml:lang="en-US">Configure Dovecot to Use the SSL Key file</ns0:title>
<ns0:description xml:lang="en-US">This option tells Dovecot where to find the the mail
server's SSL Key.
<html:br /><html:br />
Edit <html:code>/etc/dovecot/conf.d/10-ssl.conf</html:code> and add or correct the following
line (<html:i>note: the path below is the default path set by the Dovecot installation. If
you are using a different path, ensure you reference the appropriate file</html:i>):
<html:pre>ssl_key = </etc/pki/dovecot/private/dovecot.pem</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
SSL certificates are used by the client to authenticate the identity
of the server, as well as to encrypt credentials and message traffic.
Not using SSL to encrypt mail server traffic could allow unauthorized
access to credentials and mail messages since they are sent in plain
text over the network.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="dovecot_disable_plaintext_auth" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Plaintext Authentication</ns0:title>
<ns0:description xml:lang="en-US">To prevent Dovecot from attempting plaintext
authentication of clients, edit <html:code>/etc/dovecot/conf.d/10-auth.conf</html:code> and add
or correct the following line:
<html:pre>disable_plaintext_auth = yes</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Using plain text authentication to the mail server could allow an
attacker access to credentials by monitoring network traffic.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-dovecot_disable_plaintext_auth:def:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="dovecot_allow_imap_access">
<ns0:title xml:lang="en-US">Allow IMAP Clients to Access the Server</ns0:title>
<ns0:description xml:lang="en-US">The default iptables configuration does not allow inbound
access to any services. This modification will allow remote hosts to
initiate connections to the IMAP daemon, while keeping all other ports
on the server in their default protected state.
To configure <html:code>iptables</html:code> to allow port
143 traffic one must edit
<html:code>/etc/sysconfig/iptables</html:code> and
<html:code>/etc/sysconfig/ip6tables</html:code> (if IPv6 is in use).
Add the following line, ensuring that it appears before the final LOG
and DROP lines for the INPUT chain:
<html:pre xml:space="preserve">-A INPUT -m state --state NEW -p tcp --dport 143 -j ACCEPT</html:pre>
</ns0:description>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="smb">
<ns0:title xml:lang="en-US">Samba(SMB) Microsoft Windows File Sharing Server</ns0:title>
<ns0:description xml:lang="en-US">When properly configured, the Samba service allows
Linux machines to provide file and print sharing to Microsoft
Windows machines. There are two software packages that provide
Samba support. The first, <html:code>samba-client</html:code>, provides a series of
command line tools that enable a client machine to access Samba
shares. The second, simply labeled <html:code>samba</html:code>, provides the Samba
service. It is this second package that allows a Linux machine to
act as an Active Directory server, a domain controller, or as a
domain member. Only the <html:code>samba-client</html:code> package is installed by
default.</ns0:description>
<ns0:Group id="disabling_samba">
<ns0:title xml:lang="en-US">Disable Samba if Possible</ns0:title>
<ns0:description xml:lang="en-US">
Even after the Samba server package has been installed, it
will remain disabled. Do not enable this service unless it is
absolutely necessary to provide Microsoft Windows file and print
sharing functionality.
</ns0:description>
<ns0:Rule id="service_smb_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Samba</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>smb</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig smb off</html:pre>
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1436</ns0:reference>
<ns0:rationale xml:lang="en-US">
Running a Samba server provides a network-based avenue of attack, and
should be disabled if not needed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_smb_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable smb
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_smb_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service smb
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- smb
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_smb_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_smb_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_samba_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall samba Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>samba</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase samba</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If there is no need to mount directories and file systems to
Windows systems, then this service can be deleted to reduce
the potential attack surface.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_samba_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove samba
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure samba is removed
package:
name="{{item}}"
state=absent
with_items:
- samba
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_samba
class remove_samba {
package { 'samba':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=samba
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_samba_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_samba_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="configuring_samba">
<ns0:title xml:lang="en-US">Configure Samba if Necessary</ns0:title>
<ns0:description xml:lang="en-US">All settings for the Samba daemon can be found in
<html:code>/etc/samba/smb.conf</html:code>. Settings are divided between a
<html:code>[global]</html:code> configuration section and a series of user
created share definition sections meant to describe file or print
shares on the system. By default, Samba will operate in user mode
and allow client machines to access local home directories and
printers. It is recommended that these settings be changed or that
additional limitations be set in place.</ns0:description>
<ns0:Rule id="package_samba-common_installed" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Install the Samba Common Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>samba-common</html:code> package should be installed.
The <html:code>samba-common</html:code> package can be installed with the following command:
<html:pre>$ sudo yum install samba-common</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If the samba-common package is not installed, samba cannot be configured.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_samba-common_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command install samba-common
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba-common_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:ansible">- name: Ensure samba-common is installed
package:
name="{{item}}"
state=present
with_items:
- samba-common
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba-common_installed" reboot="false" strategy="enable" system="urn:xccdf:fix:script:puppet">include install_samba-common
class install_samba-common {
package { 'samba-common':
ensure => 'installed',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_samba-common_installed" reboot="false" strategy="enable" system="urn:redhat:anaconda:pre">
package --add=samba-common
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_samba-common_installed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_samba-common_installed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="smb_restrict_file_sharing">
<ns0:title xml:lang="en-US">Restrict SMB File Sharing to Configured Networks</ns0:title>
<ns0:description xml:lang="en-US">Only users with local user accounts will be able to log in to
Samba shares by default. Shares can be limited to particular users or network
addresses. Use the <html:code>hosts allow</html:code> and <html:code>hosts deny</html:code> directives
accordingly, and consider setting the valid users directive to a limited subset
of users or to a group of users. Separate each address, user, or user group
with a space as follows for a particular <html:i>share</html:i> or global:
<html:pre>[<html:i>share</html:i>]
hosts allow = 192.168.1. 127.0.0.1
valid users = userone usertwo @usergroup</html:pre>
It is also possible to limit read and write access to particular users with the
read list and write list options, though the permissions set by the system
itself will override these settings. Set the read only attribute for each share
to ensure that global settings will not accidentally override the individual
share settings. Then, as with the valid users directive, separate each user or
group of users with a space:
<html:pre>[<html:i>share</html:i>]
read only = yes
write list = userone usertwo @usergroup</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">The Samba service is only required for sharing files and printers
with Microsoft Windows workstations, and even then, other options may exist.
</ns0:rationale>
</ns0:Group>
<ns0:Rule id="smb_server_disable_root" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Root Access to SMB Shares</ns0:title>
<ns0:description xml:lang="en-US">Administrators should not use administrator accounts to access
Samba file and printer shares. Disable the root user and the wheel
administrator group:
<html:pre>[<html:i>share</html:i>]
invalid users = root @wheel</html:pre>
If administrator accounts cannot be disabled, ensure that local machine
passwords and Samba service passwords do not match.</ns0:description>
<ns0:rationale xml:lang="en-US">
Typically, administrator access is required when Samba must create user and
machine accounts and shares. Domain member servers and standalone servers may
not need administrator access at all. If that is the case, add the invalid
users parameter to <html:code>[global]</html:code> instead.
</ns0:rationale>
</ns0:Rule>
<ns0:Rule id="require_smb_client_signing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Require Client SMB Packet Signing, if using smbclient</ns0:title>
<ns0:description xml:lang="en-US">
To require samba clients running <html:code>smbclient</html:code> to use
packet signing, add the following to the <html:code>[global]</html:code> section
of the Samba configuration file, <html:code>/etc/samba/smb.conf</html:code>:
<html:pre>client signing = mandatory</html:pre>
Requiring samba clients such as <html:code>smbclient</html:code> to use packet
signing ensures they can
only communicate with servers that support packet signing.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Packet signing can prevent
man-in-the-middle attacks which modify SMB packets in
transit.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="require_smb_client_signing" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh">######################################################################
#By Luke "Brisk-OH" Brisk
#luke.brisk@boeing.com or luke.brisk@gmail.com
######################################################################
CLIENTSIGNING=$( grep -ic 'client signing' /etc/samba/smb.conf )
if [ "$CLIENTSIGNING" -eq 0 ]; then
# Add to global section
sed -i 's/\[global\]/\[global\]\n\n\tclient signing = mandatory/g' /etc/samba/smb.conf
else
sed -i 's/[[:blank:]]*client[[:blank:]]signing[[:blank:]]*=[[:blank:]]*no/ client signing = mandatory/g' /etc/samba/smb.conf
fi
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-require_smb_client_signing:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-require_smb_client_signing_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="mount_option_smb_client_signing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Require Client SMB Packet Signing, if using mount.cifs</ns0:title>
<ns0:description xml:lang="en-US">Require packet signing of clients who mount Samba
shares using the <html:code>mount.cifs</html:code> program (e.g., those who specify shares
in <html:code>/etc/fstab</html:code>). To do so, ensure signing options (either
<html:code>sec=krb5i</html:code> or <html:code>sec=ntlmv2i</html:code>) are used.
<html:br /><html:br />
See the <html:code>mount.cifs(8)</html:code> man page for more information. A Samba
client should only communicate with servers who can support SMB
packet signing.
</ns0:description>
<ns0:rationale xml:lang="en-US">
Packet signing can prevent man-in-the-middle
attacks which modify SMB packets in transit.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-mount_option_smb_client_signing:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-mount_option_smb_client_signing_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Group id="smb_disable_printing">
<ns0:title xml:lang="en-US">Restrict Printer Sharing</ns0:title>
<ns0:description xml:lang="en-US">By default, Samba utilizes the CUPS printing service to enable
printer sharing with Microsoft Windows workstations. If there are no printers
on the local machine, or if printer sharing with Microsoft Windows is not
required, disable the printer sharing capability by commenting out the
following lines, found in <html:code>/etc/samba/smb.conf</html:code>:
<html:pre>[global]
load printers = yes
cups options = raw
[printers]
comment = All Printers
path = /usr/spool/samba
browseable = no
guest ok = no
writable = no
printable = yes</html:pre>
There may be other options present, but these are the only options enabled and
uncommented by default. Removing the <html:code>[printers]</html:code> share should be enough
for most users. If the Samba printer sharing capability is needed, consider
disabling the Samba network browsing capability or restricting access to a
particular set of users or network addresses. Set the <html:code>valid users</html:code>
parameter to a small subset of users or restrict it to a particular group of
users with the shorthand <html:code>@</html:code>. Separate each user or group of users with
a space. For example, under the <html:code>[printers]</html:code> share:
<html:pre>[printers]
valid users = user @printerusers</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">The Samba service is only required for sharing files and printers
with Microsoft Windows workstations, and even then, other options may exist. Do
not use the Samba service to share files between Unix or Linux machines.
</ns0:rationale>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group id="proxy">
<ns0:title xml:lang="en-US">Proxy Server</ns0:title>
<ns0:description xml:lang="en-US">A proxy server is a very desirable target for a
potential adversary because much (or all) sensitive data for a
given infrastructure may flow through it. Therefore, if one is
required, the machine acting as a proxy server should be dedicated
to that purpose alone and be stored in a physically secure
location. The system's default proxy server software is Squid, and
provided in an RPM package of the same name.</ns0:description>
<ns0:Group id="disabling_squid">
<ns0:title xml:lang="en-US">Disable Squid if Possible</ns0:title>
<ns0:description xml:lang="en-US">If Squid was installed and activated, but the system
does not need to act as a proxy server, then it should be disabled
and removed.
</ns0:description>
<ns0:Rule id="service_squid_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable Squid</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>squid</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig squid off</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Running proxy server software provides a network-based avenue
of attack, and should be removed if not needed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_squid_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable squid
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_squid_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service squid
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- squid
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_squid_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_squid_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_squid_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall squid Package</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>squid</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase squid</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If there is no need to make the proxy server software available,
removing it provides a safeguard against its activation.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_squid_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_squid_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
<ns0:Group id="snmp">
<ns0:title xml:lang="en-US">SNMP Server</ns0:title>
<ns0:description xml:lang="en-US">The Simple Network Management Protocol allows
administrators to monitor the state of network devices, including
computers. Older versions of SNMP were well-known for weak
security, such as plaintext transmission of the community string
(used for authentication) and usage of easily-guessable
choices for the community string.</ns0:description>
<ns0:Group id="disabling_snmp_service">
<ns0:title xml:lang="en-US">Disable SNMP Server if Possible</ns0:title>
<ns0:description xml:lang="en-US">The system includes an SNMP daemon that allows for its remote
monitoring, though it not installed by default. If it was installed and
activated but is not needed, the software should be disabled and removed.
</ns0:description>
<ns0:Rule id="service_snmpd_disabled" selected="false" severity="low">
<ns0:title xml:lang="en-US">Disable snmpd Service</ns0:title>
<ns0:description xml:lang="en-US">
The <html:code>snmpd</html:code> service can be disabled with the following command:
<html:pre>$ sudo chkconfig snmpd off</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Running SNMP software provides a network-based avenue of attack, and
should be disabled if not needed.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="service_snmpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_service_command" />
service_command disable snmpd
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="service_snmpd_disabled" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Disable service snmpd
service:
name="{{item}}"
enabled="no"
state="stopped"
with_items:
- snmpd
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-service_snmpd_disabled:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-service_snmpd_disabled_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="package_net-snmp_removed" selected="false" severity="low">
<ns0:title xml:lang="en-US">Uninstall net-snmp Package</ns0:title>
<ns0:description xml:lang="en-US">The <html:code>net-snmp</html:code> package provides the snmpd service.
The <html:code>net-snmp</html:code> package can be removed with the following command:
<html:pre>$ sudo yum erase net-snmp</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
If there is no need to run SNMP server software,
removing the package provides a safeguard against its
activation.
</ns0:rationale>
<ns0:fix complexity="low" disruption="low" id="package_net-snmp_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:sh"><ns0:sub idref="function_package_command" />
package_command remove net-snmp
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_net-snmp_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:ansible">- name: Ensure net-snmp is removed
package:
name="{{item}}"
state=absent
with_items:
- net-snmp
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_net-snmp_removed" reboot="false" strategy="disable" system="urn:xccdf:fix:script:puppet">include remove_net-snmp
class remove_net-snmp {
package { 'net-snmp':
ensure => 'purged',
}
}
</ns0:fix>
<ns0:fix complexity="low" disruption="low" id="package_net-snmp_removed" reboot="false" strategy="disable" system="urn:redhat:anaconda:pre">
package -remove=net-snmp
</ns0:fix>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-package_net-snmp_removed:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-package_net-snmp_removed_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
<ns0:Group id="snmp_configure_server">
<ns0:title xml:lang="en-US">Configure SNMP Server if Necessary</ns0:title>
<ns0:description xml:lang="en-US">If it is necessary to run the snmpd agent on the system, some best
practices should be followed to minimize the security risk from the
installation. The multiple security models implemented by SNMP cannot be fully
covered here so only the following general configuration advice can be offered:
<html:ul><html:li>use only SNMP version 3 security models and enable the use of authentication and encryption</html:li><html:li>write access to the MIB (Management Information Base) should be allowed only if necessary</html:li><html:li>all access to the MIB should be restricted following a principle of least privilege</html:li><html:li>network access should be limited to the maximum extent possible including restricting to expected network
addresses both in the configuration files and in the system firewall rules</html:li><html:li>ensure SNMP agents send traps only to, and accept SNMP queries only from, authorized management
stations</html:li><html:li>ensure that permissions on the <html:code>snmpd.conf</html:code> configuration file (by default, in <html:code>/etc/snmp</html:code>) are 640 or more restrictive</html:li><html:li>ensure that any MIB files' permissions are also 640 or more restrictive</html:li></html:ul>
</ns0:description>
<ns0:Rule id="snmpd_use_newer_protocol" selected="false" severity="medium">
<ns0:title xml:lang="en-US">Configure SNMP Service to Use Only SNMPv3 or Newer </ns0:title>
<ns0:description xml:lang="en-US">
Edit <html:code>/etc/snmp/snmpd.conf</html:code>, removing any references to <html:code>rocommunity</html:code>, <html:code>rwcommunity</html:code>, or <html:code>com2sec</html:code>.
Upon doing that, restart the SNMP service:
<html:pre>$ sudo service snmpd restart</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Earlier versions of SNMP are considered insecure, as they potentially allow
unauthorized access to detailed system management information.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-snmpd_use_newer_protocol:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-snmpd_use_newer_protocol_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="snmpd_not_default_password" selected="false" severity="high">
<ns0:title xml:lang="en-US">Ensure Default Password Is Not Used</ns0:title>
<ns0:description xml:lang="en-US">
Edit <html:code>/etc/snmp/snmpd.conf</html:code>, remove default community string <html:code>public</html:code>.
Upon doing that, restart the SNMP service:
<html:pre>$ sudo service snmpd restart</html:pre>
</ns0:description>
<ns0:rationale xml:lang="en-US">
Presence of the default SNMP password enables querying of different system
aspects and could result in unauthorized knowledge of the system.
</ns0:rationale>
<ns0:check system="http://oval.mitre.org/XMLSchema/oval-definitions-5">
<ns0:check-content-ref href="ssg-rhel6-oval.xml" name="oval:ssg-snmpd_not_default_password:def:1" />
</ns0:check>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-snmpd_not_default_password_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Group>
</ns0:Group>
<ns0:Group hidden="true" id="srg_support">
<ns0:title xml:lang="en-US">Documentation to Support DISA OS SRG Mapping</ns0:title>
<ns0:description xml:lang="en-US">These groups exist to document how the Red Hat Enterprise Linux
product meets (or does not meet) requirements listed in the DISA OS SRG, for
those cases where Groups or Rules elsewhere in scap-security-guide do
not clearly relate.
</ns0:description>
<ns0:Rule id="met_inherently_generic" selected="false" severity="low">
<ns0:title xml:lang="en-US">Product Meets this Requirement</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is a permanent not a finding. No fix is required.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">42</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">56</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">206</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1084</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">66</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">85</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">86</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">185</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">223</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">171</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">172</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1694</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">770</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">804</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">162</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">163</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">164</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">345</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">346</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1096</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1111</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1291</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">386</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">156</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">186</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1083</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1082</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1090</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">804</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1127</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1128</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1129</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1248</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1265</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1314</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1362</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1368</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1310</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1311</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1328</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1399</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1400</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1427</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1499</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1632</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1693</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1665</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1674</ns0:reference>
<ns0:rationale xml:lang="en-US">
Red Hat Enterprise Linux meets this requirement through design and implementation.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-met_inherently_generic_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="met_inherently_auditing" selected="false" severity="low">
<ns0:title xml:lang="en-US">Product Meets this Requirement</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is a permanent not a finding. No fix is required.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">130</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">157</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">131</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">132</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">133</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">134</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">135</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">159</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">174</ns0:reference>
<ns0:rationale xml:lang="en-US">
The Red Hat Enterprise Linux audit system meets this requirement through design and implementation.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-met_inherently_auditing_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="met_inherently_nonselected" selected="false" severity="low">
<ns0:title xml:lang="en-US">Product Meets this Requirement</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is a permanent not a finding. No fix is required.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">34</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">35</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">99</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">154</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">226</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">802</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">872</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1086</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1087</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1089</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1091</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1424</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1426</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1428</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1209</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1214</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1237</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1269</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1338</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1425</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1670</ns0:reference>
<ns0:rationale xml:lang="en-US">
Red Hat Enterprise Linux meets this requirement through design and implementation.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-met_inherently_nonselected_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="unmet_nonfinding_nonselected_scope" selected="false" severity="low">
<ns0:title xml:lang="en-US">Guidance Does Not Meet this Requirement Due to Impracticality or Scope</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is NA. No fix is required.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">21</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">25</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">28</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">29</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">30</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">165</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">221</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">354</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">553</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">779</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">780</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">781</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1009</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1094</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1123</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1124</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1125</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1132</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1135</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1140</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1141</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1142</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1143</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1145</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1147</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1148</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1166</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1339</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1340</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1341</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1350</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1356</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1373</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1374</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1383</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1391</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1392</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1395</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1662</ns0:reference>
<ns0:rationale xml:lang="en-US">
The guidance does not meet this requirement.
The requirement is impractical or out of scope.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-unmet_nonfinding_nonselected_scope_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="unmet_finding_nonselected" selected="false" severity="low">
<ns0:title xml:lang="en-US">Implementation of the Requirement is Not Supported</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is a permanent finding and cannot be fixed. An appropriate
mitigation for the system must be implemented but this finding cannot be
considered fixed.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">20</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">31</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">52</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">144</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1158</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1294</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1295</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1500</ns0:reference>
<ns0:rationale xml:lang="en-US">
RHEL6 does not support this requirement.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-unmet_finding_nonselected_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="unmet_nonfinding_scope" selected="false" severity="low">
<ns0:title xml:lang="en-US">Guidance Does Not Meet this Requirement Due to Impracticality or Scope</ns0:title>
<ns0:description xml:lang="en-US">
This requirement is NA. No fix is required.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">15</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">27</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">218</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">219</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">371</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">372</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">535</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">537</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">539</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1682</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">370</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">37</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">24</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1112</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1126</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1143</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1149</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1157</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1159</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1210</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1211</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1274</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1372</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1376</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1377</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1352</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1401</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1555</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1556</ns0:reference>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1150</ns0:reference>
<ns0:rationale xml:lang="en-US">
The guidance does not meet this requirement.
The requirement is impractical or out of scope.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-unmet_nonfinding_scope_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
<ns0:Rule id="update_process" selected="false" severity="low">
<ns0:title xml:lang="en-US">A process for prompt installation of OS updates must exist.</ns0:title>
<ns0:description xml:lang="en-US">
Procedures to promptly apply software updates must be established and
executed. The Red Hat operating system provides support for automating such a
process, by running the yum program through a cron job or by managing the
system and its packages through the Red Hat Network or a Satellite Server.
</ns0:description>
<ns0:reference href="http://iase.disa.mil/stigs/cci/Pages/index.aspx">1232</ns0:reference>
<ns0:rationale xml:lang="en-US">
This is a manual inquiry about update procedure.
</ns0:rationale>
<ns0:check system="http://scap.nist.gov/schema/ocil/2">
<ns0:check-content-ref href="ssg-rhel6-ocil.xml" name="ocil:ssg-update_process_ocil:questionnaire:1" />
</ns0:check>
</ns0:Rule>
</ns0:Group>
</ns0:Benchmark>
|